// Detect It Easy: detection rule file
// Author: horsicq <horsicq@gmail.com>
// Enhanced by: DosX

// https://www.wwpack32.venti.pl/
meta("packer", "WWPack32");

function detect() {
    if (PE.compareEP("53558be833dbeb$$e8000000005d3e807d....0f84........6083ed..33c033c9")) {
        sVersion = "1.XX";
        bDetected = true;
    } else if (PE.compareEP("53558be833dbeb$$e800000000582d........8be850")) {
        sVersion = "1.XX";
        bDetected = true;
    } else if (PE.compareEP("5355508be833dbeb$$e800000000582d........8be850")) {
        sVersion = "1.XX";
        bDetected = true;
    } else if (PE.isDll() && PE.section[PE.nLastSection].Name === ".WWP32") {
        bDetected = true;
    }

    return result();
}