Function at 0x14000e9f0
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, 0x98
mov dword [rsp + 0x60], 0
mov rax, qword [rsp + 0xa0]
cmp dword [rax + 0x18], 0x8009
jne 0x14000ea2e
mov dword [rsp + 0x64], 0x8004
jmp 0x14000ea3d
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x58], eax
mov ecx, dword [rsp + 0x58]
call fcn.140007ab0
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rax + 0x1c]
call fcn.140007c00
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rax + 0x1c]
call fcn.140007b50
mov dword [rsp + 0x54], eax
xor edx, edx
mov eax, dword [rsp + 0x50]
div dword [rsp + 0x54]
mov eax, edx
mov ecx, dword [rsp + 0x50]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0xc0]
lea eax, [rax + rcx + 0x10]
mov rcx, qword [rsp + 0xa0]
mov dword [rcx + 0x28], eax
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0x28]
add eax, dword [rsp + 0x54]
mov eax, eax
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
mov qword [rax + 0x20], rcx
cmp qword [rsp + 0x78], 0
je 0x14000ee11
cmp qword [rsp + 0xc8], 0
je 0x14000eb18
mov r8d, 0x10
mov rdx, qword [rsp + 0xc8]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x20]
call fcn.140161160
jmp 0x14000eb2f
mov edx, 0x10
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.cryptdll.dll_CDGenerateRandomBits]
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x20]
add rax, 0x10
mov ecx, dword [rsp + 0x50]
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x10
mov rax, qword [rsp + 0xa0]
mov r9, qword [rax + 0x20]
mov r8d, dword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x58]
call fcn.140006af0
test eax, eax
je 0x14000eddd
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x20]
add rax, 0x10
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0x20]
add rcx, 0x10
mov edx, dword [rsp + 0x50]
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xb8]
mov r8d, dword [rsp + 0x50]
mov rdx, rcx
mov ecx, dword [rsp + 0x58]
call fcn.140006af0
test eax, eax
je 0x14000eddd
mov eax, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0x20]
mov edx, dword [rsp + 0x50]
lea rcx, [rcx + rdx + 0x10]
mov r8d, eax
mov rdx, qword [rsp + 0xb8]
call fcn.140161160
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x5c]
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 + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x14000eddd
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x5c]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xa0]
add rcx, 4
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0x10
mov r9, rcx
mov r8d, dword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x58]
call fcn.140006d10
test eax, eax
je 0x14000edd2
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x5c]
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rax + 0x1c]
call fcn.140007670
test eax, eax
je 0x14000edbe
mov eax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
xor r9d, r9d
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x14000ed8c
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0x28]
add eax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0xa0]
add rcx, 0x28
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x14000ed78
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rsp + 0x54]
mov eax, dword [rax + 0x28]
sub eax, ecx
mov rcx, qword [rsp + 0xa0]
mov dword [rcx + 0x28], eax
jmp 0x14000ed8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_dpapi_protect_masterkey_with_shaDerivedkey___CryptEncrypt__0x_08x__n
call fcn.140013fd0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x80]
call fcn.1400069e0
test eax, eax
jne 0x14000edbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_dpapi_protect_masterkey_with_shaDerivedkey___kull_m_crypto_close_hprov_delete_container__0x_08x__n
call fcn.140013fd0
jmp 0x14000edd2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_dpapi_protect_masterkey_with_shaDerivedkey___kull_m_crypto_hkey_session__0x_08x__n
call fcn.140013fd0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [rsp + 0x60], 0
jne 0x14000ee11
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0xa0]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0xa0]
mov dword [rax + 0x28], 0
mov eax, dword [rsp + 0x60]
add rsp, 0x98
ret