Function at 0x14011a290
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x398
movaps xmmword [rsp + 0x380], xmm6
mov rdi, rdx
mov rax, qword [r8 + 0x30]
mov qword [rsp + 0x80], rax
movups xmm0, xmmword [r8]
movups xmm1, xmmword [r8 + 0x10]
movups xmm2, xmmword [r8 + 0x20]
movaps xmmword [rsp + 0x70], xmm2
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
mov r10, qword [rsp + 0x50]
mov rdx, qword [r10 + 0x20]
cmp rdx, 0x31
jae 0x14011a76b
mov rsi, rcx
mov rax, qword [rdi + 0x10]
mov r9, qword [rax]
mov rcx, qword [r9 + 0x18]
cmp rcx, 7
jae 0x14011a77f
mov qword [rsp + 0x38], r8
lea rax, [rcx*8]
cmp rax, rdx
jne 0x14011a73f
mov qword [rsp + 0x48], r10
lea r8, [rsp + 0x58]
sub r9, 0xffffffffffffff80
xorps xmm6, xmm6
movaps xmmword [rsp + 0x240], xmm6
movaps xmmword [rsp + 0x230], xmm6
movaps xmmword [rsp + 0x220], xmm6
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x220]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rcx, r8
xor r8d, r8d
call fcn.1401129a0
test al, al
jne 0x14011a73f
movaps xmm0, xmmword [rsp + 0x220]
movaps xmm1, xmmword [rsp + 0x230]
movaps xmm2, xmmword [rsp + 0x240]
movaps xmmword [rsp + 0x320], xmm2
movaps xmmword [rsp + 0x310], xmm1
movaps xmmword [rsp + 0x300], xmm0
mov r8, qword [rdi + 8]
mov rax, qword [r8]
mov rax, qword [rax + 8]
movaps xmmword [rsp + 0x240], xmm6
movaps xmmword [rsp + 0x230], xmm6
movaps xmmword [rsp + 0x220], xmm6
add r8, 0x10
lea rcx, [rsp + 0x220]
lea rdx, [rsp + 0x300]
call rax
movaps xmm0, xmmword [rsp + 0x220]
movaps xmm1, xmmword [rsp + 0x230]
movaps xmm2, xmmword [rsp + 0x240]
movaps xmmword [rsp + 0xb0], xmm2
movaps xmmword [rsp + 0xa0], xmm1
movaps xmmword [rsp + 0x90], xmm0
mov rax, qword [rdi]
mov qword [rsp + 0x40], rdi
mov r14, qword [rdi + 0x18]
movaps xmmword [rsp + 0x210], xmm6
movaps xmmword [rsp + 0x200], xmm6
movaps xmmword [rsp + 0x1f0], xmm6
movaps xmmword [rsp + 0x1e0], xmm6
mov rbx, qword [rax + 0x20]
cmp rbx, 0x41
jae 0x14011a790
test rbx, rbx
je 0x14011a4b9
lea r12, [rsp + 0x1e0]
mov edi, 0xffffffff
mov r15, rbx
jmp 0x14011a468
add r12, r13
sub r15, r13
je 0x14011a4b9
cmp r15, rdi
mov r13d, 0xffffffff
cmovb r13, r15
xor ecx, ecx
mov rdx, r12
mov r8d, r13d
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xbfffffff
jbe 0x14011a460
mov ebp, eax
mov rcx, r12
mov edx, r13d
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x14011a460
test ebp, 0x7fffffff
je 0x14011a4b9
lea rax, str.RNG_failed
mov ecx, 0xa
jmp 0x14011a714
movups xmm0, xmmword [r14 + 0x30]
movups xmm1, xmmword [r14 + 0x40]
movups xmm2, xmmword [r14 + 0x50]
movups xmm3, xmmword [r14 + 0x60]
movups xmmword [rsp + 0xf8], xmm3
movups xmmword [rsp + 0xe8], xmm2
movups xmmword [rsp + 0xd8], xmm1
movups xmmword [rsp + 0xc8], xmm0
xorps xmm0, xmm0
movups xmmword [rsp + 0x110], xmm0
movups xmmword [rsp + 0x120], xmm0
movups xmmword [rsp + 0x130], xmm0
movups xmmword [rsp + 0x140], xmm0
movups xmmword [rsp + 0x150], xmm0
movups xmmword [rsp + 0x160], xmm0
movups xmmword [rsp + 0x170], xmm0
movups xmmword [rsp + 0x180], xmm0
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x190], 0
lea rcx, [rsp + 0xc0]
lea rdx, [rsp + 0x1e0]
mov r8, rbx
call fcn.1401175a0
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 0x20]
cmp r8, 0x31
jae 0x14011a7a4
lea r15, [rsp + 0xc0]
mov rcx, r15
lea rdx, [rsp + 0x58]
call fcn.1401175a0
lea rcx, [rsp + 0x220]
mov r8d, 0xd8
mov rdx, r15
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x220]
mov r9, qword [rax + 0x20]
movups xmm0, xmmword [rsp + 0x100]
movaps xmmword [rsp + 0x370], xmm0
movups xmm0, xmmword [rsp + 0xc0]
movups xmm1, xmmword [rsp + 0xd0]
movups xmm2, xmmword [rsp + 0xe0]
movups xmm3, xmmword [rsp + 0xf0]
movaps xmmword [rsp + 0x360], xmm3
movaps xmmword [rsp + 0x350], xmm2
movaps xmmword [rsp + 0x340], xmm1
movaps xmmword [rsp + 0x330], xmm0
cmp r9, 0x81
jae 0x14011a7bb
lea r8, [rsp + 0x270]
mov rax, qword [rsp + 0x2f0]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x198]
lea rdx, [rsp + 0x330]
call fcn.140117900
mov rdx, qword [rsp + 0x198]
mov rax, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x1a8]
test rdx, rdx
mov r8, qword [rsp + 0x40]
je 0x14011a714
mov r9, qword [rsp + 0x38]
add r9, 0x38
movups xmm0, xmmword [rsp + 0x1b0]
movups xmm1, xmmword [rsp + 0x1c0]
movups xmm2, xmmword [rsp + 0x1d0]
movups xmmword [rsi + 0x38], xmm2
movups xmmword [rsi + 0x28], xmm1
movups xmmword [rsi + 0x18], xmm0
movups xmm0, xmmword [r9 + 0x60]
movups xmmword [rsi + 0xe0], xmm0
movups xmm0, xmmword [r9 + 0x50]
movups xmmword [rsi + 0xd0], xmm0
movups xmm0, xmmword [r9 + 0x40]
movups xmmword [rsi + 0xc0], xmm0
movups xmm0, xmmword [r9]
movups xmm1, xmmword [r9 + 0x10]
movups xmm2, xmmword [r9 + 0x20]
movups xmm3, xmmword [r9 + 0x30]
movups xmmword [rsi + 0xb0], xmm3
movups xmmword [rsi + 0xa0], xmm2
movups xmmword [rsi + 0x90], xmm1
movups xmmword [rsi + 0x80], xmm0
movaps xmm0, xmmword [rsp + 0x90]
movaps xmm1, xmmword [rsp + 0xa0]
movaps xmm2, xmmword [rsp + 0xb0]
movups xmmword [rsi + 0x50], xmm0
movups xmmword [rsi + 0x60], xmm1
movups xmmword [rsi + 0x70], xmm2
mov qword [rsi], rdx
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x48], r8
jmp 0x14011a723
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rcx
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x380]
add rsp, 0x398
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [0x140268448]
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, [0x1402671a8]
lea r8, [rsp + 0x220]
mov edx, 0x2b
call fcn.14002b190
lea r8, str.C:UsersUser.cargo_registry_srcindex.crates.io_6f17d22bba15001f_ring_0.17.8_srceckeys.rs
mov rcx, rdx
mov edx, 0x30
call fcn.140029060
lea r8, str.C:UsersUser.cargo_registry_srcindex.crates.io_6f17d22bba15001f_ring_0.17.8_srcec_suite_bops.rs
mov edx, 6
call fcn.140029060
lea r8, [0x1402686f0]
mov edx, 0x40
mov rcx, rbx
call fcn.140029060
lea rax, str.C:UsersUser.cargo_registry_srcindex.crates.io_6f17d22bba15001f_ring_0.17.8_srceckeys.rs
mov edx, 0x30
mov rcx, r8
mov r8, rax
call fcn.140029060
lea r8, [0x140268010]
mov edx, pe_nt_image_headers64
mov rcx, r9
call fcn.140029060
int3