Function at 0x7dd8bac2
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
cmp dword [ebp + 8], 0
mov dword [ebp - 4], eax
mov dword [ebx], eax
je 0x7ddb10aa
push ebx
push eax
push esi
push 3
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryKey]
mov dword [ebp + 0x10], eax
cmp eax, 0xc000017c
je 0x7ddb10cb
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 0x7ddb1125
mov edx, dword [edi + 0x10]
mov ecx, dword [ebp - 4]
cmp dword [edx], ecx
ja 0x7ddb10d4
cmp ecx, eax
jb 0x7ddb10de
lea eax, [esi + 4]
test eax, eax
je 0x7ddb10c1
cmp esi, dword [edi + 0x10]
jne 0x7ddb1194
mov dword [edi + 0x10], esi
mov ecx, dword [esi]
push 0x5c
pop edx
shr ecx, 1
mov word [esi + ecx*2 + 4], dx
mov ecx, dword [esi]
push eax
lea eax, [ebp - 0xc]
shr ecx, 1
xor edx, edx
push eax
mov word [esi + ecx*2 + 6], dx
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 0x7dd8bc42
movzx eax, word [ebp - 0xc]
mov ecx, dword [ebp - 8]
shr eax, 1
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x7dd8bbaf
mov eax, 0xfffe
add word [ebp - 0xc], ax
movzx eax, word [ebp - 0xc]
movzx ebx, ax
mov dword [esi], eax
movzx eax, bx
shr eax, 1
xor ecx, ecx
test byte [ebp + 8], 2
mov word [esi + eax*2 + 4], cx
je 0x7dd8bbcd
or dword [edi], 4
movzx eax, word [esi + 0x18]
cmp eax, 0x4d
jne 0x7dd8bf3e
push 0x44
pop eax
push 1
mov word [ebp - 0xc], ax
push 0x7dd8bc4c
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
test al, al
je 0x7dd8bc42
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 0x7dd8bc19
lea ecx, [eax + 1]
mov word [edi + 4], cx
push edi
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.7dd8b8bb
mov eax, dword [edi]
test al, 0x10
jne 0x7dd8bc42
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 0x7ddb119c
lea eax, [ebp - 0xc]
push eax
call fcn.7dd8bf73
movzx eax, ax
test ax, ax
je 0x7dd8bc42
or dword [edi], 1
jmp 0x7dd8bc00
cmp eax, 0x75
je 0x7dd8bf47
jmp 0x7dd8bc42
xor eax, eax
mov word [esi + 4], ax
mov eax, dword [edi + 0x10]
and dword [eax], 0
mov dword [ebx], 8
jmp 0x7dd8bb32
mov eax, 0xc0000008
jmp 0x7dd8bc44
and dword [ebp + 0x10], 0
jmp 0x7dd8bb05
mov eax, 0x80000005
jmp 0x7dd8bc44
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 0x7ddb1104
mov eax, 0xc0000017
jmp 0x7dd8bc44
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 0x7dd8bb32
cmp dword [ebp + 0x10], 0x80000005
jne 0x7ddb1168
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 0x7ddb10fa
mov eax, dword [ebx]
push ebx
push eax
push esi
push 3
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryKey]
mov dword [ebp + 0x10], eax
cmp eax, 0xc000017c
jne 0x7ddb1168
and dword [ebp + 0x10], 0
cmp dword [ebp + 0x10], 0
jge 0x7dd8bb32
cmp esi, dword [edi + 0x10]
je 0x7ddb118c
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 0x7dd8bc44
or dword [edi], 0x20
jmp 0x7dd8bb46
cmp eax, 0x6d
jne 0x7dd8bf64
jmp 0x7dd8bbda