Function at 0x1400ad000
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rdi, rcx
mov rcx, qword [rcx + 8]
lea rdx, str.Microsoft_WinInet_
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x1400ad0c2
mov esi, dword [rdi + 0x20]
cmp esi, 0x14
jb 0x1400ad243
mov rdi, qword [rdi + 0x28]
lea rcx, [0x1400d0998]
mov rdx, qword [rdi + 4]
cmp rdx, qword [rcx]
jne 0x1400ad05a
mov rdx, qword [rdi + 0xc]
cmp rdx, qword [rcx + 8]
jne 0x1400ad05a
xor eax, eax
jmp 0x1400ad05f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1400ad243
lea rax, [0x1400d1830]
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x60], Ordinal_77
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1400ad22f
lea rcx, str.___CredentialBlob:
jmp 0x1400ad203
mov rcx, qword [rdi + 8]
lea rdx, str.AppSense_DataNow_
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x1400ad243
lea rcx, str._Ivanti_FileDirector_credential_blob__n
call fcn.14000a838
cmp dword [rdi + 0x20], 0x14
jb 0x1400ad243
mov rbx, qword [rdi + 0x28]
lea rsi, str.AppN_DN_Win
mov ecx, reloc.WLDAP32.dll_Ordinal_12
mov rdi, rbx
repe cmpsb byte [rsi], byte [rdi]
jne 0x1400ad243
cmp dword [rbx + 0xc], 0
je 0x1400ad1a6
lea rcx, str.Decrypting_additional_blob_n
call fcn.14000a838
mov edx, dword [rbx + 0xc]
lea rax, [rbx + 0x14]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x50], edx
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1400ad192
lea rcx, str.___CredentialBlob:
call fcn.14000a838
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.140010fbc
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000a838
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400ad1a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_vault_cred_tryEncrypted___CryptUnprotectData__0x_08x__n
mov edx, eax
call fcn.14000a838
cmp dword [rbx + 0x10], 0
je 0x1400ad243
lea rcx, str.Decrypting_additional_blob_n
call fcn.14000a838
mov edx, dword [rbx + 0x10]
xor r9d, r9d
mov dword [rsp + 0x50], edx
mov eax, dword [rbx + 0xc]
xor r8d, r8d
lea rcx, [rax + rbx + 0x14]
lea rax, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1400ad22f
lea rcx, str.___UnkBlob_______:
call fcn.14000a838
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.140010fbc
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000a838
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400ad243
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_vault_cred_tryEncrypted___CryptUnprotectData__0x_08x__n
mov edx, eax
call fcn.14000a838
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret