Function at 0x14000ad60
Capabilities:
Access peb ldr_data
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov eax, dword [0x140056c24]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x20]
test eax, eax
je 0x14000ad93
cmp eax, 1
je 0x14000adc0
xor eax, eax
jmp 0x14000aff2
mov eax, dword [0x140056c24]
mov rcx, qword gs:[0x58]
mov rsi, qword [rcx + rax*8]
lea rcx, [rsi + 0x18]
lea rdx, [0x14000b0b0]
call fcn.140016020
mov byte [rsi + 0x20], 1
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x60]
xor ecx, ecx
mov r8d, 0x20
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x14000ae12
mov esi, eax
lea rdi, [rsp + 0x60]
mov rcx, rdi
mov edx, 0x20
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
jne 0x14000ae12
and esi, 0x7fffffff
jne 0x14000b00b
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x90], xmm1
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [0x140056c18]
test rax, rax
je 0x14000ae68
lea rsi, [rsp + 0x30]
test eax, 0x4000
jne 0x14000ae79
movaps xmm0, xmmword [rsp + 0x80]
movaps xmm1, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x40], xmm1
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
jmp 0x14000ae90
call fcn.14003f690
lea rsi, [rsp + 0x30]
test eax, 0x4000
je 0x14000ae44
lea r8, [0x140042358]
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.14000b0e0
movaps xmm0, xmmword [rsi]
movaps xmm1, xmmword [rsi + 0x10]
movaps xmm2, xmmword [rsi + 0x20]
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm1
movups xmmword [rsp + 0x48], xmm2
movzx eax, byte [0x140056c20]
mov edx, 0x170
xor ecx, ecx
call fcn.14002b600
test rax, rax
je 0x14000affc
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
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
movups xmm2, xmmword [rsp + 0x40]
movups xmmword [rax + 0x118], xmm0
movups xmmword [rax + 0x128], xmm1
movups xmmword [rax + 0x138], xmm2
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x148], rcx
mov qword [rax + 0x150], 0x10000
mov qword [rax + 0x158], 0x10000
mov qword [rax + 0x160], 0
mov ecx, dword [0x140056c24]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov r8, qword [rcx + 0x18]
mov qword [rcx + 0x18], rax
test r8, r8
je 0x14000afeb
dec qword [r8]
jne 0x14000afcf
dec qword [r8 + 8]
jne 0x14000afcf
mov rcx, qword [0x140056ba0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [0x140056c24]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rax, [rax + 0x18]
jmp 0x14000aff2
lea rax, [rcx + 0x18]
add rsp, 0xd8
pop rdi
pop rsi
ret
mov ecx, 0x10
mov edx, 0x170
call fcn.14003e260
movzx eax, byte [0x140056c20]
mov edx, 4
xor ecx, ecx
call fcn.14002b600
test rax, rax
jne 0x14000b032
mov ecx, 4
mov edx, 4
call fcn.14003e260
mov dword [rax], esi
mov qword [rsp + 0x60], rax
lea rax, [0x140042498]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x80], rdi
lea rax, [0x14000d380]
mov qword [rsp + 0x88], rax
lea rax, str.could_not_initialize_thread_rng:
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 1
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rdx, str.C:Userszzh.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rand_0.8.5_src_rngs_thread.rs
lea rcx, [rsp + 0x20]
call fcn.14003e320
int3