Function at 0x1006ee0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x68
push 0x100d6c8
call fcn.0100cfa0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x68], eax
xor edi, edi
mov dword [ebp - 0x60], edi
mov eax, dword [ebp - 0x74]
mov dword [eax], edi
mov eax, dword [ebp - 0x68]
mov dword [eax], edi
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x78]
push eax
push 0x30
lea eax, [ebp - 0x4c]
push eax
push 2
push dword [ebp - 0x70]
call dword [sym.imp.ntdll.dll_NtQueryKey]
mov dword [ebp - 0x50], eax
cmp eax, edi
jge 0x1006f37
cmp eax, 0x80000005
jne 0x10070a0
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x6c], esi
cmp esi, edi
jne 0x1006f49
mov dword [ebp - 0x50], edi
jmp 0x10070a0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x5c]
push ecx
push 2
push eax
call fcn.010045c4
mov dword [ebp - 0x50], eax
test eax, eax
jl 0x1006f75
mov eax, dword [ebp - 0x5c]
mul esi
lea ecx, [ebp - 0x5c]
push ecx
push edx
push eax
call fcn.01004592
mov dword [ebp - 0x50], eax
xor ebx, ebx
mov dword [ebp - 0x54], ebx
cmp dword [ebp - 0x50], ebx
jl 0x10070a0
mov eax, esi
push 4
pop ecx
mul ecx
lea ecx, [ebp - 0x54]
push ecx
push edx
push eax
call fcn.01004592
mov dword [ebp - 0x50], eax
cmp eax, ebx
jl 0x10070a0
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call fcn.010045c4
mov dword [ebp - 0x50], eax
cmp eax, ebx
jl 0x10070a0
mov eax, dword fs:[0x18]
push dword [ebp - 0x54]
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
mov ebx, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
call ebx
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x1006fe5
mov dword [ebp - 0x50], 0xc000009a
jmp 0x10070a0
lea esi, [eax + esi*4]
push 0x1a
pop eax
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x64]
push ecx
push dword [ebp - 0x34]
push eax
call fcn.010045c4
mov dword [ebp - 0x50], eax
test eax, eax
jl 0x10070a0
mov eax, dword fs:[0x18]
push dword [ebp - 0x64]
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call ebx
mov edi, eax
test edi, edi
je 0x1006fd9
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x54], eax
xor ebx, ebx
cmp dword [ebp - 0x6c], ebx
jbe 0x100708f
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x64]
push edi
push 0
push ebx
push dword [ebp - 0x70]
call dword [sym.imp.ntdll.dll_NtEnumerateKey]
mov dword [ebp - 0x50], eax
cmp eax, 0x8000001a
je 0x10070e9
test eax, eax
jl 0x10070a0
mov eax, dword [edi + 0xc]
inc eax
inc eax
cmp eax, dword [ebp - 0x54]
ja 0x10070ef
mov eax, dword [ebp - 0x58]
mov dword [eax + ebx*4], esi
push dword [edi + 0xc]
lea eax, [edi + 0x10]
push eax
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
add esi, dword [edi + 0xc]
xor eax, eax
mov word [esi], ax
inc esi
inc esi
push 0xfffffffffffffffe
pop eax
sub eax, dword [edi + 0xc]
add dword [ebp - 0x54], eax
inc ebx
cmp ebx, dword [ebp - 0x6c]
jb 0x100702c
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x74]
mov dword [ecx], eax
mov eax, dword [ebp - 0x68]
mov dword [eax], ebx
and dword [ebp - 0x50], 0
xor esi, esi
cmp edi, esi
je 0x10070ba
mov eax, dword fs:[0x18]
push edi
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x50], esi
jge 0x10070da
cmp dword [ebp - 0x58], esi
je 0x10070da
mov eax, dword fs:[0x18]
push dword [ebp - 0x58]
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x50], 0xc000017d
jne 0x100711d
mov dword [ebp - 4], esi
int3
test ebx, ebx
je 0x10070a0
jmp 0x100708f
mov dword [ebp - 0x50], 0xc0000023
jmp 0x10070a0
mov eax, dword [ebp - 0x50]
call fcn.0100cfe8
ret 0xc