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 '%\system\currentcontrolset\control\safeboot%' AND (LOWER(Command) LIKE '% copy %' OR LOWER(Command) LIKE '% add %')