Function at 0x140014690
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 [0x14009e038]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, rdx
mov rbx, rcx
xor r15d, r15d
cmp qword [rcx + 0x38], r15
jg 0x1400147a5
add rcx, 0x18
mov rdx, qword [rcx + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rdx
cmp rax, 9
jb 0x140014b13
cmp qword [rcx + 0x18], 8
jb 0x1400146f2
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 9
lea r9, [0x140090078]
lea rcx, [rbp - 0x41]
call fcn.14000e9f0
lea rcx, [rbp - 0x41]
cmp qword [rbp - 0x29], 8
cmovae rcx, qword [rbp - 0x41]
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
mov edx, 3
lea r9d, [rdx - 2]
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rdi, rax
mov rcx, qword [rbx + 0x38]
cmp rax, rcx
je 0x140014765
test rcx, rcx
jle 0x140014761
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x38], rdi
mov rdx, qword [rbp - 0x29]
cmp rdx, 8
jb 0x1400147a5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400147a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014b19
call fcn.1400528ec
mov esi, 4
mov rax, qword gs:[0x58]
add rsi, qword [rax]
mov eax, dword [rsi]
cmp dword [0x1400a21b4], eax
jle 0x140014805
lea rcx, [0x1400a21b4]
call fcn.140052c3c
cmp dword [0x1400a21b4], 0xffffffff
jne 0x140014805
mov dword [0x1400a21c4], r15d
mov qword [0x1400a21b8], r15
mov dword [0x1400a21c0], 0xc0000225
lea rcx, [0x14007dcd0]
call fcn.1400528d4
lea rcx, [0x1400a21b4]
call fcn.140052bd0
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x31], xmm1
xor r8d, r8d
lea rdx, [0x14008f808]
lea rcx, [rbp - 0x41]
call fcn.140004380
nop
cmp qword [0x1400a21b8], 0
jg 0x1400148ac
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
lea rcx, str..BlackBone
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov rcx, qword [0x1400a21b8]
cmp rax, rcx
je 0x140014881
test rcx, rcx
jle 0x140014877
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400a21b8], rdi
mov rcx, rdi
test rcx, rcx
jle 0x14001488f
mov dword [0x1400a21c0], r15d
jmp 0x1400148ac
lea rdx, [rbp - 0x41]
lea rcx, [rbp + 7]
call fcn.140004110
mov rdx, rax
lea rcx, [0x1400a21b8]
call fcn.14000fc90
nop
mov rdx, qword [rbp - 0x29]
cmp rdx, 8
jb 0x1400148ec
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400148e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014b0d
call fcn.1400528ec
mov eax, dword [rsi]
cmp dword [0x1400a21b4], eax
jle 0x14001493b
lea rcx, [0x1400a21b4]
call fcn.140052c3c
cmp dword [0x1400a21b4], 0xffffffff
jne 0x14001493b
mov dword [0x1400a21c4], r15d
mov qword [0x1400a21b8], r15
mov dword [0x1400a21c0], 0xc0000225
lea rcx, [0x14007dcd0]
call fcn.1400528d4
lea rcx, [0x1400a21b4]
call fcn.140052bd0
mov rax, qword [rbx]
mov ecx, dword [rax + 8]
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
mov dword [rbp - 0x49], r15d
cmp qword [0x1400a21b8], 0xffffffffffffffff
jne 0x140014964
mov edi, 0xc00000c0
jmp 0x140014ae8
mov dword [rbp - 0x39], ecx
mov qword [rbp - 0x41], r14
mov dword [rbp - 0x35], 1
mov qword [rsp + 0x38], r15
lea rax, [rbp - 0x49]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, 0x10
lea r8, [rbp - 0x41]
mov edx, 0x8005e01c
mov rcx, qword [0x1400a21b8]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400149b6
mov edi, r15d
jmp 0x1400149cd
mov rax, qword gs:[0x30]
mov edi, dword [rax + 0x1250]
test edi, edi
js 0x140014ae8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], rax
xorps xmm1, xmm1
movdqu xmmword [rbp - 9], xmm1
lea ecx, [rax + 0x38]
call fcn.140052660
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbp - 9], rax
mov eax, dword [rsi]
cmp dword [0x1400a21b4], eax
jle 0x140014a4e
lea rcx, [0x1400a21b4]
call fcn.140052c3c
cmp dword [0x1400a21b4], 0xffffffff
jne 0x140014a4e
mov dword [0x1400a21c4], r15d
mov qword [0x1400a21b8], r15
mov dword [0x1400a21c0], 0xc0000225
lea rcx, [0x14007dcd0]
call fcn.1400528d4
lea rcx, [0x1400a21b4]
call fcn.140052bd0
mov rax, qword [rbx]
lea r8, [rbx + 0x18]
lea rdx, [rbp - 0x21]
mov qword [rsp + 0x20], rdx
mov edx, dword [rax + 8]
lea rcx, [0x1400a21b8]
call fcn.140010090
test eax, eax
js 0x140014a9e
lea rdx, [rbx + 8]
lea rax, [rbp - 9]
cmp rdx, rax
je 0x140014a9e
mov r8, qword [rdx]
mov rax, qword [rbp - 9]
mov qword [rdx], rax
mov qword [rbp - 9], r8
mov rcx, qword [rdx + 8]
mov rax, qword [rbp - 1]
mov qword [rdx + 8], rax
mov qword [rbp - 1], rcx
jmp 0x140014aa2
mov r8, qword [rbp - 9]
mov rbx, qword [r8 + 8]
cmp byte [rbx + 0x19], 0
jne 0x140014adb
nop dword [rax]
mov r8, qword [rbx + 0x10]
lea rdx, [rbp - 9]
lea rcx, [rbp - 9]
call fcn.1400151c0
mov rcx, rbx
mov rbx, qword [rbx]
mov edx, 0x38
call fcn.1400528ec
cmp byte [rbx + 0x19], 0
je 0x140014ab0
mov r8, qword [rbp - 9]
mov edx, 0x38
mov rcx, r8
call fcn.1400528ec
mov eax, edi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140052640
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14005ed44
int3
call fcn.140001380
int3
call fcn.14005ed44
int3