Function at 0x14000f710
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov dword [rsp + 0x50], 0
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x1c], 0x8009
jne 0x14000f74e
mov dword [rsp + 0x68], 0x8004
jmp 0x14000f75d
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x1c]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x70], eax
mov ecx, dword [rsp + 0x70]
call fcn.140007ab0
mov dword [rsp + 0x90], eax
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0x28]
call fcn.140007c00
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0x28]
call fcn.140007b50
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x6c]
mov ecx, dword [rsp + 0x54]
add ecx, eax
mov eax, ecx
mov eax, eax
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x14000fab6
mov eax, dword [rsp + 0x6c]
mov ecx, dword [rsp + 0x54]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xb0]
add rcx, 0x34
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0x10
mov r9, rcx
mov r8d, dword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0x70]
call fcn.140006d10
test eax, eax
je 0x14000faa8
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x80]
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0x28]
call fcn.140007670
test eax, eax
je 0x14000fa94
mov eax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
xor r9d, r9d
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x14000fa5f
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x54]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x14000fa5f
mov eax, dword [rsp + 0x5c]
mov r8d, eax
mov rax, qword [rsp + 0xb0]
mov rdx, qword [rax + 0x4c]
mov rcx, qword [rsp + 0x60]
call fcn.140161160
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x14000fa54
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x2c], 0x14
jae 0x14000f94f
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x2c]
mov dword [rsp + 0x74], eax
jmp 0x14000f957
mov dword [rsp + 0x74], Ordinal_26
mov eax, dword [rsp + 0x74]
mov r8d, eax
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xd0]
call fcn.140161160
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x30], 0x10
jae 0x14000f98f
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x30]
mov dword [rsp + 0x78], eax
jmp 0x14000f997
mov dword [rsp + 0x78], 0x10
mov eax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0xb0]
mov ecx, dword [rcx + 0x2c]
mov rdx, qword [rsp + 0x60]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0xc8]
call fcn.140161160
mov dword [rsp + 0x50], 1
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x30]
sub eax, 0x10
test eax, eax
je 0x14000fa54
mov dword [rsp + 0x58], 0
jmp 0x14000f9f2
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x30]
sub eax, 0x10
cmp dword [rsp + 0x58], eax
jae 0x14000fa54
cmp dword [rsp + 0x50], 0
je 0x14000fa54
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x2c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x58]
movzx eax, byte [rax + rcx + 0x10]
test eax, eax
jne 0x14000fa3a
mov dword [rsp + 0x7c], 1
jmp 0x14000fa42
mov dword [rsp + 0x7c], 0
mov eax, dword [rsp + 0x7c]
mov ecx, dword [rsp + 0x50]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
jmp 0x14000f9e8
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x98]
call fcn.1400069e0
test eax, eax
jne 0x14000fa92
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_dpapi_unprotect_credhist_entry_with_shaDerivedkey___kull_m_crypto_close_hprov_delete_container__0x_08x__n
call fcn.140013fd0
jmp 0x14000faa8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_dpapi_unprotect_credhist_entry_with_shaDerivedkey___kull_m_crypto_hkey_session__0x_08x__n
call fcn.140013fd0
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0x50]
add rsp, 0xa8
ret