Function at 0x14000e280
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, 0xb8
mov dword [rsp + 0x68], 0
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x18], 0x8009
jne 0x14000e2be
mov dword [rsp + 0x6c], 0x8004
jmp 0x14000e2cd
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x5c], eax
mov ecx, dword [rsp + 0x5c]
call fcn.140007ab0
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rax + 0x1c]
call fcn.140007c00
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rax + 0x1c]
call fcn.140007b50
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x70]
mov ecx, dword [rsp + 0x58]
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 0x14000e6fb
mov eax, dword [rsp + 0x70]
mov ecx, dword [rsp + 0x58]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xc0]
add rcx, 4
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0x10
mov r9, rcx
mov r8d, dword [rsp + 0xd0]
mov rdx, qword [rsp + 0xc8]
mov ecx, dword [rsp + 0x5c]
call fcn.140006d10
test eax, eax
je 0x14000e6ed
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x80]
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rax + 0x1c]
call fcn.140007670
test eax, eax
je 0x14000e6d9
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
xor r9d, r9d
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x14000e6a4
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x14000e6a4
mov eax, dword [rsp + 0x54]
mov r8d, eax
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
call fcn.140161160
lea rax, [rsp + 0x54]
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 + 0x98]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x14000e699
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x1c], 0x6603
jne 0x14000e4b8
mov dword [rsp + 0x74], 4
jmp 0x14000e4c0
mov dword [rsp + 0x74], 0
mov eax, dword [rsp + 0x54]
sub eax, 0x10
sub eax, dword [rsp + 0x50]
sub eax, dword [rsp + 0x74]
mov rcx, qword [rsp + 0xe0]
mov dword [rcx], eax
mov eax, dword [rsp + 0x50]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x14000e699
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x10
mov r9, qword [rsp + 0x60]
mov r8d, dword [rsp + 0xd0]
mov rdx, qword [rsp + 0xc8]
mov ecx, dword [rsp + 0x5c]
call fcn.140006af0
test eax, eax
je 0x14000e68b
mov eax, dword [rsp + 0x50]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x14000e68b
mov eax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xe0]
mov ecx, dword [rcx]
sub rax, rcx
mov ecx, dword [rsp + 0x50]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0xe0]
mov ecx, dword [rcx]
mov dword [rsp + 0x20], ecx
mov r9, rax
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x90]
mov ecx, dword [rsp + 0x5c]
call fcn.140006af0
test eax, eax
je 0x14000e67d
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
add rcx, 0x10
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x88]
call fcn.140161ba0
test eax, eax
jne 0x14000e5fa
mov dword [rsp + 0x78], 1
jmp 0x14000e602
mov dword [rsp + 0x78], 0
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x14000e67d
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0xd8]
mov qword [rcx], rax
mov rax, qword [rsp + 0xd8]
cmp qword [rax], 0
je 0x14000e67d
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax]
mov ecx, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x60]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0xe0]
mov edx, dword [rdx]
sub rcx, rdx
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rax]
call fcn.140161160
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0xa0]
call fcn.1400069e0
test eax, eax
jne 0x14000e6d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_dpapi_unprotect_masterkey_with_shaDerivedkey___kull_m_crypto_close_hprov_delete_container__0x_08x__n
call fcn.140013fd0
jmp 0x14000e6ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_dpapi_unprotect_masterkey_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 + 0x68]
add rsp, 0xb8
ret