Function at 0x7dd8baea
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 0x7ddb108a
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 0x7ddb10ab
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 0x7ddb1105
mov edx, dword [edi + 0x10]
mov ecx, dword [ebp - 4]
cmp dword [edx], ecx
ja 0x7ddb10b4
cmp ecx, eax
jb 0x7ddb10be
lea eax, [esi + 4]
test eax, eax
je 0x7ddb10a1
cmp esi, dword [edi + 0x10]
jne 0x7ddb1174
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 0x7dd8bc6a
movzx eax, word [ebp - 0xc]
mov ecx, dword [ebp - 8]
shr eax, 1
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x7dd8bbd7
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 0x7dd8bbf5
or dword [edi], 4
movzx eax, word [esi + 0x18]
cmp eax, 0x4d
jne 0x7dd8bf66
push 0x44
pop eax
push 1
mov word [ebp - 0xc], ax
push 0x7dd8bc74
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
test al, al
je 0x7dd8bc6a
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 0x7dd8bc41
lea ecx, [eax + 1]
mov word [edi + 4], cx
push edi
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.7dd8b8e3
mov eax, dword [edi]
test al, 0x10
jne 0x7dd8bc6a
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 0x7ddb117c
lea eax, [ebp - 0xc]
push eax
call fcn.7dd8bf9b
movzx eax, ax
test ax, ax
je 0x7dd8bc6a
or dword [edi], 1
jmp 0x7dd8bc28
cmp eax, 0x75
je 0x7dd8bf6f
jmp 0x7dd8bc6a
xor eax, eax
mov word [esi + 4], ax
mov eax, dword [edi + 0x10]
and dword [eax], 0
mov dword [ebx], 8
jmp 0x7dd8bb5a
mov eax, 0xc0000008
jmp 0x7dd8bc6c
and dword [ebp + 0x10], 0
jmp 0x7dd8bb2d
mov eax, 0x80000005
jmp 0x7dd8bc6c
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 0x7ddb10e4
mov eax, 0xc0000017
jmp 0x7dd8bc6c
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 0x7dd8bb5a
cmp dword [ebp + 0x10], 0x80000005
jne 0x7ddb1148
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 0x7ddb10da
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 0x7ddb1148
and dword [ebp + 0x10], 0
cmp dword [ebp + 0x10], 0
jge 0x7dd8bb5a
cmp esi, dword [edi + 0x10]
je 0x7ddb116c
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 0x7dd8bc6c
or dword [edi], 0x20
jmp 0x7dd8bb6e
cmp eax, 0x6d
jne 0x7dd8bf8c
jmp 0x7dd8bc02