def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\regsvr32.exe"),
            any(
                [
                    " -s" in event.deep_get("CommandLine", default=""),
                    " /s" in event.deep_get("CommandLine", default=""),
                    " –s" in event.deep_get("CommandLine", default=""),
                    " —s" in event.deep_get("CommandLine", default=""),
                    " ―s" in event.deep_get("CommandLine", default=""),
                ]
            ),
            event.deep_get("CommandLine", default="").endswith(" calc"),
        ]
    ):
        return True
    return False
