def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\RegAsm.exe"),
                    event.deep_get("OriginalFileName", default="") == "RegAsm.exe",
                ]
            ),
            any(
                [
                    event.deep_get("CommandLine", default="").endswith("RegAsm"),
                    event.deep_get("CommandLine", default="").endswith("RegAsm.exe"),
                    event.deep_get("CommandLine", default="").endswith('RegAsm.exe"'),
                    event.deep_get("CommandLine", default="").endswith("RegAsm.exe'"),
                ]
            ),
        ]
    ):
        return True
    return False
