Function at 0x10008990
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x83c
mov eax, dword [0x100a2068]
xor eax, esp
mov dword [esp + 0x838], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
push 0
push edi
push eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100089f0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x838]
xor ecx, esp
call fcn.1000de54
mov esp, ebp
pop ebp
ret 8
push 0x208
lea eax, [esp + 0x63c]
push 0
push eax
call fcn.10020640
add esp, 0xc
mov dword [esp + 0x24], 0x104
lea eax, [esp + 0x48]
push eax
push 0
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x38]
push eax
push 0
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x660]
push eax
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor esi, esi
cmp dword [esp + 0x14], esi
jbe 0x10008ad1
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x100
lea eax, [esp + 0x54]
push 0
push eax
call fcn.10020640
add esp, 0xc
mov dword [esp + 0x10], 0x100
lea eax, [esp + 0x28]
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], 0x3e8
push eax
lea eax, [esp + 0x254]
push eax
lea eax, [esp + 0x38]
push eax
push 0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x64]
push eax
push 0
push dword [esp + 0x28]
call edi
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x10]
call ebx
test eax, eax
jne 0x100089d7
inc esi
cmp esi, dword [esp + 0x14]
jb 0x10008a61
mov edi, dword [esp + 0x18]
xor ebx, ebx
cmp dword [esp + 0x1c], ebx
jbe 0x10008c25
nop dword [eax]
push 0x100
lea eax, [esp + 0x54]
push 0
push eax
call fcn.10020640
add esp, 0xc
mov dword [esp + 0x10], 0x100
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x64]
push eax
push 0
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x100089d7
push 0x104
push eax
lea eax, [esp + 0x258]
push eax
call fcn.10020640
lea edx, [esp + 0x25c]
add esp, 0xc
mov ecx, edi
sub edx, edi
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x10008b50
cmp word [esp + 0x250], ax
je 0x10008be0
cmp word [esp + 0x50], ax
je 0x10008be0
lea edi, [esp + 0x250]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10008b80
mov eax, dword [0x1009d584]
lea edx, [esp + 0x50]
mov dword [edi], eax
mov esi, edx
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10008ba0
lea edi, [esp + 0x250]
sub edx, esi
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10008bc0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
jmp 0x10008c05
xor eax, eax
nop dword [eax]
nop word [eax + eax]
movzx ecx, word [esp + eax + 0x50]
lea eax, [eax + 2]
mov word [esp + eax + 0x24e], cx
test cx, cx
jne 0x10008bf0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x250]
push eax
push dword [esp + 0x24]
call fcn.10008990
inc ebx
cmp ebx, dword [esp + 0x1c]
jb 0x10008ae0
push edi
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x100089d7
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x844]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000de54
mov esp, ebp
pop ebp
ret 8