Function at 0x1007679
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 8
pop esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x30]
push eax
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x1001890
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call edi
test eax, eax
jne 0x10078e4
cmp dword [ebp - 4], 0xb
jne 0x10078e4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x100186c
push dword [ebp + 8]
call edi
cmp eax, 2
jne 0x10076e8
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
jmp 0x10076fa
cmp eax, ebx
jne 0x10078e4
cmp dword [ebp - 4], 0xb
jne 0x10078e4
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
push 0x1001818
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10078e4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x10017f8
push dword [ebp - 0x10]
mov dword [ebp - 8], esi
call edi
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], ebx
jne 0x10078e4
cmp dword [ebp - 4], 3
jne 0x10078e4
cmp dword [ebp - 8], esi
jb 0x10078e4
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x2c]
jb 0x10078e4
mov eax, dword [ebp - 0x40]
ja 0x1007775
cmp eax, dword [ebp - 0x30]
jbe 0x10078e4
cmp ecx, dword [ebp - 0x24]
jb 0x10078e4
ja 0x1007789
cmp eax, dword [ebp - 0x28]
jb 0x10078e4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x10017e0
push dword [ebp + 8]
mov dword [ebp - 8], esi
call edi
cmp eax, 2
jne 0x10077b4
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
jmp 0x10077cc
cmp eax, ebx
jne 0x10078e4
cmp dword [ebp - 4], 0xb
jne 0x10078e4
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x2c]
ja 0x10077e3
jb 0x10077de
mov esi, dword [ebp - 0x28]
cmp esi, dword [ebp - 0x30]
jae 0x10077e3
mov dword [ebp - 0x18], ebx
jmp 0x1007843
mov ebx, dword [ebp - 0x40]
mov esi, eax
or esi, ecx
mov esi, dword [ebp - 0x3c]
je 0x1007804
cmp ecx, edx
jb 0x1007804
ja 0x10077fa
cmp eax, dword [ebp - 0x28]
jb 0x1007804
cmp ecx, esi
ja 0x1007804
jb 0x1007808
cmp eax, ebx
jb 0x1007808
mov eax, ebx
mov ecx, esi
sub eax, dword [ebp - 0x28]
lea edx, [ebp - 0x1c]
sbb ecx, dword [ebp - 0x24]
push edx
push 0
push 0x64
push ecx
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
call fcn.01006e9d
test eax, eax
jl 0x10078e4
sub ebx, dword [ebp - 0x30]
sbb esi, dword [ebp - 0x2c]
push esi
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.01008b50
mov dword [ebp - 0x18], eax
xor ebx, ebx
push 4
pop esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
mov ebx, 0x10017c0
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], esi
call edi
cmp eax, 2
jne 0x100786c
and dword [ebp - 0xc], 0
jmp 0x1007875
test eax, eax
jne 0x10078e4
cmp dword [ebp - 4], esi
jne 0x10078e4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x10017a4
push dword [ebp + 8]
mov dword [ebp - 8], esi
call edi
test eax, eax
jne 0x10078e4
cmp dword [ebp - 4], esi
jne 0x10078e4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10078e4
lea eax, [ecx - 1]
imul eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x18]
xor edx, edx
div ecx
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
mov esi, eax
push 0x182d
push 0
call sub.ntdll.dll_WinSqmSetDWORD
xor eax, eax
test esi, esi
sete al
mov dword [ebp - 0x20], eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x1001890
push dword [ebp + 8]
call esi
push 0x100186c
push dword [ebp + 8]
call esi
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret 4