Function at 0x1401521ce
Capabilities:
Generate random numbers via winapi

Disassembly:
jmp 0x140395e30
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x3d0
lea rdi, [rsp + 0x20]
mov ecx, 0xec
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3e0]
mov rax, qword [0x1404e30c0]
xor rax, rsp
mov qword [rsp + 0x3c8], rax
mov eax, 0x104
mov eax, eax
mov ecx, dword [0x1404f8dac]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rax + rcx]
cmp dword [0x1404f8ce4], eax
jle 0x140395ed1
lea rcx, [0x1404f8ce4]
call fcn.140153b46
cmp dword [0x1404f8ce4], 0xffffffff
jne 0x140395ed1
lea rcx, [0x1404f8cd8]
call fcn.14014edda
lea rcx, [0x1404030b0]
call fcn.14014e4e3
nop
lea rcx, [0x1404f8ce4]
call fcn.140153fab
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x3f0]
call fcn.1401548cf
movzx eax, al
test eax, eax
jne 0x140395fe4
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.14014a334
nop
lea rdx, [0x140476d88]
lea rcx, [rsp + 0x50]
call fcn.14014b1df
lea rdx, [0x140476d20]
mov rcx, rax
call fcn.14014b1df
lea rdx, [0x140476d1c]
mov rcx, rax
call fcn.14014b1df
mov edx, 0xcb
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x140476d18]
mov rcx, rax
call fcn.14014b1df
lea rdx, [0x140476cf0]
mov rcx, rax
call fcn.14014b1df
lea rdx, [0x14014a66d]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [0x14015017b]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [rsp + 0x148]
lea rcx, [rsp + 0x50]
call fcn.140150095
mov qword [rsp + 0x3a8], rax
mov rax, qword [rsp + 0x3a8]
mov qword [rsp + 0x3b0], rax
mov rdx, qword [rsp + 0x3b0]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140153952
nop
lea rcx, [rsp + 0x148]
call fcn.14014bfd6
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140395fda
call qword [sym.imp.KERNEL32.dll_DebugBreak]
nop
lea rcx, [rsp + 0x50]
call fcn.140153c9a
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x3f0]
call fcn.1401548cf
movzx eax, al
test eax, eax
jne 0x140396055
mov ecx, 0x5b6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x170]
call fcn.14014ef88
nop
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x300]
call fcn.14014c747
lea rdx, [0x1404e2068]
lea rcx, [rsp + 0x300]
call fcn.140155e7d
nop
lea rcx, [rsp + 0x170]
call fcn.14014bfd6
nop
lea rcx, [0x1404f8cd8]
call fcn.14014dabb
xor r9d, r9d
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x3e8]
mov rcx, rax
call fcn.14014ad34
mov dword [rsp + 0x198], eax
cmp dword [rsp + 0x198], 0
jge 0x140396190
mov edx, 1
lea rcx, [rsp + 0x1b0]
call fcn.14014a334
nop
lea rdx, [0x140476e58]
lea rcx, [rsp + 0x1b0]
call fcn.14014b1df
lea rdx, str.C:UsersmatthDownloads_vcpkg_master_buildtreescryptopp_srcTOPP_8_9_0_d4af216c8d.cleanosrng.cpp
mov rcx, rax
call fcn.14014b1df
lea rdx, [0x140476de4]
mov rcx, rax
call fcn.14014b1df
mov edx, 0xd2
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x140476de0]
mov rcx, rax
call fcn.14014b1df
lea rdx, str.CryptoPP::NonblockingRng::GenerateBlock
mov rcx, rax
call fcn.14014b1df
lea rdx, [0x14014a66d]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [0x14015017b]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [rsp + 0x2a8]
lea rcx, [rsp + 0x1b0]
call fcn.140150095
mov qword [rsp + 0x3b8], rax
mov rax, qword [rsp + 0x3b8]
mov qword [rsp + 0x3c0], rax
mov rdx, qword [rsp + 0x3c0]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140153952
nop
lea rcx, [rsp + 0x2a8]
call fcn.14014bfd6
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140396183
call qword [sym.imp.KERNEL32.dll_DebugBreak]
nop
lea rcx, [rsp + 0x1b0]
call fcn.140153c9a
cmp dword [rsp + 0x198], 0
jge 0x1403961fb
mov ecx, dword [rsp + 0x198]
call fcn.140150752
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
lea rdx, str.BCryptGenRandom
lea rcx, [rsp + 0x2d0]
call fcn.14014ef88
nop
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x350]
call fcn.14014c747
lea rdx, [0x1404e2068]
lea rcx, [rsp + 0x350]
call fcn.140155e7d
nop
lea rcx, [rsp + 0x2d0]
call fcn.14014bfd6
nop
mov rcx, rsp
lea rdx, [0x140477130]
call fcn.14015304c
mov rcx, qword [rsp + 0x3c8]
xor rcx, rsp
call fcn.14014f4b5
add rsp, 0x3d0
pop rdi
ret