Function at 0x140077017
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov eax, 0x1088
call fcn.140186f70
sub rsp, rax
mov rsi, rcx
lea rdi, [rsp + 0x68]
mov r8d, 0x1020
mov rcx, rdi
xor edx, edx
call sub.msvcrt.dll_memset
mov ebx, 0x800
mov r14d, 0xffffffff
test rbx, rbx
je 0x1400770ca
cmp rbx, r14
mov edx, 0xffffffff
cmovb rdx, rbx
sub rbx, rdx
lea r15, [rdi + rdx]
mov rcx, rdi
call sub.ADVAPI32.dll_SystemFunction036
mov rdi, r15
test al, al
jne 0x140077050
call fcn.140073043
lea rcx, [rsp + 0x20]
mov qword [rcx], rax
lea rax, [rsp + 0x28]
mov qword [rax], rcx
lea rdx, [0x1402bf218]
lea rcx, [rsp + 0x38]
mov qword [rcx], rdx
mov edx, 1
mov qword [rcx + 8], rdx
and qword [rcx + 0x20], 0
lea r8, [fcn.140155e70]
mov qword [rax + 8], r8
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rdx
lea rdx, str._.cargo_registry_src_index.crates.io_6f17d22bba15001f_rand_0.4.6_src_os.rscouldnt_generate_random_bytes:
call fcn.14003c090
ud2
xorps xmm0, xmm0
movups xmmword [rsp + 0x1078], xmm0
movups xmmword [rsp + 0x1068], xmm0
movabs rcx, 0x647c4677a2884b7c
movabs rax, 0xb9f8b322c73ac862
movabs rdx, 0x8c0ea5053d4712a0
movabs r9, 0xb29b2e824a595524
movabs r8, 0x82f053db8355e0ce
movabs r11, 0x48fe4a0fa5a09315
movabs r10, 0xae985bf2cbfc89ed
movabs rdi, 0x98f5704f6c44c0ab
mov ebx, 0x838
cmp rbx, 0x1038
je 0x140077236
add rcx, qword [rsp + rbx - 0x7d0]
add rax, qword [rsp + rbx - 0x7c8]
add rdx, qword [rsp + rbx - 0x7c0]
add r9, qword [rsp + rbx - 0x7b8]
add r11, qword [rsp + rbx - 0x7a8]
add r8, qword [rsp + rbx - 0x7b0]
add r10, qword [rsp + rbx - 0x7a0]
add rdi, qword [rsp + rbx - 0x798]
sub rcx, r8
mov r14, rdi
shr r14, 9
xor r14, r11
add rdi, rcx
sub rax, r14
lea r11, [rax + rcx]
shl rcx, 9
xor rcx, r10
sub rdx, rcx
mov r15, rax
shr r15, 0x17
xor r15, rdi
add rax, rdx
sub r9, r15
lea r10, [r9 + rdx]
shl rdx, 0xf
mov r12, rdx
xor r12, r11
sub r8, r12
lea rdi, [r8 + r9]
shr r9, 0xe
xor rax, r9
sub r14, rax
lea r9, [r14 + r8]
shl r8, 0x14
mov rdx, r8
xor rdx, r10
sub rcx, rdx
lea r11, [rcx + r14]
shr r14, 0x11
xor r14, rdi
sub r15, r14
lea r10, [r15 + rcx]
shl rcx, 0xe
xor rcx, r9
mov qword [rsp + rbx + 0x30], r12
mov qword [rsp + rbx + 0x38], rax
mov qword [rsp + rbx + 0x40], rdx
mov qword [rsp + rbx + 0x48], r14
mov qword [rsp + rbx + 0x50], rcx
mov qword [rsp + rbx + 0x58], r11
mov qword [rsp + rbx + 0x60], r10
mov qword [rsp + rbx + 0x68], r15
add rbx, 0x40
mov rdi, r15
mov r8, rcx
mov r9, r14
mov rcx, r12
jmp 0x140077132
mov ebx, 0x838
cmp rbx, 0x1038
je 0x140077327
add rcx, qword [rsp + rbx + 0x30]
add rax, qword [rsp + rbx + 0x38]
add rdx, qword [rsp + rbx + 0x40]
add r9, qword [rsp + rbx + 0x48]
add r11, qword [rsp + rbx + 0x58]
add r8, qword [rsp + rbx + 0x50]
add r10, qword [rsp + rbx + 0x60]
add rdi, qword [rsp + rbx + 0x68]
sub rcx, r8
mov r14, rdi
shr r14, 9
xor r14, r11
add rdi, rcx
sub rax, r14
lea r11, [rax + rcx]
shl rcx, 9
xor rcx, r10
sub rdx, rcx
mov r15, rax
shr r15, 0x17
xor r15, rdi
add rax, rdx
sub r9, r15
lea r10, [r9 + rdx]
shl rdx, 0xf
mov r12, rdx
xor r12, r11
sub r8, r12
lea rdi, [r8 + r9]
shr r9, 0xe
xor rax, r9
sub r14, rax
lea r9, [r14 + r8]
shl r8, 0x14
mov rdx, r8
xor rdx, r10
sub rcx, rdx
lea r11, [rcx + r14]
shr r14, 0x11
xor r14, rdi
sub r15, r14
lea r10, [r15 + rcx]
shl rcx, 0xe
xor rcx, r9
mov qword [rsp + rbx + 0x30], r12
mov qword [rsp + rbx + 0x38], rax
mov qword [rsp + rbx + 0x40], rdx
mov qword [rsp + rbx + 0x48], r14
mov qword [rsp + rbx + 0x50], rcx
mov qword [rsp + rbx + 0x58], r11
mov qword [rsp + rbx + 0x60], r10
mov qword [rsp + rbx + 0x68], r15
add rbx, 0x40
mov rdi, r15
mov r8, rcx
mov r9, r14
mov rcx, r12
jmp 0x14007723b
lea rdi, [rsi + 8]
lea rbx, [rsp + 0x68]
mov rcx, rbx
call fcn.14007737e
mov r8d, 0x1020
mov rcx, rdi
mov rdx, rbx
call sub.msvcrt.dll_memcpy
and qword [rsi], 0
add rsp, 0x1088
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret