Function at 0x140007aa0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140041040]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov dword [rsp + 0x20], 0
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [0x140044030]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140007b21
mov dword [rsp + 0x20], 8
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [0x140044030]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140007b21
lea rdx, str.unable_to_create_new_crypto_keyset_n
lea rcx, [0x140042c80]
call fcn.140006b00
lea r8, [0x140044038]
mov edx, 0x20
mov rcx, qword [0x140044030]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x140007b5b
lea rdx, str.unable_to_generate_key_n
lea rcx, [0x140042c80]
call fcn.140006b00
mov eax, 1
jmp 0x140007d27
lea rcx, str.USERPROFILE
call fcn.1400127cc
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140007b80
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140007040
nop
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.140005b40
mov rcx, rax
call fcn.140003820
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp - 0x70]
call fcn.14002d2e0
lea rcx, [rbp - 0x70]
call fcn.1400052d0
nop
cmp qword [rbp + 0x18], 0
jne 0x140007c3d
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call fcn.140005220
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x74], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x38], rax
lea rcx, [rbp + 0x38]
call fcn.14000a71c
nop
jmp 0x140007ced
lea rcx, [rbp - 0x70]
call fcn.140005890
lea rcx, [rbp - 0x68]
call fcn.1400061a0
test rax, rax
jne 0x140007c86
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx - 0x28], 0
cmovne eax, edx
or eax, dword [rbp + rcx - 0x60]
and eax, 0x17
mov dword [rbp + rcx - 0x60], eax
mov edx, dword [rbp + rcx - 0x5c]
and edx, eax
jne 0x140007d4d
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call fcn.140005220
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x74], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x38], rax
lea rcx, [rbp + 0x38]
call fcn.14000a71c
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x140007d25
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007d20
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007d47
call fcn.140008b10
xor eax, eax
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140008af0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x1b0
pop rbp
ret
call fcn.140012660
nop
test dl, 4
je 0x140007d5b
lea rbx, str.ios_base::badbit_set
jmp 0x140007d70
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140001d10
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400028c0
lea rdx, [0x14003f240]
lea rcx, [rsp + 0x40]
call fcn.14000c63c
int3