Function at 0x10028d7d
Capabilities:
Get file attributes
Get session user name
Query environment variable
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7004]
mov eax, 0x7004
call fcn.1003b1e0
push 0xffffffffffffffff
push 0x1006a89c
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x100be114]
xor eax, ebp
mov dword [ebp + 0x7000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
push str._Remove_Keys_for_current_active_user_other_than_one_were_loggin_in
mov byte [ebp - 4], 4
mov ebx, esi
mov dword [ebp - 0x3c], 0x800
call fcn.100300e1
pop ecx
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 0x4000]
push eax
push esi
jmp 0x10028fca
lea eax, [ebp + 0x4000]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000154d
push str.SoftwareClasses
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.100127e8
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x10]
call fcn.10001683
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x10028e5f
call fcn.100016dc
mov dword [ebp - 0x2c], esi
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x10028e6a
mov eax, dword [edi]
jmp 0x10028e6c
mov eax, esi
push 0x20019
push eax
push SysStringLen
lea ecx, [ebp - 0x58]
call fcn.1001b2cc
test eax, eax
jne 0x10028f39
push 0x2001f
push 0x100878b0
push dword [ebp - 0x58]
lea ecx, [ebp - 0x28]
call fcn.1001b2cc
test eax, eax
jne 0x10028f39
push str.___Remove_from_user:
lea ecx, [ebp - 0x34]
call fcn.100127e8
lea eax, [ebp + 0x4000]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x30]
call fcn.1000154d
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x34]
call fcn.10001683
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x10028ee3
call fcn.100016dc
mov dword [ebp - 0x30], esi
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x10028eee
mov eax, dword [esi]
jmp 0x10028ef0
xor eax, eax
push eax
call fcn.100300e1
mov eax, dword [ebp - 0x28]
and dword [ebp - 0x28], 0
push ecx
push ecx
mov ecx, dword [ebp - 0x20]
mov edx, esp
and dword [ebp - 0x20], 0
mov dword [edx], eax
mov eax, dword [ebp - 0x24]
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
call fcn.1001ff69
add esp, 0xc
lea ecx, [ebp - 0x58]
call fcn.1001af27
and dword [ebp - 0x24], 0
test esi, esi
je 0x10028f9e
mov ecx, esi
call fcn.100016dc
xor esi, esi
mov dword [ebp - 0x34], esi
jmp 0x10028fa0
push str.___Failed_to_open_CLSID_keys_in_user:
lea ecx, [ebp - 0x14]
call fcn.100127e8
lea eax, [ebp + 0x4000]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x38]
call fcn.1000154d
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x14]
call fcn.10001683
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x10028f78
call fcn.100016dc
mov dword [ebp - 0x38], esi
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x10028f83
mov eax, dword [esi]
jmp 0x10028f85
xor eax, eax
push eax
call fcn.100300e1
pop ecx
test esi, esi
je 0x10028f9e
mov ecx, esi
call fcn.100016dc
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x10028fa0
xor esi, esi
inc ebx
mov dword [ebp - 0x3c], 0x800
mov byte [ebp - 4], 4
test edi, edi
je 0x10028fba
mov ecx, edi
call fcn.100016dc
mov dword [ebp - 0x10], esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 0x4000]
push eax
push ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push SysStringLen
call edi
test eax, eax
je 0x10028e1c
push str._Remove_Static_Version_Redirect_Keys_for_other_users
call fcn.100300e1
mov ebx, 0x1000
mov dword [ebp - 0x14], esi
push ebx
lea eax, [ebp + 0x2000]
push esi
push eax
call fcn.1003d660
push ebx
lea eax, [ebp + 0x5000]
push esi
push eax
call fcn.1003d660
push ebx
lea eax, [ebp]
push esi
push eax
call fcn.1003d660
push ebx
lea eax, [ebp + 0x3000]
push esi
push eax
call fcn.1003d660
push ebx
lea eax, [ebp + 0x1000]
push esi
push eax
call fcn.1003d660
add esp, 0x40
lea eax, [ebp + 0x6000]
push ebx
push esi
push eax
call fcn.1003d660
add esp, 0xc
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], 0xa
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xb
push eax
push 0x20019
push esi
push 0x100879c8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ecx
mov ecx, esp
mov esi, eax
push str.___Open_ProfilePath_key
call fcn.1000154d
push esi
call fcn.1002a0aa
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
pop ecx
test esi, esi
jne 0x100292cb
lea eax, [ebp - 0x18]
mov esi, 0x800
push eax
lea eax, [ebp]
mov dword [ebp - 0x18], esi
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor ecx, ecx
mov dword [ebp - 0x18], esi
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x3000]
push eax
push ecx
jmp 0x1002929c
test esi, esi
jne 0x100292b1
lea eax, [ebp + 0x3000]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList
lea eax, [ebp + 0x2000]
push 0x1008792c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x5c]
push eax
push 0x20019
push esi
lea eax, [ebp + 0x2000]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x10029205
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x800
push eax
lea eax, [ebp + 0x1000]
push eax
lea eax, [ebp - 0x90]
push eax
push esi
push str.ProfileImagePath
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x100291e9
mov esi, 0x800
lea eax, [ebp + 0x6000]
push esi
push eax
lea eax, [ebp + 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp]
push eax
lea eax, [ebp + 0x6000]
push eax
call fcn.10028c38
pop ecx
pop ecx
test eax, eax
je 0x100291fe
lea eax, [ebp + 0x6000]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x100291b1
push str.Local_SettingsApplication_DataMicrosoftWindowsUsrClass.dat
lea eax, [ebp + 0x6000]
push esi
push eax
call fcn.1004aa73
add esp, 0xc
lea eax, [ebp + 0x6000]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000154d
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x8c]
call fcn.1002a60c
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 0xb
test ecx, ecx
je 0x100291fe
call fcn.100016dc
and dword [ebp - 0x10], 0
jmp 0x100291fe
push ecx
mov ecx, esp
push str.___Query_Value_ProfileImagePath
call fcn.1000154d
push esi
call fcn.1002a0aa
pop ecx
pop ecx
push dword [ebp - 0x5c]
call ebx
jmp 0x1002921a
push ecx
mov ecx, esp
push str.___Open_Profile_Key
call fcn.1000154d
push esi
call fcn.1002a0aa
pop ecx
pop ecx
mov esi, dword [ebp - 0x14]
lea eax, [ebp + 0x2000]
push 0x1000
push 0
inc esi
push eax
mov dword [ebp - 0x14], esi
call fcn.1003d660
push 0x1000
lea eax, [ebp + 0x5000]
push 0
push eax
call fcn.1003d660
push 0x1000
lea eax, [ebp + 0x3000]
push 0
push eax
call fcn.1003d660
push 0x1000
lea eax, [ebp + 0x1000]
push 0
push eax
call fcn.1003d660
push 0x1000
lea eax, [ebp + 0x6000]
push 0
push eax
call fcn.1003d660
add esp, 0x3c
mov dword [ebp - 0x18], 0x800
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x3000]
push eax
push esi
push dword [ebp - 0x40]
call edi
mov esi, eax
cmp esi, 0x103
jne 0x100290da
jmp 0x100292c6
push ecx
mov ecx, esp
push str.Enumerate_Profile_Keys
call fcn.1000154d
push esi
call fcn.1002a0aa
pop ecx
pop ecx
push dword [ebp - 0x40]
call ebx
mov edi, dword [ebp - 0x84]
xor esi, esi
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
test edi, edi
je 0x1002945d
push 1
push 0x10087a94
call fcn.10028ca1
pop ecx
pop ecx
test eax, eax
je 0x10029449
push 1
push 0x10087bf8
call fcn.10028ca1
pop ecx
pop ecx
test eax, eax
je 0x10029449
push 0x1000
lea eax, [ebp + 0x6000]
push 0
push eax
call fcn.1003d660
add esp, 0xc
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x8c]
push eax
call fcn.1002a808
mov eax, dword [eax]
test eax, eax
je 0x10029342
mov eax, dword [eax]
jmp 0x10029344
xor eax, eax
mov ecx, 0x800
push ecx
push eax
push ecx
lea eax, [ebp + 0x6000]
push eax
call fcn.100412dd
push esi
lea eax, [ebp + 0x5000]
push str.User_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp + 0x6000]
push eax
lea eax, [ebp + 0x5000]
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x1002942c
push 0x20019
lea eax, [ebp + 0x5000]
push eax
push SysStringLen
lea ecx, [ebp - 0x68]
call fcn.1001b2cc
test eax, eax
jne 0x10029416
mov esi, dword [ebp - 0x68]
lea ecx, [ebp - 0x4c]
push 0x2001f
push 0x10087b2c
push esi
call fcn.1001b2cc
test eax, eax
jne 0x10029404
push str.remove_key_from
call fcn.100300e1
lea eax, [ebp + 0x6000]
push eax
call fcn.100300e1
mov eax, dword [ebp - 0x4c]
and dword [ebp - 0x4c], 0
push ecx
mov ecx, dword [ebp - 0x44]
mov edx, esp
and dword [ebp - 0x44], 0
mov dword [edx], eax
mov eax, dword [ebp - 0x48]
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
call fcn.1001ff69
add esp, 0xc
and dword [ebp - 0x48], 0
test esi, esi
je 0x1002940f
push esi
call ebx
and dword [ebp - 0x68], 0
and dword [ebp - 0x64], 0
mov esi, dword [ebp - 0x10]
lea eax, [ebp + 0x5000]
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
inc esi
mov dword [ebp - 0x10], esi
push 0
push str.SeBackupPrivilege
call fcn.10028ca1
push 0
push str.SeRestorePrivilege
call fcn.10028ca1
add esp, 0x10
jmp 0x10029454
push str.___failed_to_set_Privileges
call fcn.100300e1
pop ecx
sub edi, 1
jne 0x100292e7
mov esi, 0x20019
lea ecx, [ebp - 0x74]
push esi
push 0x10087cd8
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1001b2cc
test eax, eax
jne 0x100294f2
mov edi, dword [ebp - 0x74]
lea ecx, [ebp - 0x58]
push esi
push str.Classes
push edi
call fcn.1001b2cc
test eax, eax
jne 0x100294f2
mov esi, dword [ebp - 0x58]
lea ecx, [ebp - 0x28]
push 0x2001f
push 0x10087cfc
push esi
call fcn.1001b2cc
test eax, eax
jne 0x100294f2
mov eax, dword [ebp - 0x28]
sub esp, 0xc
mov ecx, dword [ebp - 0x20]
mov edx, esp
and dword [ebp - 0x28], 0
and dword [ebp - 0x20], 0
mov dword [edx], eax
mov eax, dword [ebp - 0x24]
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
call fcn.1001ff69
add esp, 0xc
test edi, edi
je 0x100294dd
push edi
call ebx
xor edi, edi
mov dword [ebp - 0x74], edi
jmp 0x100294df
xor edi, edi
mov dword [ebp - 0x70], edi
test esi, esi
je 0x100294ec
push esi
call ebx
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x24], edi
lea ecx, [ebp - 0x8c]
call fcn.1002a876
lea ecx, [ebp - 0x4c]
call fcn.1001af27
lea ecx, [ebp - 0x68]
call fcn.1001af27
lea ecx, [ebp - 0x28]
call fcn.1001af27
lea ecx, [ebp - 0x58]
call fcn.1001af27
lea ecx, [ebp - 0x74]
call fcn.1001af27
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x7000]
xor ecx, ebp
call fcn.1003b105
add ebp, 0x7004
leave
ret