Function at 0x4091b2
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x708c34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 9
pop ecx
mov esi, str.abe2869f_9b47_4cd9_a358_c22904dba7f7
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x2c]
mov ebx, dword [ebp + 0x14]
rep movsd dword es:[edi], dword [esi]
push 9
pop ecx
mov dword [ebp - 0x100], eax
movsb byte es:[edi], byte [esi]
mov esi, str.82BD0E67_9FEA_4748_8672_D5EFE5B779B0
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
movsb byte es:[edi], byte [esi]
movsx ax, byte [ebp + ecx - 0x2c]
shl ax, 2
mov word [ebp + ecx*2 - 0xa0], ax
movsx ax, byte [ebp + ecx - 0x54]
shl ax, 2
mov word [ebp + ecx*2 - 0xec], ax
inc ecx
cmp ecx, 0x25
jb 0x4091f2
mov edi, dword [ebp + 0x10]
push edi
push str.DecryptCredentialManagerPassword
push str._s_Decrypting_encrypted_password_blob___d_
call fcn.00449974
mov esi, dword [ebp + 8]
add esp, 0xc
cmp esi, 1
jne 0x409252
push esi
push str.DecryptCredentialManagerPassword
push str._s_Setup_generic_entropy_for_type__d___CRED_TYPE_GENERIC
call fcn.00449974
lea eax, [ebp - 0xa0]
jmp 0x40926d
cmp esi, 4
jne 0x409280
push esi
push str.DecryptCredentialManagerPassword
push str._s_Setup_passport_entropy_for_type__d___CRED_TYPE_DOMAIN_VISIBLE_PASSPORT
call fcn.00449974
lea eax, [ebp - 0xec]
mov dword [ebp - 0xfc], 0x4a
add esp, 0xc
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x108], edi
cmp esi, 1
je 0x4092a5
cmp esi, 4
je 0x4092a5
xor esi, esi
mov eax, str._s_Decrypting_other_type_credential_of_size__d
jmp 0x4092b0
lea esi, [ebp - 0xfc]
mov eax, str._s_Decrypting_generic_passport_type_credential_of_size__d
push edi
mov edi, str.DecryptCredentialManagerPassword
push edi
push eax
call fcn.00449974
add esp, 0xc
lea eax, [ebp - 0xf4]
push eax
xor eax, eax
push eax
push eax
push eax
push esi
push eax
lea eax, [ebp - 0x108]
push eax
call sub.CRYPT32.dll_CryptUnprotectData
test eax, eax
jne 0x4092f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CryptUnprotectData_failed_with_error__0x_.8x
call fcn.00449974
pop ecx
pop ecx
xor eax, eax
jmp 0x4093b6
push dword [ebp - 0xf4]
push str._n_n__CryptUnprotectData_Succeeded_with_output_size___d_n
call fcn.00449974
pop ecx
pop ecx
mov ecx, dword [ebp - 0xf4]
cmp ecx, 2
jb 0x409361
mov eax, dword [ebp - 0xf0]
cmp byte [eax + 1], 0
jne 0x409361
shr ecx, 1
push ecx
push edi
push str._s___Password_is_in_Unicode___length_d
call fcn.00449974
mov eax, dword [ebp - 0xf4]
add esp, 0xc
xor ecx, ecx
shr eax, 1
push ecx
push ecx
push 0x2710
push ebx
push eax
push dword [ebp - 0xf0]
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0xf4]
shr eax, 1
mov byte [eax + ebx], 0
jmp 0x409391
push ecx
push edi
push str._s___Password_is_in_ASCII___length_d
call fcn.00449974
push dword [ebp - 0xf4]
push dword [ebp - 0xf0]
push 0x2710
push ebx
call fcn.00631360
mov eax, dword [ebp - 0xf4]
add esp, 0x1c
mov byte [ebx + eax], 0
push ebx
push str.Final_decrypted_password_s
call fcn.00449974
cmp dword [ebp - 0xf0], 0
pop ecx
pop ecx
je 0x4093b3
push dword [ebp - 0xf0]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005fe955
leave
ret