Function at 0x408872
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x4225bb
call fcn.00419178
sub esp, 0x384
push ebx
push esi
push edi
mov edi, pe_nt_image_headers32
push edi
lea eax, [ebp - 0x390]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x390]
push eax
lea ecx, [ebp - 0x54]
call fcn.00401640
and dword [ebp - 4], 0
push str.Windows
lea ecx, [ebp - 0x38]
call fcn.00401640
lea eax, [ebp - 0x54]
push eax
xor ebx, ebx
lea eax, [ebp - 0x38]
mov esi, 0x42cd90
inc ebx
push eax
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.004105c0
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f0
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f0
push edi
lea eax, [ebp - 0x390]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x390]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401640
push str.System
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 2
call fcn.00401640
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004105c0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f0
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f0
push str.This_Program
lea ecx, [ebp - 0x38]
call fcn.00401640
push str.InstallName
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 4
call fcn.00401640
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.004105c0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f0
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f0
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408d19
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push str.Desktop
push dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408a7c
mov eax, dword [ebp - 0x10]
and byte [ebp + eax - 0x190], 0
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401640
push str.Desktop
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 6
call fcn.00401640
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.004105c0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f0
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f0
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401640
push str.CommonDesktop
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 8
call fcn.00401640
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.004105c0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f0
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push str.Favorites
push dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408b49
mov eax, dword [ebp - 0x10]
and byte [ebp + eax - 0x190], 0
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401640
push str.Favorites
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xa
call fcn.00401640
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.004105c0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f0
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f0
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401640
push str.CommonFavorites
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xc
call fcn.00401640
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xd
call fcn.004105c0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f0
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push str.Programs
push dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408c16
mov eax, dword [ebp - 0x10]
and byte [ebp + eax - 0x190], 0
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401640
push str.ProgramGroup
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xe
call fcn.00401640
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xf
call fcn.004105c0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f0
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f0
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401640
push str.CommonProgramGroup
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0x10
call fcn.00401640
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x11
call fcn.004105c0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f0
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push str.SendTo
push dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408c93
mov eax, dword [ebp - 0x10]
and byte [ebp + eax - 0x190], 0
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401640
push str.SendTo
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0x12
call fcn.00401640
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x13
call fcn.004105c0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f0
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push str.Start_Menu
push dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408d10
mov eax, dword [ebp - 0x10]
and byte [ebp + eax - 0x190], 0
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401640
push str.StartMenu
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0x14
call fcn.00401640
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x15
call fcn.004105c0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f0
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408ebc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push str.Common_Desktop
push dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408db9
mov eax, dword [ebp - 0x10]
and byte [ebp + eax - 0x190], 0
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401640
push str.CommonDesktop
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0x16
call fcn.00401640
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x17
call fcn.004105c0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f0
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push str.Common_Favorites
push dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408e36
mov eax, dword [ebp - 0x10]
and byte [ebp + eax - 0x190], 0
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401640
push str.CommonFavorites
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0x18
call fcn.00401640
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x19
call fcn.004105c0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f0
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push str.Common_Programs
push dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408eb3
mov eax, dword [ebp - 0x10]
and byte [ebp + eax - 0x190], 0
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401640
push str.CommonProgramGroup
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0x1a
call fcn.00401640
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x1b
call fcn.004105c0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f0
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409061
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push str.ProgramFilesDir
push dword [ebp - 0x14]
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408f5c
mov eax, dword [ebp - 0x18]
and byte [ebp + eax - 0x290], 0
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401640
push str.ProgramFiles
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0x1c
call fcn.00401640
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x1d
call fcn.004105c0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f0
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push str.CommonFilesDir
push dword [ebp - 0x14]
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408fd9
mov eax, dword [ebp - 0x18]
and byte [ebp + eax - 0x290], 0
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401640
push str.CommonFiles
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0x1e
call fcn.00401640
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x1f
call fcn.004105c0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f0
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x18], edi
push 0
mov edi, str.MediaPath
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409058
mov eax, dword [ebp - 0x18]
and byte [ebp + eax - 0x290], 0
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x74]
call fcn.00401640
push edi
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 0x20
call fcn.00401640
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x90]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x21
call fcn.004105c0
push ebx
lea ecx, [ebp - 0x90]
call fcn.004017f0
push ebx
lea ecx, [ebp - 0x74]
call fcn.004017f0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret