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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c4
mov eax, dword [0x480630]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
push esi
push edi
mov dword [esp + 0x2cc], eax
xor eax, eax
mov byte [esp + 0xb8], 0
mov ecx, 0x41
lea edi, [esp + 0xb9]
rep stosd dword es:[edi], eax
mov byte [esp + 0x1c0], al
mov ecx, 0x41
lea edi, [esp + 0x1c1]
push str.Shell32.dll
mov dword [esp + 0x1c], ebx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4495fb
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHGetFolderPathA
push esi
call ebx
push str.SHGetSpecialFolderPathA
push esi
mov edi, eax
call ebx
test edi, edi
mov dword [esp + 0x10], eax
jne 0x4495a0
test eax, eax
jne 0x44959c
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.SHFolder.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x449598
push str.SHGetFolderPathA
push esi
call ebx
push str.SHGetSpecialFolderPathA
push esi
mov edi, eax
call ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test edi, edi
je 0x4495c6
lea eax, [esp + 0xb8]
push eax
push 0
push 0
push 0x19
push 0
call edi
lea ecx, [esp + 0x1c0]
push ecx
push 0
push 0
push 0x10
push 0
call edi
jmp 0x4495ec
test eax, eax
je 0x4495ec
push 0
push 0x19
lea edx, [esp + 0xc0]
push edx
push 0
call eax
push 0
push 0x10
lea eax, [esp + 0x1c8]
push eax
push 0
call dword [esp + 0x20]
test esi, esi
je 0x4495f7
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x30], 2
jne 0x44965a
mov al, byte [esp + 0xb8]
test al, al
je 0x449638
mov edx, dword [ebp + 0xc]
push edx
lea eax, [esp + 0xbc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x449717
mov ecx, dword [ebp + 0xc]
push ecx
push ebx
call fcn.004492c0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c0]
xor ecx, ebp
call fcn.004570de
mov esp, ebp
pop ebp
ret
mov al, byte [esp + 0x1c0]
test al, al
je 0x44967d
mov edx, dword [ebp + 0xc]
push edx
lea eax, [esp + 0x1c4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x449717
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4496f6
mov ecx, dword [esp + 0x14]
lea edx, [ebp + 0xc]
push edx
push ebx
lea eax, [esp + 0x24]
push eax
push 0
push str.Desktop
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4496f6
cmp byte [ebx], 0
je 0x4496f6
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c0]
xor ecx, ebp
call fcn.004570de
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [ebp + 0xc]
cmp eax, 0x7fffffff
ja 0x449717
push 0x474c88
push eax
push ebx
call fcn.00408a60
mov ecx, dword [esp + 0x2cc]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004570de
mov esp, ebp
pop ebp
ret