Patch Valve's CEG DRM for legally owned games to ensure long-term accessibility and preservation.
Important
NoCEG only works with legally owned games. The game executable that Steam downloads only works with your account and system. NoCEG needs that information to work.
Caution
This should only be used for personal backups. The final executable still has your hardware info, and is illegal to distribute.
NoCEG is a toolkit designed to fully patch out Valveโs CEG (Custom Executable Generation) DRM from legally purchased Steam games. Its main purpose is digital preservation ensuring that games remain playable even after CEG servers are no longer available.
This repository includes three core tools required for resolving and patching CEG protection:
A command-line tool to scan the executable for CEG related functions and export the required information to
noceg.json.
A dynamic library that uses the vectored exception handling to resolve CEG protected functions (both constant and stolen/masked ones) during runtime using the data from the previously generated
noceg.json.
An utility that applies the final patch to a CEG protected executable.
Get the latest binaries from the Releases page.
Run the following command:
noceg_signatures.exe "Path\To\GameExecutable.exe"Or simply drag and drop the executable onto noceg_signatures.exe.
- Rename the original
steam_api.dlltosteam_api_org.dll. - Copy
steam_api.dllfrom the NoCEG package into the gameโs directory. - Place the generated
noceg.jsonfile into the same folder.
Now, launch the game. A confirmation window should appear:
โ "Successfully finished the task!"
The following titles require "ShouldRestart": true in noceg.json:
- Homefront
- The Darkness II
- Star Trek
- F.E.A.R. 3
- Risen 2
To enable this option, update your configuration from:
"ShouldRestart": falseto
"ShouldRestart": trueSome games (e.g. Duke Nukem: Forever) use integrity checks that can detect software breakpoints, which may lead to incorrect values.
If this occurs, switch to hardware breakpoints by updating:
"BreakpointType": 1to
"BreakpointType": 2Drag the original executable onto noceg_patcher.exe.
A modified version will be generated with a suffix like _noceg.exe or _noceg.dll.
- Delete
NoCEGโssteam_api.dll. - Rename
steam_api_org.dllback tosteam_api.dll.
โ 007โข Legends
โ Aliens: Colonial Marines
โ Aliens vs. Predatorโข
โ Bionic Commando
โ Call of Dutyยฎ: Black Ops
โ Call of Dutyยฎ: Modern Warfare 2
โ Call of Dutyยฎ: Modern Warfare 3
โ Deadpool
โ DeathSpank
โ DeathSpank: Thongs Of Virtue
โ Duke Nukem: Forever
โ DiRT Showdown
โ DiRT Showdown Demo
โ F1 2012โข
โ F1 Race Stars
โ F.E.A.R. 3
โ GRID 2
โ Homefront
โ Homefront Demo
โ Just Cause 2
โ Just Cause 2 Demo
โ Kane & Lynch 2: Dog Days
โ Kane & Lynch 2: Dog Days Demo
โ Lara Croft and the Guardian of Light
โ Lara Croft and the Guardian of Light Demo
โ Madballs in...Babo: Invasion
โ Madballs in...Babo: Invasion Demo
โ Mafia II
โ Mafia II Demo
โ Prototype 2
โ Risen 2
โ Risen 2 Demo
โ Saints Row: The Third
โ Saints Row IV Inauguration Station
โ Sid Meier's Ace Patrol
โ Sid Meier's Ace Patrol: Pacific Skies
โ Sid Meier's Civilization V
โ Sid Meier's Civilization V Demo
โ Sniper Elite V2
โ Sniper Elite Nazi Zombie Army
โ Sniper Elite Nazi Zombie Army 2
โ Spec Ops: The Line
โ The Amazing Spider-Man
โ The Bureau: XCOM Declassified
โ The Darkness II
โ The Darkness II Demo
โ The Lord of the Rings: War in the North
โ Viking: Battle for Asgard
โ Warhammer 40,000: Space Marine
โ Warhammer 40,000: Space Marine Demo
โ XCOM: Enemy UnknownThese are using allocated buffers for CEG protected functions and are not supported at this point:
- โ F1 2013โข / F1 2014โข
- โ Call of Dutyยฎ: Black Ops II
- โ Sid Meier's Civilizationยฎ: Beyond Earthโข
- โ XCOM: Enemy Within
To compile this project from source, use Visual Studio 2022.
This project uses the following open-source libraries:
nlohmann/jsonโ JSON for Modern C++memโ Memory utility helperszydisโ Disassembler framework
- Preserve access to the games long after CEG DRM servers shut down.
- Designed exclusively for legally owned copies of games.
- Reverse-engineered with care for accuracy and modularity.
Check LICENSE.
โ ๏ธ This tool is intended solely for educational and preservation purposes.
Please ensure compliance with local laws and terms of service.