Function at 0x180013400
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.180015d40
sub rsp, rax
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov rax, qword [0x18004f088]
xor rax, rsp
mov qword [rbp + 0x1080], rax
mov r14d, r8d
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov dword [rbp - 0x80], ebx
cmp qword [rdx + 0x10], rbx
jne 0x18001346b
mov qword [rcx + 0x18], send
mov qword [rcx + 0x10], rbx
mov byte [rcx], bl
xor r8d, r8d
lea rdx, [0x180045ed8]
call fcn.180007400
jmp 0x18001385a
mov dword [rbp - 0x78], 0x18
mov dword [rbp - 0x68], 1
mov qword [rbp - 0x70], rbx
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 0x1800134f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error_creating_pip:__d
lea rcx, [rbp + 0x80]
call fcn.180013980
mov qword [rdi + 0x18], send
mov qword [rdi + 0x10], rbx
mov byte [rdi], bl
cmp byte [rbp + 0x80], bl
je 0x1800134de
lea rax, [rbp + 0x80]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1800134d5
mov r8, rbx
lea rdx, [rbp + 0x80]
mov rcx, rdi
call fcn.180007400
jmp 0x18001385a
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x180013570
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SetHandleInformation_failed:__d
lea rcx, [rbp + 0x80]
call fcn.180013980
mov qword [rdi + 0x18], send
mov qword [rdi + 0x10], rbx
mov byte [rdi], bl
cmp byte [rbp + 0x80], bl
je 0x180013559
lea rax, [rbp + 0x80]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x180013550
mov r8, rbx
lea rdx, [rbp + 0x80]
mov rcx, rdi
call fcn.180007400
jmp 0x18001385a
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.180018710
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 [rsi + 0x18], 8
jb 0x1800135b5
mov rsi, qword [rsi]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x60]
test eax, eax
jne 0x180013666
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.180013980
mov qword [rdi + 0x18], send
mov qword [rdi + 0x10], rbx
mov byte [rdi], bl
cmp byte [rbp + 0x80], bl
je 0x18001364f
lea rax, [rbp + 0x80]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x180013646
mov r8, rbx
lea rdx, [rbp + 0x80]
mov rcx, rdi
call fcn.180007400
jmp 0x18001385a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov dword [rsp + 0x54], ebx
mov qword [rbp + 0x58], send
mov qword [rbp + 0x50], rbx
mov byte [rbp + 0x40], bl
mov ecx, ebx
mov dword [rsp + 0x50], ebx
mov esi, ebx
nop dword [rax]
test eax, eax
je 0x180013698
test ecx, ecx
jne 0x1800136a3
mov ecx, gethostbyname
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x28], rbx
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 0x180013720
cmp dword [rsp + 0x50], 0
jbe 0x180013720
mov qword [rsp + 0x20], rbx
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 0x180013737
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x180013737
mov esi, ebx
mov r8d, eax
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x40]
call fcn.180006960
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x50]
jmp 0x180013690
mov ecx, ebx
mov dword [rsp + 0x50], ebx
mov eax, ebx
mov dword [rsp + 0x54], ebx
inc esi
cmp esi, 0x14
jl 0x180013690
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, r14d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1800137f7
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 + 0x78], send
mov qword [rbp + 0x70], rbx
mov byte [rbp + 0x60], 0
mov r8d, 9
lea rdx, str.Time_out_
lea rcx, [rbp + 0x60]
call fcn.180007400
nop
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x20]
call fcn.180012b30
nop
mov rdx, rax
mov rcx, rdi
call fcn.180012d50
nop
mov r8, qword [rbp + 0x38]
cmp r8, 8
jb 0x1800137dc
inc r8
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x20]
call fcn.1800080d0
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], rbx
mov word [rbp + 0x20], bx
lea rcx, [rbp + 0x60]
call fcn.180006b00
jmp 0x180013851
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.180012b30
nop
mov rdx, rax
mov rcx, rdi
call fcn.180012d50
nop
mov r8, qword [rbp + 0x38]
cmp r8, 8
jb 0x180013841
inc r8
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x20]
call fcn.1800080d0
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], rbx
mov word [rbp + 0x20], bx
lea rcx, [rbp + 0x40]
call fcn.180006b00
mov rax, rdi
mov rcx, qword [rbp + 0x1080]
xor rcx, rsp
call fcn.180015110
add rsp, 0x1190
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret