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

Disassembly:
push rsi
push rdi
sub rsp, 0xe8
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x20
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x140127293
mov esi, eax
lea rdi, [rsp + 0x20]
and byte [rax - 0x77], cl
stc
mov edx, 0x20
call qword [sym.imp.advapi32.dll_SystemFunction036]
adc eax, 0x7d8d
test al, al
je 0x1401274d4
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
mov rax, qword [0x14019f2d0]
test rax, rax
je 0x1401274bb
and eax, 0x4000
xor ecx, ecx
lea rsi, [rsp + 0x80]
or rax, rcx
je 0x1401272e1
lea r8, [0x140169860]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140046250
jmp 0x140127306
movaps xmm0, xmmword [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x90], xmm1
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmm0, xmmword [rsi]
movaps xmm1, xmmword [rsi + 0x10]
movaps xmm2, xmmword [rsi + 0x20]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm1
and al, 0x50
movaps xmmword [rsp + 0x60], xmm2
movups xmmword [rsp + 0xb8], xmm0
movups xmmword [rsp + 0xc8], xmm1
movups xmmword [rsp + 0xd8], xmm2
and al, 0xd8
add byte [rax], al
add byte [rdi], cl
mov dh, 5
leave
jg 0x140127345
add byte [rdx + 0x170], bh
xor ecx, ecx
call fcn.1400f8ae0
test rax, rax
je 0x1401274c5
mov qword [rax], 1
mov qword [rax + 8], 1
xorps xmm0, xmm0
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax + 0x20], xmm0
movaps xmmword [rax + 0x30], xmm0
movaps xmmword [rax + 0x40], xmm0
movaps xmmword [rax + 0x50], xmm0
movaps xmmword [rax + 0x60], xmm0
movaps xmmword [rax + 0x70], xmm0
movaps xmmword [rax + 0x80], xmm0
movaps xmmword [rax + 0x90], xmm0
movaps xmmword [rax + 0xa0], xmm0
movaps xmmword [rax + 0xb0], xmm0
add byte [rdi], cl
sub dword [rax + 0xc0], eax
movaps xmmword [rax + 0xd0], xmm0
movaps xmmword [rax + 0xe0], xmm0
movaps xmmword [rax + 0xf0], xmm0
movaps xmmword [rax + 0x100], xmm0
mov qword [rax + 0x110], 0x40
movups xmm0, xmmword [rsp + 0xb0]
movups xmm1, xmmword [rsp + 0xc0]
movups xmm2, xmmword [rsp + 0xd0]
movups xmmword [rax + 0x118], xmm0
movups xmmword [rax + 0x128], xmm1
movups xmmword [rax + 0x138], xmm2
mov rcx, qword [rsp + 0xe0]
mov qword [rax + 0x148], rcx
mov qword [rax + 0x150], 0x10000
mov qword [rax + 0x158], 0x10000
mov qword [rax + 0x160], 0
mov ecx, dword [0x14019f30c]
mov rdx, qword gs:[0x58]
mov rdx, qword [rdx + rcx*8]
mov rcx, qword [rdx + 0x48]
mov r8, qword [rdx + 0x50]
mov qword [rdx + 0x48], 1
mov qword [rdx + 0x50], rax
cmp rcx, 1
je 0x140127496
test rcx, rcx
jne 0x1401274b0
mov eax, dword [0x14019f30c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x48]
lea rdx, [0x140043f90]
add rsp, 0xe8
pop rdi
pop rsi
jmp fcn.1400ed020
dec qword [r8]
jne 0x1401274b0
dec qword [r8 + 8]
jne 0x1401274b0
mov rcx, qword [0x14019f258]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0xe8
pop rdi
pop rsi
ret
call fcn.14012c8e0
jmp 0x1401272b7
mov ecx, 0x10
mov edx, 0x170
call fcn.140122190
movzx eax, byte [0x14019f308]
mov edx, 4
xor ecx, ecx
call fcn.1400f8ae0
test rax, rax
jne 0x1401274fb
mov ecx, 4
mov edx, 4
call fcn.140122190
and esi, 0x7fffffff
mov dword [rax], esi
mov qword [rsp + 0x20], rax
lea rax, [0x140158588]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x40], rdi
lea rax, [0x140046290]
mov qword [rsp + 0x48], rax
lea rax, str.could_not_initialize_thread_rng:
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
mov qword [rsp + 0x90], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rdx, str.C:Usersmilus.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rand_0.8.5_src_rngs_thread.rs
lea rcx, [rsp + 0x70]
call fcn.1401224d0
int3