Function at 0x403310
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4131f5
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x41d040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x5c], esi
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x18]
mov edi, dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x41daa8
call fcn.00402cc0
test al, al
je 0x40359e
cmp dword [ebp - 0x18], 0
jne 0x40359e
cmp dword [esi + 4], 0
jne 0x403387
mov dword [edi + 4], 0x4002
jmp 0x4035a5
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4033a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [edi], 1
mov dword [edi + 4], eax
jmp 0x4035a8
push str.LoadLibraryW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x403396
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push ecx
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x30]
push eax
call fcn.00403bf0
push 0x40
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
push 0x3000
add eax, eax
push eax
push 0
push dword [esi + 4]
mov dword [ebp - 0x58], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, eax
mov dword [ebp - 0x54], ecx
test ecx, ecx
jne 0x403429
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
xorps xmm0, xmm0
mov byte [edi], 1
xor eax, eax
movups xmmword [edi + 8], xmm0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 7
mov word [edi + 8], ax
jmp 0x4034fa
cmp dword [ebp - 0x1c], 7
lea eax, [ebp - 0x30]
push 0
push dword [ebp - 0x58]
cmova eax, dword [ebp - 0x30]
push eax
push ecx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4033fd
push 0
push 0
push 0
push dword [ebp - 0x54]
push dword [ebp - 0x14]
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThreadEx]
test eax, eax
jne 0x40353d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 0x50], 1
xorps xmm0, xmm0
mov dword [ebp - 0x4c], esi
xor eax, eax
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
push 0x8000
push eax
mov eax, dword [ebp - 0x5c]
push dword [ebp - 0x54]
mov byte [ebp - 4], 1
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov al, byte [ebp - 0x50]
lea ecx, [edi + 8]
mov byte [edi], al
lea eax, [ebp - 0x48]
push eax
mov dword [edi + 4], esi
call fcn.00403ab0
mov ecx, dword [ebp - 0x34]
cmp ecx, 7
jbe 0x4034fa
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4034f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035e2
push ecx
push edx
call fcn.00406906
add esp, 8
mov ecx, dword [ebp - 0x1c]
cmp ecx, 7
jbe 0x4035c3
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40352e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035e2
push ecx
push edx
call fcn.00406906
add esp, 8
jmp 0x4035c3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1c]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
xor eax, eax
movups xmmword [edi + 0x10], xmm0
mov byte [edi], 0
mov dword [edi + 4], 0
movups xmmword [edi + 8], xmm0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 7
mov word [edi + 8], ax
cmp ecx, 7
jbe 0x4035c3
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40352e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035e2
jmp 0x40352e
mov dword [edi + 4], 1
mov byte [edi], 0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [edi + 8], xmm0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 7
mov word [edi + 8], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004065bd
mov esp, ebp
pop ebp
ret 8
call fcn.00409a1f
int3