Function at 0x100c661
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x1002230
mov dword [esi], ebx
push 0x80000002
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100c843
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x100c843
mov eax, dword [ebp - 0xc]
inc dword [ebp - 8]
imul eax, eax, 0x10c
push eax
call sub.msvcrt.dll_malloc
cmp eax, ebx
pop ecx
mov dword [esi], eax
je 0x100c843
mov eax, dword [ebp - 0xc]
push dword [ebp - 8]
mov dword [edi], eax
call sub.msvcrt.dll_malloc
cmp dword [ebp - 0xc], ebx
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
jbe 0x100c843
xor edi, edi
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov dword [ebp - 0x18], 0x104
mov dword [eax + edi + 0x104], ebx
mov eax, dword [esi]
mov dword [eax + edi + 0x108], ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp dword [ebp + 0x10], ebx
je 0x100c754
push dword [ebp - 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x100c82e
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov eax, dword [esi]
jne 0x100c82b
mov dword [eax + edi + 0x108], 1
lea eax, [ebp - 0x18]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
push ebx
push 0x1002c30
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100c820
cmp dword [ebp + 0x10], ebx
je 0x100c7bd
mov eax, dword [esi]
push dword [ebp + 0x10]
add eax, edi
push eax
call sub.ntdll.dll_strstr
test eax, eax
pop ecx
pop ecx
je 0x100c7bd
mov eax, dword [esi]
mov dword [eax + edi + 0x108], ebx
jmp 0x100c820
inc dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0xb]
push eax
push ebx
push ebx
push 0x1002c20
push dword [ebp + 0xc]
mov byte [ebp + 0xb], bl
mov dword [ebp - 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100c7f8
cmp byte [ebp + 0xb], bl
jne 0x100c820
mov eax, dword [esi]
mov dword [eax + edi + 0x104], 1
cmp byte [ebp + 0xb], bl
jne 0x100c820
push ebx
push ebx
push ebx
push ebx
push 0x1002c10
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100c820
mov eax, dword [esi]
mov dword [eax + edi + 0x104], 1
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100c82e
mov byte [edi + eax], bl
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add edi, 0x10c
cmp eax, dword [ebp - 0xc]
jb 0x100c702
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x100c854
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
leave
ret 0xc