Function at 0x140011924
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
Terminate process

Disassembly:
jmp 0x140020560
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x238
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x4e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x258]
mov rax, qword [0x140038040]
xor rax, rbp
mov qword [rbp + 0x1e8], rax
mov dword [rbp + 0x1c4], 0
lea rcx, [0x1400400f9]
call fcn.140011b9a
nop
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1400205fa
lea rdx, str.____Error:_Failed_to_acquire_cryptographic_context._n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011168
nop
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
nop
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140020649
lea rdx, str.____Error:_Failed_to_create_hash_object._n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011168
nop
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
nop
xor r9d, r9d
mov r8d, 0x10
lea rdx, [0x1400387a0]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x14002069f
lea rdx, str.____Error:_Failed_to_hash_AES_key._n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011168
nop
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
nop
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rbp + 0x48]
mov edx, 0x660e
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x1400206fa
lea rdx, str.____Error:_Failed_to_derive_AES_key._n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011168
nop
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
nop
mov rcx, qword [rbp + 0x218]
call fcn.14001186b
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
add eax, 0x10
mov dword [rbp + 0x84], eax
mov edx, 0x20
mov rcx, qword [rbp + 0x210]
call fcn.1400110a5
lea rcx, [rbp + 0x1a4]
call fcn.14001156e
mov ecx, dword [rbp + 0x84]
mov r8, rax
mov edx, ecx
mov rcx, qword [rbp + 0x210]
call fcn.1400116d6
mov qword [rbp + 0x1d8], rax
mov eax, dword [rbp + 0x1c4]
or eax, 1
mov dword [rbp + 0x1c4], eax
mov eax, dword [rbp + 0x64]
mov qword [rbp + 0x1d8], rax
mov rcx, qword [rbp + 0x218]
call fcn.140011136
mov qword [rbp + 0x1e0], rax
mov rcx, qword [rbp + 0x210]
call fcn.140011c80
mov rcx, qword [rbp + 0x1d8]
mov r8, rcx
mov rcx, qword [rbp + 0x1e0]
mov rdx, rcx
mov rcx, rax
call fcn.1400115aa
nop
mov rcx, qword [rbp + 0x210]
call fcn.140011c80
mov ecx, dword [rbp + 0x84]
mov dword [rsp + 0x30], ecx
lea rcx, [rbp + 0x64]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x140020825
lea rdx, str.____Error:_Failed_to_encrypt_data._n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011168
nop
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
nop
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
nop
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
nop
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov eax, dword [rbp + 0x64]
mov edx, eax
mov rcx, qword [rbp + 0x210]
call fcn.140011604
nop
mov rax, qword [rbp + 0x210]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14002f4b0]
call fcn.1400119a6
mov rax, rdi
mov rcx, qword [rbp + 0x1e8]
xor rcx, rbp
call fcn.1400115a0
lea rsp, [rbp + 0x1f8]
pop rdi
pop rbp
ret