Function at 0x476d80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x34
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
push edi
push 0
push 0x62ee78
push 0xfffffffffffffff7
push 0x20019
lea eax, [esp + 0x48]
mov byte [0x633f5d], 0
push eax
call sym.SystemInformer.exe_Ordinal_1555
test eax, eax
js 0x477066
mov esi, dword [0x633a74]
xor ebp, ebp
push 0x50
push 4
push esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x20], 0x14
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0x100
push 4
mov edi, eax
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x40]
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], 0x100
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [esp + 0x18]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push 0x100
push ebx
push 1
push ebp
push esi
call dword [sym.imp.ntdll.dll_NtEnumerateValueKey]
nop word [eax + eax]
cmp eax, 0x8000001a
je 0x476f4f
nop dword [eax + eax]
cmp eax, 0x80000005
je 0x476e3e
cmp eax, 0xc0000023
jne 0x476e78
push ebx
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0x10]
push 4
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push ebx
push 1
push dword [esp + 0x38]
push esi
call dword [sym.imp.ntdll.dll_NtEnumerateValueKey]
nop dword [eax + eax]
test eax, eax
js 0x476f4b
cmp dword [ebx + 4], 1
jne 0x476f1a
mov ecx, dword [ebx + 0xc]
cmp ecx, 2
jbe 0x476eb7
mov eax, dword [ebx + 8]
add eax, ebx
mov dword [esp + 0x20], ecx
push 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push 0
push eax
call sym.SystemInformer.exe_Ordinal_1331
jmp 0x476ebc
call sym.SystemInformer.exe_Ordinal_1430
mov esi, eax
mov eax, dword [esp + 0x14]
cmp ebp, eax
jne 0x476f12
add eax, eax
mov dword [esp + 0x14], eax
shl eax, 2
test eax, eax
jne 0x476eea
test edi, edi
je 0x476ee6
push edi
push eax
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor edi, edi
jmp 0x476f12
push eax
test edi, edi
je 0x476f02
push edi
push 4
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
nop
jmp 0x476f10
push 4
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [edi + ebp*4], esi
inc ebp
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
lfence
push dword [esp + 0x14]
mov eax, dword [esp + 0x30]
push ebx
inc eax
push 1
push eax
push esi
mov dword [esp + 0x40], eax
call dword [sym.imp.ntdll.dll_NtEnumerateValueKey]
nop word [eax + eax]
cmp eax, 0x8000001a
jne 0x476e30
mov dword [esp + 0x20], ebp
push ebx
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor ebx, ebx
test ebp, ebp
je 0x477048
nop dword [eax + eax]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
push dword [edi + ebx*4]
call sym.SystemInformer.exe_Ordinal_1683
test al, al
je 0x477029
call sym.SystemInformer.exe_Ordinal_1639
mov esi, dword [esp + 0x14]
mov ebp, eax
test ebp, ebp
je 0x47700c
push ebp
call sym.SystemInformer.exe_Ordinal_1641
mov ecx, eax
or edx, 0xffffffff
mov dword [esp + 0x18], ecx
lock xadd dword [ebp - 4], edx
dec edx
jne 0x476fc2
lea ecx, [ebp - 8]
call fcn.004fe0c0
mov ecx, dword [esp + 0x18]
test esi, esi
je 0x476ff5
mov edx, dword [ecx]
mov ebp, dword [esi]
cmp edx, ebp
ja 0x476ff5
mov eax, dword [esi + 4]
sub eax, edx
mov dword [esp + 0x30], edx
add eax, ebp
push 1
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
push ecx
push eax
call sym.SystemInformer.exe_Ordinal_1351
test al, al
je 0x476ff5
mov byte [0x633f5d], 1
mov ecx, dword [esp + 0x18]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x47700c
call fcn.004fe0c0
test esi, esi
je 0x477025
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x477025
nop
call fcn.004fe0c0
mov ebp, dword [esp + 0x20]
mov ecx, dword [edi + ebx*4]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x47703f
call fcn.004fe0c0
inc ebx
cmp ebx, ebp
jb 0x476f70
push edi
push 0
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword ds:[esp + 0x38]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00583f7f
add esp, 0x34
ret