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

Disassembly:
sub esp, 0xb48
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 + 0x4c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4c]
push 0x423410
push eax
call ebx
add esp, 8
lea ecx, [esp + 0x1c]
lea edi, [esp + 0x4c]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
mov ebp, dword [esp + 0xb64]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x54]
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 + 0x44c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x44c]
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 + 0x10]
push ecx
push 0x20119
push 0
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x402a66
push str.RegDisableReflectionKey
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.RegEnableReflectionKey
push esi
mov dword [esp + 0x48], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test edi, edi
mov dword [esp + 0x28], esi
je 0x402a50
test esi, esi
je 0x402a50
mov eax, dword [esp + 0x10]
push eax
call edi
push 0
push 0
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x4c]
push str.Installed_Programe_List_64:_r_n_r_n
rep stosd dword es:[edi], eax
lea eax, [esp + 0x50]
push eax
call ebx
add esp, 8
lea ecx, [esp + 0x1c]
lea edi, [esp + 0x4c]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
lea edx, [esp + 0x54]
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 + 0x18], 1
jbe 0x4029ee
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x654]
push 0x104
push eax
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edx, [esp + 0x44c]
lea eax, [esp + 0x958]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x958]
push 0x42327c
push ecx
call esi
lea edx, [esp + 0x654]
lea eax, [esp + 0x958]
push edx
push eax
call esi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x958]
push ecx
push 0x20119
push 0
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0x14]
push eax
call dword [esp + 0x44]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x758]
lea edx, [esp + 0x758]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
lea eax, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push 0
push str.DisplayName
push ecx
mov dword [esp + 0x38], 0x200
mov dword [esp + 0x44], 1
call ebx
test eax, eax
jne 0x4029c3
lea edx, [esp + 0x44]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x550]
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x550]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push 0
push str.DisplayVersion
push eax
call ebx
mov ecx, dword [esp + 0x18]
test eax, eax
mov eax, ecx
je 0x40293a
mov edx, dword [esp + 0x3a]
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x758]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3e]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x3e]
push edx
mov edx, dword [esp + 0x40]
and ecx, 0xffff
and edx, 0xffff
push ecx
push edx
push eax
lea eax, [esp + 0x68]
push str._03d__04d__02d__02d__02d:_02d____s_r_n
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x24
jmp 0x40299a
inc ecx
lea edx, [esp + 0x758]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x550]
push ecx
mov ecx, dword [esp + 0x3e]
and ecx, 0xffff
push edx
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x42]
and edx, 0xffff
and ecx, 0xffff
push edx
mov edx, dword [esp + 0x42]
push ecx
mov ecx, dword [esp + 0x44]
and edx, 0xffff
and ecx, 0xffff
push edx
push ecx
push eax
lea edx, [esp + 0x6c]
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 + 0x54]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0xb64]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x58]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
push eax
call dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
jb 0x4027b1
mov esi, dword [esp + 0x28]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [esp + 0x10]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x4c]
push 0x42333c
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x50]
push ecx
call ebx
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x1c]
push 0
dec ecx
push edx
push ecx
mov ecx, dword [esp + 0xb68]
lea eax, [esp + 0x58]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb48
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb48
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb48
ret