def rule(event):
    if all(
        [
            any(
                [
                    any(
                        [
                            event.deep_get("Image", default="").endswith("\\Regsvcs.exe"),
                            event.deep_get("Image", default="").endswith("\\Regasm.exe"),
                        ]
                    ),
                    event.deep_get("OriginalFileName", default="") in ["RegSvcs.exe", "RegAsm.exe"],
                ]
            ),
            any(
                [
                    ".dat" in event.deep_get("CommandLine", default=""),
                    ".gif" in event.deep_get("CommandLine", default=""),
                    ".jpeg" in event.deep_get("CommandLine", default=""),
                    ".jpg" in event.deep_get("CommandLine", default=""),
                    ".png" in event.deep_get("CommandLine", default=""),
                    ".txt" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
