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

Disassembly:
mov eax, 0x4b3348
call fcn.00483228
sub esp, 0x2c0
mov al, byte [0x4e7e70]
push ebx
push esi
push edi
mov esi, ecx
push 0x40
mov byte [ebp - 0x1c8], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 0x54]
xor ebx, ebx
cmp eax, ebx
je 0x45890c
cmp dword [ebp - 0xb4], 1
jne 0x4588dd
lea ecx, [ebp - 0x1c8]
push ecx
push ebx
push ebx
push 0x10
jmp 0x4588f1
cmp dword [ebp - 0xb4], 2
jne 0x45890c
lea ecx, [ebp - 0x1c8]
push ecx
push ebx
push ebx
push 0x19
push ebx
call eax
test eax, eax
jne 0x45890c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c8]
push eax
call fcn.0049da15
jmp 0x458a74
lea edi, [esi + 0x4c]
push edi
mov dword [ebp - 0x28], edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x458a74
cmp dword [ebp - 0xb4], 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
jne 0x458935
push 0x10
jmp 0x458937
push 0x19
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jne 0x45896e
lea eax, [ebp - 0x1c8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x458a61
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c8]
push eax
call fcn.0049da15
jmp 0x458a61
push 0x4e7e70
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], 0xff
mov dword [ebp - 0x24], ebx
call fcn.0049d946
cmp dword [ebp - 0xb4], 1
mov dword [ebp - 4], ebx
jne 0x4589a0
mov edi, 0x80000001
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
jmp 0x4589aa
mov edi, 0x80000003
push str..DefaultSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x14]
call fcn.0049da15
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push ebx
push dword [ebp - 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x458a06
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2cc]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push str.Desktop
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4589fb
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2cc]
push eax
call fcn.0049da15
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x458a52
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.Desktop
call fcn.0049d946
push ecx
add esi, 0x20
mov ecx, esp
mov dword [ebp - 0x30], esp
push esi
mov byte [ebp - 4], 1
call fcn.0049d64d
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], bl
push eax
call fcn.00447f34
add esp, 0x10
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.0049d9c5
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0049d8d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0049d8d8
mov edi, dword [ebp - 0x28]
mov eax, dword [edi]
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4