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

Disassembly:
mov eax, 0x4138f0
call fcn.0040b0c0
sub esp, 0x254
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
push 0x20019
xor ebx, ebx
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]
mov esi, 0x419cf0
jne 0x4046b1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push str.Desktop
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x100
call edi
test eax, eax
jne 0x4045e4
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x160], bl
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x44]
call fcn.00401a09
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.004026f3
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x44]
call fcn.004012d4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push str.Favorites
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x100
call edi
test eax, eax
jne 0x404646
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x160], bl
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x44]
call fcn.00401a09
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.004026f3
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x44]
call fcn.004012d4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push str.Programs
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x100
call edi
test eax, eax
jne 0x4046a8
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x160], bl
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x44]
call fcn.00401a09
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.004026f3
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x44]
call fcn.004012d4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4047fe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.Common_Desktop
push dword [ebp - 0x10]
mov dword [ebp - 0x18], 0x100
call edi
test eax, eax
jne 0x404735
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x260], bl
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x44]
call fcn.00401a09
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.004026f3
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x44]
call fcn.004012d4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.Common_Favorites
push dword [ebp - 0x10]
mov dword [ebp - 0x18], 0x100
call edi
test eax, eax
jne 0x404797
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x260], bl
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x44]
call fcn.00401a09
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
mov dword [ebp - 4], 4
call fcn.004026f3
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x44]
call fcn.004012d4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.Common_Programs
push dword [ebp - 0x10]
mov dword [ebp - 0x18], 0x100
call edi
test eax, eax
jne 0x4047f5
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x260], bl
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x60]
call fcn.00401a09
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
mov dword [ebp - 4], 5
call fcn.004026f3
push 1
lea ecx, [ebp - 0x60]
call fcn.004012d4
push dword [ebp - 0x10]
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