Function at 0x180006150
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 [0x18003bbf8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov al, byte [rax + 0x18]
test al, al
je 0x180006196
cmp al, 1
je 0x18000621c
xor eax, eax
jmp 0x18000642e
mov eax, dword [0x18003bbf8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rcx, qword [rax + 0x30]
cmp rcx, qword [rax + 0x28]
jne 0x1800061d8
call fcn.1800107c0
mov eax, dword [0x18003bbf8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rcx, qword [rax + 0x30]
mov eax, dword [0x18003bbf8]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
mov rdx, qword [rax + 0x20]
shl rcx, 4
lea rdi, [rax + 0x10]
mov qword [rdx + rcx], rdi
lea rdi, [0x180006540]
mov qword [rdx + rcx + 8], rdi
add qword [rax + 0x30], 1
mov byte [rax + 0x18], 1
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
lea rsi, [rbp - 0x30]
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x20
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x180006257
mov edi, eax
xor edi, 0x80000000
jne 0x18000644a
movaps xmm0, xmmword [rbp - 0x30]
movaps xmm1, xmmword [rbp - 0x20]
movaps xmmword [rbp], xmm1
movaps xmmword [rbp - 0x10], xmm0
mov rax, qword [0x18003bbd8]
test rax, rax
je 0x18000629b
test eax, 0x4000
jne 0x1800062a7
mov rsi, qword [rbp - 0x10]
movups xmm0, xmmword [rbp - 8]
mov rax, qword [rbp + 8]
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x48], rax
xorps xmm0, xmm0
movaps xmmword [rbp - 0x40], xmm0
jmp 0x1800062bf
call fcn.180026bb0
test eax, 0x4000
je 0x18000627a
lea r8, [0x18002d138]
lea rcx, [rbp - 0x60]
lea rdx, [rbp - 0x10]
call fcn.180006570
mov rsi, qword [rbp - 0x60]
movups xmm0, xmmword [rbp - 0x58]
mov rax, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x40]
movaps xmmword [rbp - 0x10], xmm0
mov qword [rbp], rax
mov qword [rbp + 8], rcx
mov rax, qword [rbp - 0x38]
mov qword [rbp + 0x10], rax
mov rcx, qword [0x18003bb58]
test rcx, rcx
jne 0x180006303
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x180006439
mov rcx, rax
mov qword [0x18003bb58], rax
mov r8d, 0x170
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x180006439
mov qword [rax + 0x10], 0x40
xorps xmm0, xmm0
movups xmmword [rax + 0x18], xmm0
movups xmmword [rax + 0x28], xmm0
movups xmmword [rax + 0x38], xmm0
movups xmmword [rax + 0x48], xmm0
movups xmmword [rax + 0x58], xmm0
movups xmmword [rax + 0x68], xmm0
movups xmmword [rax + 0x78], xmm0
movups xmmword [rax + 0x88], xmm0
movups xmmword [rax + 0x98], xmm0
movups xmmword [rax + 0xa8], xmm0
movups xmmword [rax + 0xb8], xmm0
movups xmmword [rax + 0xc8], xmm0
movups xmmword [rax + 0xd8], xmm0
movups xmmword [rax + 0xe8], xmm0
movups xmmword [rax + 0xf8], xmm0
movups xmmword [rax + 0x108], xmm0
mov qword [rax + 0x120], rsi
mov rcx, qword [rbp + 0x10]
mov qword [rax + 0x148], rcx
movaps xmm0, xmmword [rbp - 0x10]
movaps xmm1, xmmword [rbp]
movups xmmword [rax + 0x138], xmm1
movups xmmword [rax + 0x128], xmm0
movaps xmm0, xmmword [0x180028430]
movaps xmmword [rax + 0x150], xmm0
mov qword [rax + 0x160], 0
movaps xmm0, xmmword [0x180028420]
movaps xmmword [rax], xmm0
mov ecx, dword [0x18003bbf8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov r8, qword [rcx + 0x10]
mov qword [rcx + 0x10], rax
test r8, r8
je 0x180006427
add qword [r8], 0xffffffffffffffff
jne 0x18000640b
add qword [r8 + 8], 0xffffffffffffffff
jne 0x18000640b
mov rcx, qword [0x18003bb58]
xor edx, edx
call fcn.180018e4d
mov eax, dword [0x18003bbf8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rax, [rax + 0x10]
jmp 0x18000642e
lea rax, [rcx + 0x10]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x170
mov edx, 0x10
call fcn.180026270
ud2
mov rcx, qword [0x18003bb58]
test rcx, rcx
jne 0x18000646a
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x18000647c
mov rcx, rax
mov qword [0x18003bb58], rax
mov r8d, 4
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
jne 0x18000648d
mov ecx, 4
mov edx, 4
call fcn.180026270
ud2
mov dword [rax], edi
mov qword [rbp - 0x30], rax
lea rax, [0x18002d318]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x10], rsi
lea rax, [0x180008920]
mov qword [rbp - 8], rax
lea rax, str.could_not_initialize_thread_rng:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x50], 0
lea rax, [rbp - 0x10]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rdx, str.C:eonvvpcgqvlieodnlyzsojrolmnxbumtetazhrobnldwyfshgojrwnjvdszsloxygsjylalxbphizkvqtnoqybqfxxlgfhbpsl
lea rcx, [rbp - 0x60]
call fcn.180026300
ud2