Function at 0x4ec760
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ac83f
mov eax, dword fs:[0]
push eax
sub esp, 0x6bc
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6b8], ecx
mov eax, dword [ebp - 0x6b8]
mov ecx, dword [eax]
call fcn.0040e940
movzx ecx, al
test ecx, ecx
jne 0x4ec7b1
mov al, 1
jmp 0x4ecca9
mov byte [ebp - 0x20c], 0
push 0x1f3
push 0
lea edx, [ebp - 0x20b]
push edx
call fcn.006665c0
add esp, 0xc
mov eax, dword [ebp - 0x6b8]
add eax, 8
push eax
push 0x73aed4
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0066926d
add esp, 0xc
mov dword [ebp - 0x210], 0
mov edx, 1
test edx, edx
je 0x4ecca9
lea eax, [ebp - 0x20c]
push eax
push 0x73aee4
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov dword [ebp - 0x23c], 0xc
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 1
push 0
lea ecx, [ebp - 0x23c]
push ecx
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4ec87b
push 0x73af0c
call fcn.0066610b
add esp, 4
xor al, al
jmp 0x4ecca9
push 0x44
push 0
lea ecx, [ebp - 0x28c]
push ecx
call fcn.006665c0
add esp, 0xc
mov dword [ebp - 0x28c], 0x44
lea edx, [ebp - 0x28c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0
push 1
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x24c], ecx
mov edx, dword [ebp - 0x214]
mov dword [ebp - 0x250], edx
mov dword [ebp - 0x260], 0x100
xor eax, eax
mov word [ebp - 0x25c], ax
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x28c]
push edx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4ec98e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x698], eax
push 0
push 0
lea ecx, [ebp - 0x694]
push ecx
push 0x400
mov edx, dword [ebp - 0x698]
push edx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [ebp - 0x694]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 0x73af2c
call fcn.0066610b
add esp, 0xc
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov edx, dword [ebp - 0x694]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x73af64
call fcn.0066610b
add esp, 4
xor al, al
jmp 0x4ecca9
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x228]
push ecx
push 0x73af84
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov dword [ebp - 0x218], 0x400
lea ecx, [ebp - 0x220]
call fcn.00401490
mov dword [ebp - 4], 0
mov edx, 1
test edx, edx
je 0x4ecaca
push 0
lea eax, [ebp - 0x690]
push eax
push 0x3ff
lea ecx, [ebp - 0x68c]
push ecx
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4eca19
jmp 0x4ecaca
mov eax, dword [ebp - 0x690]
mov byte [ebp + eax - 0x68c], 0
lea ecx, [ebp - 0x68c]
push ecx
lea ecx, [ebp - 0x69c]
call fcn.0040dbe0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x69c]
push edx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x6ac]
push ecx
call fcn.00468e90
add esp, 0xc
mov dword [ebp - 0x6bc], eax
mov edx, dword [ebp - 0x6bc]
mov dword [ebp - 0x6c0], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x6c0]
push eax
lea ecx, [ebp - 0x220]
call fcn.0040fe20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6ac]
call fcn.004014d0
lea ecx, [ebp - 0x68c]
push ecx
push 0x73af98
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x69c]
call fcn.004014d0
jmp 0x4ec9dc
mov dword [ebp - 0x240], 0xffffffff
push 0
push 0x73af9c
lea ecx, [ebp - 0x220]
call fcn.00404540
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0xffffffff
je 0x4ecbf0
mov edx, dword [ebp - 0x240]
add edx, 1
push edx
lea eax, [ebp - 0x6a4]
push eax
lea ecx, [ebp - 0x220]
call fcn.00401270
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x240]
add ecx, 1
push ecx
push 0
lea ecx, [ebp - 0x220]
call fcn.004545c0
mov dword [ebp - 0x6a0], 0xffffffff
push 0
push 9
lea ecx, [ebp - 0x6a4]
call fcn.00454810
mov dword [ebp - 0x6a0], eax
cmp dword [ebp - 0x6a0], 0xffffffff
je 0x4ecbdc
mov edx, dword [ebp - 0x6a0]
push edx
lea eax, [ebp - 0x6a8]
push eax
lea ecx, [ebp - 0x6a4]
call fcn.00401270
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x6b0], esp
lea edx, [ebp - 0x6a8]
push edx
call fcn.004014b0
mov dword [ebp - 0x6c4], eax
mov ecx, dword [ebp - 0x6b8]
call fcn.004eccd0
mov byte [ebp - 0x6c5], al
movzx eax, byte [ebp - 0x6c5]
test eax, eax
je 0x4ecbcd
mov ecx, dword [ebp - 0x6a8]
push ecx
push 0x73afa0
mov edx, dword [ebp - 0x6b8]
mov eax, dword [edx]
push eax
call fcn.004017f0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6a8]
call fcn.004014d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6a4]
call fcn.004014d0
jmp 0x4ecad4
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x230]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x6b8]
mov ecx, dword [ecx]
call fcn.0040e940
movzx edx, al
test edx, edx
jne 0x4ecc4e
mov byte [ebp - 0x6b1], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.004014d0
mov al, byte [ebp - 0x6b1]
jmp 0x4ecca9
cmp dword [ebp - 0x210], 0x14
jne 0x4ecc78
mov byte [ebp - 0x6b2], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.004014d0
mov al, byte [ebp - 0x6b2]
jmp 0x4ecca9
mov eax, dword [ebp - 0x210]
add eax, 1
mov dword [ebp - 0x210], eax
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.004014d0
jmp 0x4ec7f6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret