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

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xd0
lea rbp, [rsp + 0x80]
movdqa xmmword [rbp + 0x40], xmm7
movdqa xmmword [rbp + 0x30], xmm6
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov eax, dword [0x140262334]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x50]
test eax, eax
je 0x140070e3e
cmp eax, 1
je 0x140070e6b
xor eax, eax
jmp 0x1400710b8
mov eax, dword [0x140262334]
mov rcx, qword gs:[0x58]
mov rsi, qword [rcx + rax*8]
lea rcx, [rsi + 0x48]
lea rdx, [0x1400711d0]
call fcn.140157f00
mov byte [rsi + 0x50], 1
pxor xmm0, xmm0
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmmword [rbp - 0x60], xmm0
lea rdx, [rbp - 0x60]
xor ecx, ecx
mov r8d, 0x20
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x140070ebc
mov esi, eax
lea rdi, [rbp - 0x60]
mov rcx, rdi
mov edx, 0x20
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
jne 0x140070ebc
and esi, 0x7fffffff
jne 0x1400710da
movdqa xmm7, xmmword [rbp - 0x60]
movdqa xmm6, xmmword [rbp - 0x50]
movdqu xmmword [rbp - 0x30], xmm6
movdqu xmmword [rbp - 0x40], xmm7
mov rax, qword [0x1402622f8]
test rax, rax
je 0x140070f1c
test eax, 0x4000
jne 0x140070f28
pshufd xmm0, xmm7, 0xee
pshufd xmm1, xmm6, 0xee
movq rsi, xmm7
movq rax, xmm0
movq rcx, xmm6
movq rdx, xmm1
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], rax
mov qword [rbp], rcx
mov qword [rbp + 8], rdx
pxor xmm0, xmm0
movdqa xmmword [rbp + 0x10], xmm0
jmp 0x140070f40
call fcn.1401a1050
test eax, 0x4000
je 0x140070ee3
lea r8, [0x1401e1818]
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x40]
call fcn.1400734a0
mov rsi, qword [rbp - 0x10]
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 8]
mov rcx, qword [rbp]
mov rdx, qword [rbp + 8]
mov qword [rbp - 0x30], rdx
mov rdx, qword [rbp + 0x10]
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rcx
movzx eax, byte [0x140262330]
mov edx, 0x170
xor ecx, ecx
call fcn.140162ad0
test rax, rax
je 0x1400710cb
mov qword [rax], 1
mov qword [rax + 8], 1
pxor xmm0, xmm0
movdqa xmmword [rax + 0x10], xmm0
movdqa xmmword [rax + 0x20], xmm0
movdqa xmmword [rax + 0x30], xmm0
movdqa xmmword [rax + 0x40], xmm0
movdqa xmmword [rax + 0x50], xmm0
movdqa xmmword [rax + 0x60], xmm0
movdqa xmmword [rax + 0x70], xmm0
movdqa xmmword [rax + 0x80], xmm0
movdqa xmmword [rax + 0x90], xmm0
movdqa xmmword [rax + 0xa0], xmm0
movdqa xmmword [rax + 0xb0], xmm0
movdqa xmmword [rax + 0xc0], xmm0
movdqa xmmword [rax + 0xd0], xmm0
movdqa xmmword [rax + 0xe0], xmm0
movdqa xmmword [rax + 0xf0], xmm0
movdqa xmmword [rax + 0x100], xmm0
mov qword [rax + 0x110], 0x40
mov qword [rax + 0x120], rsi
movaps xmm0, xmmword [rbp - 0x40]
movaps xmm1, xmmword [rbp - 0x30]
movups xmmword [rax + 0x128], xmm0
movups xmmword [rax + 0x138], xmm1
mov rcx, qword [rbp - 0x20]
mov qword [rax + 0x148], rcx
mov qword [rax + 0x150], 0x10000
mov qword [rax + 0x158], 0x10000
mov qword [rax + 0x160], 0
mov ecx, dword [0x140262334]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov r8, qword [rcx + 0x48]
mov qword [rcx + 0x48], rax
test r8, r8
je 0x1400710b1
dec qword [r8]
jne 0x140071095
dec qword [r8 + 8]
jne 0x140071095
mov rcx, qword [0x140262270]
xor edx, edx
call fcn.140195ea0
mov eax, dword [0x140262334]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rax, [rax + 0x48]
jmp 0x1400710b8
lea rax, [rcx + 0x48]
movaps xmm6, xmmword [rbp + 0x30]
movaps xmm7, xmmword [rbp + 0x40]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x10
mov edx, 0x170
call fcn.140197e40
movzx eax, byte [0x140262330]
mov edx, 4
xor ecx, ecx
call fcn.140162ad0
test rax, rax
jne 0x140071101
mov ecx, 4
mov edx, 4
call fcn.140197e40
mov dword [rax], esi
mov qword [rbp - 0x60], rax
lea rax, [0x1401d0b58]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x40], rdi
lea rax, [0x1400734e0]
mov qword [rbp - 0x38], rax
lea rax, str.could_not_initialize_thread_rng:
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 1
mov qword [rbp + 0x10], 0
lea rax, [rbp - 0x40]
mov qword [rbp], rax
mov qword [rbp + 8], 1
lea rdx, str.C:Users_fhnir.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rand_0.8.5_src_rngs_thread.rs
lea rcx, [rbp - 0x10]
call fcn.140198250
ud2