Function at 0x100025f0
Capabilities:
Delete directory
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x528
mov eax, dword [0x10020ae4]
xor eax, esp
mov dword [esp + 0x524], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x53c]
lea eax, [esp + 0x120]
push esi
push str.CleanupUser__s_
push 0x410
push eax
call fcn.10005a20
mov ebp, dword [esp + 0x548]
lea eax, [esp + 0x130]
push eax
push str.CleanupUser
push ebp
call fcn.10003f60
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x2c]
add esp, 0x1c
push eax
push 0xf003f
push 0
push esi
push 0x80000003
call ebx
test eax, eax
je 0x1000267e
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x524]
xor ecx, esp
call fcn.10005b76
add esp, 0x528
ret
push edi
push dword [esp + 0x14]
push ebp
call fcn.10002520
add esp, 8
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push dword [esp + 0x24]
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10002728
push str.CleanupUser__SoftwareMicrosoftWindowsCurrentVersionRun__
push str.CleanupUser
push ebp
call fcn.10003f60
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
add esp, 0xc
push str.LogMeInRescueCallingCard
push dword [esp + 0x14]
call ebx
mov ecx, 6
lea edi, [esp + 0x20]
mov esi, str.LogMeInRescueCallingCards
lea eax, [esp + 0x3a]
rep movsd dword es:[edi], dword [esi]
push 0xea
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.10006e20
push 0x10021254
lea eax, [esp + 0x30]
push 0x104
push eax
call fcn.1000ac9c
add esp, 0x18
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x14]
call ebx
push dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push dword [esp + 0x24]
call ebx
test eax, eax
jne 0x10002890
push str.CleanupUser_Delete_folders_from_AppData_
push str.CleanupUser
push ebp
call fcn.10003f60
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0x410
push eax
lea eax, [esp + 0x128]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push str.AppData
push dword [esp + 0x24]
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
jne 0x100027f8
push 0x1001780c
lea eax, [esp + 0x128]
push eax
call edi
push 0x10021254
lea eax, [esp + 0x128]
push eax
call edi
lea eax, [esp + 0x124]
push eax
push str.CleanupUser
push ebp
call fcn.10003f60
lea eax, [esp + 0x130]
push 1
push eax
call fcn.10002ce0
add esp, 0x14
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], 1
push eax
lea eax, [esp + 0x128]
mov dword [esp + 0x1c], 0x410
push eax
lea eax, [esp + 0x24]
push eax
push 0
push str.Local_AppData
push dword [esp + 0x24]
call ebx
test eax, eax
jne 0x1000288a
push 0x1001780c
lea eax, [esp + 0x128]
push eax
call edi
push 0x10021254
lea eax, [esp + 0x128]
push eax
call edi
lea eax, [esp + 0x124]
push eax
push str.CleanupUser
push ebp
call fcn.10003f60
lea eax, [esp + 0x130]
push 1
push eax
call fcn.10002ce0
add esp, 0x14
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [esp + 0x10]
call esi
push dword [esp + 0x14]
call esi
mov ecx, dword [esp + 0x534]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10005b76
add esp, 0x528
ret