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

Disassembly:
push 0x24
push 0x10019d0
call fcn.01009590
xor esi, esi
mov dword [ebp - 0x28], esi
push 0x5b
call fcn.0100822f
push dword [ebp + 0xc]
call fcn.0100853d
push 0x10019c4
call fcn.0100853d
mov dword [ebp - 0x1c], esi
mov ebx, 0x100d480
mov dword [ebp - 0x30], 0x100
lea eax, [ebp - 0x24]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [ebp - 0x1c]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
inc dword [ebp - 0x1c]
cmp edi, esi
je 0x1008bd2
push 0xa
call fcn.0100822f
cmp edi, 0x103
je 0x1008ab8
mov dword [0x100d684], 0x1e
cmp dword [ebp - 0x28], 1
jne 0x1008ac4
inc dword [0x100d020]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea edi, [ebx + 0x100]
mov dword [ebp - 4], esi
lea eax, [edi + edi]
add eax, 3
and eax, 0xfffffffc
call fcn.01009540
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x34], esi
or dword [ebp - 4], 0xffffffff
push dword [ebp + 0xc]
push edi
push esi
call fcn.01007ddd
lea esi, [esi + ebx*2]
mov word [esi], 0x5c
inc esi
inc esi
xor eax, eax
mov word [esi], ax
mov dword [ebp - 0x1c], eax
mov ebx, 0xff
push ebx
push esi
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x1008b93
inc dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
push eax
push 9
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1008b84
and dword [0x100d684], eax
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
call fcn.01008a3e
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x28], 0
jne 0x1008b6d
cmp dword [0x100d684], 0
jne 0x1008b6d
inc dword [0x100d020]
mov dword [ebp - 0x28], 1
cmp dword [0x100d684], 0x322
jne 0x1008b8e
lea esp, [ebp - 0x40]
call fcn.010095cb
ret 8
mov dword [0x100d684], 0x6e
push ebx
push esi
push dword [ebp - 0x1c]
push dword [ebp + 8]
call edi
test eax, eax
je 0x1008b1e
cmp eax, 0x103
je 0x1008b79
mov dword [0x100d684], 0x1e
jmp 0x1008b79
mov dword [0x100d684], esi
cmp dword [ebp - 0x20], 1
je 0x1008bee
cmp dword [ebp - 0x20], 2
je 0x1008bee
cmp dword [ebp - 0x20], 7
je 0x1008bee
xor eax, eax
jmp 0x1008bf1
push 2
pop eax
mov ecx, dword [ebp - 0x24]
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, esi
je 0x1008c92
lea eax, [ebp - 0x24]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1008c2d
mov dword [0x100d684], 0x322
jmp 0x1008c89
cmp dword [ebp - 0x30], esi
je 0x1008c3a
push ebx
call fcn.01008564
jmp 0x1008c41
push 0x40
call fcn.0100822f
push 0x3d
call fcn.0100822f
mov eax, dword [ebp - 0x20]
dec eax
je 0x1008c7c
sub eax, 3
jne 0x1008c6e
cmp dword [ebp - 0x24], 4
jne 0x1008c6e
push 0x100196c
call fcn.0100853d
push 1
push dword [edi]
call fcn.010085af
jmp 0x1008c82
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push edi
call fcn.01008693
jmp 0x1008c82
push edi
call fcn.01008564
push 0xa
call fcn.0100822f
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1008c9c
mov dword [0x100d684], 0x322
mov eax, dword [0x100d684]
cmp eax, 0x322
je 0x1008b79
cmp eax, esi
jne 0x1008a70
mov dword [ebp - 0x28], 1
jmp 0x1008a70