Flag: Tornado! Hurricane!


Created: Monday, January 25 2010 17:20.35 CST Modified: Monday, January 25 2010 17:28.55 CST
Printer Friendly ...
Syndicate Wars - a reverse-engineering tale
Author: GynvaelColdwind # Views: 2859

Syndicate Wars is a game published in 1996, created by Bullfrog. The game was written in C (Watcom) for the DOS4GW DOS extender. And of course it has stopped working natively (i.e. without emulators like DOSBox) when the modern operating systems, like GNU/Linux or Windows NT series, emerged.

A few years ago my friend, Unavowed, told me about proposition of a project to create a port of Sydicate Word for modern OS'es like the two previous one I've mentioned. The port was to be done by decompiling the original executable file, locating all the functions from the standard C library, locating the DOS4GW and I/O (sound, keyboard, gfx, mouse, etc) dependencies, replacing them with modern native libc function call and libSDL/OpenAL libraries (sometimes using simple wrappers, other times by creating converters), and finally, recompiling it all to form native executables for the modern systems.

Yesterday, we've finished this project, and we've published executables, not only for GNU/Linux and Windows, but also for Mac OSX :)

Project site (screens, downloads, even a video):
http://swars.vexillium.org/

As for the technical side of the project, I'll describe everything in the next post - it was the biggest reverse-engineering project I've took part in, and I hope you'll too find something interesting in the details for yourselves :)

GNU/Linux:


Mac OSX 10.5:


Windows Vista:


Blog Comments
qaysel Posted: Monday, January 25 2010 18:06.34 CST
I am insanely impressed, really nice work. I loved this game.

fungos Posted: Tuesday, January 26 2010 10:00.48 CST
Congrats. This is really an amazing and insane job. I'm waiting the next articles to have a better insight of your work. It is possible to find a way to do this by some automatic process? maybe with help of a changed DOSBOX emulator to map address (libc, DOS4GW) correctly and dump a marked binary or something like that? I know, its absurd, but I thought trying to do what you have done already an absurd.

GynvaelColdwind Posted: Wednesday, January 27 2010 07:42.18 CST
@qaysel
Thanks ;>

@fungos
Thanks ;>
You idea about using DOSBox to map addresses is great (especially when it comes to mapping non-clib interrupt usage). Hmm, this could also be done in BOCHS, or by tweaking the DOS4GW a little.
As for clib, signatures would do the job :)
I think that it is possible to automate most of process, however sound/gfx might still be a little complicated, since they might have some library layer on top of it.
Anyway, I think that automating this process is possible, and it would be a very interesting project :)

fungos Posted: Friday, January 29 2010 06:06.28 CST
@GynvaelColdwind nice you liked my idea. It would be very interesting and usefull project (mainly to port games to linux *native* in my opinion). But also to bring Syndicate (the first one!) from ashes. :D



Add New Comment
Comment:









There are 21,677 total registered users.


Recently Created Topics
PyEmu error when cal...
Sep/02
Restore Themida/Winl...
Sep/02
Anti-olly technique
Aug/30
RAR Password
Aug/29
Heap protection on W...
Aug/23
Why Inline asm in C+...
Aug/20
Bypassing OllyAdvance
Aug/17
Error in logic for g...
Aug/17
Has anyone seen this...
Aug/17
ARM Executable - Pat...
Aug/16


Recent Forum Posts
reverse engineering ...
raiden56
pydbg, memory breakp...
Researc...
RAR Password
Ineedhelp
RAR Password
cod
Heap protection on W...
voila
Heap protection on W...
j00ru
Heap protection on W...
voila
Heap protection on W...
j00ru
Heap protection on W...
psylocn
Why Inline asm in C+...
ronnie2...


Recent Blog Entries
meshmesh
Sep/01
Is it legal??

waleedassar
Aug/30
Anti-olly technique

QvasiModo
Aug/24
WinAppDbg 1.4 is out!

artemblagodarenko
Aug/18
Dataflow-0.2.0 released. Ne...

grzonu
Aug/17
Bypassing OllyAdvanced

More ...


Recent Blog Comments
tosanjay on:
Sep/02
PyEmu 0.0.2

GynvaelColdwind on:
Sep/01
Is it legal??

PeterFerrie on:
Aug/31
Anti-olly technique

dennis on:
Aug/26
Dr. Gadget IDAPython plugin

halsten on:
Aug/19
Dataflow-0.2.0 released. Ne...

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit