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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x1400269c0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x58], 1
mov rax, qword [rsp + 0xd0]
mov qword [rax], 0
mov rax, qword [rsp + 0xd8]
mov dword [rax], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
lea r8, [0x1400260a8]
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1400010ab
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, [0x1400260e0]
call fcn.140002a70
nop
jmp 0x1400012c9
mov byte [rsp + 0x60], 8
mov byte [rsp + 0x61], 2
xor eax, eax
mov word [rsp + 0x62], ax
mov dword [rsp + 0x64], 0x6610
mov dword [rsp + 0x68], 0x20
mov r8d, 0x20
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x6c]
call fcn.140019970
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x2c
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x14000112d
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, [0x140026100]
call fcn.140002a70
nop
jmp 0x1400012c9
xor r9d, r9d
mov r8, qword [rsp + 0xc8]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x140001166
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, [0x140026120]
call fcn.140002a70
nop
jmp 0x1400012c9
xor r9d, r9d
lea r8, [rsp + 0x58]
mov edx, 4
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x14000119c
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, [0x140026140]
call fcn.140002a70
nop
jmp 0x1400012c9
mov rax, qword [rsp + 0xd8]
mov ecx, dword [rsp + 0xb8]
mov dword [rax], ecx
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x1400011ff
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, str.CryptEncrypt__calculate_size__failed:__d_n
call fcn.140002a70
nop
jmp 0x1400012c9
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax]
mov ecx, eax
call fcn.1400063ec
mov rcx, qword [rsp + 0xd0]
mov qword [rcx], rax
mov rax, qword [rsp + 0xd0]
cmp qword [rax], 0
jne 0x14000123b
lea rcx, [0x140026198]
call fcn.140002a70
nop
jmp 0x1400012c9
mov eax, dword [rsp + 0xb8]
mov r8d, eax
mov rdx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax]
call fcn.140019970
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x1400012c1
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, str.CryptEncrypt_failed:__d_n
call fcn.140002a70
nop
jmp 0x1400012c9
mov dword [rsp + 0x40], 1
cmp qword [rsp + 0x48], 0
je 0x1400012dd
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
nop
cmp qword [rsp + 0x50], 0
je 0x1400012f3
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
cmp dword [rsp + 0x40], 0
jne 0x140001327
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax]
call fcn.1400063d8
mov rax, qword [rsp + 0xd0]
mov qword [rax], 0
mov rax, qword [rsp + 0xd8]
mov dword [rax], 0
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140002d40
add rsp, 0xa8
ret