Hello, Faustino.
Run the Registry Editor and in the sections
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce
check all keys for KMSAuto mentions. Delete these keys.
Launch the Task Scheduler. Open the Scheduler Library section and disable all KMSAuto-related tasks.
Run the system configuration (msconfig command). On the Services tab, disable all non-Microsoft services.
Restart your PC and manually delete all files that are mentioned in Defender and linked to KMSAuto.
Restart your PC again and make sure that the disabled tasks, deleted registry keys, and KMSAuto files have not appeared.