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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140016330]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r15, r8
mov r13, rcx
mov rax, qword [r8 + 8]
sub rax, qword [r8]
mov ebx, pe_nt_image_headers64
cmp rax, rbx
jb 0x1400033d6
mov eax, 0x8007000d
jmp 0x1400034e9
lea rax, [0x14000e0a0]
mov qword [rbp - 0x70], rax
and qword [rbp - 0x68], 0
and dword [rsp + 0x78], 0
and qword [rbp - 0x80], 0
and dword [rbp - 0x78], 0
mov dword [rsp + 0x20], 0x221
mov r14d, 0x20
mov r9d, r14d
lea r8d, [r14 - 0x1e]
lea rdx, [0x14000f704]
lea rcx, [rbp - 0x30]
call fcn.140002524
nop
lea r9, [rsp + 0x78]
lea rdx, [rbp - 0x30]
call fcn.14000ab48
mov esi, eax
lea rcx, [rbp - 0x30]
call fcn.1400026e0
test esi, esi
js 0x1400034d3
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], ebx
lea edi, [r14 - 0x1f]
mov r9d, edi
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]
mov rbx, rax
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x140003484
mov esi, 0xc1110021
jmp 0x1400034c4
xor r9d, r9d
xor r8d, r8d
mov edx, edi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140003511
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test rdi, rdi
je 0x1400034c4
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
test rbx, rbx
je 0x1400034d3
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
lea rax, [0x14000e0a0]
mov qword [rbp - 0x70], rax
lea rcx, [rbp - 0x70]
call fcn.1400027f0
mov eax, esi
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14000b2e0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
mov rax, qword [r13 + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rdi
and qword [rsp + 0x60], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.140003da8
mov r8, r14
xor edx, edx
lea rcx, [rbp - 0x58]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov qword [rbp - 0x40], rdi
mov r14, qword [rsp + 0x60]
lea rdx, [rbp - 0x58]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_ConnectNamedPipe]
test eax, eax
jne 0x140003603
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x217
je 0x140003603
cmp eax, 0x3e5
jne 0x1400035f1
mov rcx, qword [rsp + 0x68]
sub rcx, r14
sar rcx, 3
or r9d, 0xffffffff
xor r8d, r8d
mov rdx, r14
call qword [sym.imp.api_ms_win_core_synch_l1_2_1.dll_WaitForMultipleObjects]
mov esi, eax
mov rcx, qword [r13 + 0xc0]
test rcx, rcx
je 0x1400035cf
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_IsThreadpoolTimerSet]
test eax, eax
je 0x1400035cf
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [r13 + 0xc0]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_SetThreadpoolTimer]
test esi, esi
je 0x14000363d
cmp esi, 1
jne 0x1400035f1
mov r9d, esi
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x58]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_GetOverlappedResult]
test eax, eax
jne 0x140003603
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_DisconnectNamedPipe]
test eax, eax
je 0x140003655
jmp 0x140003559
mov r8, qword [r15 + 8]
sub r8, qword [r15]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rdx, qword [r15]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x140003632
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140003641
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FlushFileBuffers]
jmp 0x1400035f1
xor esi, esi
jmp 0x140003669
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_DisconnectNamedPipe]
test eax, eax
je 0x140003655
mov esi, 0xc1110025
jmp 0x140003669
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test r14, r14
je 0x1400034b5
mov rax, qword [rsp + 0x70]
sub rax, r14
sar rax, 3
mov rdx, r14
movabs rcx, 0x1fffffffffffffff
cmp rax, rcx
ja 0x1400036c4
shl rax, 3
cmp rax, 0x1000
jb 0x1400036b7
test dl, 0x1f
jne 0x1400036c4
mov r14, qword [r14 - 8]
cmp r14, rdx
jae 0x1400036c4
sub rdx, r14
sub rdx, 8
cmp rdx, 0x1f
ja 0x1400036c4
mov rcx, r14
call fcn.14000b2c4
jmp 0x1400034b5
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3