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

Disassembly:
push 0x434
mov eax, 0x1005df52
call fcn.1003ef45
mov dword [ebp - 0x440], ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x434], eax
test eax, eax
je 0x1001faac
test ebx, ebx
je 0x1001faac
xor eax, eax
lea edi, [ebp - 0x20]
mov word [ebx], ax
mov esi, str.CLSID:
push 6
lea eax, [ebp - 0x20]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0x434]
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x1001fab6
lea eax, [esi + 0xc]
mov edi, 0x208
push eax
push str.CLSID_sInprocServer32
mov dword [ebp - 0x440], eax
lea eax, [ebp - 0x430]
push edi
push eax
call fcn.10012076
add esp, 0x10
mov dword [ebp - 0x438], edi
lea eax, [ebp - 0x438]
xor esi, esi
inc esi
mov dword [ebp - 0x43c], esi
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x43c]
push eax
push 0
lea eax, [ebp - 0x430]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
jne 0x1001fa3f
lea eax, [ebp - 0x228]
push eax
call edi
test eax, eax
je 0x1001fa3f
lea ecx, [ebp - 0x228]
sub eax, ecx
sar eax, 1
push eax
mov eax, ecx
push eax
push 0x104
push ebx
call fcn.1001fc97
mov eax, esi
jmp 0x1001faae
push dword [ebp - 0x440]
lea eax, [ebp - 0x430]
push str.CLSID_sLocalServer32
push 0x208
push eax
call fcn.10012076
add esp, 0x10
mov dword [ebp - 0x43c], esi
lea eax, [ebp - 0x438]
mov dword [ebp - 0x438], 0x208
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x43c]
push eax
push 0
lea eax, [ebp - 0x430]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1001faac
lea eax, [ebp - 0x228]
push eax
call edi
test eax, eax
jne 0x1001fa22
xor eax, eax
call fcn.1003eeef
ret 8
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
xor eax, eax
mov dword [ebp - 0x434], eax
push esi
push dword [eax*8 + 0x1007b338]
call edi
test eax, eax
mov eax, dword [ebp - 0x434]
je 0x1001fb06
inc eax
mov dword [ebp - 0x434], eax
cmp eax, 0x1a
jb 0x1001fac4
push str.Windows
push esi
call edi
test eax, eax
jne 0x1001fb21
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
jmp 0x1001faae
push 0
push dword [eax*8 + 0x1007b33c]
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1001fae4
xor eax, eax
inc eax
jmp 0x1001faae
push str.System
push esi
call edi
test eax, eax
jne 0x1001fb3b
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x1001fafc
push str.SystemRoot
push esi
call edi
test eax, eax
jne 0x1001fb58
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x1001faae
push str.SystemDrive
push esi
call edi
test eax, eax
jne 0x1001fb84
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x1001faac
push ebx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
jmp 0x1001faae
push str.Temp
push esi
call edi
test eax, eax
jne 0x1001fba1
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x1001fafc
mov eax, dword [ebp - 0x440]
cmp dword [eax + 4], 0
je 0x1001fc0e
call fcn.1000ada5
push eax
lea ecx, [ebp - 0x434]
call fcn.1000a8c4
and dword [ebp - 4], 0
lea eax, [ebp - 0x434]
push eax
mov eax, dword [ebp - 0x440]
push esi
mov ecx, dword [eax + 4]
call fcn.1000ccea
test eax, eax
je 0x1001fc00
push dword [ebp - 0x434]
push 0x104
push ebx
call fcn.10005de3
mov ecx, dword [ebp - 0x434]
lea ecx, [ecx - 0x10]
call fcn.10009de4
jmp 0x1001fb1c
mov ecx, dword [ebp - 0x434]
lea ecx, [ecx - 0x10]
call fcn.10009de4
lea eax, [ebp - 0x438]
mov dword [ebp - 0x43c], 1
push eax
push ebx
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x438], 0x104
push eax
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x1001fb1c
push str.ProgramFiles
push esi
call edi
test eax, eax
jne 0x1001fc79
push dword [ebp - 0x438]
push ebx
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1001fce3
add esp, 0x14
jmp 0x1001faae
push str.CommonFiles
push esi
call edi
test eax, eax
jne 0x1001faac
push dword [ebp - 0x438]
push ebx
push str.CommonFilesDir
jmp 0x1001fc62