def rule(event):
    if any(
        [
            all(
                [
                    "\\Microsoft\\Windows NT\\CurrentVersion\\"
                    in event.deep_get("TargetObject", default=""),
                    "\\Image File Execution Options\\"
                    in event.deep_get("TargetObject", default=""),
                    "\\GlobalFlag" in event.deep_get("TargetObject", default=""),
                ]
            ),
            all(
                [
                    "\\Microsoft\\Windows NT\\CurrentVersion\\"
                    in event.deep_get("TargetObject", default=""),
                    "\\SilentProcessExit\\" in event.deep_get("TargetObject", default=""),
                    any(
                        [
                            "\\ReportingMode" in event.deep_get("TargetObject", default=""),
                            "\\MonitorProcess" in event.deep_get("TargetObject", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
