Function at 0x140014e80
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rdx
mov r14, rcx
mov qword [rbp - 0x50], rdx
xor ebx, ebx
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x38], rbx
mov esi, 0xf
mov qword [rbp - 0x30], rsi
mov byte [rbp - 0x48], bl
lea ecx, [rbx + 0x20]
call fcn.140017cb0
mov qword [rbp - 0x38], 0x10
mov qword [rbp - 0x30], 0x1f
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov byte [rax + 0x10], bl
mov qword [rbp - 0x48], rax
lea r8, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae r8, rax
movups xmmword [r8], xmm0
mov rax, qword [r14 + 8]
test rax, rax
je 0x140014f2a
lea edx, [rbx + 0x10]
mov rcx, r8
call rax
test al, al
setne r14b
test al, al
jne 0x140014f64
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GenRandom:_RtlGenRandom_SystemFunction036_failed:__u
call fcn.1400149c0
jmp 0x140014f64
cmp byte [r14 + 0x10], 0
je 0x140014f87
mov edx, 0x10
mov rcx, qword [r14 + 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
setne r14b
test eax, eax
jne 0x140014f64
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, 0x10
lea rcx, str.GenRandom:_CryptGenRandom_failed__size_d__lasterror_u
call fcn.1400149c0
test r14b, r14b
je 0x140014f87
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rbp - 0x28], xmm0
movups xmm1, xmmword [rbp - 0x38]
movups xmmword [rbp - 0x18], xmm1
mov qword [rbp - 0x30], rsi
mov rsi, qword [rbp - 0x10]
mov r14, qword [rbp - 0x18]
jmp 0x140014fd8
mov qword [rbp - 0x28], rbx
mov r14, rbx
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rsi
mov byte [rbp - 0x28], bl
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x140014fd4
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014fcf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400150c6
call fcn.140017cec
mov qword [rbp - 0x30], rsi
mov byte [rbp - 0x48], 0
mov qword [rbp - 0x38], rbx
lea rdx, [r14 + r14]
mov qword [rdi], rbx
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 7
mov word [rdi], bx
mov rcx, rdi
call fcn.140015550
mov rcx, qword [rbp - 0x28]
test r14, r14
je 0x14001506c
lea r8, [0x14003e4c0]
nop
lea rax, [rbp - 0x28]
cmp rsi, 0x10
cmovae rax, rcx
movzx eax, byte [rax + rbx]
shr rax, 4
movzx edx, word [r8 + rax*2]
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x140015036
mov rax, qword [rdi]
mov word [rax + rbx*4], dx
lea rax, [rbp - 0x28]
cmp rsi, 0x10
cmovae rax, rcx
movzx eax, byte [rax + rbx]
and eax, 0xf
movzx edx, word [r8 + rax*2]
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x14001505f
mov rax, qword [rdi]
mov word [rax + rbx*4 + 2], dx
inc rbx
cmp rbx, r14
jb 0x140015010
cmp rsi, 0x10
jb 0x14001509c
lea rdx, [rsi + 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015097
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400150c0
call fcn.140017cec
mov rax, rdi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140017c90
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.14001e704
int3
call fcn.14001e704
int3