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

Disassembly:
mov eax, 0x421baf
call fcn.00418758
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.00401644
and dword [ebp - 4], 0
push str.Windows
lea ecx, [ebp - 0x38]
call fcn.00401644
lea eax, [ebp - 0x54]
push eax
xor ebx, ebx
lea eax, [ebp - 0x38]
mov esi, 0x42bd90
inc ebx
push eax
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.0040f3a0
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f4
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f4
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.00401644
push str.System
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 2
call fcn.00401644
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0040f3a0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f4
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f4
push str.This_Program
lea ecx, [ebp - 0x38]
call fcn.00401644
push str.InstallName
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 4
call fcn.00401644
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.0040f3a0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f4
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f4
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 0x4081fd
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 0x407f60
mov eax, dword [ebp - 0x10]
and byte [ebp + eax - 0x190], 0
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401644
push str.Desktop
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 6
call fcn.00401644
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.0040f3a0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f4
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f4
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401644
push str.CommonDesktop
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 8
call fcn.00401644
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.0040f3a0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f4
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f4
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 0x40802d
mov eax, dword [ebp - 0x10]
and byte [ebp + eax - 0x190], 0
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401644
push str.Favorites
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xa
call fcn.00401644
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.0040f3a0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f4
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f4
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401644
push str.CommonFavorites
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xc
call fcn.00401644
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xd
call fcn.0040f3a0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f4
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f4
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 0x4080fa
mov eax, dword [ebp - 0x10]
and byte [ebp + eax - 0x190], 0
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401644
push str.ProgramGroup
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xe
call fcn.00401644
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xf
call fcn.0040f3a0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f4
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f4
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401644
push str.CommonProgramGroup
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0x10
call fcn.00401644
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x11
call fcn.0040f3a0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f4
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f4
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 0x408177
mov eax, dword [ebp - 0x10]
and byte [ebp + eax - 0x190], 0
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401644
push str.SendTo
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0x12
call fcn.00401644
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x13
call fcn.0040f3a0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f4
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f4
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 0x4081f4
mov eax, dword [ebp - 0x10]
and byte [ebp + eax - 0x190], 0
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401644
push str.StartMenu
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0x14
call fcn.00401644
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x15
call fcn.0040f3a0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f4
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f4
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 0x4083a0
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 0x40829d
mov eax, dword [ebp - 0x10]
and byte [ebp + eax - 0x190], 0
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401644
push str.CommonDesktop
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0x16
call fcn.00401644
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x17
call fcn.0040f3a0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f4
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f4
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 0x40831a
mov eax, dword [ebp - 0x10]
and byte [ebp + eax - 0x190], 0
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401644
push str.CommonFavorites
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0x18
call fcn.00401644
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x19
call fcn.0040f3a0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f4
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f4
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 0x408397
mov eax, dword [ebp - 0x10]
and byte [ebp + eax - 0x190], 0
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401644
push str.CommonProgramGroup
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0x1a
call fcn.00401644
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x1b
call fcn.0040f3a0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f4
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f4
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 0x408545
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 0x408440
mov eax, dword [ebp - 0x18]
and byte [ebp + eax - 0x290], 0
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401644
push str.ProgramFiles
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0x1c
call fcn.00401644
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x1d
call fcn.0040f3a0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f4
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f4
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 0x4084bd
mov eax, dword [ebp - 0x18]
and byte [ebp + eax - 0x290], 0
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401644
push str.CommonFiles
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0x1e
call fcn.00401644
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x1f
call fcn.0040f3a0
push ebx
lea ecx, [ebp - 0x54]
call fcn.004017f4
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f4
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 0x40853c
mov eax, dword [ebp - 0x18]
and byte [ebp + eax - 0x290], 0
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x74]
call fcn.00401644
push edi
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 0x20
call fcn.00401644
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x90]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x21
call fcn.0040f3a0
push ebx
lea ecx, [ebp - 0x90]
call fcn.004017f4
push ebx
lea ecx, [ebp - 0x74]
call fcn.004017f4
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