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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10003298
push 0x10013c5a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x188], edi
push 0x20
push edi
lea eax, [ebp - 0x180]
push eax
call sub.MSVCRT.dll_memset
mov esi, 0x104
push esi
push edi
lea eax, [ebp - 0x160]
push eax
call sub.MSVCRT.dll_memset
push esi
push edi
lea eax, [ebp - 0x28c]
push eax
call sub.MSVCRT.dll_memset
push 0x10001c70
mov edi, dword [sym.imp.MSVCRT.dll__strrev]
call edi
add esp, 0x28
push eax
push 0x10001c68
call edi
pop ecx
push eax
push 0x100016c4
lea eax, [ebp - 0x58]
push eax
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
call ebx
add esp, 0x10
and dword [ebp - 4], 0
lea eax, [ebp - 0x290]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000a492
or dword [ebp - 0x24], 0xffffffff
jmp 0x1000a7b7
mov eax, dword [ebp + 0x24]
xor ecx, ecx
sub eax, ecx
je 0x1000a660
dec eax
je 0x1000a5e8
dec eax
je 0x1000a4af
dec eax
jmp 0x1000a76e
push 0x20
push ecx
lea eax, [ebp - 0x180]
push eax
call sub.MSVCRT.dll_memset
push esi
push 0
lea eax, [ebp - 0x160]
push eax
call sub.MSVCRT.dll_memset
push esi
push 0
lea eax, [ebp - 0x28c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0x24
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x188]
inc dword [ebp - 0x188]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x160]
push ecx
lea ecx, [ebp + 0x14]
push ecx
push 0
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x180]
push ecx
push eax
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x1000a7b7
mov eax, dword [ebp + 0x14]
dec eax
je 0x1000a5a7
dec eax
je 0x1000a599
dec eax
je 0x1000a576
dec eax
je 0x1000a545
sub eax, 3
jne 0x1000a5ca
push 0x10001c58
jmp 0x1000a57b
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x160]
push eax
push 0x10001c4c
lea eax, [ebp - 0x180]
push eax
push 0x10001c34
call edi
pop ecx
push eax
lea eax, [ebp - 0x28c]
push eax
call ebx
add esp, 0x18
jmp 0x1000a5ca
push 0x10001c28
lea eax, [ebp - 0x180]
push eax
push 0x10001c18
call edi
pop ecx
push eax
lea eax, [ebp - 0x28c]
push eax
call ebx
add esp, 0x10
jmp 0x1000a5ca
lea eax, [ebp - 0x160]
push eax
push 0x10001c08
jmp 0x1000a5b3
lea eax, [ebp - 0x160]
push eax
push 0x10001c00
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28c]
push eax
call ebx
add esp, 0x14
lea eax, [ebp - 0x28c]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x24], 1
xor ecx, ecx
jmp 0x1000a4af
push esi
push ecx
lea eax, [ebp - 0x160]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp - 0x188]
inc dword [ebp - 0x188]
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x160]
push eax
push ecx
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1000a7b7
lea eax, [ebp - 0x160]
push eax
push 0x10001bf8
lea eax, [ebp - 0x28c]
push eax
call ebx
lea eax, [ebp - 0x28c]
push eax
push dword [ebp + 0x18]
call sub.MSVCRT.dll_strcat
add esp, 0x14
mov dword [ebp - 0x24], 1
xor ecx, ecx
jmp 0x1000a5e8
mov edx, dword [ebp + 0x14]
cmp edx, ecx
jbe 0x1000a7b7
cmp edx, 2
jbe 0x1000a772
cmp edx, 3
je 0x1000a74b
push 4
pop eax
cmp edx, eax
je 0x1000a713
cmp edx, 7
jne 0x1000a7b7
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp + 0x14]
push eax
push ecx
push dword [ebp + 0x10]
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000a7b7
lea ebx, [ebp - 0x160]
mov dword [ebp - 0x5c], ebx
mov edi, dword [sym.imp.MSVCRT.dll_strncat]
cmp byte [ebx], 0
je 0x1000a6fd
push esi
push ebx
lea eax, [ebp - 0x28c]
push eax
call edi
push esi
push 0x10001664
lea eax, [ebp - 0x28c]
push eax
call edi
push 0
push ebx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 0x20
inc eax
mov ebx, eax
mov dword [ebp - 0x5c], ebx
jmp 0x1000a6ca
lea eax, [ebp - 0x28c]
push eax
push dword [ebp + 0x18]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
jmp 0x1000a7b0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp + 0x14]
push eax
push ecx
push dword [ebp + 0x10]
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000a7b7
push dword [ebp - 0x184]
push 0x10001bf4
push dword [ebp + 0x18]
call ebx
jmp 0x1000a7ad
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp + 0x14]
push eax
push ecx
push dword [ebp + 0x10]
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000a7b7
jmp 0x1000a7b0
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp + 0x14]
push eax
push ecx
push dword [ebp + 0x10]
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000a7b7
lea eax, [ebp - 0x160]
push eax
call fcn.1000a3ad
push eax
push dword [ebp + 0x18]
call sub.MSVCRT.dll_strcpy
add esp, 0xc
mov dword [ebp - 0x24], 1
or dword [ebp - 4], 0xffffffff
call fcn.1000a7d2
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret