Function at 0x402210
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value
Write file on windows

Disassembly:
sub esp, 0xb40
mov ecx, 0x100
xor eax, eax
push ebx
push ebp
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
push edi
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x44]
push 0x423410
push eax
call ebx
add esp, 8
lea ecx, [esp + 0x1c]
lea edi, [esp + 0x44]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
mov ebp, dword [esp + 0xb5c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x4c]
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x548]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x548]
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 + 0x18]
push ecx
push 0x20019
push 0
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4025c3
push eax
push eax
push eax
push eax
mov ecx, dword [esp + 0x28]
push eax
push eax
push eax
lea eax, [esp + 0x40]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x4022ec
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb40
ret
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x44]
push str.Installed_Programe_List_32:_r_n_r_n
rep stosd dword es:[edi], eax
lea eax, [esp + 0x48]
push eax
call ebx
add esp, 8
lea ecx, [esp + 0x1c]
lea edi, [esp + 0x44]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
lea edx, [esp + 0x4c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x24]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x14], 1
jbe 0x402573
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x64c]
push 0x104
push eax
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edx, [esp + 0x548]
lea eax, [esp + 0x950]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x950]
push 0x42327c
push ecx
call esi
lea edx, [esp + 0x64c]
lea eax, [esp + 0x950]
push edx
push eax
call esi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x950]
push ecx
push 0x20019
push 0
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x750]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x444]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x750]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push 0
push str.DisplayName
push eax
mov dword [esp + 0x40], 0x200
mov dword [esp + 0x38], 1
call ebx
test eax, eax
jne 0x402555
lea ecx, [esp + 0x3c]
mov edx, dword [esp + 0x10]
push ecx
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x44]
lea edx, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x444]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0
push str.DisplayVersion
push edx
call ebx
mov ecx, dword [esp + 0x14]
test eax, eax
mov eax, ecx
je 0x4024cc
mov edx, dword [esp + 0x36]
inc ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x750]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x3a]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x3a]
push edx
mov edx, dword [esp + 0x3c]
and ecx, 0xffff
and edx, 0xffff
push ecx
push edx
push eax
lea eax, [esp + 0x60]
push str._03d__04d__02d__02d__02d:_02d____s_r_n
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x24
jmp 0x40252c
inc ecx
lea edx, [esp + 0x750]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x444]
push ecx
mov ecx, dword [esp + 0x3a]
and ecx, 0xffff
push edx
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3e]
and edx, 0xffff
and ecx, 0xffff
push edx
mov edx, dword [esp + 0x3e]
push ecx
mov ecx, dword [esp + 0x40]
and edx, 0xffff
and ecx, 0xffff
push edx
push ecx
push eax
lea edx, [esp + 0x64]
push str._03d__04d__02d__02d__02d:_02d____s__VERSION:_s_r_n
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x28
lea eax, [esp + 0x1c]
push 0
push eax
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0xb5c]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
jb 0x40234c
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x44]
lea edx, [esp + 0x44]
push 0x42333c
push edx
rep stosd dword es:[edi], eax
call ebx
add esp, 8
lea eax, [esp + 0x1c]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
push 0
push eax
xor eax, eax
mov edx, dword [esp + 0xb5c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb40
ret