Function at 0x140005780
Capabilities:
Connect pipe
Create pipe
Write file on windows
Write pipe

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x140017150]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rsi, r8
mov r14, rcx
mov rax, qword [r8 + 8]
sub rax, qword [r8]
mov edi, pe_nt_image_headers64
cmp rax, rdi
jb 0x1400057c7
mov eax, 0x8007000d
jmp 0x140005a7e
lea r12, [0x1400100a0]
mov qword [rbp - 0x60], r12
and qword [rbp - 0x58], 0
and dword [rbp - 0x78], 0
and qword [rbp - 0x70], 0
and dword [rbp - 0x68], 0
mov dword [rsp + 0x20], 0x221
mov r9d, 0x20
lea r8d, [r9 - 0x1e]
lea rdx, [0x1400119b4]
lea rcx, [rbp - 0x20]
call fcn.14000470c
nop
lea r9, [rbp - 0x78]
lea rdx, [rbp - 0x20]
call fcn.14000d814
mov ebx, eax
lea rcx, [rbp - 0x20]
call fcn.1400049b0
test ebx, ebx
js 0x140005a6f
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], edi
mov r9d, 1
xor r8d, r8d
mov edx, 0x40080002
lea rcx, str..pipeStandardCollector.Service
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_CreateNamedPipeW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
jne 0x140005881
lea rcx, [rsp + 0x40]
call fcn.140002d6c
mov ebx, 0xc1110021
jmp 0x140005a6f
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
nop dword [rax + rax]
mov rdi, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x1400058ca
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140005a59
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140005a59
mov rax, qword [r14 + 0x30]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rdi
lea rax, [rsp + 0x78]
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x78]
mov qword [rbp - 0x48], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
and qword [rsp + 0x68], 0
lea rax, [rbp - 0x78]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x50]
call fcn.14000615c
mov rdx, rax
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.14000446c
and qword [rbp - 0x40], 0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], rdi
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_ConnectNamedPipe]
nop dword [rax + rax]
test eax, eax
jne 0x1400059ce
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x217
je 0x1400059ce
cmp eax, 0x3e5
jne 0x140005a1c
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
sub rcx, rdx
sar rcx, 3
or r9d, 0xffffffff
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_synch_l1_2_1.dll_WaitForMultipleObjects]
nop dword [rax + rax]
mov edi, eax
lea rcx, [r14 + 0xc0]
call fcn.140002fc8
test edi, edi
je 0x140005aa2
cmp edi, 1
jne 0x140005a1c
mov r9d, edi
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_GetOverlappedResult]
nop dword [rax + rax]
test eax, eax
je 0x140005a1c
mov r8, qword [rsi + 8]
sub r8, qword [rsi]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov rdx, qword [rsi]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x140005a0d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3e5
jne 0x140005ad4
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FlushFileBuffers]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_DisconnectNamedPipe]
nop dword [rax + rax]
test eax, eax
jne 0x14000593b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140005a4e
movzx ebx, ax
or ebx, 0x80070000
lea rcx, [rsp + 0x58]
call fcn.140003a5c
nop
lea rcx, [rsp + 0x48]
call fcn.140002d6c
nop
lea rcx, [rsp + 0x40]
call fcn.140002d6c
nop
mov qword [rbp - 0x60], r12
lea rcx, [rbp - 0x60]
call fcn.140004c20
mov eax, ebx
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140001510
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x170
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rsp + 0x58]
call fcn.140003a5c
nop
lea rcx, [rsp + 0x48]
call fcn.140002d6c
nop
lea rcx, [rsp + 0x40]
call fcn.140002d6c
nop
mov qword [rbp - 0x60], r12
lea rcx, [rbp - 0x60]
call fcn.140004c20
xor eax, eax
jmp 0x140005a7e
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_DisconnectNamedPipe]
nop dword [rax + rax]
test eax, eax
je 0x140005a33
lea rcx, [rsp + 0x58]
call fcn.140003a5c
nop
lea rcx, [rsp + 0x48]
call fcn.140002d6c
nop
lea rcx, [rsp + 0x40]
call fcn.140002d6c
mov ebx, 0xc1110025
jmp 0x140005a6f