Function at 0x10025210
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov edx, dword [esp + 0x114]
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x120]
push ebp
push esi
mov ecx, dword [ebx + 8]
push edi
push 0
push eax
mov eax, dword [ebx]
push 0
push ecx
push 0
push 0
push 0
push edx
push eax
call fcn.10023b80
add esp, 0x24
test eax, eax
jne 0x10025512
mov eax, dword [ebx + 0x10]
test eax, eax
mov eax, dword [esp + 0x134]
jne 0x10025305
cmp eax, 1
mov dword [ebx + 8], 1
mov dword [esp + 0x18], 0xffffffff
jne 0x10025295
push 0
push 0
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push 0
push ecx
push 0
push 0
push 0
push edx
jmp 0x100252b8
cmp eax, 2
jne 0x100252dd
push 0
push 0
mov ecx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x24]
push 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x100252dd
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
jne 0x10025514
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
add esp, 0x110
ret
cmp eax, 1
jne 0x1002541f
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
push eax
rep stosd dword es:[edi], eax
push eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
xor esi, esi
mov dword [esp + 0x34], 0x104
call ebp
test eax, eax
jne 0x1002537e
cmp dword [esp + 0x128], esi
je 0x10025399
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
push eax
rep stosd dword es:[edi], eax
push eax
push eax
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x2c]
inc esi
push ecx
push edx
push esi
push eax
mov dword [esp + 0x34], 0x104
call ebp
test eax, eax
je 0x10025345
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0x130]
mov ecx, dword [edx]
cmp ecx, 0x104
jbe 0x100253c5
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
add esp, 0x110
ret
cmp ecx, dword [esp + 0x14]
jae 0x100253e6
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
add esp, 0x110
ret
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x10025507
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea esi, [esp + 0x1c]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x14]
mov edi, dword [ebx + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x10025507
cmp eax, 2
jne 0x10025507
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
xor esi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0x104
lea ecx, [eax + 0x10c]
add eax, 0x108
push ecx
mov ecx, dword [esp + 0x14]
push esi
push eax
push esi
lea eax, [esp + 0x2c]
push edx
push eax
push esi
push ecx
call ebp
test eax, eax
jne 0x100254b6
cmp dword [esp + 0x128], esi
je 0x100254d1
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
inc esi
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x14]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0x104
lea edx, [eax + 0x10c]
add eax, 0x108
push edx
mov edx, dword [esp + 0x14]
push 0
push eax
lea eax, [esp + 0x20]
push 0
push eax
push ecx
push esi
push edx
call ebp
test eax, eax
je 0x1002546d
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
add esp, 0x110
ret
mov edi, dword [ebx + 0x14]
test edi, edi
je 0x100254fa
mov ecx, 0x41
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
mov edi, dword [ebx + 0x14]
mov edx, ecx
lea esi, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x104], ecx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret