← blog index

Some interesting {de/re}compilation projects

Commodore BASIC blogpost, repo, diploma thesis

NESgen paper repo

Albion, X-Com: UFO Defense (UFO: Enemy Unknown), X-Com: Terror from the Deep, Warcraft: Orcs & Humans repo

Frontier: First Encounters repo, archived website

Devilution repo

Syndicate Wars Port website

NFSIISE repo

StarCraft for Pandora repo

example C code:

int sub_401310(int a1, int a2)
{
u32 eax = (u32)a1;
u32 ecx;
u32 edx;
u32 esi;
u32 edi;

if (eax != 0)
goto loc_40131D;
eax = (u32)a2; // arg_0
eax += 4;

loc_40131D:
esi = *(u32 *)(eax);
if (esi == 0)
goto loc_401351;
edx = *(u32 *)(eax+4);
if ((s32)edx > 0)
goto loc_40132F;
edx = ~edx;
goto loc_40133A;

loc_40132F:
edi = *(u32 *)(esi+4);
ecx = eax;
ecx -= edi;
edx += ecx;

loc_40133A:
*(u32 *)(edx) = esi;
ecx = *(u32 *)(eax);
edx = *(u32 *)(eax+4);
*(u32 *)(ecx+4) = edx;
*(u32 *)(eax) = 0;
*(u32 *)(eax+4) = 0;

loc_401351:
return eax;
}

pokeruby repo

goldeneye_src repo

n64decomp/majora repo

n64decomp/oot repo

n64decomp/sm64 repo

KAIN2 repo