Function at 0x140011da0
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 [0x140030010]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rcx
mov byte [rcx], 0
xor r14d, r14d
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 0x140011f50
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
mov r8d, edx
shr r8d, 3
movzx ecx, r8w
shl cx, 2
lea edx, [rcx + r8]
add dx, dx
sub r9w, dx
add r9w, 0x30
mov word [r10], r9w
mov r9d, r8d
test r8d, r8d
jne 0x140011e30
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x51], 7
mov word [rbp - 0x69], r14w
lea rax, [rbp + 0x31]
cmp r10, rax
je 0x140011e98
lea r8, [rbp + 0x31]
sub r8, r10
sar r8, 1
mov rdx, r10
lea rcx, [rbp - 0x69]
call fcn.14000f500
nop
lea r8, [rbp - 0x69]
lea rdx, str.Error_code_:
lea rcx, [rbp - 0x49]
call fcn.14000f8a0
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 8
jb 0x140011ef0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011eeb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011eeb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
lea rcx, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae rcx, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x140012235
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011f46
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011f46
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
jmp 0x140012235
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 0x1400120ca
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]
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 0x140011fb1
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x51], 7
mov word [rbp - 0x69], r14w
lea rax, [rbp + 0x31]
cmp r10, rax
je 0x140012014
lea r8, [rbp + 0x31]
sub r8, r10
sar r8, 1
mov rdx, r10
lea rcx, [rbp - 0x69]
call fcn.14000f500
nop
lea r8, [rbp - 0x69]
lea rdx, str.Error_code_:
lea rcx, [rbp - 0x49]
call fcn.14000f8a0
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 8
jb 0x14001206c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012067
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140012067
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
lea rcx, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae rcx, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x140012235
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011f46
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011f46
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
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 0x140012225
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]
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 0x140012110
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x51], 7
mov word [rbp - 0x69], r14w
lea rax, [rbp + 0x31]
cmp r10, rax
je 0x140012173
lea r8, [rbp + 0x31]
sub r8, r10
sar r8, 1
mov rdx, r10
lea rcx, [rbp - 0x69]
call fcn.14000f500
nop
lea r8, [rbp - 0x69]
lea rdx, str.Error_code_:
lea rcx, [rbp - 0x49]
call fcn.14000f8a0
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 8
jb 0x1400121cb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400121c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400121c6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
lea rcx, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae rcx, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x140012235
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011f46
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011f46
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
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.14001d660
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret