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

Disassembly:
sub esp, 0x76c
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x57d]
mov byte [esp + 0x57c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x17d]
mov byte [esp + 0x17c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x37d]
mov byte [esp + 0x37c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x47d]
mov byte [esp + 0x47c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x7d]
mov byte [esp + 0x7c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x27d]
mov byte [esp + 0x27c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x400
push 0x40
mov dword [esp + 0x18], 1
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1002bca0
mov byte [ebx], 0x92
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x67d]
mov byte [esp + 0x67c], 0
mov esi, 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
mov dword [esp + 0x2c], esi
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002bca0
push eax
push eax
mov edx, dword [esp + 0x24]
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x44]
push eax
push ecx
push eax
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x1002b7bc
mov ecx, dword [esp + 0x2c]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x20], eax
jle 0x1002b7bc
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push 0
lea edx, [esp + 0x68c]
push ecx
push edx
push eax
mov eax, dword [esp + 0x38]
push eax
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
push 0x20019
lea edx, [esp + 0x684]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002b7a7
mov ecx, 0x40
lea edi, [esp + 0x17c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x17c]
push ecx
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x34]
push edx
push eax
push 0
push str.DisplayName
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x57c]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x57c]
push edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
push eax
push ecx
push 0
push str.ParentKeyName
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x17c]
push eax
call ebp
test eax, eax
je 0x1002b7a7
lea ecx, [esp + 0x57c]
push str.OperatingSystem
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1002b7a7
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x37c]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x37c]
push edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
push eax
push ecx
push 0
push str.Publisher
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x47c]
lea edx, [esp + 0x30]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x47c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push 0
push str.DisplayVersion
push eax
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x7c]
lea edx, [esp + 0x7c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea eax, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push 0
push str.InstallDate
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002b557
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + 0x7c]
push 5
lea eax, [esp + 0x40]
push edx
push eax
call edi
lea ecx, [esp + 0x80]
push 3
lea edx, [esp + 0x38]
push ecx
push edx
call edi
lea eax, [esp + 0x82]
push 3
lea ecx, [esp + 0x3c]
push eax
push ecx
call edi
lea edx, [esp + 0x38]
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
lea edx, [esp + 0x88]
push str._s__s__s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x1002b5f3
lea eax, [esp + 0x64]
mov ecx, dword [esp + 0x28]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea edx, [esp + 0x44]
lea eax, [esp + 0x64]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea ecx, [esp + 0x54]
lea edx, [esp + 0x44]
push ecx
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5e]
mov edx, dword [esp + 0x5c]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x5e]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x5e]
push edx
mov edx, dword [esp + 0x60]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x94]
push str._d__02d__02d__02d:_02d:_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x27c]
lea edx, [esp + 0x27c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea eax, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push 0
push str.UninstallString
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x27c]
push edx
call ebp
mov esi, eax
lea eax, [esp + 0x7c]
push eax
call ebp
lea ecx, [esp + 0x47c]
add esi, eax
push ecx
call ebp
lea edx, [esp + 0x37c]
add esi, eax
push edx
call ebp
add esi, eax
lea eax, [esp + 0x17c]
push eax
call ebp
mov ecx, dword [esp + 0x10]
lea eax, [esi + eax + 6]
push ebx
lea esi, [eax + ecx]
call dword [sym.imp.KERNEL32.dll_LocalSize]
cmp eax, esi
jae 0x1002b684
push 0x42
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebx, eax
lea edx, [esp + 0x17c]
push edx
call ebp
mov ecx, eax
mov eax, dword [esp + 0x10]
inc ecx
lea esi, [esp + 0x17c]
mov edx, ecx
lea edi, [eax + ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x17c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x37c]
push edx
lea edi, [ecx + eax + 1]
mov dword [esp + 0x14], edi
call ebp
mov ecx, eax
lea esi, [esp + 0x37c]
inc ecx
add edi, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x37c]
push ecx
call ebp
mov edx, dword [esp + 0x10]
lea edi, [edx + eax + 1]
lea eax, [esp + 0x47c]
push eax
mov dword [esp + 0x14], edi
call ebp
mov ecx, eax
lea esi, [esp + 0x47c]
inc ecx
add edi, ebx
mov edx, ecx
lea eax, [esp + 0x47c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x7c]
push edx
lea edi, [ecx + eax + 1]
mov dword [esp + 0x14], edi
call ebp
mov ecx, eax
lea esi, [esp + 0x7c]
inc ecx
add edi, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x7c]
push ecx
call ebp
mov edx, dword [esp + 0x10]
lea edi, [edx + eax + 1]
lea eax, [esp + 0x27c]
push eax
mov dword [esp + 0x14], edi
call ebp
mov ecx, eax
inc ecx
lea esi, [esp + 0x27c]
mov edx, ecx
add edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x27c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov ecx, dword [esp + 0x10]
mov esi, 0x100
lea edx, [ecx + eax + 1]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x1002b36a
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.1001a220
test eax, eax
je 0x1002bc87
lea ecx, [esp + 0x1c]
push ecx
push 0x20119
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002bca0
push eax
push eax
push eax
push eax
push eax
push eax
lea edx, [esp + 0x44]
push eax
push edx
push eax
push eax
push eax
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x1002bc7c
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
test ecx, ecx
jle 0x1002bc7c
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x68c]
push ecx
push edx
push eax
mov eax, dword [esp + 0x38]
push eax
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
push 0x20019
lea edx, [esp + 0x684]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002bc67
mov ecx, 0x40
lea edi, [esp + 0x17c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x17c]
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x24]
push edx
push eax
push 0
push str.DisplayName
push ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x57c]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x57c]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0
push str.ParentKeyName
push edx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x17c]
push eax
call ebp
test eax, eax
je 0x1002bc67
lea ecx, [esp + 0x57c]
push str.OperatingSystem
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1002bc67
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x37c]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x37c]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0
push str.Publisher
push edx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x47c]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x47c]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push 0
push str.DisplayVersion
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x7c]
lea edx, [esp + 0x7c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea eax, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push 0
push str.InstallDate
push ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002ba17
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + 0x7c]
push 5
lea eax, [esp + 0x68]
push edx
push eax
call edi
lea ecx, [esp + 0x80]
push 3
lea edx, [esp + 0x3c]
push ecx
push edx
call edi
lea eax, [esp + 0x82]
push 3
lea ecx, [esp + 0x38]
push eax
push ecx
call edi
lea edx, [esp + 0x34]
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x68]
push eax
push ecx
lea edx, [esp + 0x88]
push str._s__s__s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x1002bab3
lea eax, [esp + 0x54]
mov ecx, dword [esp + 0x24]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea edx, [esp + 0x6c]
lea eax, [esp + 0x54]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea ecx, [esp + 0x44]
lea edx, [esp + 0x6c]
push ecx
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4e]
mov edx, dword [esp + 0x4c]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x4e]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x4e]
push edx
mov edx, dword [esp + 0x50]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x94]
push str._d__02d__02d__02d:_02d:_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x27c]
lea edx, [esp + 0x27c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea eax, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push 0
push str.UninstallString
push ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x27c]
push edx
call ebp
mov esi, eax
lea eax, [esp + 0x7c]
push eax
call ebp
lea ecx, [esp + 0x47c]
add esi, eax
push ecx
call ebp
lea edx, [esp + 0x37c]
add esi, eax
push edx
call ebp
add esi, eax
lea eax, [esp + 0x17c]
push eax
call ebp
mov ecx, dword [esp + 0x10]
lea eax, [esi + eax + 6]
push ebx
lea esi, [eax + ecx]
call dword [sym.imp.KERNEL32.dll_LocalSize]
cmp eax, esi
jae 0x1002bb44
push 0x42
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebx, eax
lea edx, [esp + 0x17c]
push edx
call ebp
mov ecx, eax
mov eax, dword [esp + 0x10]
inc ecx
lea esi, [esp + 0x17c]
mov edx, ecx
lea edi, [eax + ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x17c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x37c]
push edx
lea edi, [ecx + eax + 1]
mov dword [esp + 0x14], edi
call ebp
mov ecx, eax
lea esi, [esp + 0x37c]
inc ecx
add edi, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x37c]
push ecx
call ebp
mov edx, dword [esp + 0x10]
lea edi, [edx + eax + 1]
lea eax, [esp + 0x47c]
push eax
mov dword [esp + 0x14], edi
call ebp
mov ecx, eax
lea esi, [esp + 0x47c]
inc ecx
add edi, ebx
mov edx, ecx
lea eax, [esp + 0x47c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x7c]
push edx
lea edi, [ecx + eax + 1]
mov dword [esp + 0x14], edi
call ebp
mov ecx, eax
lea esi, [esp + 0x7c]
inc ecx
add edi, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x7c]
push ecx
call ebp
mov edx, dword [esp + 0x10]
lea edi, [edx + eax + 1]
lea eax, [esp + 0x27c]
push eax
mov dword [esp + 0x14], edi
call ebp
mov ecx, eax
inc ecx
lea esi, [esp + 0x27c]
mov edx, ecx
add edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x27c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov ecx, dword [esp + 0x10]
mov esi, 0x100
lea edx, [ecx + eax + 1]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x3c], eax
jl 0x1002b82a
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
push 0x42
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x76c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x76c
ret