// Author KDSS-Research

init("Installer", "Autorun Pro Enterprise");

function detect(bShowType, bShowVersion, bShowOptions) {
    bDetected = true;
    if (!PE.isSectionNamePresent(".rsrc") || PE.isSectionNamePresent("CODE")) {
        return null;
    }
    var n1 = PE.findString(PE.section[".rsrc"].FileOffset, PE.section[".rsrc"].FileSize, "9AutoRunObjects");
    var n2 = PE.findString(PE.section[".rsrc"].FileOffset, PE.section[".rsrc"].FileSize, "AutoRunObjects");
    if (n1 == -1 && n2 == -1) {
        bDetected = false;
    }
    return result(bShowType, bShowVersion, bShowOptions);
}