def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("TargetFilename", default="").startswith("C:\\Windows \\"),
                    event.deep_get("TargetFilename", default="").startswith("C:\\Program Files \\"),
                    event.deep_get("TargetFilename", default="").startswith(
                        "C:\\Program Files (x86) \\"
                    ),
                ]
            ),
            event.deep_get("TargetFilename", default="").endswith(".dll"),
        ]
    ):
        return True
    return False
