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

init("sfx", "RAR");

function detect(bShowType, bShowVersion, bShowOptions) {
    if (PE.compareEP("558bec83c4..535657e8........e8........33c05568........64ff30648920e8")) {
        for (var i = 0; i < PE.resource.length; i++) {
            if (PE.compare("'rar!'", PE.resource[i].Offset)) {
                bDetected = true;
            }
        }
    }

    return result(bShowType, bShowVersion, bShowOptions);
}