Function at 0x4ecac5
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Execute shell command and capture output

Disassembly:
push 0xa4
push 0x5c5e58
call fcn.0051bb70
mov dword [ebp - 0x24], ecx
xor edi, edi
mov eax, edi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x2c], edi
test ecx, ecx
jne 0x4ecaf7
call fcn.0052d3fe
mov dword [eax], 0x16
xor eax, eax
jmp 0x4ed0f6
test edx, edx
je 0x4ecae5
movzx eax, word [edx]
mov ecx, eax
push 0x20
pop ebx
mov dword [ebp - 0x34], ebx
cmp ax, bx
jne 0x4ecb18
add edx, 2
movzx eax, word [edx]
cmp ax, bx
je 0x4ecb0b
mov ecx, eax
push 0x77
pop eax
cmp cx, ax
je 0x4ecb37
movzx eax, word [edx]
cmp eax, 0x72
je 0x4ecb37
push 0x6f
pop ebx
cmp ax, bx
je 0x4ecb3a
mov eax, edi
xor esi, esi
inc esi
jmp 0x4ecb3f
push 0x6f
pop ebx
xor esi, esi
inc esi
mov eax, esi
test eax, eax
je 0x4ecae5
movzx eax, word [edx]
mov dword [ebp - 0x30], eax
add edx, 2
movzx eax, word [edx]
mov ecx, eax
cmp ax, word [ebp - 0x34]
jne 0x4ecb67
push 0x20
pop ecx
add edx, 2
movzx eax, word [edx]
cmp ax, cx
je 0x4ecb5a
mov ecx, eax
test cx, cx
je 0x4ecb7b
movzx eax, word [edx]
cmp eax, 0x74
je 0x4ecb7b
cmp eax, 0x62
mov eax, edi
jne 0x4ecb7d
mov eax, esi
test eax, eax
je 0x4ecae5
push 0x1c
pop ecx
call fcn.004ebeae
mov edi, eax
mov dword [ebp - 0x50], edi
xor eax, eax
test edi, edi
je 0x4ed0f6
mov dword [ebp - 0x5c], 0xc
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], eax
push eax
lea eax, [ebp - 0x5c]
push eax
cmp word [ebp - 0x30], bx
je 0x4ecc8f
lea eax, [edi + 0xc]
push eax
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4ecbe9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.create_pipe_failed_erorr_d_n
call fcn.0040510d
pop ecx
pop ecx
mov ecx, edi
call fcn.004ebe45
jmp 0x4ecaf0
xor eax, eax
push 0x77
pop ecx
cmp word [ebp - 0x30], cx
setne al
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 4], eax
push str.COMSPEC
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0052d8dd
add esp, 0xc
test eax, eax
jne 0x4ecc1d
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], ebx
test ebx, ebx
jne 0x4ecc40
and dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
call fcn.004eca61
test dword [ebp - 0x20], 0x8000
mov ebx, str.command.com
mov eax, str.cmd.exe
cmove ebx, eax
mov dword [ebp - 0x40], ebx
push 0x44
push 0
lea eax, [ebp - 0xb4]
push eax
call fcn.0051c010
add esp, 0xc
mov dword [ebp - 0xb4], 0x44
mov dword [ebp - 0x88], 0x101
xor eax, eax
mov word [ebp - 0x84], ax
push 0x6f
pop eax
cmp word [ebp - 0x30], ax
je 0x4ecd51
cmp dword [ebp - 0x38], 0
jne 0x4ecd30
mov eax, dword [edi + 8]
jmp 0x4ecd38
lea eax, [ebp - 0x4c]
push eax
lea eax, [edi + 0x14]
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_CreatePipe]
call ebx
test eax, eax
jne 0x4eccd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.create_pipe_failed_erorr_d_n
push str.os_popen_w
push 0x144
push str.srcliblibpaloswindowsos_popen.c
push 0x5a9534
push 7
push 0
call fcn.004e8a0a
add esp, 0x20
jmp 0x4ecbdd
push 0
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [edi + 0x18]
push eax
call ebx
test eax, eax
jne 0x4ecd00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.create_pipe_failed_erorr_d_n
push str.os_popen_w
push 0x14a
jmp 0x4eccb9
push 0
lea eax, [ebp - 0x5c]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ebp - 0x48]
push eax
call ebx
test eax, eax
jne 0x4ecbf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.create_pipe_failed_erorr_d_n
push str.os_popen_w
push 0x150
jmp 0x4eccb9
push 0
call fcn.0052df40
pop ecx
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x38], esi
jne 0x4ecd45
mov eax, dword [edi + 0xc]
jmp 0x4ecd4c
push esi
call fcn.0052df40
pop ecx
mov dword [ebp - 0x78], eax
jmp 0x4ecd60
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x74], eax
push dword [ebp - 0x24]
call fcn.0052fd64
mov esi, eax
push ebx
call fcn.0052fd64
add esi, eax
push str.__c
call fcn.0052fd64
add esp, 0xc
inc esi
add eax, esi
mov dword [ebp - 0x1c], eax
lea ecx, [eax + eax]
mov dword [ebp - 0x3c], ecx
and dword [ebp - 0x38], 0
call fcn.004ebeae
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x4ece1d
push ebx
push dword [ebp - 0x1c]
push esi
call fcn.00537885
push str.__c
push dword [ebp - 0x1c]
push esi
call fcn.00537961
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
push esi
call fcn.00537961
call fcn.0052d3fe
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push 0
push ebx
call fcn.00537661
add esp, 0x2c
test eax, eax
je 0x4ed053
xor eax, eax
mov dword [ebp - 0x1c], eax
mov ecx, 0x208
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
call fcn.004ebeae
mov ebx, eax
test ebx, ebx
jne 0x4ece3d
xor ecx, ecx
call fcn.004ebe45
mov ecx, esi
call fcn.004ebe45
push dword [ebp - 0x2c]
call fcn.00528163
pop ecx
call fcn.0052d3fe
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x6f
pop eax
cmp word [ebp - 0x30], ax
je 0x4ed0bc
push dword [edi + 8]
call esi
push dword [edi + 0xc]
jmp 0x4ed0d8
push 0x58994c
push 0
lea eax, [ebp - 0x1c]
push eax
call fcn.0052d8dd
add esp, 0xc
test eax, eax
je 0x4ecec3
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4ecebc
add eax, 0xfffffffc
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
push eax
call fcn.00528163
pop ecx
mov eax, dword [0x89615c]
xor edx, edx
cmp eax, edx
ja 0x4ece7d
cmp dword [0x896158], edx
jbe 0x4ece8c
add dword [0x896158], 0xffffffff
adc eax, 0xffffffff
mov dword [0x89615c], eax
mov eax, dword [0x896144]
cmp eax, edx
jb 0x4eceb1
mov ecx, dword [ebp - 0x24]
ja 0x4ecea2
cmp dword [0x896140], ecx
jbe 0x4eceb1
sub dword [0x896140], ecx
sbb eax, edx
mov dword [0x896144], eax
jmp 0x4ecebc
xorps xmm0, xmm0
movlpd qword [0x896140], xmm0
mov ecx, ebx
jmp 0x4ecdfe
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, ebx
call fcn.004ec9ab
pop ecx
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4ecf7a
xor eax, eax
cmp word [ebx], ax
je 0x4ecf7a
push ebx
call fcn.0052fd64
pop ecx
lea eax, [ebx + eax*2]
movzx eax, word [eax - 2]
cmp eax, 0x5c
je 0x4ecf10
cmp eax, 0x2f
je 0x4ecf10
push 0x5a99e8
push 0x104
push ebx
call fcn.00537961
add esp, 0xc
push dword [ebp - 0x40]
call fcn.0052fd64
mov esi, eax
push ebx
call fcn.0052fd64
pop ecx
pop ecx
add esi, eax
mov eax, 0x104
cmp esi, eax
jae 0x4ecf77
push dword [ebp - 0x40]
push eax
push ebx
call fcn.00537961
xor esi, esi
push esi
push ebx
call fcn.00537661
add esp, 0x14
test eax, eax
jne 0x4ecf6c
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xb4]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
mov esi, dword [ebp - 0x38]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x60], eax
jmp 0x4ecf7a
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x24]
jmp 0x4ecec6
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4ecfe2
add eax, 0xfffffffc
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
push eax
call fcn.00528163
pop ecx
mov eax, dword [0x89615c]
xor edx, edx
cmp eax, edx
ja 0x4ecfa3
cmp dword [0x896158], edx
jbe 0x4ecfb2
add dword [0x896158], 0xffffffff
adc eax, 0xffffffff
mov dword [0x89615c], eax
mov eax, dword [0x896144]
cmp eax, edx
jb 0x4ecfd7
mov ecx, dword [ebp - 0x24]
ja 0x4ecfc8
cmp dword [0x896140], ecx
jbe 0x4ecfd7
sub dword [0x896140], ecx
sbb eax, edx
mov dword [0x896144], eax
jmp 0x4ecfe2
xorps xmm0, xmm0
movlpd qword [0x896140], xmm0
mov ecx, ebx
call fcn.004ebe45
xor ebx, ebx
mov ecx, esi
call fcn.004ebe45
push dword [ebp - 0x2c]
call fcn.00528163
pop ecx
push dword [ebp - 0x6c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
call fcn.0052d3fe
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
cmp dword [ebp - 0x44], 0
je 0x4ece23
mov eax, dword [ebp - 0x70]
mov dword [edi], eax
mov eax, dword [ebp - 0x68]
mov dword [edi + 4], eax
push 0x6f
pop eax
cmp word [ebp - 0x30], ax
je 0x4ed0ab
mov eax, dword [edi + 8]
cmp dword [ebp - 0x7c], eax
jne 0x4ed03c
push eax
call esi
mov dword [edi + 8], ebx
mov eax, dword [edi + 0xc]
cmp dword [ebp - 0x78], eax
jne 0x4ed0e8
push eax
call esi
mov dword [edi + 0xc], ebx
jmp 0x4ed0e8
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xb4]
push eax
xor eax, eax
push eax
push eax
push eax
push 1
push eax
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x60], eax
test eax, eax
jne 0x4ecfe9
push str.CreateProcessW_error:
push str.os_popen_w
push 0x19f
push str.srcliblibpaloswindowsos_popen.c
push 0x5a9534
push 0x103
xor ebx, ebx
push ebx
call fcn.004e8a0a
add esp, 0x1c
jmp 0x4ecfeb
push dword [ebp - 0x34]
call esi
push dword [ebp - 0x4c]
call esi
push dword [ebp - 0x48]
call esi
jmp 0x4ed0e8
push dword [ebp - 0x48]
call esi
push dword [edi + 0x10]
call esi
push dword [edi + 0x14]
call esi
push dword [ebp - 0x4c]
call esi
push dword [edi + 0x18]
call esi
push dword [ebp - 0x34]
call esi
mov ecx, edi
call fcn.004ebe45
xor eax, eax
mov edi, eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.004ed109
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret