Function at 0x417b50
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 0x417e86
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_shellexContextMenuHandlers083B4516_7502_4311_8453_B5D8E05A156E
push SysReAllocString
lea ecx, [ebp - 0x634]
mov dword [ebp - 4], 0
call fcn.004177e0
push str.CLSID083B4516_7502_4311_8453_B5D8E05A156E
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push 0
push 0
push 0x2001f
push 0
push 0
push str.CLSID083B4516_7502_4311_8453_B5D8E05A156E
push SysReAllocString
lea ecx, [ebp - 0x634]
call fcn.004177e0
test eax, eax
jne 0x417e65
push eax
push eax
push 0x2001f
push eax
push eax
push str.CLSID083B4516_7502_4311_8453_B5D8E05A156EInProcServer32
push SysReAllocString
lea ecx, [ebp - 0x634]
call fcn.004177e0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x417ca6
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 0x417c77
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.CLSID083B4516_7502_4311_8453_B5D8E05A156EInstance
push SysReAllocString
lea ecx, [ebp - 0x634]
call fcn.004177e0
test eax, eax
jne 0x417ce3
push 0x4e
push str.3f454f0e_42ae_4d7c_8ea3_328250d6e272
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.CLSID083B4516_7502_4311_8453_B5D8E05A156EInstanceInitPropertyBag
push SysReAllocString
lea ecx, [ebp - 0x634]
call fcn.004177e0
test eax, eax
jne 0x417e65
mov esi, dword [ebp - 0x634]
push 0x4e
push str.13709620_C279_11CE_A49E_444553540000
push 1
push eax
push str.CLSID
push esi
call ebx
push 0xe
push 0x5661dc
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 0x417dce
movzx eax, word [edi + ecx]
test ax, ax
je 0x417dce
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x417db0
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 0x565dfc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x218]
push eax
push str.__fromrmenu
lea eax, [ebp - 0x628]
push eax
push 0x565dfc
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 0x417e32
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 0x417e6b
mov esi, dword [ebp - 0x634]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4180be
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4180be
lea eax, [ebp - 0x640]
push eax
call fcn.0043e650
add esp, 4
push str.UtilsInstall.ico
lea ecx, [ebp - 0x640]
mov dword [ebp - 4], 1
call fcn.00417700
call fcn.00406530
mov ecx, eax
test ecx, ecx
je 0x4180e8
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 0x417eea
movzx eax, ax
push eax
call fcn.004069f0
jmp 0x417ef6
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
lea ecx, [ebp - 0x63c]
mov byte [ebp - 4], 4
call fcn.00417700
push 0
push 0
push 0x2001f
push 0
push 0
push 0x56610c
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 0x417fe5
mov eax, dword [ebp - 0x640]
mov edi, dword [ebp - 0x634]
test eax, eax
je 0x417fb8
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 0x417f90
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 0x417fe5
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417fc1
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 0x566480
push SysReAllocString
lea ecx, [ebp - 0x634]
call fcn.004177e0
mov edi, dword [ebp - 0x634]
test eax, eax
jne 0x41804b
mov eax, dword [ebp - 0x63c]
test eax, eax
je 0x41804b
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x644], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x418026
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 0x41805d
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 0x418081
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 0x41809c
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 0x4180be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
call fcn.0040f470
mov ecx, eax
call fcn.00410ec0
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