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

Disassembly:
push 0x434
mov eax, 0x1006812d
call fcn.1002f2b3
mov dword [ebp - 0x440], ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x434], eax
test eax, eax
je 0x1001db38
test ebx, ebx
je 0x1001db38
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 0x1001db42
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.1001041c
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 0x1001dacb
lea eax, [ebp - 0x228]
push eax
call edi
test eax, eax
je 0x1001dacb
lea ecx, [ebp - 0x228]
sub eax, ecx
sar eax, 1
push eax
mov eax, ecx
push eax
push 0x104
push ebx
call fcn.1001dd23
mov eax, esi
jmp 0x1001db3a
push dword [ebp - 0x440]
lea eax, [ebp - 0x430]
push str.CLSID_sLocalServer32
push 0x208
push eax
call fcn.1001041c
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 0x1001db38
lea eax, [ebp - 0x228]
push eax
call edi
test eax, eax
jne 0x1001daae
xor eax, eax
call fcn.1002f25d
ret 8
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
xor eax, eax
mov dword [ebp - 0x434], eax
push esi
push dword [eax*8 + 0x1008b3b0]
call edi
test eax, eax
mov eax, dword [ebp - 0x434]
je 0x1001db92
inc eax
mov dword [ebp - 0x434], eax
cmp eax, 0x1a
jb 0x1001db50
push str.Windows
push esi
call edi
test eax, eax
jne 0x1001dbad
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
jmp 0x1001db3a
push 0
push dword [eax*8 + 0x1008b3b4]
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1001db70
xor eax, eax
inc eax
jmp 0x1001db3a
push str.System
push esi
call edi
test eax, eax
jne 0x1001dbc7
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x1001db88
push str.SystemRoot
push esi
call edi
test eax, eax
jne 0x1001dbe4
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x1001db3a
push str.SystemDrive
push esi
call edi
test eax, eax
jne 0x1001dc10
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x1001db38
push ebx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
jmp 0x1001db3a
push str.Temp
push esi
call edi
test eax, eax
jne 0x1001dc2d
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x1001db88
mov eax, dword [ebp - 0x440]
cmp dword [eax + 4], 0
je 0x1001dc9a
call fcn.1000678d
push eax
lea ecx, [ebp - 0x434]
call fcn.100062ac
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.10008708
test eax, eax
je 0x1001dc8c
push dword [ebp - 0x434]
push 0x104
push ebx
call fcn.1000b08e
mov ecx, dword [ebp - 0x434]
lea ecx, [ecx - 0x10]
call fcn.100057c1
jmp 0x1001dba8
mov ecx, dword [ebp - 0x434]
lea ecx, [ecx - 0x10]
call fcn.100057c1
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 0x1001dba8
push str.ProgramFiles
push esi
call edi
test eax, eax
jne 0x1001dd05
push dword [ebp - 0x438]
push ebx
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1001dd6f
add esp, 0x14
jmp 0x1001db3a
push str.CommonFiles
push esi
call edi
test eax, eax
jne 0x1001db38
push dword [ebp - 0x438]
push ebx
push str.CommonFilesDir
jmp 0x1001dcee