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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x140014240]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r12, r8
mov r13, rcx
mov rax, qword [r8 + 8]
sub rax, qword [r8]
mov ebx, 0x100
cmp rax, rbx
jb 0x140003445
mov eax, 0x8007000d
jmp 0x1400036c9
lea r15, [0x14000d0d0]
mov qword [rsp + 0x68], r15
xor r14d, r14d
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x60], r14d
lea rcx, [rbp - 0x30]
call fcn.14000282c
nop
lea r9, [rsp + 0x50]
mov rdx, rax
call fcn.14000a3b0
mov esi, eax
lea rcx, [rbp - 0x30]
call fcn.140002770
test esi, esi
js 0x1400036b8
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], ebx
lea edi, [r14 + 1]
mov r9d, edi
xor r8d, r8d
mov edx, 0x40080002
lea rcx, str..pipeStandardCollector.Service
call qword [sym.imp.api_ms_win_core_namedpipe_l1_2_0.dll_CreateNamedPipeW]
mov rbx, rax
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x1400034de
mov esi, 0xc1110021
jmp 0x1400036a9
xor r9d, r9d
xor r8d, r8d
mov edx, edi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_CreateEventW]
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140003514
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x14000369a
mov rax, qword [r13 + 0x30]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rdi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r14
mov esi, 0x10
mov ecx, esi
call fcn.14000ab58
mov r15, rax
lea r14, [rax + 0x10]
mov r8d, esi
lea rdx, [rsp + 0x78]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_memmove]
nop
xor edx, edx
lea r8d, [rsi + 0x10]
lea rcx, [rbp - 0x70]
call sub.api_ms_win_crt_private_l1_1_0.dll__o_memset
mov qword [rbp - 0x58], rdi
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_namedpipe_l1_2_0.dll_ConnectNamedPipe]
test eax, eax
jne 0x14000360d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 0x217
je 0x14000360d
cmp eax, 0x3e5
jne 0x1400035fb
mov rcx, r14
sub rcx, r15
sar rcx, 3
or r9d, 0xffffffff
xor r8d, r8d
mov rdx, r15
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 0x1400035d9
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_IsThreadpoolTimerSet]
test eax, eax
je 0x1400035d9
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 0x14000364a
cmp esi, 1
jne 0x1400035fb
mov r9d, esi
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_io_l1_1_1.dll_GetOverlappedResult]
test eax, eax
jne 0x14000360d
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_namedpipe_l1_2_0.dll_DisconnectNamedPipe]
test eax, eax
je 0x140003662
jmp 0x140003565
mov r8, qword [r12 + 8]
sub r8, qword [r12]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rdx, qword [r12]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_WriteFile]
test eax, eax
jne 0x14000363f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14000364e
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FlushFileBuffers]
jmp 0x1400035fb
xor esi, esi
jmp 0x140003676
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_namedpipe_l1_2_0.dll_DisconnectNamedPipe]
test eax, eax
je 0x140003662
mov esi, 0xc1110025
jmp 0x140003676
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test r15, r15
je 0x140003693
sub r14, r15
sar r14, 3
mov r8d, 8
mov rdx, r14
mov rcx, r15
call fcn.1400020a4
lea r15, [0x14000d0d0]
test rdi, rdi
je 0x1400036a9
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
test rbx, rbx
je 0x1400036b8
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
mov qword [rsp + 0x68], r15
lea rcx, [rsp + 0x68]
call fcn.1400028c0
mov eax, esi
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14000ab00
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret