Function at 0x140012570
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140030010]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
xor esi, esi
test rcx, rcx
je 0x1400126f4
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test eax, eax
jne 0x1400126f4
lea rcx, str.AESCryptoUtility:_Error_during_CryptDestroyKey__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rbx, [rbp + 0x49]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
nop dword [rax + rax]
sub rbx, 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 [rbx], r9w
mov r9d, r8d
test r8d, r8d
jne 0x1400125e0
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], 7
mov word [rbp - 0x21], si
lea rax, [rbp + 0x49]
cmp rbx, rax
je 0x140012646
lea r8, [rbp + 0x49]
sub r8, rbx
sar r8, 1
mov rdx, rbx
lea rcx, [rbp - 0x21]
call fcn.14000f500
lea r8, [rbp - 0x21]
lea rdx, str.Error_code_:
lea rcx, [rbp - 1]
call fcn.14000f8a0
mov rdx, qword [rbp - 9]
cmp rdx, 8
jb 0x14001269d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012698
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140012698
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
lea rcx, [rbp - 1]
cmp qword [rbp + 0x17], 8
cmovae rcx, qword [rbp - 1]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rbp + 0x17]
cmp rdx, 8
jb 0x1400126f4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400126ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400126ef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140012845
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x140012845
lea rcx, str.AESCryptoUtility:_Error_during_CryptReleaseContext__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rbx, [rbp + 0x49]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
nop dword [rax + rax]
sub rbx, 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 [rbx], r9w
mov r9d, r8d
test r8d, r8d
jne 0x140012730
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], 7
mov word [rbp - 0x21], si
lea rax, [rbp + 0x49]
cmp rbx, rax
je 0x140012796
lea r8, [rbp + 0x49]
sub r8, rbx
sar r8, 1
mov rdx, rbx
lea rcx, [rbp - 0x21]
call fcn.14000f500
lea r8, [rbp - 0x21]
lea rdx, str.Error_code_:
lea rcx, [rbp - 1]
call fcn.14000f8a0
mov rdx, qword [rbp - 9]
cmp rdx, 8
jb 0x1400127ed
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400127e8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400127e8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
lea rcx, [rbp - 1]
cmp qword [rbp + 0x17], 8
cmovae rcx, qword [rbp - 1]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rbp + 0x17]
cmp rdx, 8
jb 0x140012845
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001283f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001283f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d9e0
nop
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14001d660
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret