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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x140017280]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r15, r8
mov r13, rcx
mov rax, qword [r8 + 8]
sub rax, qword [r8]
mov edi, 0x100
cmp rax, rdi
jb 0x140005dc9
mov eax, 0x8007000d
jmp 0x140006130
lea rax, [0x1400100a0]
mov qword [rsp + 0x58], rax
and qword [rsp + 0x60], 0
and dword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
and dword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0x221
mov r9d, 0x20
lea r8d, [r9 - 0x1e]
lea rdx, [0x140011914]
lea rcx, [rbp - 0x50]
call fcn.140004830
nop
lea r9, [rsp + 0x40]
lea rdx, [rbp - 0x50]
call fcn.14000e0e8
mov ebx, eax
lea rcx, [rbp - 0x50]
call fcn.140004bf0
test ebx, ebx
js 0x1400061fe
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], edi
mov edi, 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_1_0.dll_CreateNamedPipeW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x70], rax
or rcx, 0xffffffffffffffff
cmp rax, rcx
jne 0x140005e91
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov ebx, 0xc1110021
jmp 0x1400061fe
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]
nop dword [rax + rax]
mov rdi, rax
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x140005eea
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x140005ecf
movzx edi, ax
or edi, 0x80070000
test rbx, rbx
je 0x140005ee3
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov ebx, edi
jmp 0x1400061fe
mov rax, qword [r13 + 0x30]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rdi
mov r14d, 0x10
mov ecx, r14d
call fcn.140002914
mov rsi, rax
mov r8d, r14d
lea rdx, [rsp + 0x78]
mov rcx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
and qword [rbp - 0x78], 0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rdi
lea rdx, [rbp - 0x78]
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 0x14000605c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x217
je 0x14000605c
cmp eax, 0x3e5
jne 0x140005fe8
or r9d, 0xffffffff
xor r8d, r8d
mov rdx, rsi
lea ecx, [r8 + 2]
call qword [sym.imp.api_ms_win_core_synch_l1_2_1.dll_WaitForMultipleObjects]
nop dword [rax + rax]
mov r14d, eax
mov rcx, qword [r13 + 0xc0]
test rcx, rcx
je 0x140005fba
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_IsThreadpoolTimerSet]
nop dword [rax + rax]
test eax, eax
je 0x140005fba
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]
nop dword [rax + rax]
test r14d, r14d
je 0x140006159
cmp r14d, 1
jne 0x140005fe8
mov r9d, r14d
lea r8, [rsp + 0x68]
lea rdx, [rbp - 0x78]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_GetOverlappedResult]
nop dword [rax + rax]
test eax, eax
jne 0x14000605c
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 0x140005f29
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
mov r14d, eax
jle 0x14000601d
movzx r14d, ax
or r14d, 0x80070000
test rsi, rsi
je 0x140006030
mov edx, 0x10
mov rcx, rsi
call fcn.140002978
nop
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
test rbx, rbx
je 0x140006054
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov ebx, r14d
jmp 0x1400061fe
mov r8, qword [r15 + 8]
sub r8, qword [r15]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov rdx, qword [r15]
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 0x14000609b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3e5
jne 0x1400061ab
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 0x140005f29
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
jle 0x1400060df
movzx r14d, ax
or r14d, 0x80070000
test rsi, rsi
je 0x1400060f2
mov edx, 0x10
mov rcx, rsi
call fcn.140002978
nop
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
test rbx, rbx
je 0x140006117
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
lea rax, [0x1400100a0]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x58]
call fcn.140004ee0
mov eax, r14d
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400016f0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
test rsi, rsi
je 0x14000616c
mov edx, 0x10
mov rcx, rsi
call fcn.140002978
nop
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
test rbx, rbx
je 0x140006191
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
lea rax, [0x1400100a0]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x58]
call fcn.140004ee0
xor eax, eax
jmp 0x140006130
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 0x140005fff
test rsi, rsi
je 0x1400061d5
mov edx, 0x10
mov rcx, rsi
call fcn.140002978
nop
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
test rbx, rbx
je 0x1400061f9
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov ebx, 0xc1110025
lea rax, [0x1400100a0]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x58]
call fcn.140004ee0
mov eax, ebx
jmp 0x140006130