Function at 0x10006470
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027427
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x10033010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x250], edx
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
xor edi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edi
xor ebx, ebx
mov dword [ebp - 0x24c], 0xff
xor esi, esi
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x258], ebx
push 0x20019
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push 0x80000002
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 3
call fcn.1000a600
test eax, eax
jne 0x10006804
mov ebx, dword [ebp - 0x254]
lea eax, [ebp - 0x270]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x100067db
test eax, eax
jne 0x10006553
mov ecx, dword [ebp - 0x250]
lea eax, [ebp - 0x210]
push eax
call fcn.1000a2c0
push 0x2001f
lea eax, [ebp - 0x210]
push eax
push 0x80000003
lea ecx, [ebp - 0x23c]
call fcn.1000a600
test eax, eax
je 0x1000678e
push 0x20019
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x248]
lea ecx, [ebp - 0x23c]
call fcn.1000a600
test eax, eax
jne 0x10006772
call fcn.10005250
test eax, eax
je 0x100067d1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
lea eax, [ebx + ebx]
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0x23c]
xor ebx, ebx
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x268]
push eax
push ebx
push str.ProfileImagePath
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000673a
mov eax, dword [ebp - 0x268]
cmp eax, 1
je 0x1000664f
cmp eax, 2
jne 0x1000673a
mov ebx, dword [ebp - 0x218]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
shr ebx, 1
sub eax, ebx
or eax, ecx
jge 0x1000667a
push ebx
lea ecx, [ebp - 0x21c]
call fcn.10004490
mov esi, dword [ebp - 0x21c]
lea eax, [ebx + ebx]
xor ebx, ebx
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x220]
push eax
push ebx
push str.ProfileImagePath
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100066de
mov eax, dword [ebp - 0x220]
cmp eax, 1
je 0x100066b5
cmp eax, 2
jne 0x100066de
mov ecx, dword [ebp - 0x218]
test esi, esi
je 0x100066da
test ecx, ecx
je 0x100066d5
test cl, 1
jne 0x100066de
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x100066da
jmp 0x100066de
xor eax, eax
mov word [esi], ax
mov ebx, ecx
shr ebx, 1
push dword [esi - 8]
push esi
call fcn.1000f927
add esp, 8
test eax, eax
js 0x100067c7
cmp eax, dword [esi - 8]
jg 0x100067c7
xor ecx, ecx
mov dword [esi - 0xc], eax
push 0xb
mov word [esi + eax*2], cx
lea ecx, [ebp - 0x21c]
push str.NTUSER.DAT
call fcn.1000a1d0
mov esi, dword [ebp - 0x21c]
lea ecx, [ebp - 0x264]
push esi
call fcn.1000a2c0
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x230]
call fcn.1000a2c0
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10006756
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x214]
inc esi
mov dword [ebp - 0x24c], 0xff
mov dword [ebp - 0x214], esi
jmp 0x10006553
mov edi, dword [ebp - 0x23c]
inc esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x24c], 0xff
jmp 0x10006553
mov edi, dword [ebp - 0x23c]
test edi, edi
je 0x100067a7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x23c], edi
inc esi
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x24c], 0xff
jmp 0x10006553
push 0x80070057
call fcn.10005470
push 0x80004005
call fcn.10005470
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x100067f4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x248], eax
mov ebx, dword [ebp - 0x22c]
mov dword [ebp - 0x244], 0
mov ecx, str.SeRestorePrivilege
call fcn.100056d0
mov dword [ebp - 0x214], eax
test eax, eax
jne 0x100068bf
mov ecx, str.SeBackupPrivilege
call fcn.100056d0
mov dword [ebp - 0x214], eax
test eax, eax
jne 0x100068bf
mov eax, dword [ebp - 0x22c]
xor esi, esi
test eax, eax
je 0x100068b9
mov edx, dword [ebp - 0x264]
mov ebx, dword [ebp - 0x230]
sub edx, ebx
mov dword [ebp - 0x220], edx
cmp esi, dword [ebp - 0x260]
jae 0x100067c7
cmp esi, eax
jae 0x100067c7
push dword [edx + ebx]
push dword [ebx]
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
mov ecx, eax
mov dword [ebp - 0x214], ecx
test ecx, ecx
jne 0x100068a3
mov eax, dword [ebp - 0x250]
cmp esi, dword [eax + 4]
jae 0x100067c7
mov eax, dword [eax]
mov ecx, dword [ebp - 0x254]
push dword [eax + esi*4]
call fcn.1000a2c0
mov eax, dword [ebp - 0x22c]
inc esi
add ebx, 4
cmp esi, eax
jae 0x100068b9
mov edx, dword [ebp - 0x220]
jmp 0x10006854
mov ebx, dword [ebp - 0x22c]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x264]
test ecx, ecx
je 0x10006915
xor esi, esi
cmp dword [ebp - 0x260], esi
jbe 0x1000690c
mov ebx, dword [ebp - 0x260]
nop dword [eax]
mov edx, dword [ecx + esi*4]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10006901
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x264]
inc esi
cmp esi, ebx
jb 0x100068e0
mov ebx, dword [ebp - 0x22c]
push ecx
call fcn.1000ef32
add esp, 4
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x230]
test ecx, ecx
je 0x1000695f
xor esi, esi
test ebx, ebx
je 0x10006956
nop dword [eax]
mov edx, dword [ecx + esi*4]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10006951
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x230]
inc esi
cmp esi, ebx
jb 0x10006930
push ecx
call fcn.1000ef32
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x1000696c
push edi
call ebx
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x10006979
push eax
call ebx
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000b827
mov esp, ebp
pop ebp
ret