Function at 0x415034
Capabilities:
Encrypt data using dpapi

Disassembly:
sub esp, 0xc6c
mov dword [esp + 0xc44], 0
mov dword [esp + 0x440], 0
lea eax, [esp + 0xc44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc74]
mov dword [esp], eax
call fcn.00414f74
mov dword [esp + 0xc4c], eax
mov eax, dword [esp + 0xc44]
add dword [esp + 0xc74], eax
sub dword [esp + 0xc4c], 1
mov dword [esp + 0xc48], 0
mov dword [esp + 0xc5c], 0
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
lea eax, [esp + 0x444]
mov dword [esp], eax
call fcn.0041a59f
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
lea eax, [esp + 0x844]
mov dword [esp], eax
call fcn.0041a59f
mov dword [esp + 0x43c], 0
mov dword [esp + 0x42c], 0
mov dword [esp + 0x430], 0
mov eax, dword [esp + 0xc74]
mov dword [esp + 0xc58], eax
mov eax, dword [esp + 0xc4c]
add dword [esp + 0xc74], eax
mov dword [esp + 0xc54], 0
jmp 0x4153e9
lea eax, [esp + 0xc44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc58]
mov dword [esp], eax
call fcn.00414f74
mov dword [esp + 0xc50], eax
mov eax, dword [esp + 0xc44]
add dword [esp + 0xc58], eax
cmp dword [esp + 0xc50], 0xb
jbe 0x415338
mov eax, dword [esp + 0xc50]
and eax, 1
test eax, eax
jne 0x415338
mov eax, dword [esp + 0xc50]
sub eax, 0xc
shr eax, 1
mov dword [esp + 0xc50], eax
cmp dword [esp + 0xc54], 5
jne 0x415338
mov eax, dword [esp + 0xc50]
mov dword [esp + 0x434], eax
mov eax, dword [esp + 0xc74]
mov dword [esp + 0x438], eax
lea eax, [esp + 0x42c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [esp + 0x434]
mov dword [esp], eax
call sub.CRYPT32.DLL_CryptUnprotectData
sub esp, 0x1c
test eax, eax
je 0x4152fa
mov eax, dword [esp + 0x42c]
test eax, eax
je 0x4152e8
lea eax, [esp + 0x444]
movzx eax, byte [eax]
test al, al
je 0x4152e8
lea eax, [esp + 0x844]
movzx eax, byte [eax]
test al, al
je 0x4152e8
mov edx, dword [esp + 0x430]
mov eax, dword [esp + 0x42c]
add eax, edx
mov byte [eax], 0
mov eax, dword [esp + 0x430]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x444]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x844]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc70]
mov dword [esp + 8], eax
mov dword [esp + 4], str._c_s_a_s_a_s_b_b_b_b
lea eax, [esp + 0x43c]
mov dword [esp], eax
call fcn.00419f10
mov dword [esp + 0xc48], eax
cmp dword [esp + 0xc48], 0xffffffff
je 0x4152e8
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0xc48]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x43c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc5c]
mov dword [esp + 4], eax
lea eax, [esp + 0x440]
mov dword [esp], eax
call fcn.0041a022
mov dword [esp + 0x440], eax
mov eax, dword [esp + 0xc48]
add dword [esp + 0xc5c], eax
mov eax, dword [esp + 0x430]
mov dword [esp], eax
call sub.KERNEL32.dll_LocalFree
sub esp, 4
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
lea eax, [esp + 0x444]
mov dword [esp], eax
call fcn.0041a59f
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
lea eax, [esp + 0x844]
mov dword [esp], eax
call fcn.0041a59f
cmp dword [esp + 0xc50], 0xc
jbe 0x4153cd
mov eax, dword [esp + 0xc50]
and eax, 1
test eax, eax
je 0x4153cd
mov eax, dword [esp + 0xc50]
sub eax, 0xd
shr eax, 1
mov dword [esp + 0xc50], eax
mov eax, dword [esp + 0xc54]
cmp eax, 1
je 0x41537a
cmp eax, 3
je 0x4153a4
jmp 0x4153cd
mov eax, dword [esp + 0xc50]
add eax, 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc74]
mov dword [esp + 4], eax
lea eax, [esp + 0x844]
mov dword [esp], eax
call fcn.00419918
jmp 0x4153cd
mov eax, dword [esp + 0xc50]
add eax, 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc74]
mov dword [esp + 4], eax
lea eax, [esp + 0x444]
mov dword [esp], eax
call fcn.00419918
nop
mov eax, dword [esp + 0xc44]
add dword [esp + 0xc54], eax
mov eax, dword [esp + 0xc50]
add dword [esp + 0xc74], eax
mov eax, dword [esp + 0xc4c]
cmp dword [esp + 0xc54], eax
jle 0x415128
mov eax, dword [esp + 0xc78]
mov edx, dword [esp + 0xc5c]
mov dword [eax], edx
mov eax, dword [esp + 0x440]
add esp, 0xc6c
ret