def rule(event):
    if all(
        [
            event.deep_get("ParentImage", default="").endswith("\\javaw.exe"),
            any(
                [
                    "Harmony" in event.deep_get("ParentCommandLine", default=""),
                    "lexicom" in event.deep_get("ParentCommandLine", default=""),
                    "VersaLex" in event.deep_get("ParentCommandLine", default=""),
                    "VLTrader" in event.deep_get("ParentCommandLine", default=""),
                ]
            ),
            event.deep_get("Image", default="").endswith("\\cmd.exe"),
            any(
                [
                    "powershell" in event.deep_get("CommandLine", default=""),
                    " -enc " in event.deep_get("CommandLine", default=""),
                    " -EncodedCommand" in event.deep_get("CommandLine", default=""),
                    ".Download" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
