Function at 0x1800f97b0
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 + 0x68], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x5c], ecx
mov r15d, 8
xorps xmm6, xmm6
lea rbx, [rbp + 0x20]
mov r12, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
xor esi, esi
mov qword [rbp - 8], 0
nop word cs:[rax + rax]
call qword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov dword [rbp + 0x54], eax
mov rax, qword [0x1801d9270]
test rax, rax
jne 0x1800f9866
nop word cs:[rax + rax]
movaps xmmword [rbp + 0x20], xmm6
mov edx, 0x10
mov rcx, rbx
call r12
mov rax, qword [rbp + 0x20]
mov qword [0x1801d9270], rax
mov rax, qword [0x1801d9270]
test rax, rax
je 0x1800f9840
mov eax, 1
lock xadd qword [0x1801d9270], rax
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x54]
mov qword [rbp], rax
lea rax, [0x18010f9a0]
mov qword [rbp + 8], rax
lea rax, [rbp - 0x18]
mov qword [rbp + 0x10], rax
lea rax, [fcn.18010fc00]
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 qword [rbp + 0x78], r14
mov qword [rbp + 0x70], rdi
mov byte [rbp + 0xa7], sil
mov byte [rbp + 0xa6], 0
lea rcx, [rbp - 0x38]
mov rdx, rbx
call fcn.18010a010
test rdi, rdi
setne al
and sil, al
cmp sil, 1
jne 0x1800f990a
mov r8d, 1
mov rcx, r14
mov rdx, rdi
call fcn.1800093e0
mov r8, qword [rbp - 0x38]
mov r9, qword [rbp - 0x30]
mov r10, qword [rbp - 0x28]
lea rsi, [r9 + r10]
test r10, r10
mov qword [rbp + 0x60], r8
mov qword [rbp + 0x80], r9
mov dword [rbp + 0x58], r15d
mov qword [rbp - 0x10], r10
je 0x1800f9950
movzx ecx, byte [r9]
movzx r13d, cl
test r13b, r13b
js 0x1800f9980
lea r15, [r9 + 1]
jmp 0x1800f99e4
mov eax, 4
mov qword [rbp + 0x98], rax
mov ebx, 8
xor r12d, r12d
xor r15d, r15d
xor r13d, r13d
xor edi, edi
jmp 0x1800f9a3e
mov eax, r13d
and eax, 0x1f
movzx edx, byte [r9 + 1]
and edx, 0x3f
cmp r13b, 0xdf
jbe 0x1800f99d8
movzx r13d, byte [r9 + 2]
shl edx, 6
and r13d, 0x3f
or r13d, edx
cmp cl, 0xf0
jb 0x1800f9d90
lea r15, [r9 + 4]
movzx ecx, byte [r9 + 3]
and eax, 7
shl eax, 0x12
shl r13d, 6
and ecx, 0x3f
or ecx, r13d
or ecx, eax
mov r13d, ecx
cmp r13d, 0xffff
jbe 0x1800f99e4
jmp 0x1800f9da7
lea r15, [r9 + 2]
shl eax, 6
or eax, edx
mov r13d, eax
mov eax, 1
xor r12d, r12d
mov rcx, rsi
sub rcx, r15
add rcx, 3
mov rdx, 0xffffffffffffffff
cmovb rcx, rdx
shr rcx, 2
add rcx, rax
cmp rcx, 4
mov edx, 3
cmovae rdx, rcx
lea rbx, [rdx*2 + 2]
movabs rax, 0x3ffffffffffffffe
cmp rcx, rax
ja 0x1800f9f3a
inc rdx
mov qword [rbp + 0x98], rdx
mov di, 1
movzx eax, byte [0x1801d91a1]
mov r14d, 2
mov edx, 2
mov rcx, rbx
call fcn.1800093d0
test rax, rax
je 0x1800f9f3d
mov rcx, rax
mov rax, qword [rbp - 8]
inc eax
mov dword [rbp + 0x8c], eax
mov word [rcx], r13w
mov ebx, 1
mov rdx, qword [rbp + 0x98]
jmp 0x1800f9aa3
mov r14, rdx
mov eax, r12d
mov word [rcx + rbx*2], ax
inc rbx
mov rdx, r14
mov r12d, r13d
test r15, r15
je 0x1800f9b30
test r12w, r12w
je 0x1800f9b00
xor r13d, r13d
cmp rbx, rdx
jne 0x1800f9a90
mov qword [rbp + 0x90], rcx
mov rax, rsi
sub rax, r15
add rax, 3
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
shr rax, 2
movzx ecx, di
cmp r13w, 1
sbb rax, 0xffffffffffffffff
add rax, rcx
lea rcx, [rax + 1]
add rcx, rbx
mov qword [rbp + 0x98], rdx
jae 0x1800f9b69
jmp 0x1800f9f31
cmp r15, rsi
je 0x1800f9b30
mov r9, rcx
movzx ecx, byte [r15]
movzx r12d, cl
test r12b, r12b
js 0x1800f9bfa
inc r15
mov rcx, r9
xor r13d, r13d
cmp rbx, rdx
jne 0x1800f9a90
jmp 0x1800f9aba
cmp di, 1
jne 0x1800f9cd0
xor r15d, r15d
xor eax, eax
cmp rbx, rdx
jne 0x1800f9bc0
mov qword [rbp + 0x90], rcx
xor edi, edi
mov r13d, r12d
xor r12d, r12d
xor eax, eax
lea rcx, [rax + 1]
add rcx, rbx
mov qword [rbp + 0x98], rdx
jb 0x1800f9f31
lea r14, [rax + rbx]
inc r14
lea rcx, [rdx + rdx]
cmp rcx, r14
cmova r14, rcx
mov r9, rdx
xor edx, edx
mov rax, r14
shr rax, 0x3e
sete al
cmp r14, 5
mov r8d, 4
cmovb r14, r8
test r9, r9
je 0x1800f9bcd
mov r8, qword [rbp + 0x90]
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x30], rcx
mov ecx, 2
jmp 0x1800f9bcf
mov r14, rdx
mov r13d, r12d
xor edi, edi
jmp 0x1800f9a96
xor ecx, ecx
lea r8, [r14 + r14]
mov dl, al
add edx, edx
mov qword [rbp + 0x28], rcx
mov rcx, rbp
lea r9, [rbp + 0x20]
call fcn.1800eddd0
cmp dword [rbp], 1
je 0x1800f9f27
mov rcx, qword [rbp + 8]
jmp 0x1800f9a93
mov r8, rdx
mov eax, r12d
and eax, 0x1f
movzx edx, byte [r15 + 1]
and edx, 0x3f
cmp r12b, 0xdf
jbe 0x1800f9c58
movzx r12d, byte [r15 + 2]
shl edx, 6
and r12d, 0x3f
or r12d, edx
cmp cl, 0xf0
jb 0x1800f9c7b
movzx ecx, byte [r15 + 3]
add r15, 4
and eax, 7
shl eax, 0x12
shl r12d, 6
and ecx, 0x3f
or ecx, r12d
or ecx, eax
mov r12d, ecx
mov rdx, r8
mov rcx, r9
cmp r12d, 0xffff
jbe 0x1800f9ab2
jmp 0x1800f9c98
add r15, 2
shl eax, 6
or eax, edx
mov r12d, eax
mov rdx, r8
mov rcx, r9
xor r13d, r13d
cmp rbx, rdx
jne 0x1800f9a90
jmp 0x1800f9aba
add r15, 3
shl eax, 0xc
or r12d, eax
mov rdx, r8
mov rcx, r9
cmp r12d, 0xffff
jbe 0x1800f9ab2
lea eax, [r12 + 0xff0000]
shr eax, 0xa
or eax, 0xd800
and r12d, 0x3ff
or r12d, 0xdc00
mov r13d, r12d
mov r12d, eax
cmp rbx, rdx
jne 0x1800f9a90
jmp 0x1800f9aba
mov rsi, rdx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov r13, rcx
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
mov rdi, qword [rbp + 0x60]
jne 0x1800f9e42
call qword [sym.imp.kernel32.dll_GetLastError]
cmp dword [rbp + 0x8c], 9
mov r14, qword [rbp + 0x80]
mov r12, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
mov rdx, rsi
jg 0x1800f9dd5
mov rcx, r13
cmp eax, 5
jne 0x1800f9d60
mov eax, dword [rbp + 0x8c]
mov qword [rbp - 8], rax
jmp 0x1800f9d6d
test r15d, r15d
je 0x1800f9dd5
xor r15d, r15d
cmp eax, 0x57
jne 0x1800f9dd5
mov sil, 1
test rdx, rdx
lea rbx, [rbp + 0x20]
je 0x1800f9820
add rdx, rdx
mov r8d, 2
call fcn.1800093e0
jmp 0x1800f9820
lea r15, [r9 + 3]
shl eax, 0xc
or r13d, eax
cmp r13d, 0xffff
jbe 0x1800f99e4
lea ecx, [r13 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r13d, 0x3ff
or r13d, 0xdc00
mov eax, 2
mov r12d, r13d
mov r13d, ecx
jmp 0x1800f99ec
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp + 0x68]
mov qword [rcx + 8], rax
mov qword [rcx], 1
test rdx, rdx
je 0x1800f9e02
add rdx, rdx
mov r8d, 2
mov rcx, r13
call fcn.1800093e0
test rdi, rdi
je 0x1800f9e18
mov r8d, 1
mov rcx, r14
mov rdx, rdi
call fcn.1800093e0
cmp rbx, 0xffffffffffffffff
je 0x1800f9e27
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
test rsi, rsi
mov r14, qword [rbp + 0x80]
je 0x1800f9e62
mov rdx, rsi
add rdx, rsi
mov r8d, 2
mov rcx, r13
call fcn.1800093e0
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 qword [rbp + 0x78], r14
mov qword [rbp + 0x70], rdi
mov qword [rbp - 0x20], rbx
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 1
lea r8, [rbp + 0x20]
mov rcx, r14
mov rdx, qword [rbp - 0x10]
call fcn.1800f8950
test rax, rax
je 0x1800f9ef5
mov rax, qword [rbp + 0x68]
mov qword [rax + 8], rdx
mov qword [rax], 1
test rdi, rdi
jne 0x1800f9e07
jmp 0x1800f9e18
mov rax, qword [rbp + 0x68]
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
mov qword [rax], 0
test rdi, rdi
je 0x1800f9e27
mov r8d, 1
mov rcx, r14
mov rdx, rdi
call fcn.1800093e0
jmp 0x1800f9e27
mov rcx, qword [rbp + 8]
mov rdx, qword [rbp + 0x10]
jmp 0x1800f9f33
xor ecx, ecx
call fcn.180116aa0
jmp 0x1800f9f69
xor r14d, r14d
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x60]
mov qword [rbp + 0x70], rax
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 0
mov rcx, r14
mov rdx, rbx
call fcn.180116aa0
ud2