Function at 0x14007c2f0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x538]
sub rsp, 0x610
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rsi, r9
mov r14, rdx
mov r15, rcx
cmp qword [rcx + 0x10], 0
jne 0x14007c3a8
lea rdx, str.Decrypt_data_failed__key_not_initialized.
lea rcx, [rsp + 0x48]
call fcn.140027a80
mov rbx, rax
lea rax, str.PCCrypt.cpp
mov qword [rsp + 0x20], rax
lea r9, str.CPcCrypt::DecryptData
mov edx, 4
mov r8d, 0x143
lea rcx, [rbp - 0x30]
call fcn.14002c550
nop
mov rdx, rbx
mov rcx, rax
call fcn.14002cda0
nop
lea rcx, [rbp - 0x30]
call fcn.1400298d0
nop
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14007c39e
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.14002e610
mov eax, 0x139f
jmp 0x14007c5e4
test r8d, r8d
je 0x14007c56e
cmp qword [rdx], 0
je 0x14007c56e
mov r12, qword [rbp + 0x560]
mov dword [r12], r8d
mov r13d, r8d
mov ecx, r8d
call fcn.14026ded8
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
movzx r8d, byte [rbp + 0x540]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140055480
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140031f10
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14007c439
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14007c439
mov rbx, qword [rsp + 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14007c439
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsi]
test rcx, rcx
jne 0x14007c4bf
lea rdx, str.Decrypt_data_failed__memory_related_issues.
lea rcx, [rsp + 0x68]
call fcn.140027a80
mov rbx, rax
lea rax, str.PCCrypt.cpp
mov qword [rsp + 0x20], rax
lea r9, str.CPcCrypt::DecryptData
mov edx, 4
mov r8d, 0x14f
lea rcx, [rbp + 0x120]
call fcn.14002c550
nop
mov rdx, rbx
mov rcx, rax
call fcn.14002cda0
nop
lea rcx, [rbp + 0x120]
call fcn.1400298d0
nop
mov r8, qword [rbp - 0x80]
cmp r8, 8
jb 0x14007c4b5
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.14002e610
mov eax, 8
jmp 0x14007c5e4
mov edx, dword [r12]
mov r9, r13
mov r8, qword [r14]
call fcn.140028d70
mov rax, qword [rsi]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
mov rcx, qword [r15 + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov edi, eax
cmp eax, 1
je 0x14007c56a
lea rdx, str.Decrypt_data_failed__CryptDecrypt_call_failed.
lea rcx, [rbp - 0x78]
call fcn.140027a80
mov rbx, rax
lea rax, str.PCCrypt.cpp
mov qword [rsp + 0x20], rax
lea r9, str.CPcCrypt::DecryptData
mov edx, 4
mov r8d, 0x157
lea rcx, [rbp + 0x270]
call fcn.14002c550
nop
mov rdx, rbx
mov rcx, rax
call fcn.14002cda0
nop
lea rcx, [rbp + 0x270]
call fcn.1400298d0
nop
mov r8, qword [rbp - 0x60]
cmp r8, 8
jb 0x14007c566
inc r8
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x78]
call fcn.14002e610
mov eax, edi
jmp 0x14007c5e4
xor eax, eax
jmp 0x14007c5e4
lea rdx, str.Decrypt_data_failed__size_and_input_are_invalid.
lea rcx, [rbp - 0x58]
call fcn.140027a80
mov rbx, rax
lea rax, str.PCCrypt.cpp
mov qword [rsp + 0x20], rax
lea r9, str.CPcCrypt::DecryptData
mov edx, 4
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x3c0]
call fcn.14002c550
nop
mov rdx, rbx
mov rcx, rax
call fcn.14002cda0
nop
lea rcx, [rbp + 0x3c0]
call fcn.1400298d0
nop
mov r8, qword [rbp - 0x40]
cmp r8, 8
jb 0x14007c5df
inc r8
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x58]
call fcn.14002e610
mov eax, 0x57
lea r11, [rsp + 0x610]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret