Function at 0x77cd6d9f
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi + 0x10]
lea ebx, [edi + 0xc]
mov eax, dword [ebx]
dec eax
dec eax
xor ecx, ecx
cmp dword [ebp + 8], ecx
mov dword [ebp - 4], eax
mov dword [ebx], eax
je 0x77cea237
push ebx
push eax
push esi
push 3
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryKey]
cmp eax, 0xc000017c
mov dword [ebp + 0x10], eax
je 0x77cea255
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
add eax, 4
add dword [ebx], eax
cmp dword [ebp + 0x10], 0
mov eax, dword [ebx]
jl 0x77cea2af
mov edx, dword [edi + 0x10]
mov ecx, dword [ebp - 4]
cmp dword [edx], ecx
ja 0x77cea25e
cmp ecx, eax
jb 0x77cea268
lea eax, [esi + 4]
test eax, eax
je 0x77cea24b
cmp esi, dword [edi + 0x10]
jne 0x77cea31e
mov dword [edi + 0x10], esi
mov ecx, dword [esi]
shr ecx, 1
mov word [esi + ecx*2 + 4], 0x5c
mov ecx, dword [esi]
push eax
lea eax, [ebp - 0xc]
shr ecx, 1
and word [esi + ecx*2 + 6], 0
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeStringEx]
movzx eax, word [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov cx, word [eax]
push eax
lea eax, [ebp - 0xc]
add cx, 2
add word [ebp - 0xa], cx
push eax
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
cmp word [ebp - 0xc], 0x2c
jb 0x77cd6f17
movzx eax, word [ebp - 0xc]
mov ecx, dword [ebp - 8]
shr eax, 1
cmp word [ecx + eax*2 - 2], 0x5c
je 0x77cd7133
movzx eax, word [ebp - 0xc]
movzx ebx, ax
mov dword [esi], eax
movzx eax, bx
shr eax, 1
and word [esi + eax*2 + 4], 0
test byte [ebp + 8], 2
je 0x77cd6ea3
or dword [edi], 4
movzx eax, word [esi + 0x18]
cmp eax, 0x4d
jne 0x77cd6fce
push 1
push 0x77d260e4
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], 0x44
call dword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
test al, al
je 0x77cd6f17
or dword [edi], 2
push 0x22
mov word [ebp - 0xc], bx
pop eax
lea ecx, [eax + eax]
mov word [edi + 6], cx
movzx ecx, cx
mov word [edi + 4], ax
cmp ecx, dword [esi]
jae 0x77cd6eee
lea ecx, [eax + 1]
mov word [edi + 4], cx
push edi
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.77cd6f25
mov eax, dword [edi]
test al, 0x10
jne 0x77cd6f17
or eax, 8
mov dword [edi], eax
mov ax, word [esi]
sub ax, word [edi + 8]
sub ax, word [edi + 6]
sub ax, 2
mov word [edi + 0xa], ax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp eax, 0x55
jne 0x77cea326
lea eax, [ebp - 0xc]
push eax
call fcn.77cd6ff9
movzx eax, ax
test ax, ax
je 0x77cd6f17
or dword [edi], 1
jmp 0x77cd6ed5
add word [ebp - 0xc], 0xfffe
jmp 0x77cd6e86
cmp eax, 0x75
je 0x77cd6fd7
jmp 0x77cd6f17
mov word [esi + 4], cx
mov eax, dword [edi + 0x10]
mov dword [eax], ecx
mov dword [ebx], 8
jmp 0x77cd6e10
mov eax, 0xc0000008
jmp 0x77cd6f19
and dword [ebp + 0x10], 0
jmp 0x77cd6de3
mov eax, 0x80000005
jmp 0x77cd6f19
mov ecx, dword fs:[0x18]
push eax
mov eax, dword [ecx + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x77cea28e
mov eax, 0xc0000017
jmp 0x77cd6f19
mov eax, dword [edi + 0x10]
push dword [eax]
add eax, 4
push eax
lea eax, [esi + 4]
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [edi + 0x10]
mov eax, dword [eax]
add esp, 0xc
mov dword [esi], eax
jmp 0x77cd6e10
cmp dword [ebp + 0x10], 0x80000005
jne 0x77cea2f2
mov ecx, dword fs:[0x18]
push eax
mov eax, dword [ecx + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x77cea284
mov eax, dword [ebx]
push ebx
push eax
push esi
push 3
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryKey]
cmp eax, 0xc000017c
mov dword [ebp + 0x10], eax
jne 0x77cea2f2
and dword [ebp + 0x10], 0
cmp dword [ebp + 0x10], 0
jge 0x77cd6e10
cmp esi, dword [edi + 0x10]
je 0x77cea316
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 0x10]
jmp 0x77cd6f19
or dword [edi], 0x20
jmp 0x77cd6e24
cmp eax, 0x6d
jne 0x77cd713d
jmp 0x77cd6eb0