Function at 0x18002c030
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x1800b70c0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
cmp qword [rcx + 0x38], r14
jg 0x18002c147
add rcx, 0x18
mov rdx, qword [rcx + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rdx
cmp rax, 9
jb 0x18002c465
cmp qword [rcx + 0x18], 7
jbe 0x18002c094
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 9
lea r9, [0x1800a7d38]
lea rcx, [rbp - 0x31]
call fcn.18002cd60
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 7
cmova rcx, qword [rbp - 0x31]
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
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 0x18002c107
test rcx, rcx
jle 0x18002c103
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x38], rdi
mov rdx, qword [rbp - 0x19]
cmp rdx, 7
jbe 0x18002c147
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002c142
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002c46b
call fcn.18004b4cc
mov eax, dword [0x1800ba960]
test al, 1
jne 0x18002c17f
or eax, 1
mov dword [0x1800ba960], eax
mov dword [0x1800ba974], r14d
mov qword [0x1800ba968], r14
mov dword [0x1800ba970], 0xc0000225
lea rcx, [0x180072e80]
call fcn.18004b4ac
nop
lea rdx, [0x1800a78f4]
lea rcx, [rbp - 0x31]
call fcn.180011580
nop
mov rcx, qword [0x1800ba968]
test rcx, rcx
jg 0x18002c226
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
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 [0x1800ba968]
mov rdx, rcx
cmp rax, rcx
je 0x18002c1f5
test rcx, rcx
jle 0x18002c1e8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
mov qword [0x1800ba968], rcx
mov rdx, rdi
test rdx, rdx
jle 0x18002c203
mov dword [0x1800ba970], r14d
jmp 0x18002c226
lea rdx, [rbp - 0x31]
lea rcx, [rbp + 0x17]
call fcn.180025490
mov rdx, rax
lea rcx, [0x1800ba968]
call fcn.180035ed0
mov rcx, qword [0x1800ba968]
mov rdx, qword [rbp - 0x19]
cmp rdx, 7
jbe 0x18002c26d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002c261
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002c45f
call fcn.18004b4cc
mov rcx, qword [0x1800ba968]
mov eax, dword [0x1800ba960]
test al, 1
jne 0x18002c2ac
or eax, 1
mov dword [0x1800ba960], eax
mov dword [0x1800ba974], r14d
mov qword [0x1800ba968], r14
mov dword [0x1800ba970], 0xc0000225
lea rcx, [0x180072e80]
call fcn.18004b4ac
nop
mov rcx, qword [0x1800ba968]
mov rax, qword [rbx]
mov edx, dword [rax + 8]
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
mov dword [rbp - 0x39], r14d
cmp rcx, 0xffffffffffffffff
jne 0x18002c2d1
mov edi, 0xc00000c0
jmp 0x18002c439
mov dword [rbp - 0x29], edx
mov qword [rbp - 0x31], rsi
mov dword [rbp - 0x25], 1
mov qword [rsp + 0x38], r14
lea rax, [rbp - 0x39]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20
lea rax, [rbp + 0x17]
mov qword [rsp + 0x20], rax
mov r9d, 0x10
lea r8, [rbp - 0x31]
mov edx, 0x8005e01c
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x18002c31c
mov edi, r14d
jmp 0x18002c333
mov rax, qword gs:[0x30]
mov edi, dword [rax + 0x1250]
test edi, edi
js 0x18002c439
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], rax
xorps xmm1, xmm1
movdqu xmmword [rbp + 7], xmm1
lea ecx, [rax + 0x38]
call fcn.18004b4d4
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbp + 7], rax
mov eax, dword [0x1800ba960]
test al, 1
jne 0x18002c39d
or eax, 1
mov dword [0x1800ba960], eax
mov dword [0x1800ba974], r14d
mov qword [0x1800ba968], r14
mov dword [0x1800ba970], 0xc0000225
lea rcx, [0x180072e80]
call fcn.18004b4ac
nop
mov rax, qword [rbx]
lea r8, [rbx + 0x18]
lea rdx, [rbp - 0x11]
mov qword [rsp + 0x20], rdx
mov edx, dword [rax + 8]
lea rcx, [0x1800ba968]
call fcn.1800362b0
test eax, eax
js 0x18002c3ed
lea rdx, [rbx + 8]
lea rax, [rbp + 7]
cmp rdx, rax
je 0x18002c3ed
mov r8, qword [rdx]
mov rax, qword [rbp + 7]
mov qword [rdx], rax
mov qword [rbp + 7], r8
mov rcx, qword [rdx + 8]
mov rax, qword [rbp + 0xf]
mov qword [rdx + 8], rax
mov qword [rbp + 0xf], rcx
jmp 0x18002c3f1
mov r8, qword [rbp + 7]
mov rbx, qword [r8 + 8]
cmp byte [rbx + 0x19], 0
jne 0x18002c42b
nop dword [rax + rax]
mov r8, qword [rbx + 0x10]
lea rdx, [rbp + 7]
lea rcx, [rbp + 7]
call fcn.18002caf0
mov rcx, rbx
mov rbx, qword [rbx]
mov edx, 0x38
call fcn.18004b4cc
cmp byte [rbx + 0x19], 0
je 0x18002c400
mov r8, qword [rbp + 7]
mov edx, 0x38
mov rcx, r8
call fcn.18004b4cc
nop
mov eax, edi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.18004bb30
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.18005212c
int3
call fcn.180003590
int3
call fcn.18005212c
int3