Function at 0x1400685c0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x140214ba0]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rdi, rcx
mov qword [rsp + 0x50], rcx
lea rdx, [0x1401d367e]
mov ecx, 0xc
call fcn.14014fc20
mov rsi, rax
mov qword [rbp + 0x50], rax
test rax, rax
jne 0x14006867e
call fcn.1400553d0
lea r8d, [rsi + 1]
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140055290
lea rax, str.Authenticator.cpp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0x35
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.1400244b0
lea rdx, str.Failed_to_allocate_random_data_buffer
lea rcx, [rsp + 0x58]
call fcn.1400244e0
lea rcx, [rbp - 0x10]
call fcn.140058d50
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x10]
call fcn.140128970
nop
mov qword [rdi], rsi
jmp 0x14006886e
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1401edc08]
lea rcx, [rsp + 0x50]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
mov dword [rsp + 0x48], eax
lea r14, vtable.McCryptoLib::CWinError.0
mov qword [rsp + 0x40], r14
mov rbx, qword [rsp + 0x50]
mov qword [rbp + 0x58], rbx
lea rcx, [rsp + 0x40]
call qword [0x1401ede58]
lea rcx, [rsp + 0x40]
test eax, eax
mov rax, qword [rsp + 0x40]
je 0x14006870a
call qword [rax + VariantCopy]
mov ecx, eax
call fcn.14007f560
mov qword [rsp + 0x28], rax
lea rax, str.McCryptoLib::CMcCryptoRandomWin::Initialize
mov qword [rsp + 0x20], rax
mov r9d, 0x36
lea r8, str.C:_non_systemCodeMcCryptoLib_srcwindowswin_random.cpp
lea rdx, str.__S:__d____S___s:_Error_trying_to_Initialize_BCryptOpenAlgorithmProvider
lea ecx, [r9 - 0x34]
call fcn.14007f648
lea rcx, [rsp + 0x40]
mov rax, qword [rsp + 0x40]
call qword [rax + VariantCopy]
test eax, eax
je 0x14006874b
mov ecx, eax
call fcn.14007f560
mov qword [rsp + 0x28], rax
lea rax, str.McCryptoLib::CMcCryptoRandomWin::GetRandomBytes
mov qword [rsp + 0x20], rax
mov r9d, 0x49
lea r8, str.C:_non_systemCodeMcCryptoLib_srcwindowswin_random.cpp
lea rdx, str.__S:__d____S___s:_Error_trying_to_Initialize_default_CMcCryptoRandomWin
lea ecx, [r9 - 0x47]
call fcn.14007f648
jmp 0x1400687cd
xor r9d, r9d
lea r8d, [r9 + 0xc]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x30]
call qword [0x1401ede58]
lea rcx, [rsp + 0x30]
test eax, eax
mov rax, qword [rsp + 0x30]
je 0x1400687c2
call qword [rax + VariantCopy]
mov ecx, eax
call fcn.14007f560
mov qword [rsp + 0x28], rax
lea rax, str.McCryptoLib::CMcCryptoRandomWin::GetRandomBytes
mov qword [rsp + 0x20], rax
mov r9d, 0x57
lea r8, str.C:_non_systemCodeMcCryptoLib_srcwindowswin_random.cpp
lea rdx, str.__S:__d____S___s:_Error_trying_to_BCryptGenRandom
lea ecx, [r9 - 0x55]
call fcn.14007f648
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + VariantCopy]
test eax, eax
je 0x14006885a
call fcn.1400553d0
mov r8d, 1
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140055290
lea rax, str.Authenticator.cpp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0x3c
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.1400244b0
lea rdx, str.Failed_to_generate_random_data_buffer
lea rcx, [rsp + 0x58]
call fcn.1400244e0
lea rcx, [rbp - 0x10]
call fcn.140058d50
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x10]
call fcn.140128970
nop
mov qword [rdi], 0
test rbx, rbx
je 0x140068850
xor edx, edx
mov rcx, rbx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
nop
mov rcx, rsi
call fcn.14014f900
jmp 0x14006886e
mov qword [rdi], rsi
test rbx, rbx
je 0x14006886e
xor edx, edx
mov rcx, rbx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
nop
mov rax, rdi
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14014f8e0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret