SELECT * FROM events WHERE devicetype=12 AND ((LOWER("Process Path") LIKE '%reg.exe' OR LOWER("Process Name") LIKE '%reg.exe') OR Filename='reg.exe') AND (LOWER(Command) LIKE '% delete %' AND LOWER(Command) LIKE '%\system\currentcontrolset\control\safeboot%')