Function at 0x4217ac
Capabilities:
Delete registry key
Delete registry value
Persist via contextmenuhandlers registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x428]
push edi
push eax
push edi
mov esi, 0x2001f
mov dword [ebp - 0x418], edi
push esi
push edi
push edi
push edi
push 0x4047b8
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x420], edi
push ebx
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x424], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x421941
lea eax, [ebp - 0x420]
push eax
push esi
push edi
push 0x401320
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421935
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x424]
mov esi, edi
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
jmp 0x42190b
lea eax, [ebp - 0x41c]
inc esi
push eax
push 0x2001f
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4218f8
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0x208
push eax
lea eax, [ebp - 0x414]
push eax
push edi
push edi
push 0x40482c
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4218ec
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4218ad
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push eax
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x40482c
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x420]
mov dword [ebp - 0x424], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x42184c
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x420]
mov esi, 0x20006
push eax
push esi
push edi
push 0x404848
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4219e5
lea eax, [ebp - 0x41c]
push eax
push esi
push edi
push 0x404900
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42199e
push 0x40482c
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x41c]
push eax
push esi
push edi
push 0x404950
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4219d9
push 0x40482c
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4049a0
mov esi, SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x404a40
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x404ad8
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x404b70
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x404c08
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x404c88
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x404d08
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x404d88
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x404de8
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x404e48
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x404ea8
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x404fb8
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, 0x4050c4
call fcn.0042131d
mov ecx, 0x405100
call fcn.0042131d
mov ecx, 0x405140
call fcn.0042131d
mov ecx, 0x405190
call fcn.0042131d
mov ecx, 0x4051e0
call fcn.0042131d
mov ecx, 0x404748
call fcn.0042131d
mov ecx, 0x404760
call fcn.0042131d
mov ecx, 0x404778
call fcn.0042131d
xor ecx, ecx
inc ecx
call fcn.004215c1
lea eax, [ebp - 0x418]
mov esi, 0x2001f
push eax
push esi
push edi
push 0x405230
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421b0d
push 0x405300
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x418]
push eax
push esi
push edi
push 0x405330
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421b43
push 0x405400
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x418]
push eax
push esi
push edi
push 0x405430
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421b79
push 0x405518
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x418]
push eax
push esi
push edi
push 0x405560
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421baf
push 0x405638
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x418]
push eax
push esi
push edi
push 0x405670
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421be5
push 0x405748
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x418]
push eax
push esi
push edi
push 0x405778
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421c1b
push 0x40584c
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x418]
push eax
push esi
push edi
push 0x405878
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421c51
push 0x40584c
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x405950
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x405a18
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x405ae0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x405bb0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x405c90
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x405d68
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429770
mov esp, ebp
pop ebp
ret