Function at 0x408e48
Capabilities:
Encrypt data using dpapi
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x408e51
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040302c
xor eax, eax
push ebp
push 0x409297
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
call fcn.00401ac0
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push ebx
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40900d
mov dword [ebp - 0x18], 0x400
mov eax, dword [ebp - 0x18]
call fcn.00401174
mov esi, eax
jmp 0x408fe8
mov dword [ebp - 0x18], 0x400
mov eax, dword [ebp - 4]
call fcn.00402e08
mov edi, eax
test edi, edi
jl 0x408fdb
inc edi
xor ebx, ebx
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + ebx*4]
call fcn.00408ae8
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
mov ecx, 1
mov edx, dword [0x408e24]
call fcn.00402fbc
add esp, 4
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x408fd3
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 4]
mov edx, dword [edx + ebx*4]
call fcn.00402218
mov eax, dword [ebp - 0x50]
call fcn.00402274
inc eax
add eax, eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x34]
push eax
push 1
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
call sub.crypt32.dll_CryptUnprotectData
test eax, eax
je 0x408fd3
push dword [ebp - 0x4c]
push 0x4092b0
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 4]
mov edx, dword [edx + ebx*4]
call fcn.00401cdc
push dword [ebp - 0x54]
push 0x4092c4
lea eax, [ebp - 0x4c]
mov edx, 4
call fcn.00401e10
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x58]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
call fcn.00408cbc
push dword [ebp - 0x58]
push 0x4092d0
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00401e10
inc ebx
dec edi
jne 0x408ed6
mov edx, dword [ebp - 0x18]
mov eax, esi
call fcn.00403738
inc dword [ebp - 0xc]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumValueA
cmp eax, 0x103
jne 0x408eba
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x409223
lea eax, [ebp - 0x44]
push eax
mov edx, dword [ebp - 0x4c]
mov eax, 0x4092d0
call fcn.0040202c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x4c]
call fcn.00401fa4
mov edx, dword [ebp - 0x4c]
mov eax, 0x4092d0
call fcn.0040202c
mov ecx, eax
inc ecx
lea eax, [ebp - 0x4c]
mov edx, 1
call fcn.00401fe4
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
mov ecx, 0x4092d0
mov edx, dword [ebp - 0x44]
call fcn.00401d9c
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x4c]
xor edx, edx
call fcn.0040591c
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x4c]
call fcn.00401b58
lea eax, [ebp - 0x64]
push eax
mov edx, dword [ebp - 0x44]
mov eax, 0x4092dc
call fcn.0040202c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.00401fa4
mov eax, dword [ebp - 0x64]
mov edx, 0x4092e8
call fcn.00401e94
jne 0x409223
mov edx, dword [ebp - 0x44]
mov eax, 0x4092f8
call fcn.0040202c
mov ecx, eax
lea eax, [ebp - 0x44]
mov edx, 1
call fcn.00401fe4
lea eax, [ebp - 0x40]
push eax
mov edx, dword [ebp - 0x44]
mov eax, 0x4092c4
call fcn.0040202c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.00401fa4
mov edx, dword [ebp - 0x44]
mov eax, 0x4092c4
call fcn.0040202c
mov ecx, eax
lea eax, [ebp - 0x44]
mov edx, 1
call fcn.00401fe4
jmp 0x40920e
mov edx, dword [ebp - 0x44]
mov eax, 0x4092f8
call fcn.0040202c
mov ecx, eax
lea eax, [ebp - 0x44]
mov edx, 1
call fcn.00401fe4
push dword [ebp - 0x48]
push dword [ebp - 0x40]
push 0x4092c4
lea eax, [ebp - 0x68]
push eax
mov edx, dword [ebp - 0x44]
mov eax, 0x4092c4
call fcn.0040202c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.00401fa4
push dword [ebp - 0x68]
push 0x4092c4
lea eax, [ebp - 0x48]
mov edx, 5
call fcn.00401e10
mov edx, dword [ebp - 0x44]
mov eax, 0x4092c4
call fcn.0040202c
mov ecx, eax
lea eax, [ebp - 0x44]
mov edx, 1
call fcn.00401fe4
mov edx, dword [ebp - 0x44]
mov eax, 0x4092f8
call fcn.0040202c
mov ecx, eax
lea eax, [ebp - 0x44]
mov edx, 1
call fcn.00401fe4
push dword [ebp - 0x48]
lea eax, [ebp - 0x6c]
push eax
mov edx, dword [ebp - 0x44]
mov eax, 0x4092c4
call fcn.0040202c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.00401fa4
push dword [ebp - 0x6c]
push 0x4092c4
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00401e10
mov edx, dword [ebp - 0x44]
mov eax, 0x4092c4
call fcn.0040202c
mov ecx, eax
lea eax, [ebp - 0x44]
mov edx, 1
call fcn.00401fe4
lea eax, [ebp - 0x48]
mov edx, 0x4092d0
call fcn.00401d58
mov edx, dword [ebp - 0x44]
mov eax, 0x4092c4
call fcn.0040202c
test eax, eax
jg 0x409117
mov edx, dword [ebp - 0x4c]
mov eax, 0x4092d0
call fcn.0040202c
test eax, eax
jg 0x40901b
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x48]
call fcn.00401b14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40929e
lea eax, [ebp - 0x6c]
mov edx, 7
call fcn.00401ae4
lea eax, [ebp - 0x50]
call fcn.00402108
lea eax, [ebp - 0x4c]
mov edx, 4
call fcn.00401ae4
lea eax, [ebp - 0x24]
mov edx, dword [0x408e24]
call fcn.00402fc8
lea eax, [ebp - 0x10]
call fcn.00401ac0
lea eax, [ebp - 4]
mov edx, dword [0x408720]
call fcn.00402fc8
ret