Function at 0x140031f80
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, 0xa0
mov rax, qword [0x1400bb060]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rdx
mov rbx, rcx
xor edi, edi
cmp qword [rcx + 0x38], rdi
jg 0x140032091
add rcx, 0x18
mov rdx, qword [rcx + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rdx
cmp rax, 9
jb 0x1400322f3
cmp qword [rcx + 0x18], 8
jb 0x140031fe1
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 - 0x29]
call fcn.140009320
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rcx, qword [rbp - 0x29]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov edx, 3
lea r9d, [rdx - 2]
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
mov rcx, qword [rbx + 0x38]
cmp rax, rcx
je 0x140032051
test rcx, rcx
jle 0x14003204d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x38], rsi
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x140032091
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003208c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400322f9
call fcn.14004aa40
call fcn.14000dff0
mov rsi, rax
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], di
xor r8d, r8d
lea rdx, [0x1400ab4f4]
lea rcx, [rbp - 0x29]
call fcn.1400072c0
nop
cmp qword [rsi], 0
jg 0x140032133
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
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 r14, rax
mov rax, qword [rsi]
cmp r14, rax
je 0x140032110
test rax, rax
jle 0x14003210a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], r14
mov rax, r14
test rax, rax
jle 0x14003211a
mov dword [rsi + 8], edi
jmp 0x140032133
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 9]
call fcn.1400068d0
mov rdx, rax
mov rcx, rsi
call fcn.14002d460
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x140032173
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003216e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400322ed
call fcn.14004aa40
call fcn.14000dff0
mov rcx, qword [rax]
mov rax, qword [rbx]
mov edx, dword [rax + 8]
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
mov dword [rbp + 0x1f], edi
cmp rcx, 0xffffffffffffffff
jne 0x14003219f
mov edi, 0xc00000c0
jmp 0x1400322c8
mov dword [rbp - 0x21], edx
mov qword [rbp - 0x29], r15
mov dword [rbp - 0x1d], 1
mov qword [rsp + 0x38], rdi
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r9d, 0x10
lea r8, [rbp - 0x29]
mov edx, 0x8005e01c
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400321fc
mov rax, qword gs:[0x30]
mov edi, dword [rax + 0x1250]
test edi, edi
js 0x1400322c8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rax
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xf], xmm1
lea ecx, [rax + 0x38]
call fcn.14004ace0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbp + 0xf], rax
call fcn.14000dff0
mov rcx, rax
mov rax, qword [rbx]
lea r8, [rbx + 0x18]
lea rdx, [rbp - 9]
mov qword [rsp + 0x20], rdx
mov edx, dword [rax + 8]
call fcn.14002d860
test eax, eax
js 0x14003227f
lea rdx, [rbx + 8]
lea rax, [rbp + 0xf]
cmp rdx, rax
je 0x14003227f
mov r8, qword [rdx]
mov rax, qword [rbp + 0xf]
mov qword [rdx], rax
mov qword [rbp + 0xf], r8
mov rcx, qword [rdx + 8]
mov rax, qword [rbp + 0x17]
mov qword [rdx + 8], rax
mov qword [rbp + 0x17], rcx
jmp 0x140032283
mov r8, qword [rbp + 0xf]
mov rbx, qword [r8 + 8]
cmp byte [rbx + 0x19], 0
jne 0x1400322bb
nop dword [rax]
mov r8, qword [rbx + 0x10]
lea rdx, [rbp + 0xf]
lea rcx, [rbp + 0xf]
call fcn.140032940
mov rcx, rbx
mov rbx, qword [rbx]
mov edx, 0x38
call fcn.14004aa40
cmp byte [rbx + 0x19], 0
je 0x140032290
mov r8, qword [rbp + 0xf]
mov edx, 0x38
mov rcx, r8
call fcn.14004aa40
mov eax, edi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14004aa20
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140057ca0
int3
call fcn.140001390
int3
call fcn.140057ca0
int3