Function at 0x14000f6e6
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rbx, rcx
mov r13, qword [rsp + 0xf8]
mov esi, dword [rcx + 0x5c]
shr rsi, 3
mov eax, dword [rcx + 0x3c]
mov ecx, eax
shr ecx, 3
cmp dword [rbx + 0x38], 0x6603
mov ebp, Ordinal_26
cmovne ebp, ecx
cmp eax, 0xc0
cmovae ebp, ecx
xor edi, edi
test r13, r13
mov dword [rsp + 0x64], r8d
mov qword [rsp + 0x78], r9
mov qword [rsp + 0x70], rdx
je 0x14000f7a8
mov r14d, dword [rbx + 0x58]
cmp r14d, 0x800e
mov r15d, 0x14
cmove r15d, esi
mov ecx, 0x40
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
test rax, rax
je 0x14000f972
mov r12, rax
cmp r14d, 0x800e
mov edi, 0x8004
cmove edi, r14d
mov rcx, r13
call fcn.1401070c4
lea r8d, [rax + rax]
mov dword [rsp + 0x20], r15d
mov ecx, edi
mov rdx, r13
mov r9, r12
call fcn.140006b54
test eax, eax
jne 0x14000f7ab
xor edi, edi
jmp 0x14000f969
xor r12d, r12d
mov ecx, 0x40
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
test rax, rax
je 0x14000f938
mov r14, rax
mov eax, dword [rsp + 0xf0]
mov ecx, dword [rbx + 0x58]
xor edi, edi
test r12, r12
cmove r15d, edi
mov r9d, dword [rbx + 0x40]
mov r8, qword [rbx + 0x44]
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x70]
mov edx, dword [rsp + 0x64]
call fcn.14000f559
test eax, eax
je 0x14000f95b
mov edx, ebp
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
test rax, rax
je 0x14000f95b
mov r15, rax
mov ecx, dword [rbx + 0x58]
mov dword [rsp + 0x20], ebp
mov rdx, r14
mov r8d, esi
mov r9, rax
call fcn.140007102
test eax, eax
je 0x14000f950
mov ecx, dword [rbx + 0x38]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor edi, edi
mov rdx, r15
mov r8d, ebp
xor r9d, r9d
call fcn.140006dde
test eax, eax
je 0x14000f93c
mov rsi, qword [rsp + 0x100]
mov edx, dword [rbx + 0x6c]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x14000f906
mov rdi, qword [rsp + 0x108]
mov rdx, qword [rbx + 0x70]
mov r8d, dword [rbx + 0x6c]
mov rcx, rax
call fcn.1400eeb30
mov eax, dword [rbx + 0x6c]
mov dword [rdi], eax
mov rax, qword [rsi]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
xor edx, edx
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.advapi32.dll_CryptDecrypt]
mov edi, eax
test eax, eax
jne 0x14000f906
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x1401417b0]
mov edx, eax
call fcn.140016430
xor edi, edi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.advapi32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x80]
call fcn.14000723a
test eax, eax
jne 0x14000f952
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__2_2___2__________v_
mov edx, eax
call fcn.140016430
jmp 0x14000f952
xor edi, edi
jmp 0x14000f964
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140141870]
mov edx, eax
call fcn.140016430
xor edi, edi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r12, r12
je 0x14000f972
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret