Function at 0x1007873e
Capabilities:
Persist via contextmenuhandlers registry key
Set registry value

Disassembly:
push 0x254
mov eax, 0x10265183
call fcn.10054407
xor eax, eax
mov dword [ebp - 4], 1
push 0x208
push eax
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x218]
push eax
call fcn.100cd120
add esp, 0xc
call fcn.1007901f
push eax
lea ecx, [ebp - 0x260]
call fcn.10077c22
mov esi, dword [ebp - 0x260]
mov byte [ebp - 4], 2
jmp 0x10078986
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1007879b
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x248]
call fcn.100067f0
push str._shellexContextMenuHandlers_
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 3
call fcn.10007ee0
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x248]
push eax
call fcn.100088e0
xor edx, edx
lea ecx, [ebp - 0x24c]
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push edx
cmovae eax, dword [ebp - 0x248]
push ecx
push edx
push 0xf013f
push edx
push edx
push edx
push eax
push SysReAllocString
mov dword [ebp - 0x24c], edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1007887d
cmp dword [ebp + 0x34], 8
lea ecx, [ebp + 0x20]
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp + 0x20]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10078825
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x254]
jne 0x1007883d
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
xor eax, eax
push eax
push 0x102de6e0
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10078887
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x230]
call fcn.100067f0
push str._shellexDragDropHandlers_
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
call fcn.10007ee0
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x230]
push eax
call fcn.100088e0
xor edx, edx
lea ecx, [ebp - 0x250]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push edx
cmovae eax, dword [ebp - 0x230]
push ecx
push edx
push 0xf013f
push edx
push edx
push edx
push eax
push SysReAllocString
mov dword [ebp - 0x250], edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10078969
cmp dword [ebp + 0x34], 8
lea ecx, [ebp + 0x20]
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp + 0x20]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10078911
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x254]
jne 0x10078929
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
xor eax, eax
push eax
push 0x102de6e0
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x230]
call fcn.100042b0
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.100042b0
add esi, 0x18
cmp esi, dword [ebp - 0x25c]
jne 0x10078791
lea ecx, [ebp - 0x260]
call fcn.1005ceb9
lea ecx, [ebp + 8]
call fcn.100042b0
lea ecx, [ebp + 0x20]
call fcn.100042b0
mov al, 1
call fcn.100543b1
ret 0x30