Function at 0x140002b70
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rdi, rcx
mov qword [rbp - 9], rcx
xor r14d, r14d
mov dword [rbp - 0x29], r14d
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f], xmm0
mov ecx, 0x40
call fcn.140006d50
mov rsi, rax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x2f], 0x3e
mov qword [rbp + 0x37], 0x3f
movups xmm0, xmmword [str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400097a8]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x1400097b8]
movups xmmword [rax + 0x20], xmm0
movsd xmm0, qword [0x1400097c8]
movsd qword [rax + 0x30], xmm0
mov eax, dword [0x1400097d0]
mov dword [rsi + 0x38], eax
movzx eax, word [0x1400097d4]
mov word [rsi + 0x3c], ax
mov byte [rsi + 0x3e], r14b
xorps xmm1, xmm1
movdqu xmmword [rbp + 7], xmm1
mov qword [rbp + 0x17], r14
mov edx, 0x20
lea rcx, [rbp + 7]
call fcn.140002e10
mov rax, qword [rbp + 7]
lea rcx, [rax + 0x20]
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rbp + 0xf], rcx
mov qword [rbp - 1], r14
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140002def
mov r8, qword [rbp + 7]
mov edx, 0x20
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
xor edx, edx
mov rcx, qword [rbp - 1]
test eax, eax
je 0x140002dc8
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], send
mov byte [rdi], r14b
mov dword [rbp - 0x29], 1
mov edx, 0x20
mov rcx, rdi
call fcn.140005b00
mov qword [rdi + 0x10], r14
mov ebx, r14d
movabs r15, 0x842108421084211
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbp + 7]
movzx ecx, byte [rax + rbx]
mov rax, r15
mul rcx
mov eax, ecx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
imul rax, rax, 0x3e
sub rcx, rax
movzx r9d, byte [rcx + rsi]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140002d35
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140002d2a
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140002d3d
mov rcx, rdi
call fcn.140005c50
inc rbx
cmp rbx, 0x20
jb 0x140002ce0
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x140002d8f
mov rdx, qword [rbp + 0x17]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002d7e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002d7e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006d94
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], r14
mov edx, 0x40
mov rcx, rsi
call fcn.140006d94
mov rax, rdi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140006d30
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea rdx, str.Failed_to_generate_secure_random_bytes.
lea rcx, [rbp - 0x21]
call fcn.140002340
lea rdx, [0x14000b500]
lea rcx, [rbp - 0x21]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Failed_to_acquire_cryptographic_context.
lea rcx, [rbp - 0x21]
call fcn.140002340
lea rdx, [0x14000b500]
lea rcx, [rbp - 0x21]
call sub.VCRUNTIME140.dll__CxxThrowException
int3