Function at 0x401450
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Get file size
Read file on windows
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf9c
mov eax, dword [0x418004]
xor eax, esp
mov dword [esp + 0xf98], eax
push ebx
push esi
push edi
push 0x400
lea eax, [esp + 0x9c]
mov ebx, ecx
push 0
push eax
mov dword [esp + 0x2c], ebx
call fcn.00402e50
add esp, 0xc
lea eax, [esp + 0x498]
push 0x100
push 0
push eax
call fcn.00402e50
add esp, 0xc
lea eax, [esp + 0x598]
push 0x208
push 0
push eax
call fcn.00402e50
add esp, 0xc
lea eax, [esp + 0x598]
push 0
push eax
push 0x104
push 0x419d10
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x401575
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea eax, [esp + 0x5b0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401575
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.00401efe
push 0
push esi
lea edx, [esp + 0x4a4]
mov dword [esp + 0x18], eax
mov ecx, ebx
call fcn.00401100
lea eax, [esp + 0x498]
push eax
push str.Reading__s...
lea eax, [esp + 0xa0]
push 0x200
push eax
call fcn.00401ed0
add esp, 0x10
lea edx, [esp + 0x98]
mov ecx, ebx
call fcn.00401290
push 0
lea eax, [esp + 0x50]
push eax
push esi
push dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
test eax, eax
jne 0x401590
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf98]
xor ecx, esp
call fcn.00401eed
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, str.Working_with_headers...
mov ecx, ebx
call fcn.00401290
mov edi, dword [esp + 0xc]
mov esi, dword [edi + 0x3c]
add esi, edi
mov dword [esp + 0x2c], esi
cmp dword [esi], 0x4550
je 0x4015d1
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf98]
xor ecx, esp
call fcn.00401eed
mov esp, ebp
pop ebp
ret
mov edx, str.Launching_new_instance...
mov ecx, ebx
call fcn.00401290
mov edx, 0x44
lea ecx, [esp + 0x50]
call fcn.00401e70
mov edx, 0x10
lea ecx, [esp + 0x38]
call fcn.00401e70
push 0x800
lea eax, [esp + 0x7a4]
push 0
push eax
call fcn.00402e50
add esp, 0xc
lea eax, [esp + 0x7a0]
push 0x419510
push 0x419300
push str.__s___s
push 0x400
push eax
call fcn.00401ed0
add esp, 0x14
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x54]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
lea eax, [esp + 0x7c0]
push eax
push 0x419300
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401575
mov edx, str.Allocating_context...
mov ecx, ebx
call fcn.00401290
push 4
push 0x1000
push 4
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, str.Getting_context...
mov dword [esp + 0x14], eax
mov ecx, ebx
mov dword [eax], 0x10007
call fcn.00401290
push dword [esp + 0x14]
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x4016cd
push dword [esp + 0x38]
xor ecx, ecx
call fcn.00401400
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf98]
xor ecx, esp
call fcn.00401eed
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
push 0
push 4
mov eax, dword [eax + 0xa4]
add eax, 8
mov dword [esp + 0x2c], eax
cdq
mov ecx, eax
mov eax, edx
push eax
push ecx
push str.0x_llx____image_base__0x_llx_
mov dword [esp + 0x44], eax
lea eax, [esp + 0xac]
push 0x200
push eax
mov dword [esp + 0x50], ecx
call fcn.00401ed0
add esp, 0x1c
lea edx, [esp + 0x98]
mov ecx, ebx
call fcn.00401290
push 0
push 4
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x30]
push dword [esp + 0x48]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4016aa
push dword [esi + 0x50]
lea eax, [esp + 0x9c]
push 0
push dword [esi + 0x34]
push str.Allocate_base_at_0x_llx__0x_x_
push 0x200
push eax
call fcn.00401ed0
add esp, 0x18
lea edx, [esp + 0x98]
mov ecx, ebx
call fcn.00401290
push 0x40
push 0x3000
push dword [esi + 0x50]
push dword [esi + 0x34]
push dword [esp + 0x48]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4016aa
push dword [esi + 0x54]
cdq
push edx
push eax
push str.binary____0x_llx__0x_x_
lea eax, [esp + 0xa8]
push 0x200
push eax
call fcn.00401ed0
add esp, 0x18
lea edx, [esp + 0x98]
mov ecx, ebx
call fcn.00401290
push 0
push dword [esi + 0x54]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x48]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor ecx, ecx
test eax, eax
jne 0x4017f4
push dword [esp + 0x38]
call fcn.00401400
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf98]
xor ecx, esp
call fcn.00401eed
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esp + 0x1c], eax
cmp cx, word [esi + 6]
jae 0x4018da
movzx eax, ax
push 0
push 0
push 0xffffffffffffffff
lea eax, [eax + eax*4]
lea eax, [eax + 0x1f]
lea ecx, [edi + eax*8]
mov eax, dword [edi + 0x3c]
add eax, ecx
push eax
push 0
push 0
mov ecx, dword [eax + 0xc]
add ecx, dword [esp + 0x28]
mov ebx, dword [eax + 0x14]
mov dword [esp + 0x40], eax
add ebx, edi
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00401efe
add esp, 4
mov edi, eax
push esi
mov esi, dword [esp + 0x2c]
push edi
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [esi + 0x10]
mov eax, dword [esp + 0x1c]
cdq
push edx
push eax
push edi
push str.Section__s____0x_llu__0x_x_
lea eax, [esp + 0xac]
push 0x200
push eax
call fcn.00401ed0
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0xb4]
add esp, 0x1c
call fcn.00401290
push 0
push dword [esi + 0x10]
push ebx
push dword [esp + 0x24]
push dword [esp + 0x48]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4016aa
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
inc eax
mov edi, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
cmp ax, word [esi + 6]
jb 0x401804
mov ebx, dword [esp + 0x20]
push 0
push 4
push dword [esp + 0x38]
lea eax, [esp + 0xa4]
push dword [esp + 0x40]
push str.h.ImageBase____0x_llx__0x_llx_
push 0x200
push eax
call fcn.00401ed0
add esp, 0x1c
lea edx, [esp + 0x98]
mov ecx, ebx
call fcn.00401290
push 0
push 4
lea eax, [esi + 0x34]
push eax
push dword [esp + 0x30]
push dword [esp + 0x48]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4016aa
mov edx, str.Setting_thread_context...
mov ecx, ebx
call fcn.00401290
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x28]
add eax, dword [esp + 0x10]
push ecx
mov dword [ecx + 0xb0], eax
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x4016aa
mov edx, str.Finalizing...
mov ecx, ebx
call fcn.00401290
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
je 0x4016aa
push 0
push 0
push 0xf0
push 0x3f2
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x4019b3
mov edx, str.Waiting_for_target_exit...
mov ecx, ebx
call fcn.00401290
push 0xffffffffffffffff
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0xfa4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401eed
mov esp, ebp
pop ebp
ret