Function at 0x406330
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push 0xffffffffffffffff
push 0x487bb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x344
push ebx
push ebp
push esi
push edi
mov ebx, dword [esp + 0x364]
mov ecx, 0x8d
xor eax, eax
lea edi, [esp + 0x1c]
push 0x40
xor esi, esi
push 0x1000
push 0x1000
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
push esi
push ebx
mov dword [esp + 0x370], esi
mov dword [esp + 0x28], esi
xor ebp, ebp
call edi
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4063a1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x4ab6a0
jmp 0x406625
push 4
push 0x1000
push 0x234
push 0
push ebx
call edi
mov ebp, eax
test ebp, ebp
jne 0x4063c9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x4ab6a0
jmp 0x406625
mov eax, dword [esp + 0x10]
push 0
push 0x1000
push 0x406800
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
test eax, eax
jne 0x4063f6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x4ab64c
jmp 0x406625
mov edi, dword [esp + 0x370]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x250]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x4c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x254]
push ecx
push edx
call fcn.00406860
mov eax, dword [esp + 0x374]
mov ecx, dword [esp + 0x378]
add esp, 0xc
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
push 0x4ab63c
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x406474
push 0x4ab5dc
call fcn.0044cad6
add esp, 4
jmp 0x40662d
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x4ab5cc
push esi
call edi
push 0x4ab5b8
push esi
mov dword [esp + 0x40], eax
call edi
push 0x4ab5ac
push esi
mov dword [esp + 0x44], eax
call edi
push 0x4ab59c
push esi
mov dword [esp + 0x48], eax
call edi
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x44], eax
test ecx, ecx
je 0x406619
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x406619
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x406619
test eax, eax
je 0x406619
push 0
lea edx, [esp + 0x20]
push 0x234
push edx
push ebp
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
test eax, eax
jne 0x4064ff
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x4ab64c
jmp 0x406625
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0
push ebp
push ecx
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x406530
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x4ab548
jmp 0x406625
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
mov dword [esp + 0x18], eax
je 0x40656b
cmp eax, 0x102
je 0x406559
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x4ab4f0
jmp 0x406625
push 0x4ab488
call fcn.0044cad6
add esp, 4
jmp 0x40662d
push 0
lea edx, [esp + 0x20]
push 0x234
push edx
push ebp
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
jne 0x406594
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x4ab438
jmp 0x406625
mov eax, dword [esp + 0x368]
test eax, eax
je 0x4065d6
mov eax, dword [esp + 0x370]
push eax
push 0x4ab418
call fcn.0044cad6
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x4065c4
push eax
push 0x4ab3f8
jmp 0x4065ce
mov ecx, dword [esp + 0x2c]
push ecx
push 0x4ab3d4
call fcn.0044cad6
add esp, 8
mov eax, dword [esp + 0x36c]
test eax, eax
je 0x40662d
mov edx, dword [esp + 0x370]
push edx
push 0x4ab3b4
call fcn.0044cad6
mov eax, dword [esp + 0x30]
add esp, 8
test eax, eax
je 0x40660d
push 0x4ab394
call fcn.0044cad6
add esp, 4
jmp 0x40662d
mov eax, dword [esp + 0x2c]
push eax
push 0x4ab36c
jmp 0x406625
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x4ab320
call fcn.0044cad6
add esp, 8
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.DLL_VirtualFreeEx]
test eax, eax
je 0x406653
push 0x8000
mov edx, eax
push 0
push edx
push ebx
call edi
test ebp, ebp
je 0x406662
push 0x8000
push 0
push ebp
push ebx
call edi
test esi, esi
je 0x40666d
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea ecx, [esp + 0x370]
mov dword [esp + 0x35c], 0xffffffff
call fcn.0046741f
mov ecx, dword [esp + 0x354]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x350
ret