Function at 0x7dd77b9f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x104], ecx
xor ecx, ecx
mov dword [ebp - 0x100], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0xf8], ecx
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0xfc], ebx
cmp edi, ecx
je 0x7dd77c01
cmp eax, ecx
je 0x7dd77e3c
cmp ebx, 0x80000004
je 0x7dd95da7
cmp ebx, 0x80000050
je 0x7dd95da7
cmp ebx, 0x80000060
je 0x7dd95da7
test bl, 2
jne 0x7dd8fc15
movzx ebx, word [esi + 2]
xor eax, eax
test edi, edi
setne al
mov dword [ebp - 0xe8], eax
test edi, edi
je 0x7dd77c45
add ebx, dword [edi]
cmp ebx, 0xc4
jbe 0x7dd77e2c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea ecx, [ebx + 0x18]
push ecx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0xf8], eax
test eax, eax
je 0x7ddb0df9
mov edi, eax
lea eax, [ebp - 0x108]
push eax
push ebx
mov ebx, dword [sym.imp.ntdll.dll_NtEnumerateValueKey]
push edi
push dword [ebp - 0xe8]
push dword [ebp + 0xc]
push dword [ebp - 0xfc]
call ebx
mov dword [ebp - 0xe4], eax
cmp eax, 0x80000005
je 0x7dd8cec1
push dword [ebp - 0xf0]
call fcn.7dd77df2
xor ebx, ebx
cmp dword [ebp - 0xe4], ebx
jl 0x7dd77e08
movzx ecx, word [esi + 2]
cmp dword [ebp - 0xe8], ebx
je 0x7ddb0e23
mov eax, dword [edi + 0x10]
inc eax
inc eax
cmp ecx, eax
jb 0x7ddb0e3f
movzx eax, word [edi + 0x10]
mov word [esi], ax
movzx eax, ax
push eax
lea eax, [edi + 0x14]
push eax
push dword [esi + 4]
call sub.ntdll.dll_memmove
movzx eax, word [esi]
mov ecx, dword [esi + 4]
shr eax, 1
xor edx, edx
add esp, 0xc
mov word [ecx + eax*2], dx
add word [esi], 2
cmp dword [ebp - 0xe4], ebx
jl 0x7dd77e08
cmp dword [ebp - 0xec], ebx
je 0x7dd77d46
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0xf4]
cmp dword [ecx], eax
jb 0x7dd8fdab
push eax
mov eax, dword [edi + 8]
add eax, edi
push eax
push dword [ebp - 0xec]
call sub.ntdll.dll_memmove
add esp, 0xc
cmp dword [ebp - 0xe4], ebx
jl 0x7dd77e08
mov eax, dword [ebp - 0x100]
cmp dword [ebp - 0xe8], ebx
je 0x7ddb0e4e
cmp eax, ebx
je 0x7dd77d6d
mov ecx, dword [edi + 4]
mov dword [eax], ecx
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0xf4]
mov dword [ecx], eax
cmp dword [ebp - 0xe4], ebx
mov eax, dword [ebp - 0x104]
jl 0x7dd77e1d
cmp eax, ebx
je 0x7dd77d9c
mov ecx, dword [ebp - 0xf4]
cmp ecx, ebx
je 0x7dd77d9c
mov ecx, dword [ecx]
mov dword [eax], ecx
mov esi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0xf8], ebx
je 0x7dd77db6
cmp edi, dword [ebp - 0xf8]
jne 0x7dd929b1
lea eax, [ebp - 0xe0]
cmp edi, eax
je 0x7dd77dd0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push ebx
push dword [eax + 0x18]
call esi
push dword [ebp - 0xe4]
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 0x1c
cmp dword [ebp - 0xe4], 0x80000005
jne 0x7dd77d78
jmp 0x7dd77d52
cmp eax, ebx
je 0x7dd77d9c
mov dword [eax], ebx
jmp 0x7dd77d9c
lea edi, [ebp - 0xe0]
mov ebx, 0xdc
jmp 0x7dd77c79
mov dword [edi], ecx
jmp 0x7dd77c01
xor ecx, ecx
cmp dword [ebp - 0xe8], ecx
je 0x7ddb0e00
cmp dword [ebp - 0xe8], 1
jne 0x7dd77caa
mov eax, dword [edi + 0x10]
movzx edx, word [esi + 2]
inc eax
inc eax
cmp edx, eax
jb 0x7dd77caa
cmp dword [ebp - 0xec], ecx
jne 0x7dd95d89
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0xe4], eax
mov eax, dword fs:[0x18]
push dword [ebp - 0x108]
mov eax, dword [eax + 0x30]
push ecx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
je 0x7ddb0e16
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0xe4]
push edi
push dword [ebp - 0xe8]
push dword [ebp + 0xc]
push dword [ebp - 0xfc]
call ebx
mov dword [ebp - 0xe4], eax
jmp 0x7dd77caa
lea eax, [ebp - 0xf0]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.7dd8fc7a
test eax, eax
jl 0x7ddb0df3
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xfc]
push eax
push dword [ebp + 0xc]
push ebx
push dword [ebp - 0xf0]
call fcn.7dd8fc51
jmp 0x7dd77c2e
mov dword [ebp - 0xe4], 0x80000005
jmp 0x7dd77d46
push dword [ebp - 0xf8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call esi
jmp 0x7dd77db6
mov eax, dword [ebp - 0xf4]
cmp eax, ecx
je 0x7dd77caa
mov eax, dword [eax]
cmp eax, dword [edi + 0xc]
jae 0x7dd8cef9
jmp 0x7dd77caa
call sym.KERNEL32.dll_RegKrnGetGlobalState
jmp 0x7ddb0e60
push eax
jmp 0x7dd77dd6
push 0xe
jmp 0x7ddb0e8a
mov eax, dword [edi + 8]
movzx edx, word [esi + 2]
inc eax
inc eax
cmp edx, eax
jb 0x7dd8cecf
jmp 0x7dd8cef9
push dword [ebp - 0xf0]
call fcn.7dd77df2
jmp 0x7ddb0df9
mov eax, dword [edi + 8]
inc eax
inc eax
cmp ecx, eax
jb 0x7ddb0e3f
movzx eax, word [edi + 8]
mov word [esi], ax
movzx eax, ax
push eax
lea eax, [edi + 0xc]
jmp 0x7dd77cee
mov dword [ebp - 0xe4], 0x80000005
jmp 0x7dd77d0c
cmp eax, ebx
je 0x7dd77d78
mov ecx, dword [edi + 4]
mov dword [eax], ecx
jmp 0x7dd77d78
mov eax, dword [eax + 0x34]
test eax, eax
je 0x7ddb0e88
push dword [ebp - 0x104]
push edi
push dword [ebp - 0xec]
push dword [ebp - 0x100]
push 0
push esi
push dword [ebp + 0xc]
push ebx
call eax
jmp 0x7dd77ddc
push 0x57
pop eax
jmp 0x7dd77ddc