Function at 0x402fa0
Capabilities:
Allocate or change rwx memory
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40fa53
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x640
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x650], edi
mov dword [ebp - 4], 0
lea esi, [edi + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x90], 0x44
push esi
lea ecx, [ebp - 0x40]
movlpd qword [ebp - 0x8c], xmm0
movlpd qword [ebp - 0x84], xmm0
movlpd qword [ebp - 0x7c], xmm0
movlpd qword [ebp - 0x74], xmm0
movlpd qword [ebp - 0x6c], xmm0
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movups xmmword [ebp - 0x640], xmm0
call fcn.00401c10
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x30]
cmovae edx, dword [ebp - 0x40]
mov dword [ebp - 0x648], eax
test eax, eax
je 0x4031fb
or ecx, 0xffffffff
dec eax
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x403082
cmp ecx, edx
je 0x4031fb
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x403071
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4031fb
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x648]
cmovae eax, dword [ebp - 0x40]
lea eax, [eax + edx*2]
mov dword [ebp - 0x64c], eax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
lea eax, [eax + ecx*2]
add eax, 2
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x648], eax
cmovae ecx, dword [ebp - 0x40]
sub dword [ebp - 0x648], ecx
mov ecx, dword [ebp - 0x648]
sar ecx, 1
mov dword [ebp - 0x648], ecx
cmp edx, ecx
jb 0x4034ba
sub dword [ebp - 0x64c], eax
mov eax, edx
sar dword [ebp - 0x64c], 1
sub eax, ecx
mov edi, dword [ebp - 0x64c]
cmp eax, edi
cmovb edi, eax
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0x64c], edi
cmovae eax, dword [ebp - 0x40]
sub edx, edi
mov dword [ebp - 0x30], edx
sub edx, dword [ebp - 0x648]
lea ecx, [eax + ecx*2]
lea eax, [edx*2 + 2]
push eax
mov eax, edi
lea eax, [ecx + eax*2]
push eax
push ecx
call fcn.00405fb0
mov edi, dword [ebp - 0x650]
lea eax, [ebp - 0x40]
add esp, 0xc
cmp dword [ebx + 0x18], 0
je 0x40317d
cmp dword [ebp - 0x2c], 8
lea ecx, [ebx + 8]
cmovae eax, dword [ebp - 0x40]
cmp dword [ebx + 0x1c], 8
cmovae ecx, dword [ebx + 8]
cmp dword [esi + 0x14], 8
jb 0x40315e
mov esi, dword [esi]
lea edx, [ebp - 0x640]
push edx
lea edx, [ebp - 0x90]
push edx
push eax
push 0
push 4
push 0
push 0
push 0
push ecx
jmp 0x403258
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
cmp dword [esi + 0x14], 8
jb 0x40318d
mov esi, dword [esi]
lea ecx, [ebp - 0x640]
push ecx
lea ecx, [ebp - 0x90]
push ecx
push eax
push 0
push 4
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403267
mov byte [ebp - 0x641], 0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40344a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403440
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4034bf
jmp 0x403440
cmp dword [ebx + 0x18], 0
je 0x403234
cmp dword [ebx + 0x1c], 8
lea eax, [ebx + 8]
cmovae eax, dword [ebx + 8]
cmp dword [esi + 0x14], 8
jb 0x403214
mov esi, dword [esi]
lea ecx, [ebp - 0x640]
push ecx
lea ecx, [ebp - 0x90]
push ecx
push 0
push 0
push 4
push 0
push 0
push 0
push eax
jmp 0x4031a8
cmp dword [esi + 0x14], 8
jb 0x40323c
mov esi, dword [esi]
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4031b7
push dword [ebp - 0x638]
mov eax, dword [ebp - 0x640]
push 0
mov dword [edi + 0x40], eax
mov eax, dword [ebp - 0x63c]
push 0x1fffff
mov dword [edi + 0x44], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4031b7
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x634]
mov dword [edi + 0x40], esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x4031b7
push dword [edi + 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2c8
lea eax, [ebp - 0x35c]
mov dword [edi + 0x44], esi
push 0
push eax
call fcn.00404ac0
add esp, 0xc
mov dword [ebp - 0x360], 0x1003f
lea eax, [ebp - 0x360]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4031b7
push 4
push 0x1000
push 0x1000
push 0
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x4031b7
cmp dword [edi + 0x3c], 8
lea edx, [edi + 0x28]
mov ecx, edx
jb 0x40332f
mov ecx, dword [edx]
lea eax, [ecx + 2]
mov dword [ebp - 0x648], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403340
sub ecx, dword [ebp - 0x648]
sar ecx, 1
cmp dword [edx + 0x14], 8
jb 0x40335b
mov edx, dword [edx]
lea eax, [ebp - 0x44]
push eax
lea eax, [ecx*2 + 2]
push eax
push edx
push esi
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4031b7
push 0x40
push 0x1000
push 0x1000
push 0
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, eax
mov dword [ebp - 0x648], ecx
test ecx, ecx
je 0x4031b7
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
sub eax, ecx
mov word [ebp - 0x28], 0x5350
sub eax, 0xc
mov byte [ebp - 0x26], 0x68
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2a8]
sub eax, ecx
mov byte [ebp - 0x21], 0xe8
sub eax, 0x13
mov word [ebp - 0x1c], 0x585b
mov dword [ebp - 0x19], eax
lea eax, [ebp - 0x44]
push eax
push 0x13
lea eax, [ebp - 0x28]
mov byte [ebp - 0x1a], 0xe9
push eax
push ecx
push dword [edi + 0x40]
mov dword [ebp - 0x25], esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4031b7
mov eax, dword [ebp - 0x648]
lea esi, [ebp - 0x360]
mov ecx, 0xb3
lea edi, [ebp - 0x630]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x650]
mov dword [ebp - 0x578], eax
lea eax, [ebp - 0x630]
push eax
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x4031b7
mov byte [esi + 0x48], 1
mov byte [ebp - 0x641], 1
jmp 0x4031be
push edx
push ecx
call fcn.004036b9
add esp, 8
mov edx, dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x403494
mov ecx, dword [ebx + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40348a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4034c4
push edx
push ecx
call fcn.004036b9
add esp, 8
mov al, byte [ebp - 0x641]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00403678
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18
call fcn.004026b0
call fcn.00406dc7
call fcn.00406dc7
int3