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

meta("compiler", "Kotlin");

function detect() {
    if (PE.isNet()) return; // Doesn't support .NET

    const rdataSection = PE.section[".rdata"];

    if (rdataSection && PE.isSignaturePresent(rdataSection.Offset, 512, "6B006F0074006C0069006E0078002E00630069006E007400650072006F007000")) {
        bDetected = true;
    }

    sLang = "Kotlin";

    return result();
}