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

Disassembly:
sub esp, 0x44
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebp
push esi
push edi
push str.LocalAlloc
mov esi, ecx
push str.KERNEL32.dll
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
push str.LocalReAlloc
push str.KERNEL32.dll
mov edi, eax
call ebx
push eax
call ebp
mov edx, dword [esi + 4]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x34]
xor ebx, ebx
push eax
push 0xf003f
lea ecx, [esi + 8]
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000cb56
push eax
push eax
lea eax, [esp + 0x34]
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x54]
push ebx
lea ecx, [esp + 0x5c]
push eax
push ecx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x1000c994
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret
mov ecx, dword [esp + 0x20]
test ecx, ecx
jbe 0x1000cb56
mov ebp, dword [esp + 0x2c]
test ebp, ebp
jbe 0x1000cb56
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x1000cb56
mov eax, dword [esp + 0x30]
inc ebp
add eax, 0x64
mov dword [esp + 0x14], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x10], eax
lea ebp, [eax + ebp + 1]
mov ebx, ecx
imul ebp, ecx
add ebp, 0x16
mov dword [esp + 0x4c], eax
push ebp
push 0x40
call edi
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], 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 0x1000cb35
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 0x1000cabe
mov byte [ebx], 0
cmp dword [esp + 0x18], 4
jne 0x1000cac8
mov byte [ebx], 1
cmp dword [esp + 0x18], 3
jne 0x1000cad2
mov byte [ebx], 2
cmp dword [esp + 0x18], 2
jne 0x1000cadc
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 0x1000ca47
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 ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x44
ret