Function at 0x418100
Capabilities:
Delete registry key
Get common file path
Persist via contextmenuhandlers registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554427
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [0x5ad6f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00418f20
test al, al
je 0x418436
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 0
push 0
push 0
push 0x2001f
push 0
push 0
push str.DirectoryBackground_shellexContextMenuHandlers6251BDF8_B6EA_4D7F_B250_D67862EED691
push SysReAllocString
lea ecx, [ebp - 0x634]
mov dword [ebp - 4], 0
call fcn.004177e0
push str.CLSID6251BDF8_B6EA_4D7F_B250_D67862EED691
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push 0
push 0
push 0x2001f
push 0
push 0
push str.CLSID6251BDF8_B6EA_4D7F_B250_D67862EED691
push SysReAllocString
lea ecx, [ebp - 0x634]
call fcn.004177e0
test eax, eax
jne 0x418415
push eax
push eax
push 0x2001f
push eax
push eax
push str.CLSID6251BDF8_B6EA_4D7F_B250_D67862EED691InProcServer32
push SysReAllocString
lea ecx, [ebp - 0x634]
call fcn.004177e0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x418256
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00513d10
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.shdocvw.dll
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418227
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x420]
push eax
push 2
push 0
push 0x5645e0
push dword [ebp - 0x634]
call ebx
push 0
push 0
push 0x2001f
push 0
push 0
push str.CLSID6251BDF8_B6EA_4D7F_B250_D67862EED691Instance
push SysReAllocString
lea ecx, [ebp - 0x634]
call fcn.004177e0
test eax, eax
jne 0x418293
push 0x4e
push str.D4D51137_335E_4C27_A836_F8CBC7FBC9C0
push 1
push eax
push str.CLSID
push dword [ebp - 0x634]
call ebx
push 0
push 0
push 0x2001f
push 0
push 0
push str.CLSID6251BDF8_B6EA_4D7F_B250_D67862EED691InstanceInitPropertyBag
push SysReAllocString
lea ecx, [ebp - 0x634]
call fcn.004177e0
test eax, eax
jne 0x418415
mov esi, dword [ebp - 0x634]
push 0x4e
push str.30055D51_F352_4CB7_BD61_989B91FFE499
push 1
push eax
push str.CLSID
push esi
call ebx
push 0xe
push 0x5666c0
push 1
push 0
push 0x566390
push esi
call ebx
push 0x1a
push str.ShellExecute
push 1
push 0
push str.method
push esi
call ebx
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00513d10
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00513d10
lea ecx, [ebp - 0x218]
add esp, 0xc
lea edi, [ebp - 0x628]
mov eax, ecx
mov edx, 0x104
sub edi, eax
nop word [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x41837e
movzx eax, word [edi + ecx]
test ax, ax
je 0x41837e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x418360
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x5666ac
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x218]
push eax
push str.__fromrmenu_theme
lea eax, [ebp - 0x628]
push eax
push 0x5666ac
call fcn.00444190
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4183e2
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push str.Param1
push esi
call ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
jmp 0x41841b
mov esi, dword [ebp - 0x634]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x41866e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41866e
lea eax, [ebp - 0x640]
push eax
call fcn.0043e650
add esp, 4
push str.UtilsTheme.ico
lea ecx, [ebp - 0x640]
mov dword [ebp - 4], 1
call fcn.00417700
call fcn.00406530
mov ecx, eax
test ecx, ecx
je 0x418698
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x638], eax
mov eax, 0x566420
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x638]
test eax, 0xffff0000
jne 0x41849a
movzx eax, ax
push eax
call fcn.004069f0
jmp 0x4184a6
push 3
push 0x566420
call fcn.0040adc0
lea eax, [ebp - 0x63c]
mov byte [ebp - 4], 3
push eax
call fcn.0043e650
add esp, 4
push str.HaloTray.exe___fromrmenu_theme
lea ecx, [ebp - 0x63c]
mov byte [ebp - 4], 4
call fcn.00417700
push 0
push 0
push 0x2001f
push 0
push 0
push 0x56660c
push SysReAllocString
lea ecx, [ebp - 0x634]
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 0
call fcn.004177e0
mov esi, dword [ebp - 0x638]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x418595
mov eax, dword [ebp - 0x640]
mov edi, dword [ebp - 0x634]
test eax, eax
je 0x418568
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x644], ecx
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x418540
sub edx, dword [ebp - 0x644]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push str.Icon
push edi
call ebx
test esi, esi
je 0x418595
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418571
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.Position
push edi
call ebx
push 0
push 0
push 0x2001f
push 0
push 0
push str.DesktopBackground_shell_
push SysReAllocString
lea ecx, [ebp - 0x634]
call fcn.004177e0
mov edi, dword [ebp - 0x634]
test eax, eax
jne 0x4185fb
mov eax, dword [ebp - 0x63c]
test eax, eax
je 0x4185fb
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x644], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4185d6
sub edx, dword [ebp - 0x644]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push 0
push edi
call ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test edi, edi
je 0x41860d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x63c]
or edi, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418631
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41864c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x640]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x41866e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
call fcn.0040f470
mov ecx, eax
call fcn.00410f70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d684f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00406210
int3