def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("TargetFilename", default="").endswith("\\secur32.dll"),
                    event.deep_get("TargetFilename", default="").endswith("\\tdh.dll"),
                ]
            ),
            not any(
                [
                    "C:\\$WINDOWS.~BT\\" in event.deep_get("TargetFilename", default=""),
                    "C:\\$WinREAgent\\" in event.deep_get("TargetFilename", default=""),
                    "C:\\Windows\\SoftwareDistribution\\"
                    in event.deep_get("TargetFilename", default=""),
                    "C:\\Windows\\System32\\" in event.deep_get("TargetFilename", default=""),
                    "C:\\Windows\\SysWOW64\\" in event.deep_get("TargetFilename", default=""),
                    "C:\\Windows\\WinSxS\\" in event.deep_get("TargetFilename", default=""),
                    "C:\\Windows\\uus\\" in event.deep_get("TargetFilename", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
