def rule(event):
    if all(
        [
            event.deep_get("Initiated", default="") == "true",
            any(
                [
                    event.deep_get("Image", default="").endswith("\\regsvr32.exe"),
                    event.deep_get("Image", default="").endswith("\\rundll32.exe"),
                    event.deep_get("Image", default="").endswith("\\dllhost.exe"),
                ]
            ),
            any(
                [
                    event.deep_get("CommandLine", default="").endswith("\\regsvr32.exe"),
                    event.deep_get("CommandLine", default="").endswith("\\rundll32.exe"),
                    event.deep_get("CommandLine", default="").endswith("\\dllhost.exe"),
                ]
            ),
            not any(
                [
                    event.deep_get("CommandLine", default="") == "",
                    event.deep_get("CommandLine", default="") == "",
                ]
            ),
        ]
    ):
        return True
    return False
