Function at 0x140296ec0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xa0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov eax, dword [0x14042c614]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x88]
test rax, rax
je 0x140296f05
cmp eax, 1
je 0x140296f32
xor eax, eax
jmp 0x140297150
mov eax, dword [0x14042c614]
mov rcx, qword gs:[0x58]
mov rsi, qword [rcx + rax*8]
lea rcx, [rsi + 0x80]
lea rdx, [0x140297250]
call fcn.1402fe0b0
mov byte [rsi + 0x88], 1
xorps xmm0, xmm0
movaps xmmword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x60], xmm0
lea rsi, [rbp - 0x60]
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x20
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x140296f6d
mov edi, eax
xor edi, 0x80000000
jne 0x14029716c
movaps xmm0, xmmword [rbp - 0x60]
movaps xmm1, xmmword [rbp - 0x50]
movaps xmmword [rbp], xmm1
movaps xmmword [rbp - 0x10], xmm0
mov rax, qword [0x14042c5f8]
test rax, rax
je 0x140296fad
test eax, 0x4000
jne 0x140296fb9
mov rsi, qword [rbp - 0x10]
movaps xmm0, xmmword [rbp - 0x10]
movaps xmm1, xmmword [rbp]
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x30], xmm1
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
jmp 0x140296fd1
call fcn.14035d230
test eax, 0x4000
je 0x140296f90
lea r8, [0x1403a8900]
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x10]
call fcn.140297280
mov rsi, qword [rbp - 0x40]
mov rax, qword [rbp - 0x18]
mov qword [rbp + 0x10], rax
movups xmm0, xmmword [rbp - 0x38]
movups xmm1, xmmword [rbp - 0x28]
movaps xmmword [rbp], xmm1
movaps xmmword [rbp - 0x10], xmm0
movzx eax, byte [0x14042c610]
mov rcx, qword [0x14042c578]
test rcx, rcx
jne 0x140297015
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x14029715b
mov rcx, rax
mov qword [0x14042c578], rax
mov r8d, 0x170
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14029715b
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
movaps xmmword [rax + 0xc0], xmm0
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
mov qword [rax + 0x120], rsi
movaps xmm0, xmmword [rbp - 0x10]
movaps xmm1, xmmword [rbp]
movups xmmword [rax + 0x128], xmm0
movups xmmword [rax + 0x138], xmm1
mov rcx, qword [rbp + 0x10]
mov qword [rax + 0x148], rcx
mov qword [rax + 0x150], 0x10000
mov qword [rax + 0x158], 0x10000
mov qword [rax + 0x160], 0
mov ecx, dword [0x14042c614]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov r8, qword [rcx + 0x80]
mov qword [rcx + 0x80], rax
test r8, r8
je 0x140297149
dec qword [r8]
jne 0x14029712d
dec qword [r8 + 8]
jne 0x14029712d
mov rcx, qword [0x14042c578]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [0x14042c614]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rax, [rax + 0x80]
jmp 0x140297150
lea rax, [rcx + 0x80]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x10
mov edx, 0x170
call fcn.140352060
ud2
movzx eax, byte [0x14042c610]
mov rcx, qword [0x14042c578]
test rcx, rcx
jne 0x140297194
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x1402971a7
mov rcx, rax
mov qword [0x14042c578], rax
mov r8d, 4
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
jne 0x1402971b8
mov ecx, 4
mov edx, 4
call fcn.140352060
ud2
mov dword [rax], edi
mov qword [rbp - 0x60], rax
lea rax, [0x14039a310]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x10], rsi
lea rax, [0x140299530]
mov qword [rbp - 8], rax
lea rax, str.could_not_initialize_thread_rng:
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
mov qword [rbp - 0x20], 0
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
lea rdx, str.C:Usersidofi.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rand_0.8.4_src_rngs_thread.rs
lea rcx, [rbp - 0x40]
call fcn.140354e30
ud2