// Made by KDSS-Research
// Contact Me: koffidev365supp@gmail.com

// Rewritten by: DosX

init("packer", "CX_Freeze");

function detect(bShowType, bShowVersion, bShowOptions) {
    var rdataSection = PE.section[".rdata"];

    if (rdataSection) {

        bDetected = (PE.findString(rdataSection.FileOffset, rdataSection.FileSize, "Unable to change DLL search path!") !== -1 &&
            PE.isSignaturePresent(rdataSection.FileOffset, rdataSection.FileSize, "25006C0073005C006C00690062005C006C006900620072006100720079002E007A00690070003B0025006C0073005C006C0069006200") &&
            PE.findString(rdataSection.FileOffset, rdataSection.FileSize, "Out of memory creating sys.path!") !== -1 &&
            PE.findString(rdataSection.FileOffset, rdataSection.FileSize, "Unable to calculate directory of executable!") !== -1);

    }

    _setLang("Python", bDetected);

    return result(bShowType, bShowVersion, bShowOptions);
}