Function at 0x1401078e0
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
lea rdx, str.Microsoft_WinInet_
mov rcx, qword [rcx + 8]
call fcn.14011a80c
test rax, rax
je 0x140107994
mov edx, dword [rbx + 0x20]
cmp edx, 0x14
jb 0x140107b14
mov rcx, qword [rbx + 0x28]
mov rax, qword [rcx + 4]
cmp rax, qword [0x140143db0]
jne 0x140107b14
mov rax, qword [rcx + 0xc]
cmp rax, qword [0x140143db8]
jne 0x140107b14
lea rax, [0x140142e90]
mov dword [rbp - 0x20], edx
mov qword [rbp - 8], rax
lea r8, [rbp - 0x10]
lea rax, [rbp - 0x30]
mov qword [rbp - 0x18], rcx
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x20]
xor edi, edi
mov dword [rbp - 0x10], SQLSetEnvAttr
mov dword [rsp + 0x28], edi
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x140107b00
lea rcx, str.___CredentialBlob:
jmp 0x140107ac7
mov rcx, qword [rbx + 8]
lea rdx, str.AppSense_DataNow_
call fcn.14011a80c
test rax, rax
je 0x140107b14
lea rcx, str._Ivanti_FileDirector_credential_blob__n
call fcn.14000afb0
cmp dword [rbx + 0x20], 0x14
jb 0x140107b14
mov rbx, qword [rbx + 0x28]
lea rcx, str.AppN_DN_Win
mov rdx, rbx
call fcn.140137bc0
test eax, eax
jne 0x140107b14
xor edi, edi
cmp dword [rbx + 0xc], edi
je 0x140107a6f
lea rcx, str.Decrypting_additional_blob_n
call fcn.14000afb0
mov eax, dword [rbx + 0xc]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], eax
xor r9d, r9d
lea rax, [rbx + 0x14]
xor r8d, r8d
mov qword [rbp - 0x18], rax
xor edx, edx
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x140107a5b
lea rcx, str.___CredentialBlob:
call fcn.14000afb0
mov edx, dword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
call fcn.1400120f0
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000afb0
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140107a6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_vault_cred_tryEncrypted___CryptUnprotectData__0x_08x__n
call fcn.14000afb0
cmp dword [rbx + 0x10], edi
je 0x140107b14
lea rcx, str.Decrypting_additional_blob_n
call fcn.14000afb0
mov eax, dword [rbx + 0x10]
lea rcx, [rbx + 0x14]
mov dword [rbp - 0x20], eax
xor r9d, r9d
mov eax, dword [rbx + 0xc]
xor r8d, r8d
add rcx, rax
xor edx, edx
lea rax, [rbp - 0x30]
mov qword [rbp - 0x18], rcx
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x20]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x140107b00
lea rcx, str.___UnkBlob_______:
call fcn.14000afb0
mov edx, dword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
call fcn.1400120f0
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000afb0
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_vault_cred_tryEncrypted___CryptUnprotectData__0x_08x__n
call fcn.14000afb0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret