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

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1070]
mov eax, 0x1170
call fcn.140016e10
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x11a0], rbx
mov rax, qword [0x140023008]
xor rax, rsp
mov qword [rbp + 0x1060], rax
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x50], esi
cmp qword [rdx + 0x10], rsi
jne 0x140004c80
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], send
mov byte [rcx], sil
xor r8d, r8d
lea rdx, [0x1400200d0]
call fcn.140002610
jmp 0x140005065
mov dword [rbp - 0x58], 0x18
mov dword [rbp - 0x48], 1
mov qword [rbp - 0x50], rsi
xor r9d, r9d
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140004d32
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error_creating_pip:__d
lea rcx, [rbp + 0x60]
call fcn.140005650
mov qword [rbp + 0x50], rsi
mov qword [rbp + 0x58], send
mov byte [rbp + 0x40], sil
lea rax, [rbp + 0x60]
or rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], sil
jne 0x140004ce3
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x40]
call fcn.140002610
lea rcx, [rbp + 0x40]
call fcn.140003430
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], send
mov byte [rdi], sil
lea rax, [rbp + 0x60]
inc rbx
cmp byte [rax + rbx], sil
jne 0x140004d15
mov r8, rbx
lea rdx, [rbp + 0x60]
mov rcx, rdi
call fcn.140002610
jmp 0x140005065
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x140004dcf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SetHandleInformation_failed:__d
lea rcx, [rbp + 0x60]
call fcn.140005650
mov qword [rbp + 0x50], rsi
mov qword [rbp + 0x58], send
mov byte [rbp + 0x40], sil
lea rax, [rbp + 0x60]
or rbx, 0xffffffffffffffff
mov r8, rbx
nop
inc r8
cmp byte [rax + r8], sil
jne 0x140004d80
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x40]
call fcn.140002610
lea rcx, [rbp + 0x40]
call fcn.140003430
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], send
mov byte [rdi], sil
lea rax, [rbp + 0x60]
inc rbx
cmp byte [rax + rbx], sil
jne 0x140004db2
mov r8, rbx
lea rdx, [rbp + 0x60]
mov rcx, rdi
call fcn.140002610
jmp 0x140005065
xor eax, eax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
xor edx, edx
lea r8d, [rax + 0x68]
lea rcx, [rbp - 0x40]
call fcn.140008ba0
mov dword [rbp - 0x40], 0x68
mov rax, qword [rbp - 0x78]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x18], rax
or dword [rbp - 4], 0x100
cmp qword [rbx + 0x18], 8
jb 0x140004e10
mov rbx, qword [rbx]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rbp - 0x78]
test eax, eax
jne 0x140004eef
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.CreateProcess_failed:__d
lea rcx, [rbp + 0x60]
call fcn.140005650
mov qword [rbp + 0x50], rsi
mov qword [rbp + 0x58], send
mov byte [rbp + 0x40], sil
lea rax, [rbp + 0x60]
or rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], sil
jne 0x140004ea0
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x40]
call fcn.140002610
lea rcx, [rbp + 0x40]
call fcn.140003430
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], send
mov byte [rdi], sil
lea rax, [rbp + 0x60]
inc rbx
cmp byte [rax + rbx], sil
jne 0x140004ed2
mov r8, rbx
lea rdx, [rbp + 0x60]
mov rcx, rdi
call fcn.140002610
jmp 0x140005065
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov dword [rbp + 0x38], eax
mov qword [rbp + 0x50], rsi
mov qword [rbp + 0x58], send
mov byte [rbp + 0x40], al
mov ecx, esi
mov dword [rbp + 0x30], ecx
mov ebx, esi
test eax, eax
je 0x140004f18
test ecx, ecx
jne 0x140004f23
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x28], rsi
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x140004f8f
cmp dword [rbp + 0x30], 0
jbe 0x140004f8f
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x38]
mov r8d, 0x1000
lea rdx, [rbp + 0x60]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140004fa4
mov eax, dword [rbp + 0x38]
test eax, eax
je 0x140004fa4
mov ebx, esi
mov r8d, eax
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x40]
call fcn.140002460
mov eax, dword [rbp + 0x38]
mov ecx, dword [rbp + 0x30]
jmp 0x140004f10
mov ecx, esi
mov dword [rbp + 0x30], ecx
mov eax, esi
mov dword [rbp + 0x38], eax
inc ebx
cmp ebx, 0x3c
jl 0x140004f10
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x7530
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140005022
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 1
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], si
mov r8d, 9
lea rdx, str.Time_out_
lea rcx, [rsp + 0x58]
call fcn.140005090
nop
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.1400038c0
nop
jmp 0x140005051
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.1400036a0
nop
mov rdx, rax
mov rcx, rdi
call fcn.1400038c0
nop
lea rcx, [rsp + 0x58]
call fcn.140002390
nop
lea rcx, [rbp + 0x40]
call fcn.140002570
mov rax, rdi
mov rcx, qword [rbp + 0x1060]
xor rcx, rsp
call fcn.140005980
mov rbx, qword [rsp + 0x11a0]
add rsp, 0x1170
pop rdi
pop rsi
pop rbp
ret