Function at 0x1800144e0
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.180016e20
sub rsp, rax
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov rax, qword [0x180051088]
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 0x18001454b
mov qword [rcx + 0x18], send
mov qword [rcx + 0x10], rbx
mov byte [rcx], bl
xor r8d, r8d
lea rdx, [0x180046f08]
call fcn.1800087f0
jmp 0x18001493a
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 0x1800145d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error_creating_pip:__d
lea rcx, [rbp + 0x80]
call fcn.180014a60
mov qword [rdi + 0x18], send
mov qword [rdi + 0x10], rbx
mov byte [rdi], bl
cmp byte [rbp + 0x80], bl
je 0x1800145be
lea rax, [rbp + 0x80]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1800145b5
mov r8, rbx
lea rdx, [rbp + 0x80]
mov rcx, rdi
call fcn.1800087f0
jmp 0x18001493a
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x180014650
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SetHandleInformation_failed:__d
lea rcx, [rbp + 0x80]
call fcn.180014a60
mov qword [rdi + 0x18], send
mov qword [rdi + 0x10], rbx
mov byte [rdi], bl
cmp byte [rbp + 0x80], bl
je 0x180014639
lea rax, [rbp + 0x80]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x180014630
mov r8, rbx
lea rdx, [rbp + 0x80]
mov rcx, rdi
call fcn.1800087f0
jmp 0x18001493a
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.180019810
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 0x180014695
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 0x180014746
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.180014a60
mov qword [rdi + 0x18], send
mov qword [rdi + 0x10], rbx
mov byte [rdi], bl
cmp byte [rbp + 0x80], bl
je 0x18001472f
lea rax, [rbp + 0x80]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x180014726
mov r8, rbx
lea rdx, [rbp + 0x80]
mov rcx, rdi
call fcn.1800087f0
jmp 0x18001493a
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 0x180014778
test ecx, ecx
jne 0x180014783
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 0x180014800
cmp dword [rsp + 0x50], 0
jbe 0x180014800
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 0x180014817
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x180014817
mov esi, ebx
mov r8d, eax
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x40]
call fcn.180007610
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x50]
jmp 0x180014770
mov ecx, ebx
mov dword [rsp + 0x50], ebx
mov eax, ebx
mov dword [rsp + 0x54], ebx
inc esi
cmp esi, 0x14
jl 0x180014770
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 0x1800148d7
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.1800087f0
nop
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x20]
call fcn.1800136b0
nop
mov rdx, rax
mov rcx, rdi
call fcn.1800138d0
nop
mov r8, qword [rbp + 0x38]
cmp r8, 8
jb 0x1800148bc
inc r8
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x20]
call fcn.180009200
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], rbx
mov word [rbp + 0x20], bx
lea rcx, [rbp + 0x60]
call fcn.1800077b0
jmp 0x180014931
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.1800136b0
nop
mov rdx, rax
mov rcx, rdi
call fcn.1800138d0
nop
mov r8, qword [rbp + 0x38]
cmp r8, 8
jb 0x180014921
inc r8
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x20]
call fcn.180009200
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], rbx
mov word [rbp + 0x20], bx
lea rcx, [rbp + 0x40]
call fcn.1800077b0
mov rax, rdi
mov rcx, qword [rbp + 0x1080]
xor rcx, rsp
call fcn.1800161f0
add rsp, 0x1190
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret