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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x108
movaps xmmword [rsp + 0xf0], xmm6
mov byte [rsp + 0x4f], r8b
mov qword [rsp + 0x50], rcx
mov byte [rsp + 0x4e], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rsp + 0x58], ecx
xor r15d, r15d
mov r13d, 8
mov bpl, 1
xorps xmm6, xmm6
lea r12, [rsp + 0x60]
jmp 0x140121e62
xor ebp, ebp
call fcn.14016542c
mov dword [rsp + 0x5c], eax
jmp 0x140121e7c
mov rax, qword [rsp + 0x60]
xchg qword [0x1401cc1f8], rax
mov rax, qword [0x1401cc1f8]
test rax, rax
jne 0x140121eb0
movaps xmmword [rsp + 0x60], xmm6
xor ecx, ecx
mov rdx, r12
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jns 0x140121e70
call sym._ZN3std3sys7windows4rand12fallback_rng17h44b42e5ca75f0d21E.llvm.3884465614687036520
jmp 0x140121e75
mov eax, 1
lock xadd qword [0x1401cc1f8], rax
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x90], rax
lea rax, [sym.core::fmt::num::imp::__impl_core::fmt::Display_for_u32_::fmt::h646611c06bcd23fa]
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0xa0], rax
lea rax, [sym.core::fmt::num::imp::__impl_core::fmt::Display_for_u64_::fmt::h754ed56ba9080889]
mov qword [rsp + 0xa8], rax
lea rax, [0x14018ed80]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 2
mov qword [rsp + 0x80], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 2
lea rcx, [rsp + 0xb8]
mov rdx, r12
call sym.alloc::fmt::format::format_inner::h250193fe327f0182
test rsi, rsi
sete al
or bpl, al
test bpl, 1
jne 0x140121f68
mov r8d, 1
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
mov rdi, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xc8]
lea rax, [rdi + rbx]
mov qword [rsp + 0xd0], rdi
mov qword [rsp + 0xd8], rax
mov word [rsp + 0xe0], 0
mov dword [rsp + 0xe8], 1
mov rcx, r12
lea rdx, [rsp + 0xd0]
call sym._ZN98__LT_alloc..vec..Vec_LT_T_GT__u20_as_u20_alloc..vec..spec_from_iter..SpecFromIter_LT_T_C_I_GT__GT_9from_iter17h5eab83fdd9
mov rbp, qword [rsp + 0x60]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov rcx, rbp
mov edx, dword [rsp + 0x58]
mov r8d, r13d
mov r9d, 1
call sub.KERNEL32.dll_CreateNamedPipeW
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1401220d6
lea ebx, [r15 + 1]
call sub.KERNEL32.dll_GetLastError
mov rcx, rax
shl rcx, 0x20
or rcx, 2
cmp ebx, 9
jg 0x140122066
cmp eax, 5
jne 0x140122030
mov r15d, ebx
jmp 0x14012203d
test r13d, r13d
je 0x140122066
xor r13d, r13d
cmp eax, 0x57
jne 0x140122066
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h5e3c89d72f40d3dcE.llvm.793214423941245703
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x140121e60
add rdx, rdx
mov r8d, 2
mov rcx, rbp
call sym.__rust_dealloc
jmp 0x140121e60
mov rax, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov qword [rax], 1
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x140122091
add rdx, rdx
mov r8d, 2
mov rcx, rbp
call sym.__rust_dealloc
test rsi, rsi
je 0x1401220a7
mov r8d, 1
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
cmp r14, 0xffffffffffffffff
je 0x1401220b5
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
mov rax, qword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0xf0]
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x1401220f1
add rdx, rdx
mov r8d, 2
mov rcx, rbp
call sym.__rust_dealloc
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x7c], 0
mov word [rsp + 0x84], 0
movzx eax, byte [rsp + 0x4e]
mov byte [rsp + 0x81], al
xor al, 1
mov byte [rsp + 0x80], al
mov dword [rsp + 0x78], 0
movzx eax, byte [rsp + 0x4f]
mov dword [rsp + 0x90], 0x18
mov qword [rsp + 0x98], 0
mov dword [rsp + 0xa0], eax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x60]
mov rcx, rdi
mov rdx, rbx
call sym.std::sys::windows::fs::File::open::h309047a89ae9a474
test rax, rax
je 0x140122195
mov rax, qword [rsp + 0x50]
mov qword [rax + 8], rdx
mov qword [rax], 1
test rsi, rsi
jne 0x140122096
jmp 0x1401220a7
mov rax, qword [rsp + 0x50]
mov qword [rax + 8], r14
mov qword [rax + 0x10], rdx
mov qword [rax], 0
test rsi, rsi
je 0x1401220b5
mov r8d, 1
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
jmp 0x1401220b5