Function at 0x408e58
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 0x408e61
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 0x4092a7
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 0x40901d
mov dword [ebp - 0x18], 0x400
mov eax, dword [ebp - 0x18]
call fcn.00401174
mov esi, eax
jmp 0x408ff8
mov dword [ebp - 0x18], 0x400
mov eax, dword [ebp - 4]
call fcn.00402e08
mov edi, eax
test edi, edi
jl 0x408feb
inc edi
xor ebx, ebx
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + ebx*4]
call fcn.00408af8
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 [0x408e34]
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 0x408fe3
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 0x408fe3
push dword [ebp - 0x4c]
push 0x4092c0
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 4]
mov edx, dword [edx + ebx*4]
call fcn.00401cdc
push dword [ebp - 0x54]
push 0x4092d4
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.00408ccc
push dword [ebp - 0x58]
push 0x4092e0
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00401e10
inc ebx
dec edi
jne 0x408ee6
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 0x408eca
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x409233
lea eax, [ebp - 0x44]
push eax
mov edx, dword [ebp - 0x4c]
mov eax, 0x4092e0
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, 0x4092e0
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, 0x4092e0
mov edx, dword [ebp - 0x44]
call fcn.00401d9c
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x4c]
xor edx, edx
call fcn.0040592c
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, 0x4092ec
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, 0x4092f8
call fcn.00401e94
jne 0x409233
mov edx, dword [ebp - 0x44]
mov eax, 0x409308
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, 0x4092d4
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, 0x4092d4
call fcn.0040202c
mov ecx, eax
lea eax, [ebp - 0x44]
mov edx, 1
call fcn.00401fe4
jmp 0x40921e
mov edx, dword [ebp - 0x44]
mov eax, 0x409308
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 0x4092d4
lea eax, [ebp - 0x68]
push eax
mov edx, dword [ebp - 0x44]
mov eax, 0x4092d4
call fcn.0040202c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.00401fa4
push dword [ebp - 0x68]
push 0x4092d4
lea eax, [ebp - 0x48]
mov edx, 5
call fcn.00401e10
mov edx, dword [ebp - 0x44]
mov eax, 0x4092d4
call fcn.0040202c
mov ecx, eax
lea eax, [ebp - 0x44]
mov edx, 1
call fcn.00401fe4
mov edx, dword [ebp - 0x44]
mov eax, 0x409308
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, 0x4092d4
call fcn.0040202c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.00401fa4
push dword [ebp - 0x6c]
push 0x4092d4
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00401e10
mov edx, dword [ebp - 0x44]
mov eax, 0x4092d4
call fcn.0040202c
mov ecx, eax
lea eax, [ebp - 0x44]
mov edx, 1
call fcn.00401fe4
lea eax, [ebp - 0x48]
mov edx, 0x4092e0
call fcn.00401d58
mov edx, dword [ebp - 0x44]
mov eax, 0x4092d4
call fcn.0040202c
test eax, eax
jg 0x409127
mov edx, dword [ebp - 0x4c]
mov eax, 0x4092e0
call fcn.0040202c
test eax, eax
jg 0x40902b
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 0x4092ae
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 [0x408e34]
call fcn.00402fc8
lea eax, [ebp - 0x10]
call fcn.00401ac0
lea eax, [ebp - 4]
mov edx, dword [0x408730]
call fcn.00402fc8
ret