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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b4b0
push 0x10019a80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
push ebx
push esi
push edi
mov edi, str.x_x__d___r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
mov edi, str.__24s___15s_0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edx, eax
mov dword [ebp - 0x278], edx
mov edi, str.__24s___15s_0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.x_x__d___r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov ecx, 8
lea edi, [ebp - 0x150]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x130]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x260]
rep stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x264]
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 0x1000c00a
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 4], 0xffffffff
call fcn.1000c3e2
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.0x1000c02c.5
jmp dword [eax*4 + 0x1000c40c]
mov ecx, dword [ebp + 0x14]
lea eax, [ecx - 1]
cmp eax, 6
ja case.0x1000c02c.5
jmp dword [eax*4 + 0x1000c41c]
mov dword [ebp - 0x1c], 0x104
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp + 0x14]
push ecx
push ebx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x264]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x1000c02c.5
lea ecx, [ebp - 0x130]
push ecx
call fcn.1000bec0
add esp, 4
mov edi, eax
jmp 0x1000c0f4
mov dword [ebp - 0x1c], 0x104
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x130]
push ecx
lea edx, [ebp + 0x14]
push edx
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x264]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x1000c02c.5
lea esi, [ebp - 0x130]
mov dword [ebp - 0x2c], esi
mov ebx, dword [sym.imp.MSVCRT.dll_strchr]
mov edi, dword [sym.imp.MSVCRT.dll_strncat]
cmp byte [esi], 0
je 0x1000c0ee
push 0x104
push esi
lea edx, [ebp - 0x260]
push edx
call edi
push 0x104
push 0x1001f4fc
lea eax, [ebp - 0x260]
push eax
call edi
push 0
push esi
call ebx
add esp, 0x20
inc eax
mov esi, eax
mov dword [ebp - 0x2c], esi
jmp 0x1000c0b7
lea edi, [ebp - 0x260]
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.1000c3e2
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 - 0x154]
push ecx
lea edx, [ebp + 0x14]
push edx
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x264]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x1000c02c.5
push str.wsprintfA
push str.USER32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x26c], eax
mov edx, dword [ebp - 0x154]
push edx
push 0x1001f2f0
mov ecx, dword [ebp + 0x18]
push ecx
call eax
add esp, 0xc
jmp case.0x1000c016.3
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
lea edx, [ebp + 0x14]
push edx
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x264]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x1000c02c.5
jmp case.0x1000c016.3
push str.wsprintfA
push str.USER32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x270], esi
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x130]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1c], 0x104
mov eax, ebx
inc ebx
mov dword [ebp - 0x15c], ebx
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x130]
push ecx
push eax
mov edx, dword [ebp - 0x264]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne case.0x1000c02c.5
lea eax, [ebp - 0x130]
push eax
push str.__s__r_n
lea ecx, [ebp - 0x260]
push ecx
call esi
add esp, 0xc
lea edi, [ebp - 0x260]
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
jmp case.0x1000c016.1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x150]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x130]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x260]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x1c], 0x104
push str.wsprintfA
push str.USER32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call esi
mov edi, eax
mov dword [ebp - 0x274], edi
mov eax, ebx
inc ebx
mov dword [ebp - 0x15c], ebx
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x130]
push edx
lea ecx, [ebp + 0x14]
push ecx
push 0
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x150]
push ecx
push eax
mov edx, dword [ebp - 0x264]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne case.0x1000c02c.5
mov eax, dword [ebp + 0x14]
dec eax
cmp eax, 6
ja case.0x1000c324.5
jmp dword [eax*4 + 0x1000c438]
lea ecx, [ebp - 0x130]
push ecx
push str.REG_SZ
jmp 0x1000c345
lea ecx, [ebp - 0x130]
push ecx
push str.REG_EXPAND_SZ
lea edx, [ebp - 0x150]
push edx
push str.__24s___15s__s__r_n
lea eax, [ebp - 0x260]
push eax
call edi
add esp, 0x14
jmp case.0x1000c324.5
lea ecx, [ebp - 0x130]
push ecx
lea edx, [ebp - 0x130]
push edx
push str.REG_DWORD
lea eax, [ebp - 0x150]
push eax
mov ecx, dword [ebp - 0x278]
push ecx
lea edx, [ebp - 0x260]
push edx
call edi
add esp, 0x18
jmp case.0x1000c324.5
push str.REG_MULTI_SZ
lea eax, [ebp - 0x150]
push eax
push str.__24s___15s__r_n
lea ecx, [ebp - 0x260]
push ecx
jmp 0x1000c3c0
push str.REG_BINARY
lea edx, [ebp - 0x150]
push edx
push str.__24s___15s__r_n
lea eax, [ebp - 0x260]
push eax
call edi
add esp, 0x10
lea ecx, [ebp - 0x260]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x24], 1
jmp 0x1000c28a