Function at 0x7dd72f4c
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x12c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x138], esi
cmp eax, 0x80000004
je 0x7dd743e3
cmp eax, 0x80000050
je 0x7dd743e3
cmp eax, 0x80000060
je 0x7dd743e3
xor ecx, ecx
cmp dword [ebx + 4], ecx
lea esi, [ebp - 0x124]
setne cl
and dword [ebp - 0x13c], 0
mov dword [ebp - 0x134], ecx
test al, 2
jne 0x7dd7fb13
lea ecx, [ebp - 0x12c]
push ecx
push 0x120
lea ecx, [ebp - 0x124]
push ecx
push dword [ebp - 0x134]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ntdll.dll_NtEnumerateKey]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0x80000005
je 0x7ddb0c8f
cmp dword [ebp - 0x128], 0
jl 0x7dd7306a
cmp dword [ebp - 0x134], 0
mov ecx, dword [edi + 4]
jne 0x7ddb0d29
test ecx, ecx
je 0x7ddb0da6
mov edx, dword [esi + 0xc]
movzx eax, word [edi + 2]
inc edx
inc edx
cmp eax, edx
jb 0x7ddb0da6
movzx eax, word [esi + 0xc]
mov word [edi], ax
movzx eax, ax
push eax
lea eax, [esi + 0x10]
push eax
push ecx
call sub.ntdll.dll_memmove
movzx eax, word [edi]
mov ecx, dword [edi + 4]
shr eax, 1
xor edx, edx
add esp, 0xc
mov word [ecx + eax*2], dx
add word [edi], 2
mov eax, dword [ebp - 0x138]
test eax, eax
jne 0x7dd743c9
lea eax, [ebp - 0x124]
cmp esi, eax
jne 0x7ddb0db5
push dword [ebp - 0x128]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.7dd71442
leave
ret 0x14
mov ecx, dword [esi]
mov dword [eax], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
jmp 0x7dd7306a
mov eax, dword [ebp - 0x130]
jmp 0x7dd72fc7
call sym.KERNEL32.dll_RegKrnGetGlobalState
jmp 0x7ddb0dcf
call sym.KERNEL32.dll_RegKrnGetGlobalState
call dword [eax + 0xa4]
lea ecx, [ebp - 0x12c]
push ecx
push 0x120
mov ecx, esi
push ecx
push dword [ebp - 0x134]
push dword [ebp + 0xc]
push dword [ebp - 0x130]
push eax
call fcn.7dd7fb6d
mov dword [ebp - 0x128], eax
test eax, eax
jl 0x7dd7fb59
cmp dword [ebp - 0x12c], 0
je 0x7dd743d8
mov dword [ebp - 0x13c], 1
jmp 0x7dd72ff0
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x128], eax
mov eax, dword fs:[0x18]
push dword [ebp - 0x12c]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x7ddb0cc2
push 0xe
jmp 0x7ddb0ded
cmp dword [ebp - 0x13c], 0
je 0x7ddb0cfb
call sym.KERNEL32.dll_RegKrnGetGlobalState
call dword [eax + 0xa4]
lea ecx, [ebp - 0x12c]
push ecx
push dword [ebp - 0x128]
push esi
push dword [ebp - 0x134]
push dword [ebp + 0xc]
push dword [ebp - 0x130]
push eax
call fcn.7dd7fb6d
jmp 0x7ddb0d1e
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x128]
push esi
push dword [ebp - 0x134]
push dword [ebp + 0xc]
push dword [ebp - 0x130]
call dword [sym.imp.ntdll.dll_NtEnumerateKey]
mov dword [ebp - 0x128], eax
jmp 0x7dd73000
test ecx, ecx
je 0x7ddb0da6
mov edx, dword [esi + 0x14]
movzx eax, word [edi + 2]
inc edx
inc edx
cmp eax, edx
jb 0x7ddb0da6
cmp dword [ebx + 4], 0
je 0x7ddb0da6
mov edx, dword [esi + 0x10]
movzx eax, word [ebx + 2]
inc edx
inc edx
cmp eax, edx
jb 0x7ddb0da6
movzx eax, word [esi + 0x14]
mov word [edi], ax
movzx eax, ax
push eax
lea eax, [esi + 0x18]
push eax
push ecx
call sub.ntdll.dll_memmove
movzx eax, word [edi]
mov ecx, dword [edi + 4]
shr eax, 1
xor edx, edx
mov word [ecx + eax*2], dx
add word [edi], 2
mov ax, word [esi + 0x10]
mov word [ebx], ax
push dword [esi + 0x10]
mov eax, dword [esi + 0xc]
add eax, esi
push eax
push dword [ebx + 4]
call sub.ntdll.dll_memmove
movzx eax, word [ebx]
mov ecx, dword [ebx + 4]
shr eax, 1
xor edx, edx
add esp, 0x18
mov word [ecx + eax*2], dx
add word [ebx], 2
jmp 0x7dd7305c
mov dword [ebp - 0x128], 0x80000005
jmp 0x7dd7305c
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]
jmp 0x7dd73078
mov eax, dword [eax + 0x30]
test eax, eax
je 0x7ddb0deb
push esi
push ebx
push 0
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x130]
call eax
jmp 0x7dd73084
push 0x57
pop eax
jmp 0x7dd73084