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

Disassembly:
mov eax, 0x41d16b
call fcn.00415348
sub esp, 0x284
push ebx
push esi
push edi
push str.This_Program
lea ecx, [ebp - 0x54]
call fcn.0040162c
xor ebx, ebx
push str.InstallName
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.0040162c
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x38]
mov esi, 0x425b7c
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040ce00
push 1
lea ecx, [ebp - 0x38]
call fcn.004017dc
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x54]
call fcn.004017dc
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 0x4060b9
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 0x405ebc
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x190], bl
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040162c
push str.Desktop
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 2
call fcn.0040162c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0040ce00
push 1
lea ecx, [ebp - 0x54]
call fcn.004017dc
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
call fcn.004017dc
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 0x405f39
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x190], bl
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040162c
push str.Favorites
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 4
call fcn.0040162c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.0040ce00
push 1
lea ecx, [ebp - 0x54]
call fcn.004017dc
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
call fcn.004017dc
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 0x405fb6
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x190], bl
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040162c
push str.ProgramGroup
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 6
call fcn.0040162c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.0040ce00
push 1
lea ecx, [ebp - 0x54]
call fcn.004017dc
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
call fcn.004017dc
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 0x406033
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x190], bl
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040162c
push str.SendTo
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 8
call fcn.0040162c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.0040ce00
push 1
lea ecx, [ebp - 0x54]
call fcn.004017dc
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
call fcn.004017dc
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 0x4060b0
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x190], bl
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040162c
push str.StartMenu
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xa
call fcn.0040162c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.0040ce00
push 1
lea ecx, [ebp - 0x54]
call fcn.004017dc
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
call fcn.004017dc
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 0x406260
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push str.Common_Desktop
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x100
call edi
test eax, eax
jne 0x406158
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x290], bl
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040162c
push str.CommonDesktop
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xc
call fcn.0040162c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xd
call fcn.0040ce00
push 1
lea ecx, [ebp - 0x54]
call fcn.004017dc
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
call fcn.004017dc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push str.Common_Favorites
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x100
call edi
test eax, eax
jne 0x4061d5
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x290], bl
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040162c
push str.CommonFavorites
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xe
call fcn.0040162c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xf
call fcn.0040ce00
push 1
lea ecx, [ebp - 0x54]
call fcn.004017dc
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
call fcn.004017dc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push str.Common_Programs
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x100
call edi
test eax, eax
jne 0x406257
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x290], bl
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x90]
call fcn.0040162c
push str.CommonProgramGroup
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0x10
call fcn.0040162c
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x74]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x11
call fcn.0040ce00
push 1
lea ecx, [ebp - 0x74]
call fcn.004017dc
push 1
lea ecx, [ebp - 0x90]
call fcn.004017dc
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