Function at 0x140162010
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 [0x14035cb78]
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 0x14016215d
test rbx, rbx
je 0x14016215d
lea r8, [rbp - 0x51]
xor edx, edx
mov rcx, rbx
call fcn.140162670
test eax, eax
je 0x14016214e
mov r14d, dword [rbp - 0x51]
test r14d, r14d
je 0x140162145
mov ecx, r14d
call fcn.1401c7aec
mov qword [rbp - 0x49], rax
mov rsi, rax
test rax, rax
jne 0x14016211a
lea ecx, [rdi + 0x2f]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], SafeArrayGetLBound
call fcn.1400b9950
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 [0x1402840f8]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x140284108]
movsd qword [rax + 0x20], xmm0
mov byte [rax + 0x28], r15b
mov qword [rsp + 0x40], rax
call fcn.1401630b0
mov edi, r15d
jmp 0x1401624db
lea r8, [rbp - 0x51]
mov rdx, rax
mov rcx, rbx
call fcn.140162670
mov rsi, qword [rbp - 0x49]
test eax, eax
jne 0x14016213c
xor r15d, r15d
mov edi, r15d
jmp 0x1401624db
mov r14d, dword [rbp - 0x51]
jmp 0x1401621e1
mov rsi, qword [rbp - 0x49]
jmp 0x1401621e1
mov rsi, qword [rbp - 0x49]
xor r15d, r15d
mov edi, r15d
jmp 0x1401624db
mov rcx, r14
call fcn.1401c7aec
mov rsi, rax
test rax, rax
jne 0x1401621d3
xor r15d, r15d
mov qword [rbp - 0x39], SafeArrayGetLBound
lea ecx, [rax + 0x30]
mov qword [rbp - 0x51], r15
mov qword [rbp - 0x41], r15
call fcn.1400b9950
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 [0x1402840f8]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x140284108]
movsd qword [rax + 0x20], xmm0
mov byte [rax + 0x28], r15b
mov qword [rbp - 0x51], rax
call fcn.1401630b0
mov edi, r15d
jmp 0x1401624db
mov r8, r14
mov rdx, r15
mov rcx, rax
call fcn.1401ff6b0
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 0x1401622a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1401622a6
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 0x1401622a6
lea ecx, [rax + 0x40]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], SafeArrayGetLBound
call fcn.1400b9950
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 [0x140284128]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x140284138]
movups xmmword [rax + 0x20], xmm0
movzx ecx, byte [0x140284148]
mov byte [rax + 0x30], cl
mov byte [rax + 0x31], r15b
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.1401630b0
mov edi, r15d
jmp 0x1401624db
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 0x14016235c
lea ecx, [rax + 0x30]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], SafeArrayGetLBound
call fcn.1400b9950
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 [0x140284160]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x140284170]
mov dword [rax + 0x20], ecx
movzx ecx, word [0x140284174]
mov word [rax + 0x24], cx
movzx ecx, byte [0x140284176]
mov byte [rax + 0x26], cl
mov byte [rax + 0x27], r15b
jmp 0x14016228f
mov rcx, qword [rbp - 0x71]
xor r9d, r9d
mov edx, edi
test r12, r12
jne 0x1401623ff
mov r8, r13
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x140162407
lea ecx, [rax + 0x40]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], SafeArrayGetLBound
call fcn.1400b9950
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 [0x140284188]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x140284198]
movups xmmword [rax + 0x20], xmm0
movzx ecx, word [0x1402841a8]
mov word [rax + 0x30], cx
lea rcx, [rsp + 0x40]
movzx eax, byte [0x1402841aa]
mov byte [rdx + 0x32], al
mov byte [rdx + 0x33], r15b
mov qword [rsp + 0x40], rdx
call fcn.1401630b0
mov edi, r15d
jmp 0x1401624db
mov r8, r12
jmp 0x140162371
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.1401c7aec
mov r8d, r14d
mov rdx, rsi
mov rcx, rax
mov qword [rbp - 0x59], rax
call fcn.1401ff6b0
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 0x1401624bc
lea ecx, [rax + 0x30]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], SafeArrayGetLBound
call fcn.1400b9950
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 [0x1402841c0]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1402841d0]
movsd qword [rax + 0x20], xmm0
mov byte [rax + 0x28], r15b
jmp 0x14016228f
mov rax, qword [rbp - 0x79]
test rax, rax
je 0x1401624db
mov r8d, dword [rbp - 0x61]
mov rcx, rax
mov rdx, qword [rbp - 0x59]
call fcn.140162ae0
test eax, eax
cmove edi, r15d
test rsi, rsi
je 0x1401624e8
mov rcx, rsi
call fcn.1401c7a6c
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x1401624fa
call fcn.1401c7a6c
mov qword [rbp - 0x59], r15
mov rcx, qword [rbp - 0x71]
test rcx, rcx
je 0x14016250d
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rbp - 0x71], r15
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x14016251e
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.1401c7850
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret