Function at 0x77ca95e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ebp - 0xf4]
cmp eax, ecx
je 0x77ca96ef
mov eax, dword [eax]
cmp eax, dword [edi + 0xc]
jae 0x77ca90d4
jmp 0x77ca96ef
mov dword [ebp - 0xe4], 0x80000005
jmp 0x77ca9789
push dword [ebp - 0xf0]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call esi
jmp 0x77ca97f9
lea eax, [ebp - 0xec]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.77c94c03
test eax, eax
jl 0x77cdb5ed
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x100]
push eax
push dword [ebp + 0xc]
push ebx
push dword [ebp - 0xec]
call fcn.77c94bda
jmp 0x77ca9673
mov dword [ebp - 0xe4], 0x80000005
jmp 0x77ca974f
cmp dword [ebp - 0xe4], 0x80000005
jne 0x77ca97bb
jmp 0x77ca9795
cmp eax, ebx
je 0x77ca97df
mov dword [eax], ebx
jmp 0x77ca97df
and dword [edi], eax
jmp 0x77ca9646
xor ecx, ecx
cmp dword [ebp - 0xe8], ecx
je 0x77cdb5fb
cmp dword [ebp - 0xe8], 1
jne 0x77ca96ef
mov eax, dword [edi + 0x10]
movzx edx, word [esi + 2]
inc eax
inc eax
cmp edx, eax
jb 0x77ca96ef
cmp dword [ebp - 0x104], ecx
jne 0x77c94b24
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0xe4], eax
mov eax, dword fs:[0x18]
push dword [ebp - 0xf8]
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 0x77cdb611
lea eax, [ebp - 0xf8]
push eax
push dword [ebp - 0xe4]
push edi
push dword [ebp - 0xe8]
push dword [ebp + 0xc]
push dword [ebp - 0x100]
call ebx
mov dword [ebp - 0xe4], eax
jmp 0x77ca96ef
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x20]
and dword [ebp - 0xf0], 0
and dword [ebp - 0xec], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x1c]
test edi, edi
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x104], eax
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0xfc], edx
mov dword [ebp - 0x100], ebx
je 0x77ca9646
test eax, eax
je 0x77ca908e
cmp ebx, 0x80000004
je 0x77cdb650
cmp ebx, 0x80000050
je 0x77cdb650
cmp ebx, 0x80000060
je 0x77cdb650
test bl, 2
jne 0x77c94b9e
movzx ebx, word [esi + 2]
xor eax, eax
test edi, edi
setne al
test edi, edi
mov dword [ebp - 0xe8], eax
je 0x77ca968a
add ebx, dword [edi]
cmp ebx, 0xc4
jbe 0x77ca99b8
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]
test eax, eax
mov dword [ebp - 0xf0], eax
je 0x77cdb5f3
mov edi, eax
lea eax, [ebp - 0xf8]
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 - 0x100]
call ebx
cmp eax, 0x80000005
mov dword [ebp - 0xe4], eax
je 0x77ca909c
push dword [ebp - 0xec]
call fcn.77ca9835
xor ebx, ebx
cmp dword [ebp - 0xe4], ebx
jl 0x77ca8fee
cmp dword [ebp - 0xe8], ebx
movzx ecx, word [esi + 2]
je 0x77cdb61e
mov eax, dword [edi + 0x10]
inc eax
inc eax
cmp ecx, eax
jb 0x77c94ef3
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
add esp, 0xc
mov word [ecx + eax*2], bx
add word [esi], 2
cmp dword [ebp - 0xe4], ebx
jl 0x77ca8fee
cmp dword [ebp - 0x104], ebx
je 0x77ca9789
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0xf4]
cmp dword [ecx], eax
jb 0x77c94b42
push eax
mov eax, dword [edi + 8]
add eax, edi
push eax
push dword [ebp - 0x104]
call sub.ntdll.dll_memmove
add esp, 0xc
cmp dword [ebp - 0xe4], ebx
jl 0x77ca8fee
cmp dword [ebp - 0xe8], ebx
mov eax, dword [ebp - 0x108]
je 0x77cdb63e
cmp eax, ebx
je 0x77ca97b0
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 - 0xfc]
jl 0x77ca9003
cmp eax, ebx
je 0x77ca97df
mov ecx, dword [ebp - 0xf4]
cmp ecx, ebx
je 0x77ca97df
mov ecx, dword [ecx]
mov dword [eax], ecx
cmp dword [ebp - 0xf0], ebx
mov esi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
je 0x77ca97f9
cmp edi, dword [ebp - 0xf0]
jne 0x77c94b51
lea eax, [ebp - 0xe0]
cmp edi, eax
je 0x77ca9813
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.77cc744e
leave
ret 0x1c
lea edi, [ebp - 0xe0]
mov ebx, 0xdc
jmp 0x77ca96be
push eax
jmp 0x77ca9819
push 0xe
pop eax
jmp 0x77ca981f
mov eax, dword [edi + 8]
movzx edx, word [esi + 2]
inc eax
inc eax
cmp edx, eax
jb 0x77ca90aa
jmp 0x77ca90d4
push dword [ebp - 0xec]
call fcn.77ca9835
jmp 0x77cdb5f3
mov eax, dword [edi + 8]
inc eax
inc eax
cmp ecx, eax
jb 0x77c94ef3
movzx eax, word [edi + 8]
mov word [esi], ax
movzx eax, ax
push eax
lea eax, [edi + 0xc]
jmp 0x77ca9733
cmp eax, ebx
je 0x77ca97bb
mov ecx, dword [edi + 4]
mov dword [eax], ecx
jmp 0x77ca97bb
push edx
push edi
push eax
push ecx
push 0
push esi
push dword [ebp + 0xc]
push ebx
call fcn.77d11d21
jmp 0x77ca981f