Function at 0x1400b5c3c
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.ntdll.dll_wcsstr]
test rax, rax
je 0x1400b5cfe
mov esi, dword [rdi + 0x20]
cmp esi, 0x14
jb 0x1400b5e7f
mov rdi, qword [rdi + 0x28]
lea rcx, [0x1400df8e8]
mov rdx, qword [rdi + 4]
cmp rdx, qword [rcx]
jne 0x1400b5c96
mov rdx, qword [rdi + 0xc]
cmp rdx, qword [rcx + 8]
jne 0x1400b5c96
xor eax, eax
jmp 0x1400b5c9b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1400b5e7f
lea rax, [0x1400e0730]
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], SQLSetEnvAttr
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1400b5e6b
lea rcx, str.___CredentialBlob:
jmp 0x1400b5e3f
mov rcx, qword [rdi + 8]
lea rdx, str.AppSense_DataNow_
call qword [sym.imp.ntdll.dll_wcsstr]
test rax, rax
je 0x1400b5e7f
lea rcx, str._Ivanti_FileDirector_credential_blob__n
call fcn.14000c030
cmp dword [rdi + 0x20], 0x14
jb 0x1400b5e7f
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 0x1400b5e7f
cmp dword [rbx + 0xc], 0
je 0x1400b5de2
lea rcx, str.Decrypting_additional_blob_n
call fcn.14000c030
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 0x1400b5dce
lea rcx, str.___CredentialBlob:
call fcn.14000c030
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.140012c78
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000c030
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400b5de2
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.14000c030
cmp dword [rbx + 0x10], 0
je 0x1400b5e7f
lea rcx, str.Decrypting_additional_blob_n
call fcn.14000c030
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 0x1400b5e6b
lea rcx, str.___UnkBlob_______:
call fcn.14000c030
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.140012c78
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000c030
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400b5e7f
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.14000c030
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret