Function at 0x10008ffc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10003050
push 0x10012568
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
push ebx
push esi
push edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x180]
rep stosd dword es:[edi], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, 0x41
lea edi, [ebp - 0x160]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x28c]
rep stosd dword es:[edi], eax
push 0x10001794
push 0x1000178c
push 0x100014d8
lea eax, [ebp - 0x58]
push eax
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
call esi
add esp, 0x10
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x290]
push ecx
push 0x20019
push ebx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10008fe9
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 4], 0xffffffff
call fcn.100093d0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x24]
cmp eax, 3
ja case.0x1000900b.5
jmp dword [eax*4 + 0x1000940c]
mov ecx, dword [ebp + 0x14]
lea eax, [ecx - 1]
cmp eax, 6
ja case.0x1000900b.5
jmp dword [eax*4 + 0x1000941c]
mov dword [ebp - 0x1c], 0x104
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x1000900b.5
lea ecx, [ebp - 0x160]
push ecx
call fcn.10008ed0
add esp, 4
mov edi, eax
jmp 0x100090e7
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 0x1c], 0x104
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x160]
push ecx
lea edx, [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x290]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x1000900b.5
lea esi, [ebp - 0x160]
mov dword [ebp - 0x5c], esi
mov ebx, dword [sym.imp.MSVCRT.dll_strchr]
mov edi, dword [sym.imp.MSVCRT.dll_strncat]
cmp byte [esi], 0
je 0x100090e1
push 0x104
push esi
lea edx, [ebp - 0x28c]
push edx
call edi
push 0x104
push 0x10001460
lea eax, [ebp - 0x28c]
push eax
call edi
push 0
push esi
call ebx
add esp, 0x20
inc eax
mov esi, eax
mov dword [ebp - 0x5c], esi
jmp 0x100090aa
lea edi, [ebp - 0x28c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
call fcn.100093d0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1c], 4
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x184]
push ecx
lea edx, [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x290]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x1000900b.5
mov edx, dword [ebp - 0x184]
push edx
push 0x10001788
mov eax, dword [ebp + 0x18]
push eax
call esi
add esp, 0xc
jmp case.0x10008ff5.3
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x1000900b.5
jmp case.0x10008ff5.3
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x160]
rep stosd dword es:[edi], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 0x1c], 0x104
mov eax, ebx
inc ebx
mov dword [ebp - 0x188], ebx
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x160]
push edx
push eax
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne case.0x1000900b.5
lea ecx, [ebp - 0x160]
push ecx
push 0x10001780
lea edx, [ebp - 0x28c]
push edx
call esi
add esp, 0xc
lea edi, [ebp - 0x28c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, dword [ebp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x24], 1
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
jmp case.0x10008ff5.1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x180]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x160]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x28c]
rep stosd dword es:[edi], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x1c], 0x104
mov eax, ebx
inc ebx
mov dword [ebp - 0x188], ebx
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x160]
push edx
lea ecx, [ebp + 0x14]
push ecx
push 0
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x180]
push ecx
push eax
mov edx, dword [ebp - 0x290]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne case.0x1000900b.5
mov eax, dword [ebp + 0x14]
dec eax
cmp eax, 6
ja case.0x100092ec.5
jmp dword [eax*4 + 0x10009438]
lea ecx, [ebp - 0x160]
push ecx
push 0x10001778
lea edx, [ebp - 0x180]
push edx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28c]
push ecx
call esi
add esp, 0x14
jmp case.0x100092ec.5
lea edx, [ebp - 0x160]
push edx
push 0x10001768
lea eax, [ebp - 0x180]
push eax
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x28c]
push edx
call esi
add esp, 0x14
jmp case.0x100092ec.5
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x160]
push ecx
push 0x1000175c
lea edx, [ebp - 0x180]
push edx
push 0x10001744
lea eax, [ebp - 0x28c]
push eax
call esi
add esp, 0x18
jmp case.0x100092ec.5
push 0x10001734
lea ecx, [ebp - 0x180]
push ecx
push 0x10001724
lea edx, [ebp - 0x28c]
push edx
jmp 0x100093ae
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0x10001718
lea eax, [ebp - 0x180]
push eax
push 0x10001724
lea ecx, [ebp - 0x28c]
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x28c]
push edx
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x24], 1
jmp case.0x10008ff5.2