def rule(event):
    if all(
        [
            any(
                [
                    any(
                        [
                            event.deep_get("TargetObject", default="").endswith(
                                "\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Windows\\AppInit_Dlls"
                            ),
                            event.deep_get("TargetObject", default="").endswith(
                                "\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows NT\\CurrentVersion\\Windows\\AppInit_Dlls"
                            ),
                        ]
                    ),
                    any(
                        [
                            event.deep_get("NewName", default="").endswith(
                                "\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Windows\\AppInit_Dlls"
                            ),
                            event.deep_get("NewName", default="").endswith(
                                "\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows NT\\CurrentVersion\\Windows\\AppInit_Dlls"
                            ),
                        ]
                    ),
                ]
            ),
            not event.deep_get("Details", default="") == "(Empty)",
        ]
    ):
        return True
    return False
