def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\adplus.exe"),
                    event.deep_get("OriginalFileName", default="") == "Adplus.exe",
                ]
            ),
            any(
                [
                    " -hang " in event.deep_get("CommandLine", default=""),
                    " -pn " in event.deep_get("CommandLine", default=""),
                    " -pmn " in event.deep_get("CommandLine", default=""),
                    " -p " in event.deep_get("CommandLine", default=""),
                    " -po " in event.deep_get("CommandLine", default=""),
                    " -c " in event.deep_get("CommandLine", default=""),
                    " -sc " in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
