Function at 0x1400512c0
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, 0x3d8
movaps xmmword [rsp + 0x3c0], xmm6
mov rsi, rdx
mov rax, qword [r8 + 0x30]
mov qword [rsp + 0x90], rax
movups xmm0, xmmword [r8]
movups xmm1, xmmword [r8 + 0x10]
movups xmm2, xmmword [r8 + 0x20]
movaps xmmword [rsp + 0x80], xmm2
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
mov r11, qword [rsp + 0x60]
mov rdx, qword [r11 + 0x20]
cmp rdx, 0x31
jae 0x14005182e
mov r10, rcx
mov rax, qword [rsi + 0x10]
mov r9, qword [rax]
mov rcx, qword [r9 + 0x18]
cmp rcx, 7
jae 0x140051842
mov qword [rsp + 0x48], r8
lea rax, [rcx*8]
cmp rax, rdx
jne 0x140051802
mov qword [rsp + 0x58], r11
mov qword [rsp + 0x38], r10
lea r8, [rsp + 0x68]
sub r9, 0xffffffffffffff80
xorps xmm6, xmm6
movaps xmmword [rsp + 0x120], xmm6
movaps xmmword [rsp + 0x110], xmm6
movaps xmmword [rsp + 0x100], xmm6
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x100]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rcx, r8
xor r8d, r8d
call fcn.1400499c0
test al, al
jne 0x140051802
movaps xmm0, xmmword [rsp + 0x100]
movaps xmm1, xmmword [rsp + 0x110]
movaps xmm2, xmmword [rsp + 0x120]
movaps xmmword [rsp + 0x360], xmm2
movaps xmmword [rsp + 0x350], xmm1
movaps xmmword [rsp + 0x340], xmm0
mov r8, qword [rsi + 8]
mov rax, qword [r8]
mov rax, qword [rax + 8]
movaps xmmword [rsp + 0x120], xmm6
movaps xmmword [rsp + 0x110], xmm6
movaps xmmword [rsp + 0x100], xmm6
add r8, 0x10
lea rcx, [rsp + 0x100]
lea rdx, [rsp + 0x340]
call rax
movaps xmm0, xmmword [rsp + 0x100]
movaps xmm1, xmmword [rsp + 0x110]
movaps xmm2, xmmword [rsp + 0x120]
movaps xmmword [rsp + 0xc0], xmm2
movaps xmmword [rsp + 0xb0], xmm1
movaps xmmword [rsp + 0xa0], xmm0
mov rax, qword [rsi]
mov qword [rsp + 0x50], rsi
mov r14, qword [rsi + 0x18]
movaps xmmword [rsp + 0x330], xmm6
movaps xmmword [rsp + 0x320], xmm6
movaps xmmword [rsp + 0x310], xmm6
movaps xmmword [rsp + 0x300], xmm6
mov rcx, qword [rax + 0x20]
cmp rcx, 0x41
jae 0x140051853
mov qword [rsp + 0x40], rcx
test rcx, rcx
je 0x140051508
lea r12, [rsp + 0x300]
mov ebx, 0xffffffff
mov rdi, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov rsi, qword [sym.imp.advapi32.dll_SystemFunction036]
mov r15, qword [rsp + 0x40]
jmp 0x1400514b8
add r12, r13
sub r15, r13
je 0x140051508
cmp r15, rbx
mov r13d, 0xffffffff
cmovb r13, r15
xor ecx, ecx
mov rdx, r12
mov r8d, r13d
mov r9d, 2
call rdi
cmp eax, 0xbfffffff
jbe 0x1400514b0
mov ebp, eax
mov rcx, r12
mov edx, r13d
call rsi
test al, al
jne 0x1400514b0
test ebp, 0x7fffffff
je 0x140051508
mov eax, 0xa
lea rcx, str.RNG_failed
mov r8, qword [rsp + 0x38]
jmp 0x1400517d7
movups xmm0, xmmword [r14 + 0x30]
movups xmm1, xmmword [r14 + 0x40]
movups xmm2, xmmword [r14 + 0x50]
movups xmm3, xmmword [r14 + 0x60]
movups xmmword [rsp + 0x218], xmm3
movups xmmword [rsp + 0x208], xmm2
movups xmmword [rsp + 0x1f8], xmm1
movups xmmword [rsp + 0x1e8], xmm0
xorps xmm0, xmm0
movups xmmword [rsp + 0x230], xmm0
movups xmmword [rsp + 0x240], xmm0
movups xmmword [rsp + 0x250], xmm0
movups xmmword [rsp + 0x260], xmm0
movups xmmword [rsp + 0x270], xmm0
movups xmmword [rsp + 0x280], xmm0
movups xmmword [rsp + 0x290], xmm0
movups xmmword [rsp + 0x2a0], xmm0
mov qword [rsp + 0x1e0], r14
mov qword [rsp + 0x228], 0
mov qword [rsp + 0x2b0], 0
lea rcx, [rsp + 0x1e0]
lea rdx, [rsp + 0x300]
mov r8, qword [rsp + 0x40]
call fcn.14004e550
mov rax, qword [rsp + 0x58]
mov r8, qword [rax + 0x20]
cmp r8, 0x31
jae 0x140051864
lea r15, [rsp + 0x1e0]
mov rcx, r15
lea rdx, [rsp + 0x68]
call fcn.14004e550
lea rcx, [rsp + 0x100]
mov r8d, 0xd8
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x100]
mov r9, qword [rax + 0x20]
movups xmm0, xmmword [rsp + 0x220]
movaps xmmword [rsp + 0x3b0], xmm0
movups xmm0, xmmword [rsp + 0x1e0]
movups xmm1, xmmword [rsp + 0x1f0]
movups xmm2, xmmword [rsp + 0x200]
movups xmm3, xmmword [rsp + 0x210]
movaps xmmword [rsp + 0x3a0], xmm3
movaps xmmword [rsp + 0x390], xmm2
movaps xmmword [rsp + 0x380], xmm1
movaps xmmword [rsp + 0x370], xmm0
cmp r9, 0x81
jae 0x14005187b
lea r8, [rsp + 0x150]
mov rax, qword [rsp + 0x1d0]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x2b8]
lea rdx, [rsp + 0x370]
call fcn.14004e870
mov rdx, qword [rsp + 0x2b8]
mov rcx, qword [rsp + 0x2c0]
mov rax, qword [rsp + 0x2c8]
movups xmm0, xmmword [rsp + 0x2d0]
movaps xmmword [rsp + 0xd0], xmm0
movups xmm0, xmmword [rsp + 0x2e0]
movaps xmmword [rsp + 0xe0], xmm0
movups xmm0, xmmword [rsp + 0x2f0]
movaps xmmword [rsp + 0xf0], xmm0
test rdx, rdx
mov r8, qword [rsp + 0x38]
mov r10, qword [rsp + 0x50]
je 0x1400517d7
mov r9, qword [rsp + 0x48]
add r9, 0x38
movaps xmm0, xmmword [rsp + 0xd0]
movaps xmm1, xmmword [rsp + 0xe0]
movaps xmm2, xmmword [rsp + 0xf0]
movaps xmmword [rsp + 0x120], xmm2
movaps xmmword [rsp + 0x110], xmm1
movaps xmmword [rsp + 0x100], xmm0
mov qword [r8], rdx
mov qword [r8 + 8], rcx
mov qword [r8 + 0x10], rax
movaps xmm0, xmmword [rsp + 0x100]
movaps xmm1, xmmword [rsp + 0x110]
movaps xmm2, xmmword [rsp + 0x120]
movups xmmword [r8 + 0x18], xmm0
movups xmmword [r8 + 0x28], xmm1
movups xmmword [r8 + 0x38], xmm2
mov qword [r8 + 0x48], r10
movaps xmm0, xmmword [rsp + 0xa0]
movaps xmm1, xmmword [rsp + 0xb0]
movaps xmm2, xmmword [rsp + 0xc0]
movups xmmword [r8 + 0x50], xmm0
movups xmmword [r8 + 0x60], xmm1
movups xmmword [r8 + 0x70], xmm2
movups xmm0, xmmword [r9]
movups xmm1, xmmword [r9 + 0x10]
movups xmm2, xmmword [r9 + 0x20]
movups xmm3, xmmword [r9 + 0x30]
movups xmmword [r8 + 0x80], xmm0
movups xmmword [r8 + 0x90], xmm1
movups xmmword [r8 + 0xa0], xmm2
movups xmmword [r8 + 0xb0], xmm3
movups xmm0, xmmword [r9 + 0x40]
movups xmmword [r8 + 0xc0], xmm0
movups xmm0, xmmword [r9 + 0x50]
movups xmmword [r8 + 0xd0], xmm0
movups xmm0, xmmword [r9 + 0x60]
movups xmmword [r8 + 0xe0], xmm0
jmp 0x1400517e6
mov qword [r8 + 8], rcx
mov qword [r8 + 0x10], rax
mov qword [r8], 0
movaps xmm6, xmmword [rsp + 0x3c0]
add rsp, 0x3d8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_ring_0.17.8_srcec_suite_bprivate_key.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x1401185c9]
lea r9, method..virtual_0
lea r8, [rsp + 0x100]
mov edx, 0x2b
call fcn.1400efe30
lea r8, str.C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_ring_0.17.8_srceckeys.rs
mov rcx, rdx
mov edx, 0x30
call fcn.1400efbb0
lea r8, str.C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_ring_0.17.8_srcec_suite_bops.rs
mov edx, 6
call fcn.1400efbb0
lea r8, [0x140107e58]
mov edx, 0x40
call fcn.1400efbb0
lea rax, str.C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_ring_0.17.8_srceckeys.rs
mov edx, 0x30
mov rcx, r8
mov r8, rax
call fcn.1400efbb0
lea r8, str.C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_ring_0.17.8_srcdigest.rs
mov edx, 0x80
mov rcx, r9
call fcn.1400efbb0
int3