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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
lea eax, [ebp - 0x18]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push eax
push 0x653c7e74
push 0x80000000
mov dword [ebp - 0x3c], 0x104
call esi
test eax, eax
jne 0x6536e4cf
lea eax, [ebp - 0x64]
push 0x27
push eax
push dword [ebp + 8]
call fcn.653585a9
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x6535b0bc
push edi
lea eax, [ebp - 0x2c]
push 0x10
push eax
movzx eax, word [ebp + 0xc]
push eax
call fcn.6534e72b
lea edi, [ebp - 0x2c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x10
lea eax, [ebp + ecx - 0x2c]
mov byte [eax], 0x2e
inc eax
push eax
movzx eax, word [ebp + 0x10]
push eax
call fcn.6534e72b
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x6535b0c8
lea eax, [ebp - 0x38]
push 0x10
push eax
push dword [ebp + 0x14]
call fcn.6534e72b
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 8]
call esi
test eax, eax
jne 0x6535b0d4
mov eax, dword [ebp + 0x18]
push ebx
xor ebx, ebx
sub eax, ebx
je 0x6536e4db
dec eax
jne 0x6535b0e0
mov edi, str.win32
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x6536e4e5
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x168]
push eax
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x6536e4f1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x168]
push eax
call fcn.6535b18a
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x6535b153
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x6536e4fd
push 4
push edi
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push dword [ebp - 0x10]
call ebx
cmp eax, 0x103
jne 0x6535afe8
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x6536e4fd
push dword [ebp - 8]
call fcn.6535b362
cmp eax, 2
pop ecx
mov dword [ebp + 0x14], eax
ja 0x6535b06a
and dword [ebp + 0x10], 0
mov dword [ebp + 8], eax
test eax, eax
jbe 0x6535b050
lea eax, [ebp - 0x38]
push 0xb
push eax
push dword [ebp + 0x10]
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x6536e4fd
push 8
mov edi, 0x653c7e84
lea esi, [ebp - 0x38]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x6535b03c
push 6
mov edi, 0x653c7e8c
lea esi, [ebp - 0x38]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x6535b03f
dec dword [ebp + 8]
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0x14]
jb 0x6535b004
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp dword [ebp + 8], 0
jne 0x6535b06a
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call fcn.6535b387
test eax, eax
jne 0x6536e4fd
lea eax, [ebp - 0x2c]
push 0xa
xor edi, edi
push eax
push edi
push dword [ebp - 4]
call ebx
cmp eax, 0x103
jne 0x6535b0e9
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x6536e4fd
lea eax, [ebp - 0x1c]
push eax
push 0x653c7e94
push 0x80000000
call esi
test eax, eax
jne 0x6535b13b
cmp dword [ebp - 0x14], edi
mov dword [ebp + 0x10], edi
jbe 0x6535b13b
xor ebx, ebx
jmp 0x6535b10c
mov dword [ebp + 0xc], 0x8002801c
jmp 0x6535b179
mov dword [ebp + 0xc], 0x8002801c
jmp 0x6535b16f
mov dword [ebp + 0xc], 0x8002801c
jmp 0x6535b166
mov dword [ebp + 0xc], 0x80070057
jmp 0x6535b15c
cmp dword [ebp - 0xc], edi
je 0x6535b144
push dword [ebp - 0x14]
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.6535b3fa
jmp 0x6535b094
inc dword [ebp + 0x10]
add ebx, 0x10
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x14]
jae 0x6535b13b
mov eax, dword [ebp - 0xc]
push 0x10
add eax, ebx
pop ecx
mov edi, 0x65343f30
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x6535b0fe
lea ecx, [ebp - 0x64]
push 0x27
push ecx
push eax
call fcn.653585a9
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x1c]
call fcn.6535b387
jmp 0x6535b0fe
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x6535b153
push dword [ebp - 0xc]
call fcn.6534329a
pop ecx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 0x14
mov dword [ebp + 0xc], 0x8002801c
jmp 0x6535b182
mov edi, str.win16
jmp 0x6535af5d
mov dword [ebp + 0xc], 0x8002801c
jmp 0x6535b15c
mov dword [ebp + 0xc], 0x8002801c
jmp 0x6535b153
mov dword [ebp + 0xc], 0x8002801c
jmp 0x6535b144