Function at 0x140065c50
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rax - 0x848]
sub rsp, 0x930
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov rax, qword [0x1404953c0]
xor rax, rsp
mov qword [rbp + 0x800], rax
mov rsi, rdx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x48], r14b
mov dword [rbp - 0x50], r14d
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp]
call fcn.140306610
mov dword [rsp + 0x30], 0x3e8
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x800
lea r9, [rbp]
lea r8d, [r14 + 0x10]
lea rdx, str.NeedAKey
lea rcx, [0x14041aa20]
call qword [sym.imp.KERNEL32.dll_CallNamedPipeW]
test eax, eax
jne 0x140066071
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea r9, [rbp - 0xb]
nop
dec r9
mov eax, 0xcccccccd
mul ecx
mov r8d, edx
shr r8d, 3
movzx eax, r8b
shl al, 2
lea edx, [rax + r8]
add dl, dl
sub cl, dl
add cl, 0x30
mov byte [r9], cl
mov ecx, r8d
test r8d, r8d
jne 0x140065d10
lea r8, [rbp - 0xb]
mov rdx, r9
lea rcx, [rsp + 0x70]
call fcn.14005e8b0
mov edi, 2
mov dword [rsp + 0x40], edi
and edi, 0xfffffffd
mov dword [rsp + 0x40], edi
or edi, 1
mov dword [rsp + 0x40], edi
mov r9d, 0x2f
lea r8, str.CallNamedPipe_failed__will_try_bridge___Error:
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140015db0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
movups xmm6, xmmword [rax]
movups xmmword [rsp + 0x50], xmm6
movups xmm7, xmmword [rax + 0x10]
movdqu xmmword [rsp + 0x60], xmm7
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
or edi, 4
mov dword [rsp + 0x40], edi
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x140065deb
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140065de6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400660f4
call fcn.1402b5c4c
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x48], 0
movups xmmword [rbp - 0x48], xmm6
movups xmmword [rbp - 0x38], xmm7
movdqa xmm0, xmmword [0x14043caa0]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
and edi, 0xfffffffb
mov dword [rsp + 0x40], edi
lea rcx, [rsp + 0x50]
call fcn.140016400
and edi, 0xfffffffe
mov dword [rsp + 0x40], edi
lea rcx, [rsp + 0x70]
call fcn.140016400
lea rcx, [rbp - 0x70]
call fcn.1400098d0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140065e50
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404abb40]
call fcn.1400347d0
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0xf
cmova rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
mov rcx, rax
call fcn.1400347d0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140034b90
movzx edx, al
mov rcx, rbx
call fcn.140034620
mov rcx, rbx
call fcn.14002ddd0
nop
lea rcx, [rbp - 0x70]
call fcn.140016400
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
mov r8d, 8
lea rdx, str.NeedAKey
lea rcx, [rsp + 0x70]
call fcn.140030be0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov r8d, reloc.WS2_32.dll_listen
lea rdx, [0x14041aa20]
lea rcx, [rsp + 0x50]
call fcn.140030be0
nop
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r14d
mov r9d, 0x3e8
mov r8, rsi
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.14003a9b0
mov ebx, eax
lea rcx, [rsp + 0x50]
call fcn.1400166f0
nop
lea rcx, [rsp + 0x70]
call fcn.1400166f0
test ebx, ebx
jne 0x140065fe4
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r14
lea r8d, [rbx + 0x10]
lea rdx, str.Bridge_succeeded
lea rcx, [rbp - 0x20]
call fcn.140015370
nop
lea rcx, [rbp - 0x70]
call fcn.1400098d0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140065f7b
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404abb40]
call fcn.1400347d0
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x10]
mov rcx, rax
call fcn.1400347d0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140034b90
movzx edx, al
mov rcx, rbx
call fcn.140034620
mov rcx, rbx
call fcn.14002ddd0
nop
lea rcx, [rbp - 0x70]
call fcn.140016400
nop
lea rcx, [rbp - 0x20]
call fcn.140016400
jmp 0x1400660b8
mov dword [rsp + 0x78], ebx
movabs rax, 0x2000000000000000
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x50], 1
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rax
lea rax, str.Bridge_failed:_:08X
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], reloc.WS2_32.dll_setsockopt
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x20], xmm1
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x70]
call fcn.140009a30
or edi, 8
mov dword [rsp + 0x40], edi
lea rcx, [rbp - 0x70]
call fcn.14005f4f0
and edi, 0xfffffff7
mov dword [rsp + 0x40], edi
lea rcx, [rbp - 0x70]
call fcn.140016400
nop
lea rcx, [rbp - 0x48]
call fcn.140016400
xor al, al
jmp 0x1400660c3
mov eax, dword [rbp - 0x50]
cmp eax, 0x400
je 0x14006608d
and rax, 0xfffffffffffffffe
cmp rax, 0x800
jae 0x1400660fa
mov word [rbp + rax], r14w
lea rax, [rbp]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400660a0
lea rdx, [rbp]
mov rcx, rsi
call fcn.140030940
nop
lea rcx, [rbp - 0x48]
call fcn.140016400
mov al, 1
mov rcx, qword [rbp + 0x800]
xor rcx, rsp
call fcn.1402b5c00
lea r11, [rsp + 0x930]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1402c5d0c
nop
call fcn.1402b6384
int3