Function at 0x1400c2af0
Capabilities:
Connect pipe
Create pipe

Disassembly:
push r15
push r14
push r13
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc0
movaps xmmword [rsp + 0xb0], xmm6
mov qword [rsp + 0x48], rcx
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0xa8], rax
lea r15, str..pipechrome.nacl.
lea rdi, [rsp + 0x70]
xorps xmm6, xmm6
lea r13, [rsp + 0x50]
xor r14d, r14d
mov esi, 0x1000
mov rbp, qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ebx, 1
lock xadd dword [0x14034d090], ebx
inc ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
mov edx, gethostbyname
mov rcx, rdi
lea r8, str._s_u._lu
mov r9, r15
call fcn.1400c2e30
mov rcx, rdi
call fcn.1401b33b0
mov rbx, rax
movaps xmmword [rsp + 0x50], xmm6
mov qword [rsp + 0x60], 0
movabs rax, 0x7fffffffffffffef
cmp rbx, rax
ja 0x1400c2e15
cmp rbx, 0xb
jae 0x1400c2bb7
mov byte [rsp + 0x67], bl
mov rax, r13
test rbx, rbx
jne 0x1400c2bfc
jmp 0x1400c2c12
mov rsi, r15
lea r15, [rbx + 8]
and r15, 0xfffffffffffffff8
js 0x1400c2e21
lea rcx, [r15 + r15]
call fcn.140190820
mov qword [rsp + 0x50], rax
movabs rcx, 0x7fffffffffffffef
lea rcx, [rcx + 0x11]
or rcx, r15
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rbx
mov r15, rsi
xor r14d, r14d
mov esi, 0x1000
xor ecx, ecx
movsx edx, byte [rsp + rcx + 0x70]
mov word [rax], dx
add rax, 2
inc rcx
cmp rbx, rcx
jne 0x1400c2bfe
mov word [rax], 0
cmp byte [rsp + 0x67], r14b
mov rcx, r13
jns 0x1400c2c26
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x3e8
mov edx, 0x80003
xor r8d, r8d
mov r9d, 1
call rbp
mov rcx, qword [rsp + 0x48]
mov qword [rcx], rax
cmp byte [rsp + 0x67], r14b
jns 0x1400c2c70
mov rcx, qword [rsp + 0x50]
call fcn.140190860
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
cmp rax, 0xffffffffffffffff
jne 0x1400c2c92
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1400c2c92
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x1400c2de4
mov rax, qword [rsp + 0x48]
cmp qword [rax], 0xffffffffffffffff
je 0x1400c2b43
lea rcx, [rsp + 0x70]
call fcn.1401b33b0
mov rdi, rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 0
movabs rax, 0x7fffffffffffffef
cmp rdi, rax
ja 0x1400c2e15
cmp rdi, 0xb
jae 0x1400c2ce8
lea rax, [rsp + 0x50]
mov byte [rax + 0x17], dil
test rdi, rdi
jne 0x1400c2d1f
jmp 0x1400c2d35
lea rbx, [rdi + 8]
and rbx, 0xfffffffffffffff8
js 0x1400c2e21
lea rcx, [rbx + rbx]
call fcn.140190820
mov qword [rsp + 0x50], rax
movabs rcx, 0x7fffffffffffffef
add rcx, 0x11
or rcx, rbx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rdi
xor ecx, ecx
movsx edx, byte [rsp + rcx + 0x70]
mov word [rax], dx
add rax, 2
inc rcx
cmp rdi, rcx
jne 0x1400c2d21
mov word [rax], 0
xor edi, edi
cmp byte [rsp + 0x67], dil
jns 0x1400c2d4a
mov rcx, qword [rsp + 0x50]
jmp 0x1400c2d4f
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x110000
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rsp + 0x48]
mov qword [rcx + 8], rax
cmp byte [rsp + 0x67], dil
jns 0x1400c2d9c
mov rcx, qword [rsp + 0x50]
call fcn.140190860
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx]
cmp rax, 0xffffffffffffffff
je 0x1400c2dde
xor edi, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1400c2de9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x1400c2de9
mov rsi, qword [rsp + 0x48]
mov rcx, qword [rsi]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rdi
mov rcx, qword [rsi + 8]
call rdi
jmp 0x1400c2de4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0xffffffff
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140190ca0
mov eax, edi
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x50]
call fcn.14006a820
ud2
call fcn.1401a6a70
ud2