Function at 0x1400be820
Capabilities:
Create pipe
Generate random numbers via winapi

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 + 0x58], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x4c], ecx
xor edi, edi
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
mov rbx, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor eax, eax
mov qword [rbp - 8], rax
nop
call sub.kernel32.dll_GetCurrentProcessId
mov dword [rbp + 0x44], eax
jmp 0x1400be89b
mov rax, qword [rbp + 0x60]
xchg qword [0x140158240], rax
mov rax, qword [0x140158240]
test rax, rax
jne 0x1400be8f0
movaps xmmword [rbp + 0x60], xmm6
xor ecx, ecx
lea rdx, [rbp + 0x60]
mov r8d, 0x10
mov r9d, 2
call rbx
test eax, eax
jns 0x1400be890
mov byte [rbp + 0xa7], dil
mov byte [rbp + 0xa6], 1
mov ecx, eax
call fcn.1400bfda0
xchg qword [0x140158240], rax
jmp 0x1400be89b
mov eax, 1
lock xadd qword [0x140158240], rax
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x44]
mov qword [rbp], rax
lea rax, [0x140025280]
mov qword [rbp + 8], rax
lea rax, [rbp - 0x30]
mov qword [rbp + 0x10], rax
lea rax, [fcn.140022650]
mov qword [rbp + 0x18], rax
lea rax, str..pipe__rust_anonymous_pipe1__.
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], 2
mov qword [rbp + 0x70], 0
mov rax, rbp
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], 2
mov byte [rbp + 0xa7], dil
mov byte [rbp + 0xa6], 1
lea rcx, [rbp - 0x28]
lea rdx, [rbp + 0x60]
call fcn.14001dd90
movups xmm0, xmmword [rbp - 0x28]
movaps xmmword [rbp + 0x60], xmm0
mov rax, qword [rbp - 0x18]
mov qword [rbp + 0x70], rax
test sil, 1
jne 0x1400be9a2
mov rdx, qword [rbp + 0x28]
test rdx, rdx
je 0x1400be9a2
mov rcx, qword [rbp + 0x20]
not rdx
shr rdx, 0x3f
call fcn.14001d460
mov r14, qword [rbp + 0x70]
mov qword [rbp + 0x30], r14
movaps xmm0, xmmword [rbp + 0x60]
movaps xmmword [rbp + 0x20], xmm0
mov rbx, qword [rbp + 0x20]
lea rax, [rbx + r14]
mov qword [rbp + 0x50], rax
test r14, r14
mov dword [rbp + 0x48], r15d
je 0x1400be9e0
movzx ecx, byte [rbx]
movzx esi, cl
test sil, sil
js 0x1400bea00
inc rbx
jmp 0x1400bea59
xor esi, esi
xor r15d, r15d
xor r12d, r12d
xor ebx, ebx
xor r13d, r13d
jmp 0x1400bea83
mov eax, esi
and eax, 0x1f
movzx edx, byte [rbx + 1]
and edx, 0x3f
cmp sil, 0xdf
jbe 0x1400bea4e
movzx esi, byte [rbx + 2]
shl edx, 6
and esi, 0x3f
or esi, edx
cmp cl, 0xf0
jb 0x1400bede3
movzx ecx, byte [rbx + 3]
add rbx, 4
and eax, 7
shl eax, 0x12
shl esi, 6
and ecx, 0x3f
or ecx, esi
or ecx, eax
mov esi, ecx
cmp esi, 0xffff
jbe 0x1400bea59
jmp 0x1400bedf8
add rbx, 2
shl eax, 6
or eax, edx
mov esi, eax
mov eax, 1
xor r12d, r12d
mov r13, qword [rbp + 0x50]
sub r13, rbx
add r13, 3
mov rcx, 0xffffffffffffffff
cmovb r13, rcx
shr r13, 2
add r13, rax
mov r15w, 1
cmp r13, 4
mov eax, 3
cmovb r13, rax
movabs rax, 0x3fffffffffffffff
cmp r13, rax
jae 0x1400bef79
inc r13
mov rdi, r13
add rdi, r13
mov edx, 2
mov rcx, rdi
call fcn.14001d3d0
test rax, rax
je 0x1400bef8e
mov word [rax], si
mov qword [rbp - 0x28], rbx
test r14, r14
je 0x1400bed37
mov r14d, 1
mov rdi, r13
mov qword [rbp + 0x98], rax
mov rcx, rax
mov eax, r15d
jmp 0x1400beb05
mov qword [rbp + 0x98], rcx
mov rdi, r13
mov eax, dword [rbp + 0xa0]
mov word [rcx + r14*2], r12w
inc r14
mov r12d, r15d
test rbx, rbx
lea rdx, [rbp - 0x28]
cmovne rbx, rdx
je 0x1400bebd0
test r12w, r12w
je 0x1400beb30
xor r15d, r15d
jmp 0x1400bebe2
mov rsi, qword [rbx]
cmp rsi, qword [rbp + 0x50]
je 0x1400bebc8
lea rdx, [rsi + 1]
mov qword [rbx], rdx
movzx r9d, byte [rsi]
movzx r12d, r9b
test r12b, r12b
jns 0x1400beb1c
mov r8d, r12d
and r8d, 0x1f
lea rdx, [rsi + 2]
mov qword [rbx], rdx
movzx r10d, byte [rsi + 1]
and r10d, 0x3f
cmp r12b, 0xdf
jbe 0x1400becdc
lea rdx, [rsi + 3]
mov qword [rbx], rdx
movzx r12d, byte [rsi + 2]
shl r10d, 6
and r12d, 0x3f
or r12d, r10d
cmp r9b, 0xf0
jb 0x1400becee
lea rdx, [rsi + 4]
mov qword [rbx], rdx
movzx edx, byte [rsi + 3]
and r8d, 7
shl r8d, 0x12
shl r12d, 6
and edx, 0x3f
or edx, r12d
or edx, r8d
mov r12d, edx
cmp r12d, 0xffff
jbe 0x1400beb1c
jmp 0x1400bed02
mov qword [rbp - 0x28], 0
cmp ax, 1
jne 0x1400bed30
xor eax, eax
mov r15d, r12d
xor r12d, r12d
mov rbx, qword [rbp - 0x28]
cmp r14, rdi
jne 0x1400beafa
test rbx, rbx
je 0x1400bec21
mov rcx, qword [rbp + 0x50]
sub rcx, rbx
add rcx, 3
mov rdx, 0xffffffffffffffff
cmovb rcx, rdx
shr rcx, 2
cmp r15w, 1
sbb rcx, 0xffffffffffffffff
cmp ax, 1
sbb rcx, 0xffffffffffffffff
jmp 0x1400bec29
xor ecx, ecx
test ax, ax
setne cl
inc rcx
add rdi, rcx
mov qword [rbp - 0x10], r13
jb 0x1400bef6b
mov dword [rbp + 0xa0], eax
mov rcx, r13
add rcx, r13
cmp rcx, rdi
cmova rdi, rcx
cmp rdi, 5
mov rsi, r13
mov r13, rdi
mov eax, 4
cmovb r13, rax
xor r8d, r8d
mov rax, r13
shr rax, 0x3e
sete r8b
mov rdx, r13
add rdx, r13
add r8, r8
test rsi, rsi
je 0x1400bec91
mov rax, qword [rbp + 0x98]
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], rcx
mov eax, 2
jmp 0x1400bec93
xor eax, eax
mov qword [rbp + 0x70], rax
mov rcx, rbp
lea r9, [rbp + 0x60]
call fcn.1400a8c50
cmp qword [rbp], 0
mov rcx, qword [rbp + 8]
je 0x1400beaea
mov rdx, qword [rbp + 0x10]
movabs rax, 0x8000000000000001
cmp rdx, rax
jne 0x1400bef66
mov rdi, qword [rbp - 0x10]
mov r13, rdi
mov rcx, qword [rbp + 0x98]
jmp 0x1400beaf4
shl r8d, 6
or r8d, r10d
mov r12d, r8d
xor r15d, r15d
jmp 0x1400bebe2
shl r8d, 0xc
or r12d, r8d
cmp r12d, 0xffff
jbe 0x1400beb1c
add r12d, 0xffff0000
mov edx, r12d
shr edx, 0xa
or edx, 0xd800
and r12d, 0x3ff
or r12d, 0xdc00
mov r15d, r12d
mov r12d, edx
jmp 0x1400bebe2
mov rax, qword [rbp + 0x98]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov rdi, rax
mov rcx, rax
mov edx, dword [rbp + 0x4c]
mov r15d, dword [rbp + 0x48]
mov r8d, r15d
mov r9d, 1
call qword [sym.imp.kernel32.dll_CreateNamedPipeW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400bee5d
mov rax, qword [rbp - 8]
lea esi, [rax + 1]
call qword [sym.imp.kernel32.dll_GetLastError]
cmp esi, 0xa
jge 0x1400bee24
mov rcx, rdi
cmp eax, 5
jne 0x1400bedb0
mov eax, esi
mov qword [rbp - 8], rax
jmp 0x1400bedbd
test r15d, r15d
je 0x1400bee24
xor r15d, r15d
cmp eax, 0x57
jne 0x1400bee24
mov dil, 1
xor esi, esi
test r13, r13
mov rbx, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
je 0x1400be880
mov edx, 2
call fcn.14001d460
xor esi, esi
jmp 0x1400be880
add rbx, 3
shl eax, 0xc
or esi, eax
cmp esi, 0xffff
jbe 0x1400bea59
add esi, 0xffff0000
mov ecx, esi
shr ecx, 0xa
or ecx, 0xd800
and esi, 0x3ff
or esi, 0xdc00
mov r12d, esi
mov eax, 2
mov esi, ecx
jmp 0x1400bea61
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp + 0x58]
mov qword [rcx + 8], rax
mov qword [rcx], 1
mov rsi, 0xffffffffffffffff
test r13, r13
je 0x1400beef6
mov edx, 2
mov rcx, rdi
call fcn.14001d460
jmp 0x1400beef6
test r13, r13
je 0x1400bee6f
mov edx, 2
mov rcx, rdi
call fcn.14001d460
mov qword [rbp + 0x68], 0
mov word [rbp + 0x84], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x74], xmm0
movzx eax, byte [rbp + 0xa5]
mov byte [rbp + 0x81], al
xor al, 1
mov byte [rbp + 0x80], al
mov dword [rbp], 0x18
mov qword [rbp + 8], 0
mov dword [rbp + 0x10], 1
mov rax, rbp
mov qword [rbp + 0x60], rax
mov rsi, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x30]
mov qword [rbp - 0x38], r14
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 0
lea r8, [rbp + 0x60]
mov rcx, rsi
call fcn.1400aff90
test rax, rax
je 0x1400bef39
mov rax, qword [rbp + 0x58]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rsi, r14
mov rdx, qword [rbp + 0x28]
test rdx, rdx
je 0x1400bef0f
mov rcx, qword [rbp + 0x20]
not rdx
shr rdx, 0x3f
call fcn.14001d460
cmp r14, 0xffffffffffffffff
je 0x1400bef1e
mov rcx, rsi
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 rax, qword [rbp + 0x58]
mov qword [rax + 8], r14
mov qword [rax + 0x10], rdx
mov qword [rax], 0
mov rdx, qword [rbp + 0x28]
test rdx, rdx
je 0x1400bef1e
not rdx
shr rdx, 0x3f
mov rcx, rsi
call fcn.14001d460
jmp 0x1400bef1e
test rdx, rdx
jne 0x1400bef72
call fcn.14001d5f0
jmp 0x1400befa9
call fcn.1400e3100
jmp 0x1400befa9
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 1
call fcn.14001d5f0
jmp 0x1400befa9
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 1
mov edx, 2
mov rcx, rdi
call fcn.1400e3100
ud2