Function at 0x10c6fc0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x68
push 0x10dfe60
call fcn.010cc80c
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 0x10c7017
cmp eax, 0x80000005
jne 0x10c7180
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x6c], esi
cmp esi, edi
jne 0x10c7029
mov dword [ebp - 0x50], edi
jmp 0x10c7180
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x5c]
push ecx
push 2
push eax
call fcn.010c33fe
mov dword [ebp - 0x50], eax
test eax, eax
jl 0x10c7055
mov eax, dword [ebp - 0x5c]
mul esi
lea ecx, [ebp - 0x5c]
push ecx
push edx
push eax
call fcn.010c33cc
mov dword [ebp - 0x50], eax
xor ebx, ebx
mov dword [ebp - 0x54], ebx
cmp dword [ebp - 0x50], ebx
jl 0x10c7180
mov eax, esi
push 4
pop ecx
mul ecx
lea ecx, [ebp - 0x54]
push ecx
push edx
push eax
call fcn.010c33cc
mov dword [ebp - 0x50], eax
cmp eax, ebx
jl 0x10c7180
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call fcn.010c33fe
mov dword [ebp - 0x50], eax
cmp eax, ebx
jl 0x10c7180
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 0x10c70c5
mov dword [ebp - 0x50], 0xc000009a
jmp 0x10c7180
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.010c33fe
mov dword [ebp - 0x50], eax
test eax, eax
jl 0x10c7180
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 0x10c70b9
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x54], eax
xor ebx, ebx
cmp dword [ebp - 0x6c], ebx
jbe 0x10c716f
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 0x10c71c9
test eax, eax
jl 0x10c7180
mov eax, dword [edi + 0xc]
inc eax
inc eax
cmp eax, dword [ebp - 0x54]
ja 0x10c71cf
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 0x10c710c
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 0x10c719a
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 0x10c71ba
cmp dword [ebp - 0x58], esi
je 0x10c71ba
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 0x10c71fd
mov dword [ebp - 4], esi
int3
test ebx, ebx
je 0x10c7180
jmp 0x10c716f
mov dword [ebp - 0x50], 0xc0000023
jmp 0x10c7180
mov eax, dword [ebp - 0x50]
call fcn.010cc854
ret 0xc