Function at 0x140002120
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rbp - 0x30], rcx
xor r14d, r14d
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
mov ebx, r14d
mov qword [rbp - 0x18], rbx
mov rdx, qword [rdx + 8]
sub rdx, qword [rdi]
je 0x14000219f
lea rcx, [rbp - 0x28]
call fcn.140003c10
mov rbx, qword [rdi + 8]
mov rdx, qword [rdi]
sub rbx, rdx
mov r8, rbx
mov rdi, qword [rbp - 0x28]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
lea r15, [rbx + rdi]
mov qword [rbp - 0x20], r15
mov rbx, qword [rbp - 0x18]
jmp 0x1400021a7
mov r15, qword [rbp - 0x20]
mov rdi, qword [rbp - 0x28]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140002227
lea rdx, str.CryptAcquireContext_failed._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400035f0
mov qword [rsi], r14
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r14
test rdi, rdi
je 0x140002406
sub rbx, rdi
mov rax, rdi
cmp rbx, 0x1000
jb 0x140002217
add rbx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000238b
mov rdx, rbx
mov rcx, rdi
call fcn.14000410c
jmp 0x140002406
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14000226d
lea rdx, str.CryptCreateHash_failed._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400035f0
xor edx, edx
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x1400021db
mov r8, qword [0x14000aa00]
mov rdx, qword [0x14000a9f8]
sub r8, rdx
xor r9d, r9d
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1400022bd
lea rdx, str.CryptHashData_failed._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400035f0
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x1400021db
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rbp - 0x40]
mov edx, 0x6610
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x1400022e9
lea rdx, str.CryptDeriveKey_failed._n
jmp 0x140002296
mov r12, r15
sub r12, rdi
mov dword [rbp - 0x38], r12d
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x140002392
lea rdx, str.CryptDecrypt_failed._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400035f0
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [rsi], r14
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r14
test rdi, rdi
je 0x140002406
sub rbx, rdi
mov rax, rdi
cmp rbx, 0x1000
jb 0x140002217
add rbx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002217
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov r14d, dword [rbp - 0x38]
cmp r14, r12
jae 0x1400023a1
lea r15, [r14 + rdi]
jmp 0x1400023db
jbe 0x1400023db
mov rax, rbx
sub rax, rdi
cmp r14, rax
jbe 0x1400023c8
mov rdx, r14
lea rcx, [rbp - 0x28]
call fcn.140003cc0
mov rbx, qword [rbp - 0x18]
mov r15, qword [rbp - 0x20]
mov rdi, qword [rbp - 0x28]
jmp 0x1400023db
sub r14, r12
mov r8, r14
xor edx, edx
mov rcx, r15
call sub.VCRUNTIME140.dll_memset
add r15, r14
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [rsi], rdi
mov qword [rsi + 8], r15
mov qword [rsi + 0x10], rbx
mov rax, rsi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140003e70
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret