Function at 0x10008f41
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, 0x104
xor ebx, ebx
push esi
push ebx
push dword [0x1002b100]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x28], ebx
call edi
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x10009373
push esi
push ebx
push dword [0x1002b100]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x10009330
cmp dword [0x1002b1f0], ebx
je 0x10009330
lea eax, [ebp - 0x38]
push eax
push dword [0x1002b1c8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1000909e
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x34]
push ebx
push ebx
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x3c], eax
cmp eax, 0xea
jne 0x10009042
push dword [ebp - 0x18]
push ebx
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x1c]
push ebx
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add dword [ebp - 0x24], esi
push dword [ebp - 0x24]
push ebx
push dword [0x1002b100]
call edi
push dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
push ebx
push dword [0x1002b100]
call edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x18], ebx
je 0x10009095
cmp dword [ebp - 0x1c], ebx
jne 0x10008fc8
cmp dword [ebp - 0x3c], ebx
jne 0x10009095
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.10008ddc
test eax, eax
jne 0x1000908d
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
je 0x1000907a
push eax
push ebx
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x20], 1
inc dword [ebp - 0x14]
jmp 0x10008fc8
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.10008b44
or dword [ebp - 0x20], eax
jmp 0x100091ce
mov esi, dword [ebp - 0x10]
cmp dword [ebp - 4], ebx
je 0x100090d8
cmp dword [ebp - 0x2c], esi
jae 0x100090d3
push dword [ebp - 4]
push ebx
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
jne 0x100090f0
push esi
push ebx
push dword [0x1002b100]
mov dword [ebp - 0x2c], esi
call edi
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x100091f0
lea eax, [esi - 6]
push eax
mov eax, dword [ebp - 0x14]
add eax, 5
push eax
push dword [ebp - 4]
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
push ebx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
mov byte [esi + eax - 6], bl
call fcn.100038de
test eax, eax
je 0x10009122
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x24]
sub eax, esi
add eax, dword [ebp + 0xc]
push eax
push ebx
push dword [0x1002b100]
mov dword [ebp - 0x28], eax
call edi
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x100091b4
mov esi, dword [ebp - 0x14]
sub esi, dword [ebp - 8]
push esi
push dword [ebp - 8]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
cmp dword [ebp - 0x24], ebx
je 0x1000916a
push dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x3c]
add eax, esi
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
sub eax, esi
sub eax, ecx
push eax
mov eax, dword [ebp - 0x14]
add ecx, eax
mov eax, dword [ebp - 0x24]
add eax, esi
mov esi, dword [ebp - 0xc]
push ecx
add eax, esi
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
cmp eax, dword [ebp + 8]
je 0x100091a4
push eax
push ebx
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x24], ebx
je 0x100091c9
push dword [ebp - 0x3c]
push ebx
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0xc], ebx
je 0x100091f0
lea eax, [ebp - 0x10]
push eax
push 0x1002c397
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.1001168e
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x100090b3
lea eax, [ebp - 0x10]
push eax
push 0x1002c39f
push dword [ebp + 0xc]
push dword [ebp - 8]
jmp 0x10009308
mov esi, dword [ebp - 0x10]
cmp dword [ebp - 4], ebx
je 0x10009229
cmp dword [ebp - 0x2c], esi
jae 0x10009224
push dword [ebp - 4]
push ebx
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
jne 0x10009241
push esi
push ebx
push dword [0x1002b100]
mov dword [ebp - 0x2c], esi
call edi
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x10009330
lea eax, [esi - 9]
push eax
mov eax, dword [ebp - 0x14]
add eax, 8
push eax
push dword [ebp - 4]
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
push 0x3b
push eax
mov byte [esi + eax - 9], bl
call dword [sym.imp.SHLWAPI.dll_StrChrA]
cmp eax, ebx
je 0x10009289
lea ecx, [ebp - 0x3c]
push ecx
mov byte [eax], bl
push ebx
inc eax
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntExA]
test eax, eax
je 0x10009289
push dword [ebp - 0x3c]
push dword [ebp - 4]
call fcn.100056a0
mov eax, dword [ebp + 0xc]
sub eax, esi
push eax
push ebx
push dword [0x1002b100]
mov dword [ebp - 0x28], eax
call edi
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x1000931b
mov esi, dword [ebp - 0x14]
sub esi, dword [ebp - 8]
push esi
push dword [ebp - 8]
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
sub eax, esi
sub eax, ecx
add esp, 0xc
push eax
mov eax, dword [ebp - 0x14]
add ecx, eax
mov eax, dword [ebp - 0xc]
push ecx
add esi, eax
push esi
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
cmp eax, dword [ebp + 8]
je 0x100092ea
push eax
push ebx
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
push edx
push 0x1002c39f
push eax
mov dword [ebp - 8], ecx
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x20], 1
push ecx
call fcn.1001168e
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x10009204
cmp dword [ebp - 4], ebx
je 0x10009330
push dword [ebp - 4]
push ebx
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x18], ebx
je 0x10009345
push dword [ebp - 0x18]
push ebx
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x1c], ebx
je 0x1000935a
push dword [ebp - 0x1c]
push ebx
push dword [0x1002b100]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x20], ebx
je 0x10009373
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x10009373
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret 0x10