Function at 0x4077c3
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x420865
call fcn.004174f8
sub esp, 0x284
push ebx
push esi
push edi
push str.This_Program
lea ecx, [ebp - 0x54]
call fcn.0040163f
xor ebx, ebx
push str.InstallName
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.0040163f
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x38]
mov esi, 0x429edc
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040e7f0
push 1
lea ecx, [ebp - 0x38]
call fcn.004017ef
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x54]
call fcn.004017ef
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x407ac7
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.Desktop
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x100
call edi
test eax, eax
jne 0x4078ca
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x190], bl
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040163f
push str.Desktop
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 2
call fcn.0040163f
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0040e7f0
push 1
lea ecx, [ebp - 0x54]
call fcn.004017ef
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
call fcn.004017ef
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.Favorites
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x100
call edi
test eax, eax
jne 0x407947
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x190], bl
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040163f
push str.Favorites
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 4
call fcn.0040163f
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.0040e7f0
push 1
lea ecx, [ebp - 0x54]
call fcn.004017ef
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
call fcn.004017ef
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.Programs
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x100
call edi
test eax, eax
jne 0x4079c4
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x190], bl
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040163f
push str.ProgramGroup
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 6
call fcn.0040163f
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.0040e7f0
push 1
lea ecx, [ebp - 0x54]
call fcn.004017ef
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
call fcn.004017ef
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.SendTo
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x100
call edi
test eax, eax
jne 0x407a41
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x190], bl
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040163f
push str.SendTo
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 8
call fcn.0040163f
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.0040e7f0
push 1
lea ecx, [ebp - 0x54]
call fcn.004017ef
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
call fcn.004017ef
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.Start_Menu
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x100
call edi
test eax, eax
jne 0x407abe
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x190], bl
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040163f
push str.StartMenu
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xa
call fcn.0040163f
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.0040e7f0
push 1
lea ecx, [ebp - 0x54]
call fcn.004017ef
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
call fcn.004017ef
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x407c69
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.Common_Desktop
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x100
call edi
test eax, eax
jne 0x407b66
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x190], bl
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040163f
push str.CommonDesktop
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xc
call fcn.0040163f
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xd
call fcn.0040e7f0
push 1
lea ecx, [ebp - 0x54]
call fcn.004017ef
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
call fcn.004017ef
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.Common_Favorites
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x100
call edi
test eax, eax
jne 0x407be3
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x190], bl
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040163f
push str.CommonFavorites
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xe
call fcn.0040163f
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xf
call fcn.0040e7f0
push 1
lea ecx, [ebp - 0x54]
call fcn.004017ef
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
call fcn.004017ef
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.Common_Programs
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x100
call edi
test eax, eax
jne 0x407c60
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x190], bl
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040163f
push str.CommonProgramGroup
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0x10
call fcn.0040163f
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x11
call fcn.0040e7f0
push 1
lea ecx, [ebp - 0x54]
call fcn.004017ef
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
call fcn.004017ef
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x407e10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push str.ProgramFilesDir
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x100
call edi
test eax, eax
jne 0x407d08
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x290], bl
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040163f
push str.ProgramFiles
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0x12
call fcn.0040163f
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x13
call fcn.0040e7f0
push 1
lea ecx, [ebp - 0x54]
call fcn.004017ef
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
call fcn.004017ef
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push str.CommonFilesDir
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x100
call edi
test eax, eax
jne 0x407d85
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x290], bl
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040163f
push str.CommonFiles
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0x14
call fcn.0040163f
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x15
call fcn.0040e7f0
push 1
lea ecx, [ebp - 0x54]
call fcn.004017ef
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
call fcn.004017ef
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push str.CommonFilesDir
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x100
call edi
test eax, eax
jne 0x407e07
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x290], bl
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x90]
call fcn.0040163f
push str.MediaPath
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0x16
call fcn.0040163f
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x74]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x17
call fcn.0040e7f0
push 1
lea ecx, [ebp - 0x74]
call fcn.004017ef
push 1
lea ecx, [ebp - 0x90]
call fcn.004017ef
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