Function at 0x140193960
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, 0xd8
mov rax, qword [0x1403debe8]
xor rax, rsp
mov qword [rbp - 1], rax
mov r15, qword [rbp + 0x77]
xor eax, eax
mov r14, qword [rbp + 0x7f]
xorps xmm0, xmm0
mov ebx, r9d
mov r12, r8
mov qword [rbp - 0x79], rcx
mov r13, rdx
mov qword [rbp - 0x71], rax
lea esi, [rax + 1]
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x59], rax
movups xmmword [rbp - 0x51], xmm0
test r8, r8
jne 0x140193a95
test r15, r15
je 0x140193a95
lea r8, [rbp - 0x51]
xor edx, edx
mov rcx, r15
call fcn.1401945d0
test eax, eax
je 0x140193a8c
mov ebx, dword [rbp - 0x51]
test ebx, ebx
je 0x140193a83
mov ecx, ebx
call fcn.14020c67c
mov qword [rbp - 0x49], rax
mov rdi, rax
test rax, rax
jne 0x140193a5c
lea ecx, [rsi + 0x2f]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], SafeArrayLock
call fcn.1400e1b00
movups xmm0, xmmword [str._AES256__prepareData__Not_enough_memory.]
mov qword [rsp + 0x40], 0x28
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x48], 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], r12b
mov qword [rsp + 0x30], rax
jmp 0x140193b02
lea r8, [rbp - 0x51]
mov rdx, rax
mov rcx, r15
call fcn.1401945d0
mov rdi, qword [rbp - 0x49]
test eax, eax
jne 0x140193a7b
xor r12d, r12d
jmp 0x140193b07
mov ebx, dword [rbp - 0x51]
jmp 0x140193b88
mov rdi, qword [rbp - 0x49]
jmp 0x140193b88
mov rdi, qword [rbp - 0x49]
xor r12d, r12d
jmp 0x140193b07
mov rcx, rbx
call fcn.14020c67c
mov rdi, rax
test rax, rax
jne 0x140193b7a
xor r12d, r12d
mov qword [rbp - 0x39], SafeArrayLock
lea ecx, [rax + 0x30]
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x41], r12
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], r12b
mov qword [rbp - 0x51], rax
call fcn.140195010
mov ecx, 0x30
mov qword [rsp + 0x30], r12
mov esi, r12d
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], SafeArrayLock
call fcn.1400e1b00
movups xmm0, xmmword [str._AES256__AESDecrypt__prepareData_error]
mov qword [rsp + 0x40], 0x26
mov qword [rsp + 0x48], 0x2f
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1402ddcc0]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x1402ddcd0]
mov dword [rax + 0x20], ecx
movzx ecx, word [0x1402ddcd4]
mov word [rax + 0x24], cx
lea rcx, [rsp + 0x30]
mov byte [rax + 0x26], 0
mov qword [rsp + 0x30], rax
call fcn.140195010
jmp 0x140193f05
mov r8, rbx
mov rdx, r12
mov rcx, rax
call fcn.140244220
xor r12d, r12d
lea rcx, [rbp - 0x69]
xor r8d, r8d
mov dword [rsp + 0x20], r12d
xor edx, edx
lea r9d, [r12 + 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140193c4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x140193c4f
lea r9d, [r12 + 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 0x140193c4f
lea ecx, [rax + 0x40]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], SafeArrayLock
call fcn.1400e1b00
movups xmm0, xmmword [str._AES256__AESDecrypt__Get_provider_context_failed_]
mov qword [rsp + 0x40], 0x31
mov qword [rsp + 0x48], 0x3f
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1402ddce8]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x1402ddcf8]
movups xmmword [rax + 0x20], xmm0
movzx ecx, byte [0x1402ddd08]
mov byte [rax + 0x30], cl
mov byte [rax + 0x31], r12b
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.140195010
mov esi, r12d
jmp 0x140193f05
mov r15, qword [rbp - 0x79]
lea rax, [rbp - 0x71]
mov rcx, qword [rbp - 0x69]
lea rdx, [rbp - 0x31]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov dword [rbp - 0x31], 0x208
movups xmm0, xmmword [r15]
mov dword [rbp - 0x2d], 0x6610
movups xmm1, xmmword [r15 + 0x10]
lea r8d, [r9 + 0x2c]
mov dword [rbp - 0x29], 0x20
movups xmmword [rbp - 0x25], xmm0
mov dword [rsp + 0x20], esi
movups xmmword [rbp - 0x15], xmm1
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x140193d08
lea ecx, [rax + 0x30]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], SafeArrayLock
call fcn.1400e1b00
movups xmm0, xmmword [str._AES256__AESDecrypt__Create_key_failed_]
mov qword [rsp + 0x40], 0x27
mov qword [rsp + 0x48], 0x2f
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1402ddd20]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x1402ddd30]
mov dword [rax + 0x20], ecx
movzx ecx, word [0x1402ddd34]
mov word [rax + 0x24], cx
movzx ecx, byte [0x1402ddd36]
mov byte [rax + 0x26], cl
mov byte [rax + 0x27], r12b
jmp 0x140193c38
mov rcx, qword [rbp - 0x71]
xor r9d, r9d
mov edx, esi
test r13, r13
jne 0x140193dab
mov r8, r15
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x140193db3
lea ecx, [rax + 0x40]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], SafeArrayLock
call fcn.1400e1b00
movups xmm0, xmmword [str._AES256__AESDecrypt__Set_keys_IV_parameter_failed_]
mov qword [rsp + 0x40], 0x33
mov rdx, rax
mov qword [rsp + 0x48], 0x3f
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1402ddd48]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x1402ddd58]
movups xmmword [rax + 0x20], xmm0
movzx ecx, word [0x1402ddd68]
mov word [rax + 0x30], cx
lea rcx, [rsp + 0x30]
movzx eax, byte [0x1402ddd6a]
mov byte [rdx + 0x32], al
mov byte [rdx + 0x33], r12b
mov qword [rsp + 0x30], rdx
call fcn.140195010
mov esi, r12d
jmp 0x140193f05
mov r8, r13
jmp 0x140193d1d
xorps xmm0, xmm0
mov rcx, rbx
movups xmmword [rbp - 0x61], xmm0
mov dword [rbp - 0x61], ebx
call fcn.14020c67c
mov r8, rbx
mov qword [rbp - 0x59], rax
mov rdx, rdi
mov rcx, rax
call fcn.140244220
mov rcx, qword [rbp - 0x71]
lea rax, [rbp - 0x61]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov rax, qword [rbp - 0x59]
mov r8d, esi
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x140193e57
lea ecx, [rax + 0x30]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], SafeArrayLock
call fcn.1400e1b00
movups xmm0, xmmword [str._AES256__AESDecrypt__AES_decrypt_failed_]
mov qword [rsp + 0x40], 0x28
mov qword [rsp + 0x48], 0x2f
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1402ddd80]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1402ddd90]
movsd qword [rax + 0x20], xmm0
mov byte [rax + 0x28], r12b
jmp 0x140193c38
mov r8d, dword [rbp - 0x61]
lea rcx, [rbp - 0x51]
mov rdx, qword [rbp - 0x59]
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x41], r12
mov qword [rbp - 0x39], SafeArrayLock
call fcn.1400f8840
lea rax, [rbp - 0x51]
cmp r14, rax
je 0x140193ece
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x140193ebb
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x140193eb6
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140193f6a
mov rcx, r8
call fcn.14020be84
movups xmm0, xmmword [rbp - 0x51]
movups xmm1, xmmword [rbp - 0x41]
movups xmmword [r14], xmm0
movups xmmword [r14 + 0x10], xmm1
jmp 0x140193f05
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x140193f05
mov rcx, qword [rbp - 0x51]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140193f00
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140193f6a
call fcn.14020be84
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x140193f17
call fcn.14020c5fc
mov qword [rbp - 0x59], r12
test rdi, rdi
je 0x140193f24
mov rcx, rdi
call fcn.14020c5fc
mov rcx, qword [rbp - 0x71]
test rcx, rcx
je 0x140193f37
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rbp - 0x71], r12
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x140193f48
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.14020c3e0
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3