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

Disassembly:
sub esp, 0x44
lea eax, [esp + 0x24]
lea edx, [ecx + 8]
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 0x1000c250
push eax
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x3c]
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 0x1000c04c
xor eax, eax
pop esi
add esp, 0x44
ret
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x1000c250
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x1000c250
mov eax, dword [esp + 4]
test eax, eax
jbe 0x1000c250
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebx
push ebp
push edi
push str.LocalReAlloc
push str.KERNEL32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.LocalAlloc
push str.KERNEL32.dll
mov dword [esp + 0x44], eax
call esi
push eax
call edi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
lea ebx, [ecx + 1]
lea ecx, [edx + 0x64]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x50], ebx
lea ebx, [ebx + ecx + 1]
imul ebx, edx
add ebx, 0x16
mov dword [esp + 0x10], ecx
push ebx
push 0x40
mov ebp, edx
mov dword [esp + 0x54], ecx
call eax
mov ecx, ebx
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], 0x8d
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
mov dword [eax], ebp
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 + 0x2c], eax
push ecx
call edi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
add esp, 8
lea ebp, [esi + 0xd]
test eax, eax
mov dword [esp + 0x24], 0
jbe 0x1000c22c
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x28]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x2c]
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 + 0x20]
mov ecx, dword [esp + 0x30]
inc eax
mov edi, dword [esp + 0x28]
mov dword [esp + 0x14], eax
add ecx, 0x64
lea eax, [esp + 0x14]
mov dword [esp + 0x10], ecx
push eax
mov eax, dword [esp + 0x28]
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 0x1000c1b2
mov byte [ebp], 0
cmp dword [esp + 0x18], 4
jne 0x1000c1bd
mov byte [ebp], 1
cmp dword [esp + 0x18], 3
jne 0x1000c1c8
mov byte [ebp], 2
cmp dword [esp + 0x18], 2
jne 0x1000c1d3
mov byte [ebp], 3
or ecx, 0xffffffff
xor eax, eax
inc ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x50]
mov edx, ecx
mov esi, edi
mov edi, ebp
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 ebp, esi
mov esi, dword [esp + 0x2c]
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebp, eax
mov eax, dword [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jb 0x1000c13a
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
mov edi, dword [sym.imp.MSVCRT.dll_free]
push eax
call edi
mov ecx, dword [esp + 0x30]
push ecx
call edi
add esp, 8
push 0x42
push ebx
push esi
call dword [esp + 0x48]
pop edi
pop ebp
mov esi, eax
pop ebx
mov eax, esi
pop esi
add esp, 0x44
ret