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

Disassembly:
sub esp, 0x44
push ebp
push esi
push edi
push str.LocalReAlloc
mov esi, ecx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [esi + 4]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
xor edi, edi
push eax
push 0xf003f
lea ecx, [esi + 8]
push edi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000ca55
push eax
push eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x50]
push edi
lea ecx, [esp + 0x58]
push eax
push ecx
push edi
push edi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x1000c88d
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x44
ret
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jbe 0x1000ca55
mov ebp, dword [esp + 0x28]
test ebp, ebp
jbe 0x1000ca55
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x1000ca55
mov eax, dword [esp + 0x2c]
inc ebp
add eax, 0x64
mov dword [esp + 0x10], ebp
mov dword [esp + 0x4c], ebp
push ebx
lea ebp, [eax + ebp + 1]
mov dword [esp + 0x10], eax
imul ebp, ecx
add ebp, 0x16
mov ebx, ecx
push ebp
push 0x40
mov dword [esp + 0x54], eax
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 + 0x50]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x4c]
lea eax, [esi + 1]
mov byte [esi], 0x7f
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 0x1000ca33
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 0x1000c9bc
mov byte [ebx], 0
cmp dword [esp + 0x18], 4
jne 0x1000c9c6
mov byte [ebx], 1
cmp dword [esp + 0x18], 3
jne 0x1000c9d0
mov byte [ebx], 2
cmp dword [esp + 0x18], 2
jne 0x1000c9da
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 + 0x50]
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 + 0x4c]
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 0x1000c945
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 [esp + 0x48]
mov edi, eax
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x44
ret