Function at 0x4108f0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51900c
mov eax, dword fs:[0]
push eax
sub esp, 0x660
mov eax, dword [0x55d3e4]
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
mov esi, ecx
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004c9210
add esp, 0xc
lea eax, [ebp - 0x628]
mov ecx, esi
push eax
push str.1bdbe
call fcn.00410d90
lea eax, [ebp - 0x628]
mov ecx, esi
push eax
call fcn.00410f00
mov ecx, esi
call fcn.00410800
lea eax, [ebp - 0x65c]
mov dword [ebp - 0x65c], 0
push eax
push 9
push 0
push str.SYSTEMCurrentControlSet_services_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41098e
xor eax, eax
jmp 0x410d72
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x66c], ebx
mov dword [ebp - 0x668], ebx
mov dword [ebp - 0x660], eax
mov dword [ebp - 0x664], eax
push eax
push 0x5207d8
lea ecx, [ebp - 0x658]
mov dword [ebp - 4], eax
mov dword [ebp - 0x644], 7
mov dword [ebp - 0x648], eax
mov word [ebp - 0x658], ax
call fcn.00407fd0
push 0x206
lea eax, [ebp - 0x41e]
mov byte [ebp - 4], 1
push ebx
push eax
call fcn.004c9210
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004c9210
mov eax, dword [0x5207c0]
movups xmm0, xmmword [0x5207b0]
mov dword [ebp - 0x410], eax
mov ax, word [0x5207c4]
mov word [ebp - 0x40c], ax
lea eax, [ebp - 0x420]
push eax
movups xmmword [ebp - 0x420], xmm0
call fcn.004d0492
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea eax, [ebp - 0x218]
add esp, 0x1c
xor esi, esi
push 0x104
push eax
push esi
push dword [ebp - 0x65c]
call edi
test eax, eax
jne 0x410b40
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x62c], 7
mov dword [ebp - 0x630], 0
mov word [ebp - 0x640], ax
cmp word [ebp - 0x218], ax
je 0x410a9f
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410a90
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x640]
call fcn.00407fd0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
call fcn.004d0492
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004c936a
add esp, 0xc
test eax, eax
je 0x410aee
lea eax, [ebp - 0x640]
push eax
lea ecx, [ebp - 0x66c]
call fcn.00410fa0
mov eax, dword [ebp - 0x62c]
mov byte [ebp - 4], 1
cmp eax, 8
jb 0x410b10
inc eax
lea ecx, [ebp - 0x640]
push eax
push dword [ebp - 0x640]
call fcn.0047f630
push 0x104
lea eax, [ebp - 0x218]
inc esi
push eax
push esi
push dword [ebp - 0x65c]
call edi
test eax, eax
je 0x410a60
mov eax, dword [ebp - 0x664]
mov ebx, dword [ebp - 0x66c]
mov dword [ebp - 0x660], eax
push dword [ebp - 0x65c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x668]
mov esi, ebx
cmp ebx, edi
je 0x410c66
nop dword [eax]
push 0x22
xor eax, eax
mov dword [ebp - 0x62c], 7
push str.SYSTEMCurrentControlSet_services_
lea ecx, [ebp - 0x640]
mov dword [ebp - 0x630], 0
mov word [ebp - 0x640], ax
call fcn.00407fd0
cmp dword [esi + 0x14], 8
mov byte [ebp - 4], 3
jb 0x410b9d
mov edx, dword [esi]
jmp 0x410b9f
mov edx, esi
cmp word [edx], 0
jne 0x410ba9
xor ecx, ecx
jmp 0x410bc5
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410bb0
sub ecx, edi
mov edi, dword [ebp - 0x668]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x640]
call fcn.0040a6a0
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
cmovae eax, dword [ebp - 0x640]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
cmovae eax, dword [ebp - 0x640]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [ebp - 0x62c]
mov byte [ebp - 4], 1
cmp eax, 8
jb 0x410c5b
mov ecx, dword [ebp - 0x640]
inc eax
cmp eax, 0x7fffffff
ja 0x410c7f
add eax, eax
cmp eax, 0x1000
jb 0x410c52
test cl, 0x1f
jne 0x410c7f
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x410c7f
sub ecx, eax
cmp ecx, 4
jb 0x410c7f
cmp ecx, 0x23
ja 0x410c7f
mov ecx, eax
push ecx
call fcn.004f0860
add esp, 4
add esi, 0x18
cmp esi, edi
jne 0x410b60
mov eax, dword [ebp - 0x644]
cmp eax, 8
jb 0x410cc8
mov ecx, dword [ebp - 0x658]
inc eax
cmp eax, 0x7fffffff
jbe 0x410c84
call fcn.004cc071
add eax, eax
cmp eax, 0x1000
jb 0x410cbf
test byte [ebp - 0x658], 0x1f
je 0x410c9b
call fcn.004cc071
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x410ca7
call fcn.004cc071
sub ecx, eax
cmp ecx, 4
jae 0x410cb3
call fcn.004cc071
cmp ecx, 0x23
jbe 0x410cbd
call fcn.004cc071
mov ecx, eax
push ecx
call fcn.004f0860
add esp, 4
xor eax, eax
mov dword [ebp - 0x644], 7
mov dword [ebp - 0x648], 0
mov word [ebp - 0x658], ax
test ebx, ebx
je 0x410d6d
push dword [ebp - 0x660]
lea eax, [ebp - 0x66c]
push eax
push edi
push ebx
call fcn.0040cc70
mov ecx, dword [ebp - 0x660]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 0x10
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xaaaaaaa
jbe 0x410d29
call fcn.004cc071
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x410d64
test bl, 0x1f
je 0x410d40
call fcn.004cc071
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x410d4c
call fcn.004cc071
sub ebx, eax
cmp ebx, 4
jae 0x410d58
call fcn.004cc071
cmp ebx, 0x23
jbe 0x410d62
call fcn.004cc071
mov ebx, eax
push ebx
call fcn.004f0860
add esp, 4
mov eax, 1
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.004974f6
mov esp, ebp
pop ebp
ret