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

Disassembly:
mov edi, edi
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 0x100184c
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 0x101f9d5
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 0x101f9d5
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 0x101f9d5
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 - 0x10], eax
mov dword [ebp + 0xc], ebx
jbe 0x101f9d5
xor edi, edi
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov dword [ebp - 0x14], 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 - 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp dword [ebp + 0x10], ebx
je 0x101f8e6
push dword [ebp - 0x10]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x101f9c0
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov eax, dword [esi]
jne 0x101f9bd
mov dword [eax + edi + 0x108], 1
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
push ebx
push 0x10084fc
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101f9b2
cmp dword [ebp + 0x10], ebx
je 0x101f94f
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 0x101f94f
mov eax, dword [esi]
mov dword [eax + edi + 0x108], ebx
jmp 0x101f9b2
inc dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 0x10084ec
push dword [ebp + 8]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101f98a
cmp dword [ebp - 0x18], ebx
jne 0x101f9b2
mov eax, dword [esi]
mov dword [eax + edi + 0x104], 1
cmp dword [ebp - 0x18], ebx
jne 0x101f9b2
push ebx
push ebx
push ebx
push ebx
push 0x10017b8
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101f9b2
mov eax, dword [esi]
mov dword [eax + edi + 0x104], 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x101f9c0
mov byte [edi + eax], bl
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
add edi, 0x10c
cmp eax, dword [ebp - 0xc]
jb 0x101f894
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x101f9e6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
leave
ret 0xc