Function at 0x77cbe9ca
Capabilities:
Query or enumerate registry key

Disassembly:
lea ecx, [ebp - 0x12c]
push ecx
push 0x120
mov ecx, esi
push ecx
push dword [ebp - 0x130]
push dword [ebp + 0xc]
push eax
push 0x77d26600
call fcn.77cb6545
test eax, eax
mov dword [ebp - 0x128], eax
jl 0x77cb6531
cmp dword [ebp - 0x12c], 0
je 0x77cd8541
mov dword [ebp - 0x13c], 1
jmp 0x77cbea67
mov ecx, dword [esi]
mov dword [eax], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
jmp 0x77cbeae0
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x77d260c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x80000004
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x138], ecx
je 0x77cea09d
cmp eax, 0x80000050
je 0x77cea09d
cmp eax, 0x80000060
je 0x77cea09d
xor ecx, ecx
cmp dword [ebx + 4], ecx
lea esi, [ebp - 0x124]
setne cl
and dword [ebp - 0x13c], 0
test al, 2
mov dword [ebp - 0x130], ecx
jne 0x77cb64f7
lea ecx, [ebp - 0x12c]
push ecx
push 0x120
lea ecx, [ebp - 0x124]
push ecx
push dword [ebp - 0x130]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ntdll.dll_NtEnumerateKey]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0x80000005
je 0x77ce9f89
cmp dword [ebp - 0x128], 0
jl 0x77cbeae0
cmp dword [ebp - 0x130], 0
mov ecx, dword [edi + 4]
jne 0x77cd854c
test ecx, ecx
je 0x77cd8532
mov edx, dword [esi + 0xc]
movzx eax, word [edi + 2]
inc edx
inc edx
cmp eax, edx
jb 0x77cd8532
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
and word [ecx + eax*2], 0
add esp, 0xc
add word [edi], 2
mov eax, dword [ebp - 0x138]
test eax, eax
jne 0x77cbcb97
lea eax, [ebp - 0x124]
cmp esi, eax
jne 0x77cea083
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.77cd6011
leave
ret 0x14
mov dword [ebp - 0x128], 0x80000005
jmp 0x77cbead2
mov eax, dword [ebp - 0x134]
jmp 0x77cbea3e
test ecx, ecx
jne 0x77cea000
jmp 0x77cd8532
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 0x77ce9fbd
push 0xe
pop eax
jmp 0x77cbeafa
cmp dword [ebp - 0x13c], 0
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x128]
push esi
push dword [ebp - 0x130]
push dword [ebp + 0xc]
push dword [ebp - 0x134]
je 0x77ce9fef
push 0x77d26600
call fcn.77cb6545
jmp 0x77ce9ff5
call dword [sym.imp.ntdll.dll_NtEnumerateKey]
mov dword [ebp - 0x128], eax
jmp 0x77cbea77
mov edx, dword [esi + 0x14]
movzx eax, word [edi + 2]
inc edx
inc edx
cmp eax, edx
jb 0x77cd8532
cmp dword [ebx + 4], 0
je 0x77cd8532
mov edx, dword [esi + 0x10]
movzx eax, word [ebx + 2]
inc edx
inc edx
cmp eax, edx
jb 0x77cd8532
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
and word [ecx + eax*2], 0
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
and word [ecx + eax*2], 0
add esp, 0x18
add word [ebx], 2
jmp 0x77cbead2
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 0x77cbeaee
push ecx
push ebx
push 0
push edi
push dword [ebp + 0xc]
push eax
call fcn.77d1d5e5
jmp 0x77cbeafa