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

Disassembly:
mov eax, 0x4b3390
call fcn.00483228
sub esp, 0x2bc
mov al, byte [0x4e7e70]
push ebx
push esi
push edi
mov esi, ecx
push 0x40
mov byte [ebp - 0x130], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x12f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0x54]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x1c], esi
je 0x458f4f
lea ecx, [ebp - 0x130]
push ecx
push ebx
push ebx
push 7
push ebx
call eax
test eax, eax
jne 0x458f4f
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x130]
push eax
call fcn.0049da15
lea eax, [ebp - 0x130]
push eax
push ebx
push ebx
push 0x18
push ebx
call dword [esi + 0x54]
test eax, eax
jne 0x458f4f
lea eax, [ebp - 0x130]
lea ecx, [esi + 0x48]
push eax
call fcn.0049da15
jmp 0x45900d
lea edi, [esi + 0x4c]
push edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x45900d
lea eax, [ebp - 0x1c4]
mov dword [ebp - 0x10], ebx
push eax
mov dword [ebp - 0x1c4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp dword [ebp - 0x1b4], 1
lea eax, [ebp - 0x10]
push eax
push 7
push ebx
call esi
cmp eax, ebx
jne 0x45901e
mov edi, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x458fc1
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x130]
push eax
call fcn.0049da15
cmp dword [ebp - 0x1b4], 1
lea eax, [ebp - 0x10]
push eax
push 0x18
push ebx
call esi
cmp eax, ebx
jne 0x458ff7
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x458ff7
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + 0x48]
call fcn.0049da15
mov edi, dword [ebp - 0x14]
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
push 0x4e7e70
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], 0xff
mov dword [ebp - 0x20], ebx
call fcn.0049d946
cmp dword [ebp - 0x1b4], 1
mov dword [ebp - 4], ebx
jne 0x459050
mov esi, 0x80000001
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
jmp 0x45905a
mov esi, 0x80000003
push str..DefaultSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x18]
call fcn.0049da15
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push ebx
push dword [ebp - 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4590c4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c8]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push str.StartUp
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4590b9
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c8]
push eax
call fcn.0049da15
mov eax, dword [ebp - 0x1c]
push dword [ebp + 8]
lea ecx, [eax + 0x48]
call fcn.0049d9c5
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45911c
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.Startup
call fcn.0049d946
mov esi, dword [ebp - 0x1c]
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
lea eax, [esi + 0x14]
mov byte [ebp - 4], 1
push eax
call fcn.0049d64d
lea eax, [ebp - 0x28]
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
push eax
lea ecx, [esi + 0x48]
call fcn.0049d9c5
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.0049d8d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0049d8d8
jmp 0x458ffa