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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rbp + 0x17], rcx
xor r14d, r14d
mov qword [rbp - 1], r14
mov qword [rbp + 0x17], r14
mov qword [rbp + 7], r14
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f], xmm0
movdqa xmm1, xmmword [0x140007970]
movdqu xmmword [rbp + 0x2f], xmm1
mov byte [rbp + 0x1f], r14b
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140001432
lea rdx, str.CryptAcquireContext_failed
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004960
mov rcx, rax
lea rdx, [0x140004b40]
call qword [sym.imp.MSVCP140.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]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
xor r8d, r8d
lea rdx, [0x140007651]
mov rcx, rbx
call fcn.140004c90
jmp 0x1400015bc
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140001485
lea rdx, str.CryptCreateHash_failed
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004960
mov rcx, rax
lea rdx, [0x140004b40]
call qword [sym.imp.MSVCP140.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]
xor edx, edx
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x14000140d
xor r9d, r9d
mov r8d, send
lea rdx, str.0123456789ABCDEF
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1400014e1
lea rdx, str.CryptHashData_failed
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004960
mov rcx, rax
lea rdx, [0x140004b40]
call qword [sym.imp.MSVCP140.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]
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x14000140d
lea rax, [rbp + 0x17]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rbp + 7]
mov edx, 0x660e
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x14000150d
lea rdx, str.CryptDeriveKey_failed
jmp 0x1400014aa
mov rsi, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x14000151a
mov rsi, qword [rdi]
mov eax, dword [rdi + 0x10]
mov dword [rbp + 0xf], eax
mov dword [rsp + 0x30], eax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor edx, edx
mov r8d, 1
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x14000157d
lea rdx, str.CryptEncrypt_failed
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004960
mov rcx, rax
lea rdx, [0x140004b40]
call qword [sym.imp.MSVCP140.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]
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x1400014c6
mov r8d, dword [rbp + 0xf]
mov rdx, rsi
lea rcx, [rbp + 0x1f]
call fcn.140004170
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
movups xmm0, xmmword [rbp + 0x1f]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp + 0x2f]
movups xmmword [rbx + 0x10], xmm1
mov rax, rbx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400051a0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret