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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e8
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x18], ebx
call fcn.004069ce
cmp eax, ebx
je 0x406dc5
push eax
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x406dc5
push 0xdc
lea eax, [ebp - 0x100]
push ebx
push eax
mov dword [ebp - 0x104], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
push str.kernel32.dll
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov edi, eax
lea eax, [ebp - 0xc]
push eax
call fcn.00402ef1
cmp dword [ebp - 0xc], ebx
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x4157bc
push edi
je 0x406b91
call dword [ebp - 0xc]
jmp 0x406b93
call esi
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00402ef1
cmp dword [ebp - 0xc], ebx
push 0x4157d0
push edi
je 0x406bb2
call dword [ebp - 0xc]
jmp 0x406bb4
call esi
mov dword [ebp - 0x100], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00402ef1
cmp dword [ebp - 0xc], ebx
push 0x4157e0
push edi
je 0x406bd3
call dword [ebp - 0xc]
jmp 0x406bd5
call esi
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00402ef1
cmp dword [ebp - 0xc], ebx
push 0x4157f4
push edi
je 0x406bf4
call dword [ebp - 0xc]
jmp 0x406bf6
call esi
mov esi, dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
push 4
mov edi, 0x1000
push edi
push 0xe0
push ebx
push dword [ebp - 8]
mov dword [ebp - 0xf8], eax
call esi
push 0x40
push edi
push 0x400
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
call esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push 4
push edi
add eax, eax
push eax
push ebx
push dword [ebp - 8]
call esi
push 4
push edi
mov edi, dword [ebp + 0xc]
push dword [edi]
mov dword [ebp - 0x30], eax
push ebx
push dword [ebp - 8]
call esi
cmp dword [ebp - 0x10], ebx
mov dword [ebp - 0x34], eax
mov eax, dword [edi]
mov dword [ebp - 0x2c], eax
je 0x406d89
cmp dword [ebp - 0x14], ebx
je 0x406d89
cmp dword [ebp - 0x30], ebx
je 0x406d89
cmp eax, ebx
je 0x406d89
mov esi, dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
push ebx
push eax
push dword [edi + 4]
mov edi, dword [ebp - 8]
push dword [ebp - 0x34]
push edi
call esi
lea eax, [ebp - 0x104]
call fcn.00406889
push ebx
push 0x400
push 0x40692c
push dword [ebp - 0x14]
push edi
call esi
push ebx
push 0xe0
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x10]
push edi
call esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push dword [ebp - 0x14]
mov dword [ebp + 0xc], ebx
push edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0040202a
mov edi, dword [ebp + 8]
mov esi, eax
push esi
call fcn.00406a91
push esi
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push 0x3a98
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0xdc
lea eax, [ebp - 0x1e0]
push ebx
push eax
mov dword [ebp - 0x1e4], ebx
call sub.msvcrt.dll_memset
mov esi, dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
add esp, 0xc
push ebx
push 0xe0
lea eax, [ebp - 0x1e4]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 0x108]
lea ecx, [eax - 1]
cmp ecx, 0xfffffe
ja 0x406d81
add eax, 0x10
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
push ebx
push dword [ebp - 0x108]
mov edi, eax
push edi
push dword [ebp - 0x30]
push dword [ebp - 8]
call esi
test eax, eax
je 0x406d7a
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0x18], 1
mov dword [eax + 4], edi
mov dword [eax], ecx
jmp 0x406d81
push edi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
lea esi, [ebp - 0x20]
call fcn.00401f5d
mov esi, dword [sym.imp.KERNEL32.DLL_VirtualFreeEx]
mov edi, 0x8000
push edi
push ebx
push dword [ebp - 0x10]
push dword [ebp - 8]
call esi
push edi
push ebx
push dword [ebp - 0x14]
push dword [ebp - 8]
call esi
push edi
push ebx
push dword [ebp - 0x30]
push dword [ebp - 8]
call esi
push edi
push ebx
push dword [ebp - 0x34]
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0xc