Function at 0x40202d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10f0
call fcn.00402560
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push 0x1f0fff
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x40221e
push 0x860
lea eax, [ebp - 0x880]
push esi
push eax
mov dword [ebp - 0x884], esi
call sub.msvcrt.dll_memset
add esp, 0xc
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], esi
call fcn.00401d6f
cmp dword [ebp - 8], esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateProcessW
push ebx
je 0x4020a8
call dword [ebp - 8]
jmp 0x4020aa
call edi
mov dword [ebp - 0x830], eax
lea eax, [ebp - 8]
push eax
call fcn.00401d6f
cmp dword [ebp - 8], esi
push 0x403490
push ebx
je 0x4020c9
call dword [ebp - 8]
jmp 0x4020cb
call edi
push dword [ebp + 0x10]
lea edi, [ebp - 0x820]
mov dword [ebp - 0x82c], eax
mov dword [ebp - 0x874], 0x44
call fcn.0040113f
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
pop ecx
push 4
push 0x1000
mov edi, 0x864
push edi
push esi
push dword [ebp + 0xc]
call ebx
push 0x40
push 0x1000
push 0x800
push esi
push dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
call ebx
cmp dword [ebp + 0x10], esi
mov dword [ebp - 0xc], eax
je 0x402211
cmp eax, esi
je 0x402211
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push esi
push 0x800
push 0x401ffe
push eax
push dword [ebp + 0xc]
call ebx
push esi
push edi
lea eax, [ebp - 0x884]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push dword [ebp - 0xc]
mov dword [ebp - 0x14], esi
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], esi
call fcn.00401e94
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x18], ebx
je 0x402197
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x7d0
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4021a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
push 0x860
lea eax, [ebp - 0x10e8]
push esi
push eax
mov dword [ebp - 0x10ec], esi
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
push edi
lea eax, [ebp - 0x10ec]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ebx, 0x8000
push ebx
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call edi
push ebx
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call edi
cmp dword [ebp - 0x18], esi
je 0x402201
mov eax, dword [ebp - 0x108c]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp dword [ebp - 0x14], esi
je 0x402226
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x402226
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x402226
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0xc