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

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x24]
lea edx, [ecx + 8]
push ebp
push esi
xor esi, esi
push eax
mov eax, dword [ecx + 4]
push 0xf003f
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100091fa
push eax
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x48]
push esi
lea edx, [esp + 0x50]
push ecx
push edx
push esi
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x1000902e
pop esi
xor eax, eax
pop ebp
add esp, 0x40
ret
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x100091fa
mov ebp, dword [esp + 0x24]
test ebp, ebp
jbe 0x100091fa
mov eax, dword [esp + 8]
test eax, eax
jbe 0x100091fa
mov edx, dword [esp + 0x28]
inc ebp
mov dword [esp + 0xc], ebp
mov dword [esp + 0x44], ebp
lea eax, [edx + 0x64]
push ebx
push edi
mov dword [esp + 0x10], eax
lea ebp, [eax + ebp + 1]
mov ebx, ecx
imul ebp, ecx
add ebp, 0x16
mov dword [esp + 0x48], eax
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, ebp
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
mov dword [esp + 0x38], esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x4c]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x48]
lea eax, [esi + 1]
mov byte [esi], 0x88
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov eax, dword [esp + 0x10]
push eax
call edi
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
push ecx
call edi
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
add esp, 8
lea ebx, [esi + 0xd]
test eax, eax
mov dword [esp + 0x1c], 0
jbe 0x100091d5
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x28]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x14]
xor eax, eax
mov esi, ecx
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
inc eax
mov edi, dword [esp + 0x24]
mov dword [esp + 0x14], eax
add ecx, 0x64
lea eax, [esp + 0x14]
mov dword [esp + 0x10], ecx
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push edx
push ecx
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x1c]
push 0
push edx
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp dword [esp + 0x18], 1
jne 0x1000915e
mov byte [ebx], 0
cmp dword [esp + 0x18], 4
jne 0x10009168
mov byte [ebx], 1
cmp dword [esp + 0x18], 3
jne 0x10009172
mov byte [ebx], 2
cmp dword [esp + 0x18], 2
jne 0x1000917c
mov byte [ebx], 3
or ecx, 0xffffffff
xor eax, eax
inc ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x4c]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x48]
mov ecx, eax
add ebx, esi
mov esi, dword [esp + 0x28]
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebx, eax
mov eax, dword [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x100090e7
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.MSVCRT.dll_free]
push eax
call edi
mov ecx, dword [esp + 0x2c]
push ecx
call edi
add esp, 8
push 0x42
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
pop edi
mov esi, eax
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0x40
ret