def rule(event):
    if all(
        [
            "Set-Acl " in event.deep_get("ScriptBlockText", default=""),
            "-AclObject " in event.deep_get("ScriptBlockText", default=""),
            any(
                [
                    '-Path "C:\\Windows' in event.deep_get("ScriptBlockText", default=""),
                    '-Path "C:/Windows' in event.deep_get("ScriptBlockText", default=""),
                    "-Path 'C:\\Windows" in event.deep_get("ScriptBlockText", default=""),
                    "-Path 'C:/Windows" in event.deep_get("ScriptBlockText", default=""),
                    "-Path C:\\Windows" in event.deep_get("ScriptBlockText", default=""),
                    "-Path C:/Windows" in event.deep_get("ScriptBlockText", default=""),
                    "-Path $env:windir" in event.deep_get("ScriptBlockText", default=""),
                    '-Path "$env:windir' in event.deep_get("ScriptBlockText", default=""),
                    "-Path '$env:windir" in event.deep_get("ScriptBlockText", default=""),
                ]
            ),
            any(
                [
                    "FullControl" in event.deep_get("ScriptBlockText", default=""),
                    "Allow" in event.deep_get("ScriptBlockText", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
