Function at 0x4040b4
Capabilities:
Create process on windows
Create process suspended
Resume thread
Terminate process
Use process replacement

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00403410
xor eax, eax
push ebp
push 0x4042a3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x30]
xor ecx, ecx
mov edx, 0x10
call fcn.0040274c
lea eax, [ebp - 0x74]
xor ecx, ecx
mov edx, 0x44
call fcn.0040274c
mov dword [ebp - 0x74], 0x44
mov word [ebp - 0x44], 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00403420
push eax
push 0
call sub.kernel32.dll_CreateProcessA
mov dword [ebp - 0x140], 0x10002
lea eax, [ebp - 0x140]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetThreadContext
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x9c]
add eax, 8
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_ReadProcessMemory
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.ntdll.dll._ZwUnmapViewOfSection
cmp dword [ebp - 4], 0
je 0x40428d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
push 4
push 0x3000
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40428d
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x54]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_WriteProcessMemory
mov eax, dword [ebp - 0x1c]
call fcn.0040409c
mov esi, eax
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jb 0x404237
inc eax
mov dword [ebp - 0x20], eax
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
lea edi, [ebx + ebx*4]
mov eax, dword [esi + edi*8 + 0x10]
push eax
mov eax, dword [esi + edi*8 + 0x14]
add eax, dword [ebp - 4]
push eax
mov eax, dword [esi + edi*8 + 0xc]
add eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_WriteProcessMemory
lea eax, [ebp - 0x18]
push eax
mov eax, dword [esi + edi*8 + 0x24]
call fcn.004040a8
push eax
mov eax, dword [esi + edi*8 + 8]
push eax
mov eax, dword [esi + edi*8 + 0xc]
add eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_VirtualProtectEx
inc ebx
dec dword [ebp - 0x20]
jne 0x4041e8
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x9c]
add eax, 8
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_WriteProcessMemory
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x140]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_SetThreadContext
test eax, eax
jne 0x404284
push 0
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_TerminateProcess
jmp 0x40428d
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_ResumeThread
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4042aa
lea eax, [ebp - 8]
call fcn.004030d4
ret