Function at 0x14018ce00
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x140248318]
xor rax, rsp
mov qword [rbp + 8], rax
mov rdi, r8
mov rbx, rdx
mov r15, rcx
mov qword [rsp + 0x38], rcx
mov r14, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 8
jb 0x14018ce46
mov rbx, qword [rdx]
movabs rcx, 0x7ffffffffffffffe
mov eax, 7
mov qword [rsp + 0x38], rax
cmp r14, 8
jae 0x14018ce77
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x40], xmm0
mov r13d, eax
mov qword [rsp + 0x58], rax
mov rsi, qword [rsp + 0x40]
jmp 0x14018ceb2
mov r13, r14
or r13, rax
cmp r13, rcx
cmova r13, rcx
lea rdx, [r13 + 1]
lea rcx, [rsp + 0x40]
call fcn.140022070
mov rsi, rax
mov qword [rsp + 0x40], rax
lea r8, [r14*2 + 2]
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x58], r13
mov rbx, r14
mov qword [rsp + 0x50], rbx
movups xmm0, xmmword [str.0123456789abcdef]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [0x140200d80]
movups xmmword [rbp - 0x30], xmm1
movzx eax, word [0x140200d90]
mov word [rbp - 0x20], ax
movups xmm0, xmmword [str.123456789abcdef]
movups xmmword [rbp - 0x50], xmm0
xor eax, eax
lea r8d, [rax + 0x20]
mov r12d, eax
lea rcx, [0x1401b3f30]
test r14, r14
je 0x14018d083
xor r14d, r14d
lea rax, [rsp + 0x40]
cmp r13, 8
cmovae rax, rsi
cmp word [rax + r12*2], 0x25
jne 0x14018d075
cmp r8d, 0x20
jne 0x14018d022
mov dword [rsp + 0x20], 0xf0000040
lea r9d, [r8 - 0x1f]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14018cf4a
mov ebx, r14d
jmp 0x14018cfc2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x80090016
jne 0x14018cfbe
mov dword [rsp + 0x20], 0xf0000048
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14018cf80
mov ebx, r14d
jmp 0x14018cfc2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x8009000f
jne 0x14018cfbe
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14018cfb6
mov ebx, r14d
jmp 0x14018cfc2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x14018cff3
lea r8, [rbp - 0x50]
mov edx, 0x10
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x14018cfe2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test ebx, ebx
je 0x14018d011
test rdi, rdi
je 0x14018d1c4
mov dword [rdi], ebx
test ebx, ebx
setne al
mov byte [rdi + 4], al
lea rcx, [0x1401b3f30]
mov qword [rdi + 8], rcx
test rdi, rdi
je 0x14018d01f
cmp dword [rdi], r14d
jne 0x14018d0c0
mov r8d, r14d
mov eax, r8d
test r8d, r8d
jns 0x14018d02e
lea eax, [r8 + 1]
sar eax, 1
cdqe
movsx eax, byte [rbp + rax - 0x50]
mov ecx, r8d
and ecx, 1
shl ecx, 2
sar eax, cl
inc r8d
lea rcx, [rsp + 0x40]
cmp r13, 8
cmovae rcx, rsi
and eax, 0xf
movzx eax, word [rbp + rax*2 - 0x40]
mov word [rcx + r12*2], ax
mov r13, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
lea rcx, [0x1401b3f30]
inc r12
cmp r12, rbx
jb 0x14018cf02
xor eax, eax
test rdi, rdi
je 0x14018d092
mov dword [rdi], eax
mov byte [rdi + 4], 0
mov qword [rdi + 8], rcx
mov qword [r15], rax
mov qword [r15 + 0x10], rax
mov qword [r15 + 0x18], rax
lea rdi, [rsp + 0x40]
cmp r13, 8
cmovae rdi, rsi
cmp rbx, 8
jae 0x14018d139
movups xmm0, xmmword [rdi]
movups xmmword [r15], xmm0
jmp 0x14018d179
mov qword [r15], r14
mov qword [r15 + 0x10], r14
mov eax, 7
mov qword [r15 + 0x18], rax
mov word [r15], r14w
cmp r13, 8
jb 0x14018d10f
lea rdx, [r13*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14018d107
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14018d1bd
mov rcx, rsi
call fcn.14018bbf4
mov rax, r15
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.14018bc90
mov rbx, qword [rsp + 0x168]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, rbx
or rax, 7
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
cmova rax, rcx
mov qword [rsp + 0x38], rax
lea rdx, [rax + 1]
mov rcx, r15
call fcn.140022070
mov qword [r15], rax
lea r8, [rbx*2 + 2]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
nop
mov qword [r15 + 0x10], rbx
mov rax, qword [rsp + 0x38]
mov qword [r15 + 0x18], rax
cmp r13, 8
jb 0x14018d10f
lea rdx, [r13*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14018d107
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14018d107
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400466e0
mov r8, rax
lea r9, str.boost::filesystem::unique_path
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.140045f00
lea rdx, [0x14023e450]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3