// Detect It Easy: detection rule file format
// Author: hypn0 <hypn0@mail.ru>

init("protector", "DS-CRP");

function detect(bShowType, bShowVersion, bShowOptions) {
    if (Binary.compare("b8....50c3")) {
        var nOffset = Binary.readWord(1) - 256 + 8;
        if (Binary.compare("e800005d81ed....9c32e4509d9c5880e4..80fc..74..b4..509d9c5880e4..74..9deb", nOffset))
            sVersion = "1.30";
        sOptions = "by Dark Stalker //UCF";
        bDetected = true;
    }

    return result(bShowType, bShowVersion, bShowOptions);
}