def rule(event):
    if any(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\SharpMove.exe"),
                    event.deep_get("OriginalFileName", default="") == "SharpMove.exe",
                ]
            ),
            all(
                [
                    "computername=" in event.deep_get("CommandLine", default=""),
                    any(
                        [
                            "action=create" in event.deep_get("CommandLine", default=""),
                            "action=dcom" in event.deep_get("CommandLine", default=""),
                            "action=executevbs" in event.deep_get("CommandLine", default=""),
                            "action=hijackdcom" in event.deep_get("CommandLine", default=""),
                            "action=modschtask" in event.deep_get("CommandLine", default=""),
                            "action=modsvc" in event.deep_get("CommandLine", default=""),
                            "action=query" in event.deep_get("CommandLine", default=""),
                            "action=scm" in event.deep_get("CommandLine", default=""),
                            "action=startservice" in event.deep_get("CommandLine", default=""),
                            "action=taskscheduler" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
