Function at 0x10028465
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.1003a680
push 0xffffffffffffffff
push 0x10067892
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x100bc054]
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 ebx, ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
push str._Remove_Keys_for_current_active_user_other_than_one_were_loggin_in
mov byte [ebp - 4], 4
mov dword [ebp - 0x40], 0x800
mov dword [ebp - 0x18], ebx
call fcn.10047a5c
pop ecx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp + 0x3000]
push eax
push ebx
jmp 0x100286bb
lea eax, [ebp + 0x3000]
push eax
lea ecx, [ebp - 0x14]
call fcn.1000155e
push str.SoftwareClasses
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.10012712
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x14]
call fcn.10001697
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x10028548
call fcn.100016f0
mov dword [ebp - 0x2c], ebx
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x10028553
mov eax, dword [edi]
jmp 0x10028555
mov eax, ebx
push 0x20019
push eax
push esi
lea ecx, [ebp - 0x5c]
call fcn.10047a5c
test eax, eax
jne 0x10028626
push 0x2001f
push 0x10080254
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x28]
call fcn.10047a5c
test eax, eax
jne 0x10028626
push str.___Remove_from_user:
lea ecx, [ebp - 0x34]
call fcn.10012712
lea eax, [ebp + 0x3000]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x30]
call fcn.1000155e
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x34]
call fcn.10001697
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x100285c8
call fcn.100016f0
mov dword [ebp - 0x30], ebx
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x100285d3
mov eax, dword [esi]
jmp 0x100285d5
mov eax, ebx
push eax
call fcn.10047a5c
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
and dword [ebp - 0x28], 0
and dword [ebp - 0x20], 0
push ecx
push ecx
mov ecx, dword [ebp - 0x24]
mov ebx, esp
and dword [ebp - 0x24], 0
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
call fcn.10047a5c
add esp, 0xc
lea ecx, [ebp - 0x5c]
call fcn.1001ad8c
lea ecx, [ebp - 0x28]
call fcn.1001ad8c
test esi, esi
je 0x10028689
mov ecx, esi
call fcn.100016f0
xor ebx, ebx
mov dword [ebp - 0x34], ebx
jmp 0x1002868b
push str.___Failed_to_open_CLSID_keys_in_user:
lea ecx, [ebp - 0x3c]
call fcn.10012712
lea eax, [ebp + 0x3000]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x38]
call fcn.1000155e
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x3c]
call fcn.10001697
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x10028665
call fcn.100016f0
mov dword [ebp - 0x38], ebx
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x10028670
mov eax, dword [esi]
jmp 0x10028672
mov eax, ebx
push eax
call fcn.10047a5c
pop ecx
test esi, esi
je 0x1002868b
mov ecx, esi
call fcn.100016f0
mov dword [ebp - 0x3c], ebx
jmp 0x1002868b
xor ebx, ebx
mov esi, dword [ebp - 0x18]
inc esi
mov dword [ebp - 0x40], 0x800
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 4
test edi, edi
je 0x100286ab
mov ecx, edi
call fcn.100016f0
mov dword [ebp - 0x14], ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp + 0x3000]
push eax
push esi
mov esi, SysStringLen
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10028505
push str._Remove_Static_Version_Redirect_Keys_for_other_users
call fcn.10047a5c
mov edi, 0x1000
mov dword [ebp - 0x18], ebx
push edi
lea eax, [ebp + 0x2000]
push ebx
push eax
call fcn.1003cd40
push edi
lea eax, [ebp + 0x4000]
push ebx
push eax
call fcn.1003cd40
push edi
lea eax, [ebp]
push ebx
push eax
call fcn.1003cd40
push edi
lea eax, [ebp + 0x5000]
push ebx
push eax
call fcn.1003cd40
push edi
lea eax, [ebp + 0x1000]
push ebx
push eax
call fcn.1003cd40
add esp, 0x40
lea eax, [ebp + 0x6000]
push edi
push ebx
push eax
call fcn.1003cd40
add esp, 0xc
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], 0xa
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0xb
push eax
push 0x20019
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x10080348
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
push ecx
mov ecx, esp
mov esi, eax
push str.___Open_ProfilePath_key
call fcn.1000155e
push esi
call fcn.1002971f
pop ecx
pop ecx
test esi, esi
jne 0x100289db
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x800
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push edi
lea eax, [ebp + 0x5000]
push esi
push eax
call fcn.1003cd40
add esp, 0xc
mov dword [ebp - 0x10], 0x800
lea eax, [ebp - 0x10]
push esi
push esi
push esi
push esi
push eax
lea eax, [ebp + 0x5000]
push eax
push esi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100289b1
test esi, esi
jne 0x100289c1
lea eax, [ebp + 0x5000]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList
lea eax, [ebp + 0x2000]
push 0x1008033c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x60]
push eax
push 0x20019
push esi
lea eax, [ebp + 0x2000]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov esi, eax
test esi, esi
jne 0x10028911
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x800
push eax
lea eax, [ebp + 0x1000]
push eax
lea eax, [ebp - 0x94]
push eax
push esi
push str.ProfileImagePath
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x100288f5
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.10028320
pop ecx
pop ecx
test eax, eax
je 0x1002890a
lea eax, [ebp + 0x6000]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
test al, 0x10
je 0x100288bd
push str.Local_SettingsApplication_DataMicrosoftWindowsUsrClass.dat
lea eax, [ebp + 0x6000]
push esi
push eax
call fcn.10047a5c
add esp, 0xc
lea eax, [ebp + 0x6000]
push eax
lea ecx, [ebp - 0x14]
call fcn.1000155e
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x90]
call fcn.10029bc4
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xb
test ecx, ecx
je 0x1002890a
call fcn.100016f0
and dword [ebp - 0x14], 0
jmp 0x1002890a
push ecx
mov ecx, esp
push str.___Query_Value_ProfileImagePath
call fcn.1000155e
push esi
call fcn.1002971f
pop ecx
pop ecx
push dword [ebp - 0x60]
call edi
jmp 0x10028926
push ecx
mov ecx, esp
push str.___Open_Profile_Key
call fcn.1000155e
push esi
call fcn.1002971f
pop ecx
pop ecx
mov esi, dword [ebp - 0x18]
lea eax, [ebp + 0x2000]
push 0x1000
push 0
inc esi
push eax
mov dword [ebp - 0x18], esi
call fcn.1003cd40
push 0x1000
lea eax, [ebp + 0x4000]
push 0
push eax
call fcn.1003cd40
push 0x1000
lea eax, [ebp + 0x5000]
push 0
push eax
call fcn.1003cd40
push 0x1000
lea eax, [ebp + 0x1000]
push 0
push eax
call fcn.1003cd40
push 0x1000
lea eax, [ebp + 0x6000]
push 0
push eax
call fcn.1003cd40
add esp, 0x3c
mov dword [ebp - 0x10], 0x800
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x5000]
push eax
push esi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
jne 0x100287ea
jmp 0x100289d6
push ecx
mov ecx, esp
push str.Enumerate_Profile_Keys
call fcn.1000155e
push esi
call fcn.1002971f
pop ecx
pop ecx
push dword [ebp - 0x44]
call edi
mov edi, dword [ebp - 0x88]
xor ebx, ebx
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x18], eax
test edi, edi
je 0x10028b62
push 1
push 0x100804ac
call fcn.10047a5c
pop ecx
pop ecx
test eax, eax
je 0x10028b4e
push 1
push 0x10080590
call fcn.10047a5c
pop ecx
pop ecx
test eax, eax
je 0x10028b4e
push 0x1000
lea eax, [ebp + 0x6000]
push 0
push eax
call fcn.1003cd40
add esp, 0xc
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x90]
push eax
call fcn.10029d8f
mov eax, dword [eax]
test eax, eax
je 0x10028a4f
mov eax, dword [eax]
jmp 0x10028a51
xor eax, eax
mov ecx, 0x800
push ecx
push eax
push ecx
lea eax, [ebp + 0x6000]
push eax
call fcn.10047a5c
push ebx
lea eax, [ebp + 0x4000]
push str.User_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp + 0x6000]
mov esi, SysStringLen
push eax
lea eax, [ebp + 0x4000]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x10028b31
push 0x20019
lea eax, [ebp + 0x4000]
push eax
push esi
lea ecx, [ebp - 0x6c]
call fcn.10047a5c
test eax, eax
jne 0x10028b22
push 0x2001f
push 0x100805c8
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x50]
call fcn.10047a5c
test eax, eax
jne 0x10028b1a
push str.remove_key_from
call fcn.10047a5c
lea eax, [ebp + 0x6000]
push eax
call fcn.10047a5c
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x50]
and dword [ebp - 0x50], 0
and dword [ebp - 0x48], 0
push ecx
mov ecx, dword [ebp - 0x4c]
mov esi, esp
and dword [ebp - 0x4c], 0
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
call fcn.10047a5c
add esp, 0xc
lea ecx, [ebp - 0x50]
call fcn.1001ad8c
mov esi, SysStringLen
lea ecx, [ebp - 0x6c]
call fcn.1001ad8c
lea eax, [ebp + 0x4000]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
inc ebx
push 0
push str.SeBackupPrivilege
call fcn.10047a5c
push 0
push str.SeRestorePrivilege
call fcn.10047a5c
add esp, 0x10
jmp 0x10028b59
push str.___failed_to_set_Privileges
call fcn.10047a5c
pop ecx
sub edi, 1
jne 0x100289f4
mov ebx, 0x20019
lea ecx, [ebp - 0x78]
push ebx
push 0x1008067c
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10047a5c
test eax, eax
jne 0x10028bed
push ebx
push str.Classes
push dword [ebp - 0x78]
lea ecx, [ebp - 0x5c]
call fcn.10047a5c
test eax, eax
jne 0x10028bed
push 0x2001f
push 0x100806a0
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x28]
call fcn.10047a5c
test eax, eax
jne 0x10028bed
mov ecx, dword [ebp - 0x24]
sub esp, 0xc
mov edx, dword [ebp - 0x20]
mov esi, esp
mov eax, dword [ebp - 0x28]
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
call fcn.10047a5c
add esp, 0xc
lea ecx, [ebp - 0x78]
call fcn.1001ad8c
lea ecx, [ebp - 0x5c]
call fcn.1001ad8c
lea ecx, [ebp - 0x28]
call fcn.1001ad8c
lea ecx, [ebp - 0x90]
call fcn.10029de5
lea ecx, [ebp - 0x50]
call fcn.1001ad8c
lea ecx, [ebp - 0x6c]
call fcn.1001ad8c
lea ecx, [ebp - 0x28]
call fcn.1001ad8c
lea ecx, [ebp - 0x5c]
call fcn.1001ad8c
lea ecx, [ebp - 0x78]
call fcn.1001ad8c
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.1003a5a7
add ebp, 0x7004
leave
ret