rendered paste body#define MAX_FRAME_SIZE 4096static const unsigned char templ_copy_stack_frame[] = { 0xb9, 0xff, 0xff, 0xff, 0xff, // [00] mov ecx, (MAX_FRAME_SIZE / 4) 0x81, 0xec, 0xff, 0xff, 0xff, 0xff, // [05] sub esp, MAX_FRAME_SIZE 0x56, // [11] push esi 0x57, // [12] push edi 0xfc, // [13] cld 0x8d, 0x7c, 0x24, 0x08, // [14] lea edi, [esp + 8] 0x8d, 0xb7, 0xff, 0xff, 0xff, 0xff, // [18] lea esi, [edi + 4096] 0xf3, 0xa5, // [24] rep movsd 0x5f, // [26] pop edi 0x5e // [27] pop esi};...unsigned char *proxy = new unsigned char[x];memcpy(proxy, templ_copy_stack_frame, sizeof(templ_copy_stack_frame));*((DWORD *) (proxy + 1)) = MAX_FRAME_SIZE / 4;*((DWORD *) (proxy + 7)) = MAX_FRAME_SIZE;*((DWORD *) (proxy + 20)) = MAX_FRAME_SIZE;