Function at 0x140098cd4
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov dword [rax + 0x20], r9d
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor r15d, r15d
mov r13, r8
lea r8, str.live
mov qword [rbp - 0x28], r15
xor r9d, r9d
mov qword [rbp - 0x18], r15
mov edi, r15d
mov qword [rbp - 0x20], r15
mov qword [rax - 0x68], r15
mov rsi, rdx
mov r14d, ecx
call fcn.140012618
lea r9, [rbp - 0x20]
mov qword [rsp + 0x20], r15
mov r8, r13
mov rdx, rsi
mov ecx, r14d
mov ebx, eax
call fcn.140012618
test eax, eax
jne 0x140098d5d
lea r9, [rbp - 0x20]
mov qword [rsp + 0x20], r15
lea r8, [0x1401101a8]
mov rdx, rsi
mov ecx, r14d
call fcn.140012618
mov r14, qword [rbp - 0x20]
test ebx, ebx
jne 0x140098d6e
test r14, r14
je 0x140098f3e
mov r15d, dword [rbp + 0x68]
mov ecx, Ordinal_65
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140098f3e
mov rdx, qword [rbp + 0x60]
mov r8d, r15d
mov rcx, rax
call fcn.1400c2830
mov dword [rbp - 0x30], r15d
xor r15d, r15d
test ebx, ebx
je 0x140098dcb
cmp dword [rbp + 0x48], r15d
lea rax, str.machine
lea r8, str.user
mov rdx, r13
cmovne r8, rax
lea rcx, str.___Live_Key__:__s____s_:
call fcn.14000b8cc
mov eax, ebx
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
neg eax
mov r9d, reloc.ODBC32.dll_SQLAllocHandle
sbb ecx, ecx
not ecx
and ecx, 0xf0000000
neg dword [rbp + 0x48]
sbb eax, eax
and eax, 0x20
or ecx, eax
lea rax, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
cmp dword [0x14014a33c], 0xa28
mov dword [rsp + 0x20], ecx
lea rcx, [rbp - 0x10]
cmovbe r8, rax
mov eax, ebx
neg eax
sbb rdx, rdx
and rdx, r13
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140098f35
test ebx, ebx
jne 0x140098e7d
xor r9d, r9d
lea r8, [rbp - 0x2c]
lea rdx, [rbp - 0x18]
mov rcx, r14
call fcn.1400097cc
test eax, eax
je 0x140098e9c
mov r8, r14
lea rcx, str.___PVK_file__:__s____s_:
mov rdx, r13
call fcn.14000b8cc
mov rdi, qword [rbp - 0x18]
lea rax, [rbp - 0x28]
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r8d, dword [rdi + 0x14]
lea rdx, [rdi + 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x140098e8d
lea rcx, [0x14010d4a8]
call fcn.14000b8cc
test ebx, ebx
jne 0x140098ea2
mov r9, qword [rbp - 0x28]
test r9, r9
je 0x140098f1b
jmp 0x140098ea6
mov rdi, qword [rbp - 0x18]
jmp 0x140098e8d
mov r9, qword [rbp - 0x28]
mov r8d, dword [rbp + 0x58]
lea rax, [rbp - 8]
mov rdx, qword [rbp + 0x50]
mov rcx, qword [rbp - 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x140098f08
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x140098efe
lea rdx, [rsi + 4]
lea rcx, str.___Password__:__s_n
call fcn.14000b8cc
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test ebx, ebx
jne 0x140098f29
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140098f1b
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test rdi, rdi
je 0x140098f29
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x10]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret