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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [0x439080]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x32c], 0x44
push 0x40
push 0
lea eax, [ebp - 0x328]
push eax
call fcn.004108e0
add esp, 0xc
lea ecx, [ebp - 0x2e4]
push ecx
lea edx, [ebp - 0x32c]
push edx
push 0
push 0
push 4
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40233d
push 0x405110
push str.Failed_to_create_target_process.
push 0x42d55c
push 0x43a140
call fcn.00403130
add esp, 8
push eax
call fcn.00403130
add esp, 8
mov ecx, eax
call fcn.004070a0
xor eax, eax
jmp 0x40256b
push 0x405110
push str.Suspended_process_created.
push 0x42d584
push 0x43a140
call fcn.00403130
add esp, 8
push eax
call fcn.00403130
add esp, 8
mov ecx, eax
call fcn.004070a0
push 4
push 0x3000
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x2e4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x2d4], eax
cmp dword [ebp - 0x2d4], 0
jne 0x4023ee
push 0x405110
push str.Memory_allocation_failed.
push 0x42d5ac
push 0x43a140
call fcn.00403130
add esp, 8
push eax
call fcn.00403130
add esp, 8
mov ecx, eax
call fcn.004070a0
push 1
mov eax, dword [ebp - 0x2e4]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x2e0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2e4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40256b
push 0x405110
push str.Memory_allocated_in_target_process.
push 0x42d5dc
push 0x43a140
call fcn.00403130
add esp, 8
push eax
call fcn.00403130
add esp, 8
mov ecx, eax
call fcn.004070a0
nop
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x2d4]
push edx
mov eax, dword [ebp - 0x2e4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4024b4
push 0x405110
push str.WriteProcessMemory_failed.
push 0x42d604
push 0x43a140
call fcn.00403130
add esp, 8
push eax
call fcn.00403130
add esp, 8
mov ecx, eax
call fcn.004070a0
push 0x8000
push 0
mov ecx, dword [ebp - 0x2d4]
push ecx
mov edx, dword [ebp - 0x2e4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 1
mov eax, dword [ebp - 0x2e4]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x2e0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2e4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40256b
lea eax, [ebp - 0x2e8]
push eax
push 0x10
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x2d4]
push edx
mov eax, dword [ebp - 0x2e4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov dword [ebp - 0x2d0], 0x10007
lea ecx, [ebp - 0x2d0]
push ecx
mov edx, dword [ebp - 0x2e0]
push edx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x2d0]
push ecx
mov edx, dword [ebp - 0x2e0]
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov eax, dword [ebp - 0x2e0]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x405110
push str.Target_process_resumed__APC_executed.
push str._DEBUG_
push 0x43a140
call fcn.00403130
add esp, 8
push eax
call fcn.00403130
add esp, 8
mov ecx, eax
call fcn.004070a0
mov ecx, dword [ebp - 0x2e0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2e4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040dcb5
mov esp, ebp
pop ebp
ret