Function at 0x140193f70
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 [0x1403debe8]
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 0x1401940bd
test rbx, rbx
je 0x1401940bd
lea r8, [rbp - 0x51]
xor edx, edx
mov rcx, rbx
call fcn.1401945d0
test eax, eax
je 0x1401940ae
mov r14d, dword [rbp - 0x51]
test r14d, r14d
je 0x1401940a5
mov ecx, r14d
call fcn.14020c67c
mov qword [rbp - 0x49], rax
mov rsi, rax
test rax, rax
jne 0x14019407a
lea ecx, [rdi + 0x2f]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], SafeArrayLock
call fcn.1400e1b00
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 [0x1402ddbc8]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1402ddbd8]
movsd qword [rax + 0x20], xmm0
mov byte [rax + 0x28], r15b
mov qword [rsp + 0x40], rax
call fcn.140195010
mov edi, r15d
jmp 0x14019443b
lea r8, [rbp - 0x51]
mov rdx, rax
mov rcx, rbx
call fcn.1401945d0
mov rsi, qword [rbp - 0x49]
test eax, eax
jne 0x14019409c
xor r15d, r15d
mov edi, r15d
jmp 0x14019443b
mov r14d, dword [rbp - 0x51]
jmp 0x140194141
mov rsi, qword [rbp - 0x49]
jmp 0x140194141
mov rsi, qword [rbp - 0x49]
xor r15d, r15d
mov edi, r15d
jmp 0x14019443b
mov rcx, r14
call fcn.14020c67c
mov rsi, rax
test rax, rax
jne 0x140194133
xor r15d, r15d
mov qword [rbp - 0x39], SafeArrayLock
lea ecx, [rax + 0x30]
mov qword [rbp - 0x51], r15
mov qword [rbp - 0x41], r15
call fcn.1400e1b00
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 [0x1402ddbc8]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1402ddbd8]
movsd qword [rax + 0x20], xmm0
mov byte [rax + 0x28], r15b
mov qword [rbp - 0x51], rax
call fcn.140195010
mov edi, r15d
jmp 0x14019443b
mov r8, r14
mov rdx, r15
mov rcx, rax
call fcn.140244220
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 0x140194206
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x140194206
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 0x140194206
lea ecx, [rax + 0x40]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], SafeArrayLock
call fcn.1400e1b00
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 [0x1402ddbf8]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x1402ddc08]
movups xmmword [rax + 0x20], xmm0
movzx ecx, byte [0x1402ddc18]
mov byte [rax + 0x30], cl
mov byte [rax + 0x31], r15b
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.140195010
mov edi, r15d
jmp 0x14019443b
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 0x1401942bc
lea ecx, [rax + 0x30]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], SafeArrayLock
call fcn.1400e1b00
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 [0x1402ddc30]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x1402ddc40]
mov dword [rax + 0x20], ecx
movzx ecx, word [0x1402ddc44]
mov word [rax + 0x24], cx
movzx ecx, byte [0x1402ddc46]
mov byte [rax + 0x26], cl
mov byte [rax + 0x27], r15b
jmp 0x1401941ef
mov rcx, qword [rbp - 0x71]
xor r9d, r9d
mov edx, edi
test r12, r12
jne 0x14019435f
mov r8, r13
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x140194367
lea ecx, [rax + 0x40]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], SafeArrayLock
call fcn.1400e1b00
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 [0x1402ddc58]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x1402ddc68]
movups xmmword [rax + 0x20], xmm0
movzx ecx, word [0x1402ddc78]
mov word [rax + 0x30], cx
lea rcx, [rsp + 0x40]
movzx eax, byte [0x1402ddc7a]
mov byte [rdx + 0x32], al
mov byte [rdx + 0x33], r15b
mov qword [rsp + 0x40], rdx
call fcn.140195010
mov edi, r15d
jmp 0x14019443b
mov r8, r12
jmp 0x1401942d1
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.14020c67c
mov r8d, r14d
mov rdx, rsi
mov rcx, rax
mov qword [rbp - 0x59], rax
call fcn.140244220
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 0x14019441c
lea ecx, [rax + 0x30]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], SafeArrayLock
call fcn.1400e1b00
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 [0x1402ddc90]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1402ddca0]
movsd qword [rax + 0x20], xmm0
mov byte [rax + 0x28], r15b
jmp 0x1401941ef
mov rax, qword [rbp - 0x79]
test rax, rax
je 0x14019443b
mov r8d, dword [rbp - 0x61]
mov rcx, rax
mov rdx, qword [rbp - 0x59]
call fcn.140194a40
test eax, eax
cmove edi, r15d
test rsi, rsi
je 0x140194448
mov rcx, rsi
call fcn.14020c5fc
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x14019445a
call fcn.14020c5fc
mov qword [rbp - 0x59], r15
mov rcx, qword [rbp - 0x71]
test rcx, rcx
je 0x14019446d
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rbp - 0x71], r15
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x14019447e
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.14020c3e0
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret