Function at 0x1002815d
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.1003c230
push 0xffffffffffffffff
push 0x10070d7c
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x10095dec]
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 - 0x68], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
mov ebx, 0x800
push str._Remove_Keys_for_current_active_user_other_than_one_were_loggin_in
mov byte [ebp - 4], 4
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x14], esi
call fcn.1005e425
pop ecx
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x1000]
push eax
push esi
jmp 0x1002839c
lea eax, [ebp + 0x1000]
push eax
lea ecx, [ebp - 0x10]
call fcn.100010b1
push str.SoftwareClasses
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.1000b23a
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.1000132e
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 5
cmp ecx, esi
je 0x10028241
call fcn.10001238
mov dword [ebp - 0x48], esi
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x1002824c
mov eax, dword [eax]
jmp 0x1002824e
xor eax, eax
push 0x20019
push eax
push SysReAllocStringLen
lea ecx, [ebp - 0x30]
call fcn.1005e425
test eax, eax
jne 0x10028310
push 0x2001f
push 0x1007cc68
push dword [ebp - 0x30]
lea ecx, [ebp - 0x3c]
call fcn.1005e425
test eax, eax
jne 0x10028310
push str.___Remove_from_user:
lea ecx, [ebp - 0x44]
call fcn.1000b23a
lea eax, [ebp + 0x1000]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.100010b1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 8
call fcn.1000132e
mov ecx, dword [ebp - 0x40]
cmp ecx, esi
je 0x100282c5
call fcn.10001238
mov dword [ebp - 0x40], esi
mov edi, dword [ebp - 0x44]
cmp edi, esi
je 0x100282d0
mov eax, dword [edi]
jmp 0x100282d2
xor eax, eax
push eax
call fcn.1005e425
push ecx
push ecx
lea eax, [ebp - 0x3c]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.1001b96d
call fcn.1005e425
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.100159e6
lea ecx, [ebp - 0x3c]
call fcn.100159e6
cmp edi, esi
je 0x10028371
mov ecx, edi
call fcn.10001238
mov dword [ebp - 0x44], esi
jmp 0x10028371
push str.___Failed_to_open_CLSID_keys_in_user:
lea ecx, [ebp - 0x18]
call fcn.1000b23a
lea eax, [ebp + 0x1000]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
call fcn.100010b1
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call fcn.1000132e
mov ecx, dword [ebp - 0x24]
cmp ecx, esi
je 0x1002834f
call fcn.10001238
mov dword [ebp - 0x24], esi
mov edi, dword [ebp - 0x18]
cmp edi, esi
je 0x1002835a
mov eax, dword [edi]
jmp 0x1002835c
xor eax, eax
push eax
call fcn.1005e425
pop ecx
cmp edi, esi
je 0x10028371
mov ecx, edi
call fcn.10001238
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp - 0x10]
inc dword [ebp - 0x14]
mov dword [ebp - 0x50], ebx
mov byte [ebp - 4], 4
cmp ecx, esi
je 0x1002838a
call fcn.10001238
mov dword [ebp - 0x10], esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x1000]
push eax
push dword [ebp - 0x14]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x100281fe
push str._Remove_Static_Version_Redirect_Keys_for_other_users
call fcn.1005e425
xor eax, eax
mov edi, 0xffe
push edi
mov word [ebp + 0x2000], ax
lea eax, [ebp + 0x2002]
push esi
push eax
mov dword [ebp - 0x18], esi
call fcn.1003c260
xor eax, eax
push edi
mov word [ebp + 0x5000], ax
lea eax, [ebp + 0x5002]
push esi
push eax
call fcn.1003c260
xor eax, eax
push edi
mov word [ebp + 0x3000], ax
lea eax, [ebp + 0x3002]
push esi
push eax
call fcn.1003c260
xor eax, eax
push edi
mov word [ebp + 0x4000], ax
lea eax, [ebp + 0x4002]
push esi
push eax
call fcn.1003c260
xor eax, eax
push edi
mov word [ebp], ax
lea eax, [ebp + 2]
push esi
push eax
call fcn.1003c260
add esp, 0x40
xor eax, eax
push edi
mov word [ebp + 0x6000], ax
lea eax, [ebp + 0x6002]
push esi
push eax
call fcn.1003c260
add esp, 0xc
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], 0xa
lea eax, [ebp - 0x4c]
push eax
push 0x20019
push esi
push 0x1007cd80
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 0xb
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.___Open_ProfilePath_key
mov dword [ebp - 0x10], eax
call fcn.100010b1
push dword [ebp - 0x10]
call fcn.1001f7ea
pop ecx
add edi, 2
pop ecx
cmp dword [ebp - 0x10], esi
jne 0x10028712
push edi
lea eax, [ebp + 0x3000]
push esi
push eax
mov dword [ebp - 0x1c], ebx
call fcn.1003c260
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x3000]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push edi
lea eax, [ebp + 0x2000]
push esi
push eax
call fcn.1003c260
push edi
lea eax, [ebp + 0x5000]
push esi
push eax
call fcn.1003c260
push edi
lea eax, [ebp + 0x4000]
push esi
push eax
call fcn.1003c260
push edi
lea eax, [ebp]
push esi
push eax
call fcn.1003c260
push edi
lea eax, [ebp + 0x6000]
push esi
push eax
call fcn.1003c260
add esp, 0x3c
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x4000]
push eax
push esi
jmp 0x100286d3
cmp dword [ebp - 0x10], esi
jne 0x100286ef
lea eax, [ebp + 0x4000]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList
lea eax, [ebp + 0x2000]
push 0x1007cce4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x78]
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 dword [ebp - 0x10], eax
cmp eax, esi
jne 0x1002865e
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x94]
push eax
push esi
push str.ProfileImagePath
push dword [ebp - 0x78]
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x10028639
push ebx
lea eax, [ebp + 0x6000]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp + 0x3000]
push eax
lea eax, [ebp + 0x6000]
push eax
call fcn.1001b74f
pop ecx
pop ecx
test eax, eax
je 0x10028653
lea eax, [ebp + 0x6000]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
test al, 0x10
je 0x10028602
push str.Local_SettingsApplication_DataMicrosoftWindowsUsrClass.dat
lea eax, [ebp + 0x6000]
push ebx
push eax
call fcn.1005e425
add esp, 0xc
lea eax, [ebp + 0x6000]
push eax
lea ecx, [ebp - 0x14]
call fcn.100010b1
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xc
call fcn.100280ca
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xb
cmp ecx, esi
je 0x10028653
call fcn.10001238
mov dword [ebp - 0x14], esi
jmp 0x10028653
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.___Query_Value_ProfileImagePath
call fcn.100010b1
push dword [ebp - 0x10]
call fcn.1001f7ea
pop ecx
pop ecx
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10028678
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.___Open_Profile_Key
call fcn.100010b1
push dword [ebp - 0x10]
call fcn.1001f7ea
pop ecx
pop ecx
inc dword [ebp - 0x18]
push edi
lea eax, [ebp + 0x2000]
push esi
push eax
call fcn.1003c260
push edi
lea eax, [ebp + 0x5000]
push esi
push eax
call fcn.1003c260
push edi
lea eax, [ebp + 0x4000]
push esi
push eax
call fcn.1003c260
push edi
lea eax, [ebp]
push esi
push eax
call fcn.1003c260
push edi
lea eax, [ebp + 0x6000]
push esi
push eax
call fcn.1003c260
add esp, 0x3c
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x4000]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x4c]
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x10], eax
cmp eax, 0x103
jne 0x10028534
jmp 0x10028709
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.Enumerate_Profile_Keys
call fcn.100010b1
push dword [ebp - 0x10]
call fcn.1001f7ea
pop ecx
pop ecx
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x14], esi
cmp eax, esi
jbe 0x10028886
mov dword [ebp - 0x18], eax
push 1
push 0x1007ce4c
call fcn.1005e425
pop ecx
pop ecx
test eax, eax
je 0x10028872
push 1
push 0x1007cfb0
call fcn.1005e425
pop ecx
pop ecx
test eax, eax
je 0x10028872
push edi
lea eax, [ebp + 0x6000]
push esi
push eax
call fcn.1003c260
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x90]
call fcn.1001b860
mov eax, dword [eax]
cmp eax, esi
je 0x10028785
mov eax, dword [eax]
jmp 0x10028787
xor eax, eax
push ebx
push eax
lea eax, [ebp + 0x6000]
push ebx
push eax
call fcn.1005e425
push dword [ebp - 0x14]
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 SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x10028857
push 0x20019
lea eax, [ebp + 0x5000]
push eax
push SysReAllocStringLen
lea ecx, [ebp - 0x5c]
call fcn.1005e425
test eax, eax
jne 0x10028842
push 0x2001f
push 0x1007cee4
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x74]
call fcn.1005e425
test eax, eax
jne 0x1002883a
push str.remove_key_from
call fcn.1005e425
lea eax, [ebp + 0x6000]
push eax
call fcn.1005e425
push ecx
lea eax, [ebp - 0x74]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.1001b96d
call fcn.1005e425
add esp, 0xc
lea ecx, [ebp - 0x74]
call fcn.100159e6
lea ecx, [ebp - 0x5c]
call fcn.100159e6
lea eax, [ebp + 0x5000]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
inc dword [ebp - 0x14]
push esi
push str.SeBackupPrivilege
call fcn.1005e425
push esi
push str.SeRestorePrivilege
call fcn.1005e425
add esp, 0x10
jmp 0x1002887d
push str.___failed_to_set_Privileges
call fcn.1005e425
pop ecx
dec dword [ebp - 0x18]
jne 0x1002872f
mov esi, 0x20019
push esi
push 0x1007d090
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x68]
call fcn.1005e425
test eax, eax
jne 0x10028901
push esi
push str.Classes
push dword [ebp - 0x68]
lea ecx, [ebp - 0x30]
call fcn.1005e425
test eax, eax
jne 0x10028901
push 0x2001f
push 0x1007d0b4
push dword [ebp - 0x30]
lea ecx, [ebp - 0x3c]
call fcn.1005e425
test eax, eax
jne 0x10028901
sub esp, 0xc
lea eax, [ebp - 0x3c]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.1001b96d
call fcn.1005e425
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.100159e6
lea ecx, [ebp - 0x30]
call fcn.100159e6
lea ecx, [ebp - 0x3c]
call fcn.100159e6
lea ecx, [ebp - 0x90]
call fcn.1001b8d1
lea ecx, [ebp - 0x74]
call fcn.100159e6
lea ecx, [ebp - 0x5c]
call fcn.100159e6
lea ecx, [ebp - 0x3c]
call fcn.100159e6
lea ecx, [ebp - 0x30]
call fcn.100159e6
lea ecx, [ebp - 0x68]
call fcn.100159e6
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.1003c09c
add ebp, 0x7004
leave
ret