Function at 0x140145c30
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14044b080]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, r8
mov rsi, rdx
mov qword [rbp - 0x21], rdx
xor r15d, r15d
mov dword [rbp - 0x39], r15d
xor eax, eax
mov qword [rdx], rax
call fcn.140039c50
mov rcx, rax
test rax, rax
je 0x140145ef6
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14004487d.0]
add rax, 0x18
mov qword [rsi], rax
mov dword [rbp - 0x39], 1
test rbx, rbx
je 0x140145ec5
cmp r15w, word [rbx]
je 0x140145ec5
lea r12, vtable.CCrypt.0
mov qword [rbp + 7], r12
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], r15
mov qword [rbp + 0x1f], r15
lea rdx, str.4C78F73E_E4A3_4406_9967_AC8DBCC9B811
lea rcx, [rbp + 7]
call fcn.14006f490
test eax, eax
je 0x140145e50
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r15
lea rdx, [rbp - 0x11]
mov rcx, rbx
call fcn.14012e0b0
test al, al
je 0x140145dda
mov rax, qword [rbp - 9]
mov rcx, qword [rbp - 0x11]
sub rax, rcx
mov dword [rbp - 0x19], eax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor edx, edx
lea r8d, [r15 + 1]
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptDecrypt]
test eax, eax
je 0x140145dda
mov r8, qword [rbp - 9]
mov rdx, qword [rbp - 0x11]
sub r8, rdx
lea rcx, [rbp - 0x31]
call fcn.140133880
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsi]
sub rbx, 0x18
lea edi, [r15 - 1]
cmp rcx, rbx
je 0x140145db6
cmp dword [rbx + 0x10], r15d
jl 0x140145da9
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140145da9
call fcn.14003c400
mov r14, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x140145da0
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
mov rax, qword [rax + 8]
call qword [case.0x14004487d.0]
lea rax, [r14 + 0x18]
mov qword [rsi], rax
jmp 0x140145db6
mov r8d, dword [rdx - 0x10]
mov rcx, rsi
call fcn.14003beb0
nop
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140145e14
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14004487d.0]
jmp 0x140145e14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.CMetadataManager::ReadDecryptedFile____DecryptFile____failed__d.
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r9d, 2
lea r8, [0x1404675c0]
mov edx, 0x3c6
lea rcx, str.d:jenkinsworkspacemainrel4_dellconsumermainrel4_dellconsumerplatform_vista_sharedmetadatamanager.cpp
call fcn.140039f30
nop
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x140145e8a
mov rdx, qword [rbp - 1]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140145e49
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140145ef0
call fcn.140202ee8
jmp 0x140145e8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.CMetadataManager::ReadDecryptedFile____Init_failed__d.
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r9d, 2
lea r8, [0x1404675c0]
mov edx, 0x3cb
lea rcx, str.d:jenkinsworkspacemainrel4_dellconsumermainrel4_dellconsumerplatform_vista_sharedmetadatamanager.cpp
call fcn.140039f30
nop
mov qword [rbp + 7], r12
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x140145ea1
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptDestroyHash]
mov qword [rbp + 0x17], r15
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x140145eb4
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptDestroyKey]
mov qword [rbp + 0xf], r15
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x140145ec5
xor edx, edx
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptReleaseContext]
mov rax, rsi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140202880
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140238390
nop
mov ecx, 0x80004005
call fcn.140039950
int3