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

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x104
push ebx
push esi
push edi
call fcn.01002ab2
xor esi, esi
test eax, eax
lea eax, [ebp + 0x68]
push eax
push 0xf003f
push esi
push 0x100152c
push dword [ebp + 0x7c]
je 0x10036f1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push esi
push esi
push esi
lea eax, [ebp + 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0x68]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x1003580
push dword [ebp + 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10038ff
mov eax, dword [ebp + 0x54]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
imul eax, eax, 0x64
push eax
push 0x42
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call ebx
cmp eax, esi
mov dword [ebp + 0x7c], eax
je 0x10038ff
mov eax, dword [ebp + 0x54]
imul eax, eax, 0x64
push eax
push 0x42
call edi
push eax
call ebx
mov ebx, eax
cmp ebx, esi
mov dword [ebp + 0x60], ebx
jne 0x10035df
push dword [ebp + 0x7c]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 0x7c]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x10038ff
push 0x64
pop edi
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp - 0x90]
push eax
push esi
push esi
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp + 0x68]
mov dword [ebp + 0x6c], esi
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x50], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x1003672
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x64], ebx
sub dword [ebp + 0x64], eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp + 0x70], eax
mov ecx, dword [ebp + 0x70]
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp + 0x64]
add eax, ecx
push eax
call ebx
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x70]
call ebx
inc dword [ebp + 0x6c]
add dword [ebp + 0x70], edi
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp - 0x90]
push eax
push esi
push esi
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x6c]
mov dword [ebp + 0x5c], edi
push dword [ebp + 0x68]
mov dword [ebp + 0x50], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x1003623
cmp dword [ebp + 0x6c], esi
jle 0x1003691
mov eax, dword [ebp + 0x6c]
mov ebx, dword [ebp + 0x7c]
mov dword [ebp + 0x70], eax
push ebx
push dword [ebp + 0x68]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
add ebx, edi
dec dword [ebp + 0x70]
jne 0x1003680
mov ebx, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x6c]
push ebx
push dword [ebp + 0x7c]
call fcn.01003471
xor eax, eax
cmp dword [ebp + 0x6c], esi
jle 0x10038c4
mov dword [ebp + 0x70], ebx
lea ebx, [eax + 1]
push ebx
lea eax, [ebp + 0x44]
push 0x1001544
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x70]
lea eax, [ebp + 0x44]
push 1
push esi
push eax
push dword [ebp + 0x68]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add dword [ebp + 0x70], edi
mov eax, ebx
cmp eax, dword [ebp + 0x6c]
jl 0x10036ae
jmp 0x10038c4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp + 0x54]
push eax
push esi
push esi
push esi
push dword [ebp + 0x68]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x1003572
mov eax, dword [ebp + 0x54]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
imul eax, eax, 0x64
push eax
push 0x42
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call ebx
mov dword [ebp + 0x7c], eax
mov eax, dword [ebp + 0x54]
imul eax, eax, 0x64
push eax
push 0x42
call edi
push eax
call ebx
cmp dword [ebp + 0x7c], esi
mov dword [ebp + 0x60], eax
je 0x10038ff
cmp eax, esi
je 0x10038ff
push 0x64
pop edi
lea eax, [ebp + 0x38]
push eax
push esi
push esi
push esi
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp + 0x68]
mov dword [ebp + 0x6c], esi
mov dword [ebp + 0x5c], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
mov ebx, 0x10014f6
je 0x1003821
mov ecx, dword [ebp + 0x7c]
mov eax, dword [ebp + 0x60]
sub eax, ecx
mov dword [ebp + 0x70], ecx
mov dword [ebp + 0x64], eax
lea eax, [ebp + 0x58]
push eax
push 0xf003f
push esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x68]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp - 0x90]
push eax
push esi
push esi
push ebx
push dword [ebp + 0x58]
mov dword [ebp + 0x50], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x64]
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp + 0x70]
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
inc dword [ebp + 0x6c]
add dword [ebp + 0x70], edi
lea eax, [ebp + 0x38]
push eax
push esi
push esi
push esi
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x6c]
mov dword [ebp + 0x5c], edi
push dword [ebp + 0x68]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x1003795
mov eax, dword [ebp + 0x6c]
cmp eax, esi
jle 0x1003845
mov ecx, dword [ebp + 0x7c]
mov dword [ebp + 0x70], ecx
mov dword [ebp + 0x64], eax
push dword [ebp + 0x70]
push dword [ebp + 0x68]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add dword [ebp + 0x70], edi
dec dword [ebp + 0x64]
jne 0x1003831
push dword [ebp + 0x60]
mov ecx, dword [ebp + 0x6c]
push dword [ebp + 0x7c]
call fcn.01003471
xor eax, eax
cmp dword [ebp + 0x6c], esi
jle 0x10038c4
mov ecx, dword [ebp + 0x60]
mov dword [ebp + 0x70], ecx
inc eax
push eax
mov dword [ebp + 0x64], eax
lea eax, [ebp + 0x44]
push 0x1001544
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x58]
push eax
push esi
push 0xf003f
push esi
push ebx
push esi
lea eax, [ebp + 0x44]
push eax
push dword [ebp + 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x70]
push 1
push esi
push ebx
push dword [ebp + 0x58]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x64]
add dword [ebp + 0x70], edi
cmp eax, dword [ebp + 0x6c]
jl 0x1003860
push dword [ebp + 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push eax
call edi
push dword [ebp + 0x60]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
call ebx
push dword [ebp + 0x7c]
call esi
push eax
call edi
push dword [ebp + 0x7c]
call esi
push eax
call ebx
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4