Function at 0x140086670
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x140124080]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rdx
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x38], rbx
jg 0x14008674e
add rcx, 0x18
mov rdx, qword [rcx + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rdx
cmp rax, 9
jb 0x14008692d
cmp qword [rcx + 0x18], 7
jbe 0x1400866d1
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 9
lea r9, str..pipe_
lea rcx, [rbp - 0x41]
call fcn.140076410
lea rcx, [rbp - 0x41]
cmp qword [rbp - 0x29], 7
cmova rcx, qword [rbp - 0x41]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov edx, 3
mov r9d, 1
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
mov rcx, qword [rdi + 0x38]
cmp rax, rcx
je 0x140086745
test rcx, rcx
jle 0x140086741
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x38], rsi
lea rcx, [rbp - 0x41]
call fcn.14006a970
call fcn.140063c90
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x31], xmm1
xor r8d, r8d
lea rdx, [0x14010b5ec]
lea rcx, [rbp - 0x41]
call fcn.14006abd0
nop
cmp qword [rsi], 0
jg 0x1400867ed
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
mov r8d, 3
lea rcx, str..BlackBone
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
mov rax, qword [rsi]
cmp r14, rax
je 0x1400867ca
test rax, rax
jle 0x1400867c4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], r14
mov rax, r14
test rax, rax
jle 0x1400867d4
mov dword [rsi + 8], ebx
jmp 0x1400867ed
lea rdx, [rbp - 0x41]
lea rcx, [rbp + 7]
call fcn.14006a790
mov rdx, rax
mov rcx, rsi
call fcn.140081e90
nop
lea rcx, [rbp - 0x41]
call fcn.14006a970
call fcn.140063c90
mov rcx, qword [rax]
mov rax, qword [rdi]
mov edx, dword [rax + 8]
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
mov dword [rbp - 0x49], ebx
cmp rcx, 0xffffffffffffffff
jne 0x14008681f
mov ebx, 0xc00000c0
jmp 0x140086874
mov dword [rbp - 0x39], edx
mov qword [rbp - 0x41], r15
mov dword [rbp - 0x35], 1
mov qword [rsp + 0x38], rbx
lea rax, [rbp - 0x49]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp - 0x41]
mov edx, 0x8005e01c
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140086874
mov rax, qword gs:[0x30]
mov ebx, dword [rax + 0x1250]
test ebx, ebx
js 0x140086908
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], rax
xorps xmm1, xmm1
movdqu xmmword [rbp - 9], xmm1
mov ecx, Ordinal_60
call fcn.1400e9780
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbp - 9], rax
call fcn.140063c90
mov rcx, rax
mov rax, qword [rdi]
lea r8, [rdi + 0x18]
lea rdx, [rbp - 0x21]
mov qword [rsp + 0x20], rdx
mov edx, dword [rax + 8]
call fcn.140082120
test eax, eax
js 0x1400868ff
lea r8, [rdi + 8]
lea rax, [rbp - 9]
cmp r8, rax
je 0x1400868ff
mov rdx, qword [r8]
mov rcx, qword [rbp - 9]
mov qword [r8], rcx
mov qword [rbp - 9], rdx
mov rdx, qword [r8 + 8]
mov rcx, qword [rbp - 1]
mov qword [r8 + 8], rcx
mov qword [rbp - 1], rdx
lea rcx, [rbp - 9]
call fcn.140086eb0
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400e9640
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14004e850
int3