Function at 0x1000419d
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xc8
mov eax, dword [0x1001ff00]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xd0]
xorps xmm0, xmm0
push ebx
mov ebx, dword [esp + 0xe0]
push ebp
mov ebp, dword [esp + 0xd4]
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xe0]
push edi
mov dword [esp + 0x24], eax
xor edi, edi
mov eax, dword [esp + 0xe8]
push 0x40
mov dword [esp + 0x24], eax
lea eax, [esp + 0x68]
push edi
push eax
movlpd qword [esp + 0x1c], xmm0
mov dword [esp + 0x6c], 0x44
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebx]
add esp, 0xc
mov esi, dword [sym.imp.kernel32.dll_GetStdHandle]
xorps xmm0, xmm0
mov dword [esp + 0xb0], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xb4], eax
mov eax, dword [ebx + 0x10]
push 0xfffffffffffffff6
mov dword [esp + 0xbc], eax
movups xmmword [esp + 0xc0], xmm0
mov dword [esp + 0xd0], edi
mov dword [esp + 0xd4], edi
call esi
push 0xfffffffffffffff5
mov dword [esp + 0xa8], eax
call esi
push 0xfffffffffffffff4
mov dword [esp + 0xac], eax
call esi
mov dword [esp + 0x1c], eax
mov esi, edi
mov dword [esp + 0xac], eax
mov edi, dword [esp + esi + 0xa4]
cmp edi, 0xffffffff
je 0x100042ab
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.kernel32.dll_GetHandleInformation]
test eax, eax
je 0x1000428f
mov eax, dword [esp + 0x18]
and eax, 1
jmp 0x10004291
xor eax, eax
test eax, eax
je 0x100042ab
push 0
push 1
push edi
mov dword [esp + esi + 0xc8], 1
call dword [sym.imp.kernel32.dll_SetHandleInformation]
add esi, 4
cmp esi, 0x18
jl 0x1000426a
and dword [esp + 0x4c], 0
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x48]
or edi, 0xffffffff
push eax
push ebx
push ebp
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
call fcn.100040d2
add esp, 0x10
test eax, eax
je 0x1000445f
lea eax, [esp + 0x9c]
mov dword [esp + 0x38], edi
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x40], edi
push eax
lea eax, [ebx + 8]
xor esi, esi
push eax
inc esi
push ebp
mov dword [esp + 0x50], esi
call fcn.100040d2
add esp, 0x10
test eax, eax
je 0x10004445
lea ecx, [ebx + 0x10]
mov dword [esp + 0x2c], edi
mov bl, byte [esp + 0xf0]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], esi
test bl, bl
je 0x10004342
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xa0], eax
mov dword [ecx], edi
mov dword [ecx + 4], edi
jmp 0x10004361
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0x30]
push eax
push ecx
push ebp
call fcn.100040d2
add esp, 0x10
test eax, eax
je 0x100043e8
mov esi, 0x8000400
call dword [sym.imp.kernel32.dll_GetConsoleWindow]
test eax, eax
je 0x100043a7
mov eax, dword [esp + 0xa4]
cmp dword [esp + 0x98], eax
je 0x100043a2
mov ecx, dword [esp + 0xa8]
cmp dword [esp + 0x9c], ecx
je 0x100043a2
mov eax, dword [esp + 0x1c]
test bl, bl
cmovne eax, ecx
cmp dword [esp + 0xa0], eax
jne 0x100043a7
mov esi, 0x400
lea eax, [esp + 0x50]
mov dword [esp + 0x8c], 0x100
push eax
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x28]
push dword [esp + 0x30]
push esi
push 1
push 0
push 0
push dword [esp + 0x48]
push 0
call dword [sym.imp.kernel32.dll_CreateProcessW]
test eax, eax
jne 0x10004409
push str.CreateProcess
push ebp
call fcn.1000df50
pop ecx
pop ecx
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
xor eax, eax
inc eax
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.100044b4
mov eax, edi
or eax, esi
pop ecx
pop ecx
jne 0x1000442c
inc eax
jmp 0x1000442e
cmp dword [esp + 0x54], edi
je 0x10004419
push dword [esp + 0x54]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x50]
cdq
mov edi, eax
mov esi, edx
mov ecx, edi
or ecx, esi
je 0x100043f0
xor eax, eax
jmp 0x100043f3
xor eax, eax
lea ecx, [esp + 0x38]
push ecx
push eax
call fcn.100044b4
mov eax, edi
or eax, esi
pop ecx
pop ecx
je 0x1000444d
xor eax, eax
jmp 0x10004450
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
xor eax, eax
inc eax
lea ecx, [esp + 0x44]
push ecx
push eax
call fcn.100044b4
pop ecx
pop ecx
jmp 0x10004467
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
xor ebx, ebx
cmp dword [esp + ebx + 0xb8], 0xffffffff
je 0x1000448f
xor eax, eax
cmp dword [esp + ebx + 0xd0], eax
setne al
push eax
push 1
push dword [esp + ebx + 0xc0]
call dword [sym.imp.kernel32.dll_SetHandleInformation]
sub ebx, 4
cmp ebx, 0xffffffec
jge 0x10004469
mov ecx, dword [esp + 0xd4]
mov eax, edi
pop edi
mov edx, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10014785
add esp, 0xc8
ret