Function at 0x140018a40
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Print debug messages

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rbp - 0x71], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14005d030]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rcx
xor r14d, r14d
mov byte [rcx], r14b
mov qword [rcx + 8], r14
lea rbx, [rcx + 0x10]
mov qword [rbx], r14
mov dword [rcx + 0x18], 0x10
mov dword [rsp + 0x20], 0xf0000000
lea r9d, [r14 + 0x18]
xor r8d, r8d
xor edx, edx
add rcx, 8
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140018bc5
lea rcx, str.AESCryptoUtility:_Error_acquiring_cryptographic_provider_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r10, [rbp + 0x31]
nop dword [rax + rax]
sub r10, 2
mov eax, 0xcccccccd
mul r9d
shr edx, 3
movzx ecx, dx
shl cx, 2
lea r8d, [rcx + rdx]
add r8w, r8w
sub r9w, r8w
add r9w, 0x30
mov word [r10], r9w
mov r9d, edx
test edx, edx
jne 0x140018ad0
lea r8, [rbp + 0x31]
mov rdx, r10
lea rcx, [rbp - 0x49]
call fcn.1400162e0
nop
lea r8, [rbp - 0x49]
lea rdx, str.Error_code_:
lea rcx, [rbp - 0x69]
call fcn.140015430
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x140018b68
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018b63
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018e96
call fcn.140024800
lea rcx, [rbp - 0x69]
cmp qword [rbp - 0x51], 8
cmovae rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rbp - 0x51]
cmp rdx, 8
jb 0x140018e5d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018bbb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018e9c
call fcn.140024800
jmp 0x140018e5d
mov dword [rbp - 0x29], 0x208
mov dword [rbp - 0x25], 0x660e
mov dword [rbp - 0x21], 0x10
movups xmm0, xmmword [str.MZygpewJsCpRrfOr]
movups xmmword [rbp - 0x1d], xmm0
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea r8d, [r9 + 0x2c]
lea rdx, [rbp - 0x29]
mov rcx, qword [rsi + 8]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x140018d24
lea rcx, str.AESCryptoUtility:_Error_during_CryptImportKey.__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r10, [rbp + 0x31]
nop word [rax + rax]
sub r10, 2
mov eax, 0xcccccccd
mul r9d
shr edx, 3
movzx ecx, dx
shl cx, 2
lea r8d, [rcx + rdx]
add r8w, r8w
sub r9w, r8w
add r9w, 0x30
mov word [r10], r9w
mov r9d, edx
test edx, edx
jne 0x140018c30
lea r8, [rbp + 0x31]
mov rdx, r10
lea rcx, [rbp - 0x49]
call fcn.1400162e0
nop
lea r8, [rbp - 0x49]
lea rdx, str.Error_code_:
lea rcx, [rbp - 0x69]
call fcn.140015430
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x140018cc8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018cc3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018ea2
call fcn.140024800
lea rcx, [rbp - 0x69]
cmp qword [rbp - 0x51], 8
cmovae rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rbp - 0x51]
cmp rdx, 8
jb 0x140018e5d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018bbb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018e8a
jmp 0x140018bbb
mov dword [rbp - 0x79], 2
xor r9d, r9d
lea r8, [rbp - 0x79]
lea edx, [r9 + 4]
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x140018e4d
lea rcx, str.Error_during_CryptSetKeyParam.__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r10, [rbp + 0x31]
sub r10, 2
mov eax, 0xcccccccd
mul r9d
shr edx, 3
movzx ecx, dx
shl cx, 2
lea r8d, [rcx + rdx]
add r8w, r8w
sub r9w, r8w
add r9w, 0x30
mov word [r10], r9w
mov r9d, edx
test edx, edx
jne 0x140018d61
lea r8, [rbp + 0x31]
mov rdx, r10
lea rcx, [rbp - 0x49]
call fcn.1400162e0
nop
lea r8, [rbp - 0x49]
lea rdx, str.Error_code_:
lea rcx, [rbp - 0x69]
call fcn.140015430
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x140018df9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018df4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018e84
call fcn.140024800
lea rcx, [rbp - 0x69]
cmp qword [rbp - 0x51], 8
cmovae rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rbp - 0x51]
cmp rdx, 8
jb 0x140018e5d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018bbb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018e90
jmp 0x140018bbb
lea rcx, str.AESCryptoUtility:_Key_initialized_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [rsi], 1
mov rax, rsi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400247e0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.14002bf94
int3
call fcn.14002bf94
int3
call fcn.14002bf94
int3
call fcn.14002bf94
int3
call fcn.14002bf94
int3
call fcn.14002bf94
int3