Function at 0x14007eb80
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 [0x1401c73e8]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rdi, rcx
mov qword [rsp + 0x50], rcx
lea rdx, [0x140182ec8]
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call fcn.1401225b0
mov rsi, rax
mov qword [rbp + 0x50], rax
test rax, rax
jne 0x14007ec3e
call fcn.1400595a0
lea r8d, [rsi + 1]
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140059480
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.140026620
lea rdx, str.Failed_to_allocate_random_data_buffer
lea rcx, [rsp + 0x58]
call fcn.140026650
lea rcx, [rbp - 0x10]
call fcn.14005be70
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x10]
call fcn.1400fa82c
nop
mov qword [rdi], rsi
jmp 0x14007ee2e
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1401a0738]
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 [0x1401a0990]
lea rcx, [rsp + 0x40]
test eax, eax
mov rax, qword [rsp + 0x40]
je 0x14007ecca
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ecx, eax
call fcn.14008cba0
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.14008cc88
lea rcx, [rsp + 0x40]
mov rax, qword [rsp + 0x40]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test eax, eax
je 0x14007ed0b
mov ecx, eax
call fcn.14008cba0
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.14008cc88
jmp 0x14007ed8d
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 [0x1401a0990]
lea rcx, [rsp + 0x30]
test eax, eax
mov rax, qword [rsp + 0x30]
je 0x14007ed82
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ecx, eax
call fcn.14008cba0
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.14008cc88
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test eax, eax
je 0x14007ee1a
call fcn.1400595a0
mov r8d, 1
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140059480
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.140026620
lea rdx, str.Failed_to_generate_random_data_buffer
lea rcx, [rsp + 0x58]
call fcn.140026650
lea rcx, [rbp - 0x10]
call fcn.14005be70
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x10]
call fcn.1400fa82c
nop
mov qword [rdi], 0
test rbx, rbx
je 0x14007ee10
xor edx, edx
mov rcx, rbx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
nop
mov rcx, rsi
call fcn.140122560
jmp 0x14007ee2e
mov qword [rdi], rsi
test rbx, rbx
je 0x14007ee2e
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.140122510
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret