Function at 0x140017ac0
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x60], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x5c], ecx
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
lea r14, [rbp + 0x20]
mov r12, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
xor edi, edi
xor eax, eax
mov qword [rbp - 8], rax
nop word cs:[rax + rax]
call qword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov dword [rbp + 0x54], eax
mov rax, qword [0x14028f258]
test rax, rax
jne 0x140017b76
nop word cs:[rax + rax]
movaps xmmword [rbp + 0x20], xmm6
mov edx, 0x10
mov rcx, r14
call r12
mov rax, qword [rbp + 0x20]
mov qword [0x14028f258], rax
mov rax, qword [0x14028f258]
test rax, rax
je 0x140017b50
mov eax, 1
lock xadd qword [0x14028f258], rax
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x54]
mov qword [rbp], rax
lea rax, [0x14002d170]
mov qword [rbp + 8], rax
lea rax, [rbp - 0x18]
mov qword [rbp + 0x10], rax
lea rax, [fcn.14002d290]
mov qword [rbp + 0x18], rax
lea rax, str..pipe__rust_anonymous_pipe1__.
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], 2
mov qword [rbp + 0x40], 0
mov rax, rbp
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 2
mov rax, qword [rbp + 0x90]
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x68], rbx
mov byte [rbp + 0xa7], dil
mov byte [rbp + 0xa6], 1
lea rcx, [rbp - 0x38]
mov rdx, r14
call fcn.1400285a0
test rbx, rbx
sete al
or sil, al
test sil, 1
jne 0x140017c25
mov r8d, 1
mov rcx, qword [rbp + 0x90]
mov rdx, rbx
call fcn.1400032c0
mov rax, qword [rbp - 0x38]
mov qword [rbp + 0x80], rax
mov r8, qword [rbp - 0x30]
mov r9, qword [rbp - 0x28]
lea rax, [r8 + r9]
mov qword [rbp + 0x78], rax
test r9, r9
mov qword [rbp + 0x90], r8
mov dword [rbp + 0x58], r15d
mov qword [rbp - 0x10], r9
je 0x140017c70
movzx ecx, byte [r8]
movzx r14d, cl
test r14b, r14b
js 0x140017c90
lea r15, [r8 + 1]
jmp 0x140017cf4
mov esi, 4
mov ebx, 8
xor r13d, r13d
xor r15d, r15d
xor r14d, r14d
xor r12d, r12d
jmp 0x140017d47
mov eax, r14d
and eax, 0x1f
movzx edx, byte [r8 + 1]
and edx, 0x3f
cmp r14b, 0xdf
jbe 0x140017ce8
movzx r14d, byte [r8 + 2]
shl edx, 6
and r14d, 0x3f
or r14d, edx
cmp cl, 0xf0
jb 0x1400180a5
lea r15, [r8 + 4]
movzx ecx, byte [r8 + 3]
and eax, 7
shl eax, 0x12
shl r14d, 6
and ecx, 0x3f
or ecx, r14d
or ecx, eax
mov r14d, ecx
cmp r14d, 0xffff
jbe 0x140017cf4
jmp 0x1400180bc
lea r15, [r8 + 2]
shl eax, 6
or eax, edx
mov r14d, eax
xor r13d, r13d
xor eax, eax
mov rcx, qword [rbp + 0x78]
sub rcx, r15
add rcx, 3
mov rdx, 0xffffffffffffffff
cmovb rcx, rdx
shr rcx, 2
add rcx, rax
cmp rcx, 3
mov esi, 2
cmovae rsi, rcx
lea rbx, [rsi*2 + 4]
movabs rax, 0x3ffffffffffffffd
cmp rcx, rax
ja 0x140018266
add rsi, 2
mov r12w, 1
movzx eax, byte [0x14028f181]
mov edi, 2
mov edx, 2
mov rcx, rbx
call fcn.1400032b0
test rax, rax
je 0x140018268
mov rdx, rax
mov rax, qword [rbp - 8]
lea edi, [rax + 1]
mov word [rdx], r14w
mov ebx, 1
jmp 0x140017d8e
mov rsi, rcx
mov r13d, eax
mov word [rdx + rbx*2], r14w
inc rbx
mov rcx, rsi
test r15, r15
je 0x140017de0
test r13w, r13w
je 0x140017db0
xor eax, eax
mov r14d, r13d
cmp rbx, rcx
jne 0x140017d80
jmp 0x140017ee0
cmp r15, qword [rbp + 0x78]
je 0x140017de0
mov r8, rcx
movzx ecx, byte [r15]
movzx r14d, cl
test r14b, r14b
js 0x140017e10
inc r15
mov rcx, r8
xor eax, eax
cmp rbx, rcx
jne 0x140017d80
jmp 0x140017ee0
cmp r12w, 1
jne 0x140017fb0
xor r15d, r15d
xor r12d, r12d
mov r14d, 0
mov esi, 0
cmp rbx, rcx
je 0x140017f1a
mov rsi, rcx
xor r14d, r14d
jmp 0x140017d86
mov r9, rdx
mov eax, r14d
and eax, 0x1f
movzx edx, byte [r15 + 1]
and edx, 0x3f
cmp r14b, 0xdf
jbe 0x140017e6b
movzx r14d, byte [r15 + 2]
shl edx, 6
and r14d, 0x3f
or r14d, edx
cmp cl, 0xf0
jb 0x140017e8a
movzx ecx, byte [r15 + 3]
add r15, 4
and eax, 7
shl eax, 0x12
shl r14d, 6
and ecx, 0x3f
or ecx, r14d
or ecx, eax
mov r14d, ecx
mov rdx, r9
cmp r14d, 0xffff
jbe 0x140017dc9
jmp 0x140017ea4
add r15, 2
shl eax, 6
or eax, edx
mov r14d, eax
mov rcx, r8
mov rdx, r9
xor eax, eax
cmp rbx, rcx
jne 0x140017d80
jmp 0x140017ee0
add r15, 3
shl eax, 0xc
or r14d, eax
mov rdx, r9
cmp r14d, 0xffff
jbe 0x140017dc9
lea ecx, [r14 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r14d, 0x3ff
or r14d, 0xdc00
mov eax, r14d
mov r14d, ecx
mov rcx, r8
cmp rbx, rcx
jne 0x140017d80
nop word cs:[rax + rax]
mov rsi, qword [rbp + 0x78]
sub rsi, r15
add rsi, 3
mov r8, rdx
mov rdx, rcx
mov rcx, 0xffffffffffffffff
cmovb rsi, rcx
mov rcx, rdx
mov rdx, r8
shr rsi, 2
cmp ax, 1
sbb rsi, 0xffffffffffffffff
cmp r12w, 1
sbb rsi, 0xffffffffffffffff
mov r13d, eax
mov qword [rbp + 0x98], rdx
inc rsi
add rsi, rbx
mov qword [rbp + 0x88], rcx
jb 0x14001825d
mov r9, rcx
add rcx, rcx
cmp rcx, rsi
cmova rsi, rcx
xor edx, edx
mov rax, rsi
shr rax, 0x3e
sete al
cmp rsi, 5
mov r8d, 4
cmovb rsi, r8
test r9, r9
je 0x140017f76
mov r8, qword [rbp + 0x98]
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x30], rcx
mov ecx, 2
jmp 0x140017f78
xor ecx, ecx
lea r8, [rsi + rsi]
mov dl, al
add edx, edx
mov qword [rbp + 0x28], rcx
mov rcx, rbp
lea r9, [rbp + 0x20]
call fcn.14000c9a0
cmp qword [rbp], 0
jne 0x140018253
mov rdx, qword [rbp + 8]
jmp 0x140017d86
mov qword [rbp + 0x88], rcx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov qword [rbp + 0x98], rdx
mov rcx, rdx
mov edx, dword [rbp + 0x5c]
mov r15d, dword [rbp + 0x58]
mov r8d, r15d
mov r9d, 1
call qword [sym.imp.kernel32.dll_CreateNamedPipeW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14001815e
call qword [sym.imp.kernel32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rbp + 0x20], rcx
cmp edi, 0xa
mov rsi, qword [rbp + 0x80]
lea r14, [rbp + 0x20]
mov r12, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
jge 0x1400180ea
cmp eax, 5
jne 0x140018050
mov eax, edi
mov qword [rbp - 8], rax
jmp 0x140018065
test r15d, r15d
je 0x1400180ea
xor r15d, r15d
cmp eax, 0x57
jne 0x1400180ea
mov rcx, r14
call fcn.140008110
mov dil, 1
xor esi, esi
mov rdx, qword [rbp + 0x88]
test rdx, rdx
mov rbx, qword [rbp + 0x80]
je 0x140017b30
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x98]
call fcn.1400032c0
xor esi, esi
jmp 0x140017b30
lea r15, [r8 + 3]
shl eax, 0xc
or r14d, eax
cmp r14d, 0xffff
jbe 0x140017cf4
lea ecx, [r14 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r14d, 0x3ff
or r14d, 0xdc00
mov eax, 1
mov r13d, r14d
mov r14d, ecx
jmp 0x140017cf9
mov rax, qword [rbp + 0x60]
mov qword [rax + 8], rcx
mov qword [rax], 1
mov rdx, qword [rbp + 0x88]
test rdx, rdx
je 0x14001811a
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x98]
call fcn.1400032c0
test rsi, rsi
je 0x140018134
mov r8d, 1
mov rcx, qword [rbp + 0x90]
mov rdx, rsi
call fcn.1400032c0
cmp rbx, 0xffffffffffffffff
je 0x140018143
mov rcx, rbx
call qword [sym.imp.kernel32.dll_CloseHandle]
movaps xmm6, xmmword [rbp + 0xb0]
add rsp, 0x148
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rdx, qword [rbp + 0x88]
test rdx, rdx
mov rsi, qword [rbp + 0x80]
je 0x140018186
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x98]
call fcn.1400032c0
mov dword [rbp + 0x20], 0
mov dword [rbp + 0x40], 0
mov word [rbp + 0x44], 0
movzx eax, byte [rbp + 0xa5]
mov byte [rbp + 0x41], al
xor al, 1
mov byte [rbp + 0x40], al
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov dword [rbp], 0x18
mov qword [rbp + 8], 0
mov dword [rbp + 0x10], 1
mov rax, rbp
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x90]
mov qword [rbp + 0x70], rcx
mov qword [rbp + 0x68], rsi
mov qword [rbp - 0x20], rbx
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 0
lea r8, [rbp + 0x20]
mov rdx, qword [rbp - 0x10]
call fcn.140016c50
test rax, rax
je 0x14001821d
mov rax, qword [rbp + 0x60]
mov qword [rax + 8], rdx
mov qword [rax], 1
test rsi, rsi
jne 0x14001811f
jmp 0x140018134
mov rax, qword [rbp + 0x60]
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
mov qword [rax], 0
test rsi, rsi
mov rcx, qword [rbp + 0x90]
je 0x140018143
mov r8d, 1
mov rdx, rsi
call fcn.1400032c0
jmp 0x140018143
mov rcx, qword [rbp + 8]
mov rdx, qword [rbp + 0x10]
jmp 0x14001825f
xor ecx, ecx
call fcn.14002f210
jmp 0x140018297
xor edi, edi
mov rax, qword [rbp + 0x90]
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x68], rax
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 1
mov rcx, rdi
mov rdx, rbx
call fcn.14002f210
ud2