// Author: DosX
// E-Mail: collab@kay-software.ru
// GitHub: https://github.com/DosX-dev
// Telegram: @DosX_dev

// https://github.com/NUL0x4C/AtomPePacker
init("packer", "AtomPePacker");

function detect(bShowType, bShowVersion, bShowOptions) {
    if (PE.is64() && PE.compareEP("4053574883EC**65488B1C25........FF15**......BA........41B8........488BC8")) {
        bDetected = true;
        sOptions = PE.isSectionNamePresent(".ATOM") ? "x64 stub" : "modified";
    }

    return result(bShowType, bShowVersion, bShowOptions);
}