def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("Image", default="").endswith("\\cmd.exe"),
                    "sc config" in event.deep_get("CommandLine", default=""),
                    "wercplsupporte.dll" in event.deep_get("CommandLine", default=""),
                ]
            ),
            all(
                [
                    event.deep_get("Image", default="").endswith("\\wmic.exe"),
                    event.deep_get("CommandLine", default="").endswith("COR_PROFILER"),
                ]
            ),
        ]
    ):
        return True
    return False
