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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x1400d5180]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
movdqa xmm1, xmmword [0x1400bb3a0]
mov dl, 0x42
movd ecx, xmm1
movdqa xmm0, xmm1
movdqu xmmword [rsp + 0x40], xmm1
xor ebx, ebx
mov r8b, 0x7b
movdqa xmm1, xmmword [str.p4JX1KK71KKK4Y]
xor dl, cl
xor byte [rsp + 0x42], cl
xor r8b, cl
xor byte [rsp + 0x43], cl
mov r9b, 0x62
xor byte [rsp + 0x44], cl
xor r9b, cl
xor byte [rsp + 0x45], cl
mov r10b, 0x77
xor byte [rsp + 0x46], cl
xor r10b, cl
xor byte [rsp + 0x47], cl
xor byte [rsp + 0x48], cl
xor byte [rsp + 0x49], cl
xor byte [rsp + 0x4a], cl
xor byte [rsp + 0x4b], cl
xor byte [rsp + 0x4c], cl
xor byte [rsp + 0x4d], cl
xor byte [rsp + 0x4e], cl
xor byte [rsp + 0x4f], cl
movdqu xmmword [rsp + 0x68], xmm1
mov byte [rsp + 0x50], dl
lea edx, [rbx + 1]
psrldq xmm0, 1
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 1
mov byte [rsp + 0x51], r8b
lea r8, [rbp - 0x80]
xor al, cl
mov byte [rsp + 0x52], r9b
movd ecx, xmm1
xor r9d, r9d
mov byte [rsp + 0x41], al
movd eax, xmm0
xor byte [rsp + 0x6a], cl
xor byte [rsp + 0x6b], cl
xor byte [rsp + 0x6c], cl
xor al, cl
xor byte [rsp + 0x6d], cl
xor byte [rsp + 0x6e], cl
xor byte [rsp + 0x6f], cl
xor byte [rsp + 0x70], cl
xor byte [rsp + 0x71], cl
xor byte [rsp + 0x72], cl
xor byte [rsp + 0x73], cl
xor byte [rsp + 0x74], cl
xor byte [rsp + 0x75], cl
xor byte [rsp + 0x76], cl
lea rcx, [rsp + 0x69]
mov byte [rsp + 0x69], al
mov byte [rsp + 0x53], r10b
mov byte [rsp + 0x54], 0
mov dword [rsp + 0x78], 0x18
mov dword [rbp - 0x78], ebx
mov byte [rsp + 0x77], bl
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA]
test eax, eax
je 0x140004f37
lea rax, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x38], rax
lea r9d, [rbx + 1]
mov dword [rsp + 0x30], ebx
lea edx, [rbx + 3]
mov dword [rsp + 0x28], 0x400
lea rcx, [rsp + 0x41]
mov dword [rsp + 0x20], 0x400
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov rcx, qword [rbp - 0x80]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp rdi, 0xffffffffffffffff
je 0x140004f37
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Named_pipe_created._Waiting_for_connection...
call fcn.140007370
lea rdx, [0x140007540]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x140004f2e
lea r9, [rbp - 0x70]
mov qword [rsp + 0x20], rbx
mov r8d, 0x400
lea rdx, [rbp - 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140004f2e
movdqa xmm1, xmmword [0x1400bb3d0]
mov dl, 0x22
movdqa xmm2, xmmword [0x1400bb1b0]
movdqa xmm0, xmm1
movd ecx, xmm1
mov r8, 0xffffffffffffffff
movdqu xmmword [rsp + 0x50], xmm2
mov byte [rsp + 0x61], bl
xor byte [rsp + 0x51], cl
xor byte [rsp + 0x52], cl
xor byte [rsp + 0x53], cl
xor byte [rsp + 0x54], cl
xor byte [rsp + 0x55], cl
xor byte [rsp + 0x56], cl
xor byte [rsp + 0x57], cl
xor byte [rsp + 0x58], cl
xor byte [rsp + 0x59], cl
xor byte [rsp + 0x5a], cl
xor byte [rsp + 0x5b], cl
xor byte [rsp + 0x5c], cl
xor byte [rsp + 0x5d], cl
xor byte [rsp + 0x5e], cl
xor byte [rsp + 0x5f], cl
movdqu xmmword [rsp + 0x40], xmm1
xor byte [rsp + 0x42], cl
xor byte [rsp + 0x43], cl
xor byte [rsp + 0x44], cl
xor byte [rsp + 0x45], cl
xor byte [rsp + 0x46], cl
xor byte [rsp + 0x47], cl
xor byte [rsp + 0x48], cl
xor byte [rsp + 0x49], cl
xor byte [rsp + 0x4a], cl
xor byte [rsp + 0x4b], cl
xor byte [rsp + 0x4c], cl
xor byte [rsp + 0x4d], cl
xor byte [rsp + 0x4e], cl
xor byte [rsp + 0x4f], cl
psrldq xmm0, 1
movd eax, xmm0
xor al, cl
mov byte [rsp + 0x41], al
movd eax, xmm2
xor al, cl
xor dl, cl
mov byte [rsp + 0x50], al
mov byte [rsp + 0x60], dl
lea rax, [rsp + 0x41]
nop word [rax + rax]
inc r8
cmp byte [rax + r8], bl
jne 0x140004ed0
inc r8d
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x6c]
mov rcx, rdi
lea rdx, [rsp + 0x41]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140004f5d
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Write_to_pipe_failed._Error:
call fcn.140007370
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140007540]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.1400a7140
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140004f39