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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x1090]
mov eax, 0x1190
call fcn.18001bcc0
sub rsp, rax
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov rax, qword [0x180058090]
xor rax, rsp
mov qword [rbp + 0x1080], rax
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rbp - 0x80], r14d
cmp qword [rdx + 0x10], r14
jne 0x1800184ee
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], send
mov byte [rcx], r14b
xor r8d, r8d
lea rdx, [0x18004d013]
call fcn.180001d00
jmp 0x1800188c1
mov dword [rbp - 0x78], 0x18
mov dword [rbp - 0x68], 1
mov qword [rbp - 0x70], r14
xor r9d, r9d
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x18001856e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error_creating_pip:__d
lea rcx, [rbp + 0x80]
call fcn.180018e90
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], send
mov byte [rbx], r14b
lea rax, [rbp + 0x80]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r14b
jne 0x180018551
lea rdx, [rbp + 0x80]
mov rcx, rbx
call fcn.180001d00
jmp 0x1800188c1
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x1800185dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SetHandleInformation_failed:__d
lea rcx, [rbp + 0x80]
call fcn.180018e90
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], send
mov byte [rbx], r14b
lea rax, [rbp + 0x80]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], r14b
jne 0x1800185c0
lea rdx, [rbp + 0x80]
mov rcx, rbx
call fcn.180001d00
jmp 0x1800188c1
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
xor edx, edx
lea r8d, [rax + 0x68]
lea rcx, [rbp - 0x50]
call fcn.18001e3f0
mov dword [rbp - 0x50], 0x68
mov rax, qword [rsp + 0x60]
mov qword [rbp + 0x10], rax
mov qword [rbp + 8], rax
or dword [rbp - 0x14], 0x100
cmp qword [rdi + 0x18], 8
jb 0x180018622
mov rdi, qword [rdi]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x60]
test eax, eax
jne 0x1800186cd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
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 + 0x80]
call fcn.180018e90
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], send
mov byte [rbx], r14b
lea rax, [rbp + 0x80]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], r14b
jne 0x1800186b0
lea rdx, [rbp + 0x80]
mov rcx, rbx
call fcn.180001d00
jmp 0x1800188c1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r14d
mov dword [rsp + 0x54], eax
mov qword [rbp + 0x50], r14
mov qword [rbp + 0x58], send
mov byte [rbp + 0x40], al
mov ecx, r14d
mov dword [rsp + 0x50], ecx
mov edi, r14d
test eax, eax
je 0x1800186fb
test ecx, ecx
jne 0x180018706
mov ecx, gethostbyname
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x180018784
cmp dword [rsp + 0x50], 0
jbe 0x180018784
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x54]
mov r8d, 0x1000
lea rdx, [rbp + 0x80]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18001879d
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x18001879d
mov edi, r14d
mov r8d, eax
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x40]
call fcn.180009920
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x50]
jmp 0x1800186f3
mov ecx, r14d
mov dword [rsp + 0x50], ecx
mov eax, r14d
mov dword [rsp + 0x54], eax
inc edi
cmp edi, 0x3c
jl 0x1800186f3
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, esi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x18001885d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov qword [rbp + 0x70], r14
mov qword [rbp + 0x78], send
mov byte [rbp + 0x60], 0
mov r8d, 9
lea rdx, str.Time_out_
lea rcx, [rbp + 0x60]
call fcn.180001d00
nop
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x20]
call fcn.180015880
nop
mov rdx, rax
mov rcx, rbx
call fcn.180015aa0
nop
mov r8, qword [rbp + 0x38]
cmp r8, 8
jb 0x180018841
inc r8
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x20]
call fcn.18000a9c0
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], r14w
lea rcx, [rbp + 0x60]
call fcn.180001c80
jmp 0x1800188b8
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x20]
call fcn.180015880
nop
mov rdx, rax
mov rcx, rbx
call fcn.180015aa0
nop
mov r8, qword [rbp + 0x38]
cmp r8, 8
jb 0x1800188a7
inc r8
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x20]
call fcn.18000a9c0
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], r14w
lea rcx, [rbp + 0x40]
call fcn.180001c80
mov rax, rbx
mov rcx, qword [rbp + 0x1080]
xor rcx, rsp
call fcn.18001add0
add rsp, 0x1190
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret