Function at 0x1401a6ec0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0xe8
mov rax, qword [0x1404779b8]
xor rax, rsp
mov qword [rbp - 1], rax
mov rax, qword [rbp + 0x7f]
xorps xmm0, xmm0
mov rbx, qword [rbp + 0x77]
mov r15, r8
mov qword [rbp - 0x79], rax
mov r12, rdx
xor eax, eax
mov r14d, r9d
mov qword [rbp - 0x71], rax
mov r13, rcx
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x59], rax
lea edi, [rax + 1]
movups xmmword [rbp - 0x51], xmm0
test r8, r8
jne 0x1401a700d
test rbx, rbx
je 0x1401a700d
lea r8, [rbp - 0x51]
xor edx, edx
mov rcx, rbx
call fcn.1401a7520
test eax, eax
je 0x1401a6ffe
mov r14d, dword [rbp - 0x51]
test r14d, r14d
je 0x1401a6ff5
mov ecx, r14d
call fcn.14021f4ec
mov qword [rbp - 0x49], rax
mov rsi, rax
test rax, rax
jne 0x1401a6fca
lea ecx, [rdi + 0x2f]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], SafeArrayLock
call fcn.1400eb1a0
movups xmm0, xmmword [str._AES256__prepareData__Not_enough_memory.]
mov qword [rsp + 0x50], 0x28
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x58], 0x2f
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14035aed8]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x14035aee8]
movsd qword [rax + 0x20], xmm0
mov byte [rax + 0x28], r15b
mov qword [rsp + 0x40], rax
call fcn.1401a7f60
mov edi, r15d
jmp 0x1401a738b
lea r8, [rbp - 0x51]
mov rdx, rax
mov rcx, rbx
call fcn.1401a7520
mov rsi, qword [rbp - 0x49]
test eax, eax
jne 0x1401a6fec
xor r15d, r15d
mov edi, r15d
jmp 0x1401a738b
mov r14d, dword [rbp - 0x51]
jmp 0x1401a7091
mov rsi, qword [rbp - 0x49]
jmp 0x1401a7091
mov rsi, qword [rbp - 0x49]
xor r15d, r15d
mov edi, r15d
jmp 0x1401a738b
mov rcx, r14
call fcn.14021f4ec
mov rsi, rax
test rax, rax
jne 0x1401a7083
xor r15d, r15d
mov qword [rbp - 0x39], SafeArrayLock
lea ecx, [rax + 0x30]
mov qword [rbp - 0x51], r15
mov qword [rbp - 0x41], r15
call fcn.1400eb1a0
movups xmm0, xmmword [str._AES256__prepareData__Not_enough_memory.]
mov qword [rbp - 0x41], 0x28
lea rcx, [rbp - 0x51]
mov qword [rbp - 0x39], 0x2f
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14035aed8]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x14035aee8]
movsd qword [rax + 0x20], xmm0
mov byte [rax + 0x28], r15b
mov qword [rbp - 0x51], rax
call fcn.1401a7f60
mov edi, r15d
jmp 0x1401a738b
mov r8, r14
mov rdx, r15
mov rcx, rax
call fcn.140253310
xor r15d, r15d
lea rcx, [rbp - 0x69]
xor r8d, r8d
mov dword [rsp + 0x20], r15d
xor edx, edx
lea r9d, [r15 + 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1401a7156
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1401a7156
lea r9d, [r15 + 0x18]
mov dword [rsp + 0x20], 8
xor r8d, r8d
lea rcx, [rbp - 0x69]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1401a7156
lea ecx, [rax + 0x40]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], SafeArrayLock
call fcn.1400eb1a0
movups xmm0, xmmword [str._AES256__AESEncrypt__Get_provider_context_failed_]
mov qword [rsp + 0x50], 0x31
mov qword [rsp + 0x58], 0x3f
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14035af08]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x14035af18]
movups xmmword [rax + 0x20], xmm0
movzx ecx, byte [0x14035af28]
mov byte [rax + 0x30], cl
mov byte [rax + 0x31], r15b
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.1401a7f60
mov edi, r15d
jmp 0x1401a738b
movups xmm0, xmmword [r13]
mov rcx, qword [rbp - 0x69]
xor r9d, r9d
movups xmm1, xmmword [r13 + 0x10]
lea rax, [rbp - 0x71]
mov dword [rbp - 0x31], 0x208
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x31]
lea r8d, [r9 + 0x2c]
mov dword [rbp - 0x2d], 0x6610
mov dword [rbp - 0x29], 0x20
movups xmmword [rbp - 0x25], xmm0
mov dword [rsp + 0x20], edi
movups xmmword [rbp - 0x15], xmm1
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1401a720c
lea ecx, [rax + 0x30]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], SafeArrayLock
call fcn.1400eb1a0
movups xmm0, xmmword [str._AES256__AESEncrypt__Create_key_failed_]
mov qword [rsp + 0x50], 0x27
mov qword [rsp + 0x58], 0x2f
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14035af40]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x14035af50]
mov dword [rax + 0x20], ecx
movzx ecx, word [0x14035af54]
mov word [rax + 0x24], cx
movzx ecx, byte [0x14035af56]
mov byte [rax + 0x26], cl
mov byte [rax + 0x27], r15b
jmp 0x1401a713f
mov rcx, qword [rbp - 0x71]
xor r9d, r9d
mov edx, edi
test r12, r12
jne 0x1401a72af
mov r8, r13
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x1401a72b7
lea ecx, [rax + 0x40]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], SafeArrayLock
call fcn.1400eb1a0
movups xmm0, xmmword [str._AES256__AESEncrypt__Set_keys_IV_parameter_failed_]
mov qword [rsp + 0x50], 0x33
mov rdx, rax
mov qword [rsp + 0x58], 0x3f
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14035af68]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x14035af78]
movups xmmword [rax + 0x20], xmm0
movzx ecx, word [0x14035af88]
mov word [rax + 0x30], cx
lea rcx, [rsp + 0x40]
movzx eax, byte [0x14035af8a]
mov byte [rdx + 0x32], al
mov byte [rdx + 0x33], r15b
mov qword [rsp + 0x40], rdx
call fcn.1401a7f60
mov edi, r15d
jmp 0x1401a738b
mov r8, r12
jmp 0x1401a7221
mov eax, r14d
xorps xmm0, xmm0
shr eax, 4
inc eax
shl eax, 4
movups xmmword [rbp - 0x61], xmm0
mov ecx, eax
mov dword [rbp - 0x61], r14d
mov ebx, eax
call fcn.14021f4ec
mov r8d, r14d
mov rdx, rsi
mov rcx, rax
mov qword [rbp - 0x59], rax
call fcn.140253310
mov rcx, qword [rbp - 0x71]
lea rax, [rbp - 0x61]
mov dword [rsp + 0x30], ebx
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8d, edi
mov rax, qword [rbp - 0x59]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x1401a736c
lea ecx, [rax + 0x30]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], SafeArrayLock
call fcn.1400eb1a0
movups xmm0, xmmword [str._AES256__AESEncrypt__AES_encrypt_failed_]
mov qword [rsp + 0x50], 0x28
mov qword [rsp + 0x58], 0x2f
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14035afa0]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x14035afb0]
movsd qword [rax + 0x20], xmm0
mov byte [rax + 0x28], r15b
jmp 0x1401a713f
mov rax, qword [rbp - 0x79]
test rax, rax
je 0x1401a738b
mov r8d, dword [rbp - 0x61]
mov rcx, rax
mov rdx, qword [rbp - 0x59]
call fcn.1401a7990
test eax, eax
cmove edi, r15d
test rsi, rsi
je 0x1401a7398
mov rcx, rsi
call fcn.14021f46c
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x1401a73aa
call fcn.14021f46c
mov qword [rbp - 0x59], r15
mov rcx, qword [rbp - 0x71]
test rcx, rcx
je 0x1401a73bd
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rbp - 0x71], r15
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x1401a73ce
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.14021f250
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret