def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\Autoit3.exe"),
                    event.deep_get("OriginalFileName", default="") == "AutoIt3.exe",
                ]
            ),
            any(
                [
                    event.deep_get("ParentImage", default="").endswith("\\cmd.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\KeyScramblerLogon.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\msiexec.exe"),
                ]
            ),
            not any(
                [
                    event.deep_get("Image", default="").endswith(
                        ":\\Program Files (x86)\\AutoIt3\\AutoIt3.exe"
                    ),
                    event.deep_get("Image", default="").endswith(
                        ":\\Program Files\\AutoIt3\\AutoIt3.exe"
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
