Function at 0x140018000
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x70
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xor edi, edi
mov qword [rsp + 0x60], rdi
lea ecx, [rdi + 0x10]
call fcn.1400256ec
mov rsi, rax
mov qword [rsp + 0x50], rax
lea r14, [rax + 0x10]
mov qword [rsp + 0x60], r14
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x90], rdi
mov dword [rsp + 0x20], 0xf0000040
lea r9d, [rdi + 1]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ebx, eax
test eax, eax
je 0x14001808a
mov r8, rsi
lea edx, [rdi + 0x10]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov ebx, eax
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x14001809f
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test ebx, ebx
je 0x140018241
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rdi
mov r15, r14
sub r15, rsi
je 0x1400180f9
movabs rax, 0x7fffffffffffffff
cmp r15, rax
ja 0x14001828e
mov rdx, r15
lea rcx, [rsp + 0x38]
call fcn.140009a50
mov r8, r15
mov rdx, rsi
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.140047460
lea rax, [r15 + rbx]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x38]
lea rcx, [0x140063e50]
call fcn.140014e40
mov rbx, qword [rsp + 0x38]
test eax, eax
je 0x140018207
mov r15, qword [rsp + 0x40]
mov rax, r15
sub rax, rbx
cmp rax, 0x100
jne 0x140018207
lea rcx, [0x14006afd8]
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rcx, qword [0x14006b030]
test rcx, rcx
je 0x14001817a
mov rdx, qword [0x14006b040]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140018175
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140018294
mov rcx, r8
call fcn.1400256e4
mov qword [0x14006b030], rsi
mov qword [0x14006b038], r14
mov qword [0x14006b040], r14
mov rsi, rdi
mov r14, rdi
mov rcx, qword [0x14006b048]
test rcx, rcx
je 0x1400181d5
mov rdx, qword [0x14006b058]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1400181d0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140018294
mov rcx, r8
call fcn.1400256e4
mov qword [0x14006b048], rbx
mov qword [0x14006b050], r15
mov rax, qword [rsp + 0x48]
mov qword [0x14006b058], rax
mov rbx, rdi
inc qword [0x14006afd0]
lea rcx, [0x14006afd8]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
jmp 0x14001820c
mov rdi, qword [rsp + 0x48]
test rbx, rbx
je 0x140018241
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x140018235
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001829a
mov rdx, rdi
mov rcx, rbx
call fcn.1400256e4
nop
test rsi, rsi
je 0x140018276
sub r14, rsi
mov rax, rsi
cmp r14, 0x1000
jb 0x14001826a
add r14, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400182a0
mov rdx, r14
mov rcx, rsi
call fcn.1400256e4
nop
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.1400062a0
nop
call fcn.140036a34
nop
call fcn.140036a34
nop
call fcn.140036a34
int3