Function at 0x140138b20
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, 0x428
movaps xmmword [rsp + 0x410], xmm6
mov rdi, r8
mov rbx, rdx
mov r15, rcx
lea rcx, [rsp + 0x308]
mov r8d, 0xa8
mov rdx, rdi
call sub.msvcrt.dll_memcpy
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmm2, xmmword [rdi + 0x20]
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x50], xmm2
mov rax, qword [rdi + 0x30]
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [rsp + 0x3a0]
movups xmmword [rsp + 0xc8], xmm0
movups xmm0, xmmword [rsp + 0x390]
movups xmmword [rsp + 0xb8], xmm0
movups xmm0, xmmword [rsp + 0x380]
movups xmmword [rsp + 0xa8], xmm0
movups xmm0, xmmword [rsp + 0x340]
movups xmm1, xmmword [rsp + 0x350]
movups xmm2, xmmword [rsp + 0x360]
movups xmm3, xmmword [rsp + 0x370]
movups xmmword [rsp + 0x98], xmm3
movups xmmword [rsp + 0x88], xmm2
movups xmmword [rsp + 0x78], xmm1
movups xmmword [rsp + 0x68], xmm0
mov rax, qword [rdi + 0x30]
mov qword [rsp + 0x170], rax
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmm2, xmmword [rdi + 0x20]
movaps xmmword [rsp + 0x160], xmm2
movaps xmmword [rsp + 0x150], xmm1
movaps xmmword [rsp + 0x140], xmm0
movups xmm0, xmmword [rsp + 0xc8]
movaps xmmword [rsp + 0x1e0], xmm0
movups xmm0, xmmword [rsp + 0xb8]
movaps xmmword [rsp + 0x1d0], xmm0
movups xmm0, xmmword [rsp + 0xa8]
movaps xmmword [rsp + 0x1c0], xmm0
movups xmm0, xmmword [rsp + 0x68]
movups xmm1, xmmword [rsp + 0x78]
movups xmm2, xmmword [rsp + 0x88]
movups xmm3, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x1b0], xmm3
movaps xmmword [rsp + 0x1a0], xmm2
movaps xmmword [rsp + 0x190], xmm1
movaps xmmword [rsp + 0x180], xmm0
mov rax, qword [rbx + 0x10]
mov rdx, qword [rax]
lea rsi, [rsp + 0x3e0]
lea r8, [rsp + 0x140]
mov rcx, rsi
call fcn.140131990
mov r8, qword [rbx + 8]
mov rax, qword [r8]
add r8, 8
mov rax, qword [rax + 8]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x130], xmm6
movaps xmmword [rsp + 0x120], xmm6
movaps xmmword [rsp + 0x110], xmm6
lea rcx, [rsp + 0x110]
mov rdx, rsi
call rax
mov rax, qword [rbx]
mov qword [rsp + 0x28], rbx
mov r13, qword [rbx + 0x18]
movaps xmmword [rsp + 0x2a0], xmm6
movaps xmmword [rsp + 0x290], xmm6
movaps xmmword [rsp + 0x280], xmm6
movaps xmmword [rsp + 0x270], xmm6
mov r14, qword [rax + 8]
cmp r14, 0x41
jae 0x140139041
test r14, r14
je 0x140138d92
lea rdi, [rsp + 0x270]
mov ebp, 0xffffffff
mov r12, r14
jmp 0x140138d38
add rdi, rsi
sub r12, rsi
je 0x140138d92
cmp r12, rbp
mov esi, 0xffffffff
cmovb rsi, r12
xor ecx, ecx
mov rdx, rdi
mov r8d, esi
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xbfffffff
jbe 0x140138d30
mov ebx, eax
mov rcx, rdi
mov edx, esi
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140138d30
add ebx, 0x80000000
cmove rbx, r14
je 0x140138d92
mov eax, ebx
test rax, rax
je 0x140138d92
mov eax, 0xa
lea rcx, [0x14028bdae]
jmp 0x140139016
movups xmm0, xmmword [r13 + 0x30]
movups xmm1, xmmword [r13 + 0x40]
movups xmm2, xmmword [r13 + 0x50]
movups xmm3, xmmword [r13 + 0x60]
movaps xmmword [rsp + 0x60], xmm3
movaps xmmword [rsp + 0x50], xmm2
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x30], xmm0
xorps xmm0, xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0xb8], xmm0
movups xmmword [rsp + 0xc8], xmm0
movups xmmword [rsp + 0xd8], xmm0
movups xmmword [rsp + 0xe8], xmm0
movups xmmword [rsp + 0xf8], xmm0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x270]
mov r8, r14
call fcn.140136060
mov rax, qword [rsp + 0x140]
mov r8, qword [rax + 8]
cmp r8, 0x31
jae 0x140139057
lea rdx, [rsp + 0x148]
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.140136060
lea rcx, [rsp + 0x308]
mov r8d, 0xd8
mov rdx, rsi
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x350]
mov r9, qword [rax + 0x10]
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x2f0], xmm0
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movaps xmm2, xmmword [rsp + 0x50]
movaps xmm3, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x2e0], xmm3
movaps xmmword [rsp + 0x2d0], xmm2
movaps xmmword [rsp + 0x2c0], xmm1
movaps xmmword [rsp + 0x2b0], xmm0
cmp r9, 0x81
jae 0x140139070
lea r8, [rsp + 0x360]
mov rax, qword [rsp + 0x358]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x228]
lea rdx, [rsp + 0x2b0]
call fcn.1401362f0
mov rdx, qword [rsp + 0x228]
mov rcx, qword [rsp + 0x230]
mov rax, qword [rsp + 0x238]
movups xmm0, xmmword [rsp + 0x240]
movaps xmmword [rsp + 0x1f0], xmm0
movups xmm0, xmmword [rsp + 0x250]
movaps xmmword [rsp + 0x200], xmm0
movups xmm0, xmmword [rsp + 0x260]
movaps xmmword [rsp + 0x210], xmm0
test rdx, rdx
je 0x140139016
movaps xmm0, xmmword [rsp + 0x1f0]
movaps xmm1, xmmword [rsp + 0x200]
movaps xmm2, xmmword [rsp + 0x210]
movups xmmword [r15 + 0x68], xmm2
movups xmmword [r15 + 0x58], xmm1
movups xmmword [r15 + 0x48], xmm0
movaps xmm0, xmmword [rsp + 0x110]
movaps xmm1, xmmword [rsp + 0x120]
movaps xmm2, xmmword [rsp + 0x130]
movups xmmword [r15 + 0x20], xmm2
movups xmmword [r15 + 0x10], xmm1
movups xmmword [r15], xmm0
movaps xmm0, xmmword [rsp + 0x180]
movaps xmm1, xmmword [rsp + 0x190]
movaps xmm2, xmmword [rsp + 0x1a0]
movaps xmm3, xmmword [rsp + 0x1b0]
movups xmmword [r15 + 0x90], xmm1
movups xmmword [r15 + 0xa0], xmm2
movups xmmword [r15 + 0xb0], xmm3
movaps xmm1, xmmword [rsp + 0x1c0]
movups xmmword [r15 + 0xc0], xmm1
movaps xmm1, xmmword [rsp + 0x1d0]
movups xmmword [r15 + 0xd0], xmm1
movaps xmm1, xmmword [rsp + 0x1e0]
movups xmmword [r15 + 0xe0], xmm1
movups xmmword [r15 + 0x80], xmm0
mov qword [r15 + 0x30], rdx
mov qword [r15 + 0x38], rcx
mov qword [r15 + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [r15 + 0x78], rax
jmp 0x140139025
mov qword [r15], rcx
mov qword [r15 + 8], rax
mov qword [r15 + 0x30], 0
movaps xmm6, xmmword [rsp + 0x410]
add rsp, 0x428
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.C:UsersUser.cargo_registry_srcgithub.com_1ecc6299db9ec823_ring_0.17.8_srcec_suite_becdsa_signing.rs
mov edx, 0x40
mov rcx, r14
call fcn.14002c6f0
ud2
lea rax, str.C:UsersUser.cargo_registry_srcgithub.com_1ecc6299db9ec823_ring_0.17.8_srceckeys.rs
mov edx, 0x30
mov rcx, r8
mov r8, rax
call fcn.14002c6f0
ud2
lea r8, str.C:UsersUser.cargo_registry_srcgithub.com_1ecc6299db9ec823_ring_0.17.8_srcdigest.rs
mov edx, pe_nt_image_headers64
mov rcx, r9
call fcn.14002c6f0
ud2