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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025707
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x1003000c]
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.10005bc0
test eax, eax
jne 0x10006f24
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 0x10006efb
test eax, eax
jne 0x10006c73
mov ecx, dword [ebp - 0x250]
lea eax, [ebp - 0x210]
push eax
call fcn.1000a640
push 0x2001f
lea eax, [ebp - 0x210]
push eax
push 0x80000003
lea ecx, [ebp - 0x23c]
call fcn.10005bc0
test eax, eax
je 0x10006eae
push 0x20019
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x248]
lea ecx, [ebp - 0x23c]
call fcn.10005bc0
test eax, eax
jne 0x10006e92
call fcn.10001520
test eax, eax
je 0x10006ef1
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 0x10006e5a
mov eax, dword [ebp - 0x268]
cmp eax, 1
je 0x10006d6f
cmp eax, 2
jne 0x10006e5a
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 0x10006d9a
push ebx
lea ecx, [ebp - 0x21c]
call fcn.10004c50
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 0x10006dfe
mov eax, dword [ebp - 0x220]
cmp eax, 1
je 0x10006dd5
cmp eax, 2
jne 0x10006dfe
mov ecx, dword [ebp - 0x218]
test esi, esi
je 0x10006dfa
test ecx, ecx
je 0x10006df5
test cl, 1
jne 0x10006dfe
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x10006dfa
jmp 0x10006dfe
xor eax, eax
mov word [esi], ax
mov ebx, ecx
shr ebx, 1
push dword [esi - 8]
push esi
call fcn.1000e28e
add esp, 8
test eax, eax
js 0x10006ee7
cmp eax, dword [esi - 8]
jg 0x10006ee7
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.10005a50
mov esi, dword [ebp - 0x21c]
lea ecx, [ebp - 0x264]
push esi
call fcn.1000a640
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x230]
call fcn.1000a640
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10006e76
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 0x10006c73
mov edi, dword [ebp - 0x23c]
inc esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x24c], 0xff
jmp 0x10006c73
mov edi, dword [ebp - 0x23c]
test edi, edi
je 0x10006ec7
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 0x10006c73
push 0x80070057
call fcn.10001170
push 0x80004005
call fcn.10001170
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x10006f14
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.10005df0
mov dword [ebp - 0x214], eax
test eax, eax
jne 0x10006fdf
mov ecx, str.SeBackupPrivilege
call fcn.10005df0
mov dword [ebp - 0x214], eax
test eax, eax
jne 0x10006fdf
mov eax, dword [ebp - 0x22c]
xor esi, esi
test eax, eax
je 0x10006fd9
mov edx, dword [ebp - 0x264]
mov ebx, dword [ebp - 0x230]
sub edx, ebx
mov dword [ebp - 0x220], edx
cmp esi, dword [ebp - 0x260]
jae 0x10006ee7
cmp esi, eax
jae 0x10006ee7
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 0x10006fc3
mov eax, dword [ebp - 0x250]
cmp esi, dword [eax + 4]
jae 0x10006ee7
mov eax, dword [eax]
mov ecx, dword [ebp - 0x254]
push dword [eax + esi*4]
call fcn.1000a640
mov eax, dword [ebp - 0x22c]
inc esi
add ebx, 4
cmp esi, eax
jae 0x10006fd9
mov edx, dword [ebp - 0x220]
jmp 0x10006f74
mov ebx, dword [ebp - 0x22c]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x264]
test ecx, ecx
je 0x10007035
xor esi, esi
cmp dword [ebp - 0x260], esi
jbe 0x1000702c
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 0x10007021
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 0x10007000
mov ebx, dword [ebp - 0x22c]
push ecx
call fcn.10011142
add esp, 4
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x230]
test ecx, ecx
je 0x1000707f
xor esi, esi
test ebx, ebx
je 0x10007076
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 0x10007071
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 0x10007050
push ecx
call fcn.10011142
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x1000708c
push edi
call ebx
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x10007099
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.1000aa33
mov esp, ebp
pop ebp
ret