Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Constructor (2017) .FIL archives header decryption

Featured Replies

  • Author
  • Localization

Siberian GRemlin, posted Fri May 26, 2017 5:28 am (23532)


Good Day.

Looks game uses some kind of cycled XOR encription for archives header. I found some regularity and tryed to rebuild xor sequence, but no luck with bytes different from zero.
Code:
  xo1:=$d9;
  for k:=0 to $FF do begin
    cryp[k]:=xo1;
    if k mod 2=1 then xo1:=xo1-1;
    if k mod 8=0 then xo1:=xo1 $B;
    if k mod 8=2 then xo1:=xo1 $3;
    if k mod 8=4 then xo1:=xo1-$5;
    if k mod 8=6 then xo1:=xo1 $3;
    if k mod 16=7 then begin
      if ((k shr 4) mod 4)=0 then xo1:=xo1-$30-$10;
      if ((k shr 4) mod 4)=2 then xo1:=xo1 $50-$10;
    end;
  end;


Can anybody help with decryption? Free Demo available on Steam http://store.steampowered.com/app/619760/

Seems first value in header is file count, after that goes 0x30 bytes blocks for each file, that contained padded filename, offset and size.

Raw archive.
Image Image

False decrypted header.
Image
  • Author
  • Localization

aluigi, posted Sun May 28, 2017 11:24 pm (23596)


Yes, useful information but it's an old format (*.fil) and a slightly different encryption (cn.ini).
Script:
http://aluigi.org/bms/constructor.bms

Please let me know if there is any problem with any FIL archive because I had to "guess" if the archive uses the old or new format.
  • Author
  • Localization

Gano, posted Mon May 29, 2017 9:27 am (23605)


FIL archives and cn.ini work without any problems. (Tested with my purchased game)
The TEXT.* files are not decrypted at least not as plain text.
  • Author
  • Localization

aluigi, posted Mon May 29, 2017 11:22 am (23607)


Can you upload a couple of these TEXT files?
There are no *.TEXT in the demo
  • Author
  • Localization

Gano, posted Mon May 29, 2017 12:40 pm (23614)


Sure. Here you go
  • Author
  • Localization

Gano, posted Tue May 30, 2017 3:11 pm (23643)


Any news ? :)
  • Author
  • Localization

aluigi, posted Tue May 30, 2017 4:17 pm (23649)


I did just a "one minute" quick check by using the original obfuscation algorithm with different constants but no luck.
I have only updated the script to catch the "TEXT.*" files because the original script checked the "*.TEXT", anyway these files are NOT supported at the moment.
  • Author
  • Localization

odinboss, posted Mon Dec 17, 2018 8:37 am (41462)


Hi! I have a file ".fil". That I would like to unzip and recompress the files it contains(or is that I suppose).It contains files ".dat", ".bin", ".tiz" and others. It is a file from the year 1999. Is there any possibility of extracting the files?

Quote:
Image


Quote:
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.