Radiation Island .str file
Posted: Tue Apr 12, 2016 3:53 pm
Anyone can help me, please ? Thanks
Code: Select all
//--------------------------------------
//--- 010 Editor v5.0 Binary Template
//
// File: strings_EN.str
// Author: wrs
// Revision: 1
// Purpose: read entire file
//--------------------------------------
uchar hdr[6];
ushort num;
uint vals[num +1];
struct str(int len)
{
wchar_t xor_str[len];
// xored by 0x63?
};
local int i=0;
while(i<num)
{
str String(vals[i+1]-vals[i]);
++i;
}
Assert(FTell() == FileSize());
Thanks so much. But do you think this file is encrypted ???WRS wrote:resulting strings do not look english!Code: Select all
//-------------------------------------- //--- 010 Editor v5.0 Binary Template // // File: strings_EN.str // Author: wrs // Revision: 1 // Purpose: read entire file //-------------------------------------- uchar hdr[6]; ushort num; uint vals[num +1]; struct str(int len) { wchar_t xor_str[len]; // xored by 0x63? }; local int i=0; while(i<num) { str String(vals[i+1]-vals[i]); ++i; } Assert(FTell() == FileSize());
Code: Select all
//--------------------------------------
//--- 010 Editor v5.0 Binary Template
//
// File: strings_EN.str
// Author: wrs
// Revision: 1
// Purpose: read entire file
//--------------------------------------
uchar hdr[6];
ushort num;
uint vals[num +1];
struct xorstr(int len)
{
wchar_t xor_str[len];
local int str_len = len;
};
typedef xorstr xstr <read=GetXorString>;
string GetXorString(xstr &t)
{
wstring res = L"";
local int l=0;
while(l < t.str_len) {
res += (wchar_t)(((uint)t.xor_str[l]) ^ 0x6363); ++l;
}
return WStringToString(res, CHARSET_ANSI );
}
local int i=0;
while(i<num)
{
xstr String(vals[i+1]-vals[i]);
++i;
}
Assert(FTell() == FileSize());