Function at 0x401000
Capabilities:
Create process on windows
Create process suspended
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a0
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x4a0]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x44
push 0
push eax
mov dword [ebp - 0x428], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4a0]
push ebx
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401241
mov esi, dword [ebx]
push str.NtQueryInformationProcess
push str.ntdll.dll
mov dword [ebp - 0x420], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x401084
xor esi, esi
jmp 0x401110
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0
push ecx
push 0x18
lea ecx, [ebp - 0x440]
xorps xmm0, xmm0
push ecx
push 0
push esi
movups xmmword [ebp - 0x440], xmm0
movq qword [ebp - 0x430], xmm0
call eax
test eax, eax
jns 0x4010bd
xor esi, esi
jmp 0x401110
push 0x1d8
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4010d5
xor esi, esi
jmp 0x401110
lea eax, [ebp - 0x41c]
push eax
push 0x1d8
push edi
push dword [ebp - 0x43c]
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x1d8
push edi
test eax, eax
jns 0x401105
call fcn.00402456
add esp, 8
xor esi, esi
jmp 0x401110
mov esi, dword [edi + 8]
call fcn.00402456
add esp, 8
push 0x1c
lea eax, [ebp - 0x45c]
push eax
push esi
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x40115f
mov ebx, dword [ebp - 0x420]
mov edi, esi
cmp dword [ebp - 0x44c], 0x10000
je 0x401159
add edi, dword [ebp - 0x450]
lea eax, [ebp - 0x45c]
push 0x1c
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x401132
mov ebx, dword [ebp - 0x428]
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x424]
push eax
push 0x40
lea eax, [ebp - 0x418]
mov dword [ebp - 0x424], 0
push eax
push esi
push dword [ebx]
call edi
test eax, eax
je 0x401241
lea eax, [ebp - 0x424]
push eax
push 0x108
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0x3dc]
add eax, esi
push eax
push dword [ebx]
call edi
test eax, eax
je 0x401241
cmp dword [ebp - 0x10c], 0x4550
jne 0x401241
test byte [ebp - 0xf6], 2
je 0x401241
mov eax, 0x8664
cmp word [ebp - 0x108], ax
je 0x401241
add esi, dword [ebp - 0xb4]
cmp dword [ebp - 0xe4], 0
jne 0x401241
lea eax, [ebp - 0x3d8]
mov dword [ebp - 0x3d8], 0x10007
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x401241
lea eax, [ebp - 0x3d8]
mov dword [ebp - 0x320], esi
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x401241
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402464
mov esp, ebp
pop ebp
ret
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402464
mov esp, ebp
pop ebp
ret