Function at 0x41cc20
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ce25
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4ac
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
push str.____Run_async_command:__s_n
call fcn.00401db0
add esp, 8
mov dword [ebp - 0x48], 0xc
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
movq qword [ebp - 0x44], xmm0
mov dword [ebp - 0x40], 1
push 0
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x44], 0
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x41cd21
push 0x40
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb8], 0x44
push 0
push eax
call fcn.00420e90
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x58]
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x8c], 0x101
cmp dword [ebp + 0x1c], 8
push ecx
lea ecx, [ebp - 0xb8]
mov word [ebp - 0x88], ax
push ecx
push 0
push 0
push 0x10
push 1
push 0
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0
push eax
push 0
movups xmmword [ebp - 0x58], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41cdbe
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
push eax
cmovae ecx, dword [ebp + 8]
push ecx
push str.____Failed_to_run_async_command:__s__error_0x_X_n
call fcn.00401db0
mov ecx, dword [ebp + 0x1c]
xorps xmm0, xmm0
mov byte [edi], 0
add esp, 0xc
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
movups xmmword [edi + 4], xmm0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
movups xmmword [ebp - 0x74], xmm0
mov byte [ebp - 0x74], 0
movups xmm0, xmmword [ebp - 0x74]
movups xmmword [edi + 4], xmm0
movq xmm0, qword [ebp - 0x64]
movq qword [edi + 0x14], xmm0
cmp ecx, 8
jb 0x41cf4e
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41cf44
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cf60
jmp 0x41cf44
mov eax, dword [0x455198]
test eax, eax
je 0x41cdd1
push dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
nop word [eax + eax]
push 1
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
test eax, eax
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x14]
sete byte [ebp - 0xd]
call esi
test eax, eax
je 0x41cea0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41cea0
push 0
lea ecx, [ebp - 0x1c]
cmp eax, 0x3ff
push ecx
mov ecx, 0x3ff
cmova eax, ecx
push eax
lea eax, [ebp - 0x4b8]
push eax
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x41cea0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41cea0
mov byte [ebp + eax - 0x4b8], 0
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0x4b8]
push eax
call fcn.00405580
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
call esi
test eax, eax
jne 0x41ce34
cmp byte [ebp - 0xd], 0
je 0x41ce00
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x58]
call esi
push dword [ebp - 0x54]
call esi
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x3c]
push eax
lea ecx, [edi + 4]
mov byte [edi], 1
call fcn.004055f0
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x41cf06
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41cefc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cf60
push ecx
push edx
call fcn.0041f22a
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
cmp ecx, 8
jb 0x41cf4e
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41cf44
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cf60
push ecx
push edx
call fcn.0041f22a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0042b82f
int3