Function at 0x10027a26
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.10039d10
push 0xffffffffffffffff
push 0x10058e03
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x10080f6c]
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.10052b6b
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 0x10027c65
lea eax, [ebp + 0x1000]
push eax
lea ecx, [ebp - 0x10]
call fcn.10001309
push str.SoftwareClasses
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.1001060c
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.10001524
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 5
cmp ecx, esi
je 0x10027b0a
call fcn.10001441
mov dword [ebp - 0x48], esi
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x10027b15
mov eax, dword [eax]
jmp 0x10027b17
xor eax, eax
push 0x20019
push eax
push VariantInit
lea ecx, [ebp - 0x30]
call fcn.10052b6b
test eax, eax
jne 0x10027bd9
push 0x2001f
push 0x10066f58
push dword [ebp - 0x30]
lea ecx, [ebp - 0x3c]
call fcn.10052b6b
test eax, eax
jne 0x10027bd9
push str.___Remove_from_user:
lea ecx, [ebp - 0x44]
call fcn.1001060c
lea eax, [ebp + 0x1000]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.10001309
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 8
call fcn.10001524
mov ecx, dword [ebp - 0x40]
cmp ecx, esi
je 0x10027b8e
call fcn.10001441
mov dword [ebp - 0x40], esi
mov edi, dword [ebp - 0x44]
cmp edi, esi
je 0x10027b99
mov eax, dword [edi]
jmp 0x10027b9b
xor eax, eax
push eax
call fcn.10052b6b
push ecx
push ecx
lea eax, [ebp - 0x3c]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.10028bb3
call fcn.10052b6b
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.10016b3c
lea ecx, [ebp - 0x3c]
call fcn.10016b3c
cmp edi, esi
je 0x10027c3a
mov ecx, edi
call fcn.10001441
mov dword [ebp - 0x44], esi
jmp 0x10027c3a
push str.___Failed_to_open_CLSID_keys_in_user:
lea ecx, [ebp - 0x18]
call fcn.1001060c
lea eax, [ebp + 0x1000]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
call fcn.10001309
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call fcn.10001524
mov ecx, dword [ebp - 0x24]
cmp ecx, esi
je 0x10027c18
call fcn.10001441
mov dword [ebp - 0x24], esi
mov edi, dword [ebp - 0x18]
cmp edi, esi
je 0x10027c23
mov eax, dword [edi]
jmp 0x10027c25
xor eax, eax
push eax
call fcn.10052b6b
pop ecx
cmp edi, esi
je 0x10027c3a
mov ecx, edi
call fcn.10001441
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 0x10027c53
call fcn.10001441
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 VariantInit
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10027ac7
push str._Remove_Static_Version_Redirect_Keys_for_other_users
call fcn.10052b6b
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.10039d40
xor eax, eax
push edi
mov word [ebp + 0x5000], ax
lea eax, [ebp + 0x5002]
push esi
push eax
call fcn.10039d40
xor eax, eax
push edi
mov word [ebp + 0x3000], ax
lea eax, [ebp + 0x3002]
push esi
push eax
call fcn.10039d40
xor eax, eax
push edi
mov word [ebp + 0x4000], ax
lea eax, [ebp + 0x4002]
push esi
push eax
call fcn.10039d40
xor eax, eax
push edi
mov word [ebp], ax
lea eax, [ebp + 2]
push esi
push eax
call fcn.10039d40
add esp, 0x40
xor eax, eax
push edi
mov word [ebp + 0x6000], ax
lea eax, [ebp + 0x6002]
push esi
push eax
call fcn.10039d40
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 0x10067070
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.10001309
push dword [ebp - 0x10]
call fcn.10029296
pop ecx
add edi, 2
pop ecx
cmp dword [ebp - 0x10], esi
jne 0x10027fdb
push edi
lea eax, [ebp + 0x3000]
push esi
push eax
mov dword [ebp - 0x1c], ebx
call fcn.10039d40
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.10039d40
push edi
lea eax, [ebp + 0x5000]
push esi
push eax
call fcn.10039d40
push edi
lea eax, [ebp + 0x4000]
push esi
push eax
call fcn.10039d40
push edi
lea eax, [ebp]
push esi
push eax
call fcn.10039d40
push edi
lea eax, [ebp + 0x6000]
push esi
push eax
call fcn.10039d40
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 0x10027f9c
cmp dword [ebp - 0x10], esi
jne 0x10027fb8
lea eax, [ebp + 0x4000]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList
lea eax, [ebp + 0x2000]
push 0x10066fd4
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 0x10027f27
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 0x10027f02
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.1001bce7
pop ecx
pop ecx
test eax, eax
je 0x10027f1c
lea eax, [ebp + 0x6000]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
test al, 0x10
je 0x10027ecb
push str.Local_SettingsApplication_DataMicrosoftWindowsUsrClass.dat
lea eax, [ebp + 0x6000]
push ebx
push eax
call fcn.10052b6b
add esp, 0xc
lea eax, [ebp + 0x6000]
push eax
lea ecx, [ebp - 0x14]
call fcn.10001309
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xc
call fcn.10029424
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xb
cmp ecx, esi
je 0x10027f1c
call fcn.10001441
mov dword [ebp - 0x14], esi
jmp 0x10027f1c
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.___Query_Value_ProfileImagePath
call fcn.10001309
push dword [ebp - 0x10]
call fcn.10029296
pop ecx
pop ecx
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10027f41
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.___Open_Profile_Key
call fcn.10001309
push dword [ebp - 0x10]
call fcn.10029296
pop ecx
pop ecx
inc dword [ebp - 0x18]
push edi
lea eax, [ebp + 0x2000]
push esi
push eax
call fcn.10039d40
push edi
lea eax, [ebp + 0x5000]
push esi
push eax
call fcn.10039d40
push edi
lea eax, [ebp + 0x4000]
push esi
push eax
call fcn.10039d40
push edi
lea eax, [ebp]
push esi
push eax
call fcn.10039d40
push edi
lea eax, [ebp + 0x6000]
push esi
push eax
call fcn.10039d40
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 0x10027dfd
jmp 0x10027fd2
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.Enumerate_Profile_Keys
call fcn.10001309
push dword [ebp - 0x10]
call fcn.10029296
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 0x1002814f
mov dword [ebp - 0x18], eax
push 1
push 0x1006713c
call fcn.10052b6b
pop ecx
pop ecx
test eax, eax
je 0x1002813b
push 1
push 0x100672a0
call fcn.10052b6b
pop ecx
pop ecx
test eax, eax
je 0x1002813b
push edi
lea eax, [ebp + 0x6000]
push esi
push eax
call fcn.10039d40
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x90]
call fcn.10028b2d
mov eax, dword [eax]
cmp eax, esi
je 0x1002804e
mov eax, dword [eax]
jmp 0x10028050
xor eax, eax
push ebx
push eax
lea eax, [ebp + 0x6000]
push ebx
push eax
call fcn.10052b6b
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 VariantInit
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x10028120
push 0x20019
lea eax, [ebp + 0x5000]
push eax
push VariantInit
lea ecx, [ebp - 0x5c]
call fcn.10052b6b
test eax, eax
jne 0x1002810b
push 0x2001f
push 0x100671d4
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x74]
call fcn.10052b6b
test eax, eax
jne 0x10028103
push str.remove_key_from
call fcn.10052b6b
lea eax, [ebp + 0x6000]
push eax
call fcn.10052b6b
push ecx
lea eax, [ebp - 0x74]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.10028bb3
call fcn.10052b6b
add esp, 0xc
lea ecx, [ebp - 0x74]
call fcn.10016b3c
lea ecx, [ebp - 0x5c]
call fcn.10016b3c
lea eax, [ebp + 0x5000]
push eax
push VariantInit
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
inc dword [ebp - 0x14]
push esi
push str.SeBackupPrivilege
call fcn.10052b6b
push esi
push str.SeRestorePrivilege
call fcn.10052b6b
add esp, 0x10
jmp 0x10028146
push str.___failed_to_set_Privileges
call fcn.10052b6b
pop ecx
dec dword [ebp - 0x18]
jne 0x10027ff8
mov esi, 0x20019
push esi
push 0x10067380
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x68]
call fcn.10052b6b
test eax, eax
jne 0x100281ca
push esi
push str.Classes
push dword [ebp - 0x68]
lea ecx, [ebp - 0x30]
call fcn.10052b6b
test eax, eax
jne 0x100281ca
push 0x2001f
push 0x100673a4
push dword [ebp - 0x30]
lea ecx, [ebp - 0x3c]
call fcn.10052b6b
test eax, eax
jne 0x100281ca
sub esp, 0xc
lea eax, [ebp - 0x3c]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.10028bb3
call fcn.10052b6b
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.10016b3c
lea ecx, [ebp - 0x30]
call fcn.10016b3c
lea ecx, [ebp - 0x3c]
call fcn.10016b3c
lea ecx, [ebp - 0x90]
call fcn.10028b4b
lea ecx, [ebp - 0x74]
call fcn.10016b3c
lea ecx, [ebp - 0x5c]
call fcn.10016b3c
lea ecx, [ebp - 0x3c]
call fcn.10016b3c
lea ecx, [ebp - 0x30]
call fcn.10016b3c
lea ecx, [ebp - 0x68]
call fcn.10016b3c
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.10039bc2
add ebp, 0x7004
leave
ret