Function at 0x1021e16
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, 0x580
mov eax, dword [0x102a0ec]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x560], edi
mov dword [ebp - 0x568], edi
mov dword [ebp - 0x570], edi
mov dword [ebp - 0x580], edi
mov dword [ebp - 0x578], edi
mov dword [ebp - 0x56c], edi
mov dword [ebp - 0x574], edi
call fcn.0101dde5
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x568]
push eax
push 0x2001f
push edi
push dword [0x102a0f4]
push 0x80000002
call ebx
test eax, eax
mov esi, 0x80000000
jne 0x102219a
lea eax, [ebp - 0x560]
push eax
push 0x2001f
push edi
push 0x1007270
push dword [ebp - 0x568]
call ebx
test eax, eax
jne 0x102218e
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x56c]
push eax
lea eax, [ebp - 0x4dc]
push eax
push edi
jmp 0x1022164
inc dword [ebp - 0x574]
lea eax, [ebp - 0x4dc]
push eax
push 0x10093c0
lea eax, [ebp - 0x2d4]
push 0x104
push eax
call fcn.0100d4d1
add esp, 0x10
test eax, eax
jl 0x1021efc
lea eax, [ebp - 0x2d4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x570]
push eax
push 0x2001f
push edi
lea eax, [ebp - 0x4dc]
push eax
push dword [ebp - 0x560]
call ebx
test eax, eax
jne 0x102214c
lea eax, [ebp - 0x578]
push eax
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x57c]
push eax
push edi
push 0x100732c
push dword [ebp - 0x570]
mov dword [ebp - 0x564], edi
mov dword [ebp - 0x57c], 1
mov dword [ebp - 0x578], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1021f6e
cmp dword [ebp - 0x57c], 1
je 0x1021f8b
lea eax, [ebp - 0x4dc]
push eax
push 0x100731c
lea eax, [ebp - 0xcc]
push 0x63
push eax
call fcn.0100d4d1
add esp, 0x10
lea eax, [ebp - 0xcc]
push eax
push 0x1008170
lea eax, [ebp - 0x2d4]
push 0x104
push eax
call fcn.0100d4d1
add esp, 0x10
test eax, eax
jl 0x1021fbd
lea eax, [ebp - 0x2d4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0xcc]
push eax
push 0x10081d0
lea eax, [ebp - 0x2d4]
push 0x104
push eax
call fcn.0100d4d1
add esp, 0x10
test eax, eax
jl 0x1021fef
lea eax, [ebp - 0x2d4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0xcc]
push eax
push 0x1008110
lea eax, [ebp - 0x2d4]
push 0x104
push eax
call fcn.0100d4d1
add esp, 0x10
test eax, eax
jl 0x1022021
lea eax, [ebp - 0x2d4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0xcc]
push eax
push 0x10076bc
lea eax, [ebp - 0x2d4]
push 0x104
push eax
call fcn.0100d4d1
add esp, 0x10
test eax, eax
jl 0x102207d
lea eax, [ebp - 0x564]
push eax
push 0x20006
push edi
lea eax, [ebp - 0x2d4]
push eax
push esi
call ebx
test eax, eax
jne 0x102207d
push 0x10076a0
push dword [ebp - 0x564]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x564]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x578]
push eax
lea eax, [ebp - 0x55c]
push eax
lea eax, [ebp - 0x57c]
push eax
push edi
push 0x1009398
push dword [ebp - 0x570]
mov dword [ebp - 0x578], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10220e4
cmp dword [ebp - 0x57c], 1
jne 0x10220e4
lea eax, [ebp - 0x55c]
push eax
lea eax, [ebp - 0xcc]
push eax
push 0x1007628
lea eax, [ebp - 0x2d4]
push 0x104
push eax
call fcn.0100d4d1
add esp, 0x14
jmp 0x1022104
lea eax, [ebp - 0xcc]
push eax
push 0x100937c
lea eax, [ebp - 0x2d4]
push 0x104
push eax
call fcn.0100d4d1
add esp, 0x10
test eax, eax
jl 0x1022140
lea eax, [ebp - 0x564]
push eax
push 0x20006
push edi
lea eax, [ebp - 0x2d4]
push eax
push esi
call ebx
test eax, eax
jne 0x1022140
push 0x10076a0
push dword [ebp - 0x564]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x564]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x570]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x56c]
push eax
lea eax, [ebp - 0x4dc]
push eax
push dword [ebp - 0x574]
push dword [ebp - 0x560]
mov dword [ebp - 0x56c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1021ec4
push dword [ebp - 0x560]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x568]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea eax, [ebp - 0x580]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push 0x1009308
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10222ec
lea eax, [ebp - 0x568]
push eax
push 0x2001f
push edi
push 0x1009260
push 0x80000002
call ebx
test eax, eax
jne 0x10222e0
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x56c]
push eax
lea eax, [ebp - 0x4dc]
push eax
mov dword [ebp - 0x574], edi
push edi
jmp 0x10222b6
inc dword [ebp - 0x574]
lea eax, [ebp - 0x570]
push eax
push 0x2001f
push edi
lea eax, [ebp - 0x4dc]
push eax
push dword [ebp - 0x568]
call ebx
test eax, eax
jne 0x102229e
lea eax, [ebp - 0x578]
push eax
lea eax, [ebp - 0x2d4]
push eax
push edi
push edi
push 0x1009244
push dword [ebp - 0x570]
mov dword [ebp - 0x578], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1022292
lea eax, [ebp - 0x4dc]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x4dc]
push eax
push 1
push edi
push eax
push dword [ebp - 0x580]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1009244
push dword [ebp - 0x570]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x570]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x56c]
push eax
lea eax, [ebp - 0x4dc]
push eax
push dword [ebp - 0x574]
push dword [ebp - 0x568]
mov dword [ebp - 0x56c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1022202
push dword [ebp - 0x568]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x580]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10091b0
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x1009118
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x1009080
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x1008fe8
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x1008f40
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x1008e90
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x1008de8
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x1008d38
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x560]
push eax
push 0x2001f
push edi
push 0x1008c68
mov esi, 0x80000002
push esi
call ebx
test eax, eax
jne 0x1022398
push 0x1008c34
push dword [ebp - 0x560]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x1008c08
push dword [ebp - 0x560]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x560]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x560]
push eax
push 0x2001f
push edi
push 0x1008b38
push esi
call ebx
test eax, eax
jne 0x10223ce
push 0x1008b08
push dword [ebp - 0x560]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x560]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x560]
push eax
push 0x2001f
push edi
push 0x1008a30
push esi
call ebx
test eax, eax
jne 0x1022404
push 0x1008a04
push dword [ebp - 0x560]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x560]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x560]
push eax
push 0x2001f
push edi
push 0x1008930
push esi
call ebx
test eax, eax
jne 0x102243a
push 0x1008904
push dword [ebp - 0x560]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x560]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x560]
push eax
push 0x2001f
push edi
push 0x1008830
push esi
call ebx
test eax, eax
jne 0x1022470
push 0x1008904
push dword [ebp - 0x560]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x560]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x1008768
push esi
call edi
push 0x10086a0
push esi
call edi
push 0x10085d8
push esi
call edi
push 0x1008508
push esi
call edi
push 0x1008450
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101672d
leave
ret