322 points · by StefanBatory · 1y ago · 169 comments
I would imagine many things from the SecuROM era live on in Denuvo.
But if you read the article you will realize that certain games will not work in the future due to Denuvo.
"This destroyed any exception-based hooking since majority of the time an exception is triggered, Windows will write an EXCEPTION_RECORD high up in unused stack space. You can probably see where this is going. Now, whenever the CPUID is hooked via an exception, that important value will become overwritten with an EXCEPTION_RECORD, causing undefined behaviour later on. I believe this can be bypassed if you attach a debugger to the process and set certain flags when it comes to exception handling, but the method of patching every hardware check is still cumbersome due to randomness anyway."
As Windows matures, behaviour can change, breaking certain stuff.
How do you expect the aforementioned tech to break the games it's on? If anything it "breaking" will just make the anti-tamper feature ineffective.
Such was the case for SecuROM in early days. It featured the CRC checks mentioned, if any single byte was changed, including an INT (breakpoint) instruction, it would crash. Here it's unlikely that it wont crash. Rendering the game inoperable.
That's basically the whole point of any anti-tamper product. I just think you picked a terrible example of a feature that could break due to OS changes specifically.
> Meaning that if Windows ever were to overwrite that region for whatever reason, will trigger the crash.
We're talking about random stack memory inside of a virtual machine that likely doesn't call any external code whatsoever. There should be no real way for Microsoft to accidentally corrupt this memory.
I wonder if that's because they want to avoid these kinds of future incompatiblities with the underlying OS as it evolves.
This is how a VM push looks like:
temp[0]=add(mem[e268], fffffffffffffff8)
mem[temp[0]]]=mem[e560]
mem[e268]=temp[0]
(vmreg_e268 is stackpointer, its decremented and stored in tempreg, then the value of vmreg_e560 is copied to stackpointeraddr, then new stackpointervalue is written back)But i quickly lost interest when it became MBA galore:
temp[7]=sub(add(add(and(mem[ebe8], b2f7), 3fd8), xor(lshr(mem[ebe8], 1), 2684)), lshr(add(mem[ebe8], b2f8), 1))
temp[d]=or(sub(sub(4ad, temp[7]), xor(and(shl(temp[7], 1), 95c), 95c)), 8000)
temp[e]=lshr(temp[d], 1)
temp[11]=lshr(add(temp[d], 8001), 1)
mem[ebe8]=sub(xor(xor(temp[e], 3fff), temp[11]), shl(and(and(temp[e], 3fff), temp[11]), 1))
(looks like its doing some operation with a constant to vmreg_ebe8, but obfuscated by MBAs and most likely the result won't ever being used, so its just noise to drown out the real operations)BTW: anyone aware of LLVM optimizer passimplementations that can deal with MBAs ?
It is a C++ implementation of SiMBA [1] - a tool to handle linear MBAs, made available by Denuvo itself. Denuvo have another tool - Gamba for handling some variety of non-linear MBAs. And then further improvisation by another researcher - MSiMBA [3].
SiMBA++ since written in C++, it is fast and it integrates well into the LLVM passes to automatically identify the MBAs and replace them in the LLVM IR with simplified expressions. So no additional work required.
Shameless plug - me and my colleague (author of SiMBA++) recently gave a talk about using LLVM for deobfuscation of WASM, where we talk about MBAs, SiMBA++ etc. The idea is not limited to WASM, it is language agnostic once you have a binary lifted to LLVM IR. https://www.youtube.com/watch?v=gKRdOcuXbYI
[1] SiMBA - https://github.com/DenuvoSoftwareSolutions/SiMBA [2] Gamba - https://github.com/DenuvoSoftwareSolutions/GAMBA [3] MSiMBA - https://github.com/mazeworks-security/MSiMBA
Your best bet is InstCombine, but likely most of the MBA patterns aren't going to be InstCombine patterns because who writes that kind of code?
In principle, you might see if you can tickle Alive2 (which can map LLVM IR to SMT logic) to see if you can get a peephole optimizer that's querying an SMT solver. But I'm not aware of anyone who's built a pass like that yet, and it's definitely not a regular pass in the compiler.
I had some success with https://github.com/mrphrazer/msynth But its hard to glue this to LLVM.
> anything covered by Denuvo is unavailable even years later
I don't think this is true in the general case.
> Either nobody is willing to crack it (unlikely)
That's exactly what's going on - it's a matter of time-benefit, not "possible." What's groundbreaking with Denuvo isn't that the overall technique is incomprehensible but rather that it's insanely tedious to remove and very difficult to automate. They haven't made some groundbreaking theoretical technique, they've applied so many "standard" ways to obfuscate a binary that it becomes more annoying than it's worth to remove.
Then, the subscription can be allowed to lapse… and the game can be preserved, at least to the extent to which it can run without servers. If we have any belief in the “games as art” idea, this seems like a good result for preserving art.
Of course, this means that casuals like me get a much better experience than their core, dedicated, day-1 customers ... but really, that sort of contempt for your core audience is a foundational principle of AAA these days.
No, the most important thing about Denuvo is that PC gamers are forced to upgrade their hardware because Denuvo is such a performance hog. All you have to do is wait until Denuvo is stripped and the game will run much faster.
Frankly, it wouldn't surprise me if there's a conspiracy between Denuvo and Intel/AMD/NVIDIA where Denuvo goes out of their way to hurt performance on a really popular title, thus forcing people to upgrade.
Idiot writers at gaming websites claim a new patch to a game that's been out for a while has "optimizations" and lauds the developers for slaving away to make an already-finished game faster. The reality is that they just stripped out Denuvo.
> One can see that Denuvo does indeed intervene from time to time, but what one can clearly see: It doesn’t do that very often, definitely not every frame.
> It’s only once every few seconds. Even less, sometimes it doesn’t do anything.
> To me personally, it tells that Denuvo executes checks so infrequently, that the likelyhood of it causing major performance issues seems rather low.
https://momo5502.com/posts/2024-03-31-bypassing-denuvo-in-ho...
That sounds like a marketing claim. There's a bunch of denuvo-protected games that have been cracked. As far as I am aware, although I am not completely up to date, there are more denuvo-protected games that have been cracked than not.
For awhile I feel like there were monthly headlines along the lines of "Denuvo cracked within hours of game release" (e.g. https://www.techspot.com/news/71543-denuvo-protected-games-n...).
(I agree that Denuvo is generally effective for its goals, especially at game launch when it is most valuable. It's just not infallible, by any stretch.)
I think some of the recent 'cracks' were mostly errors by the developers, allowing the demo of a game to load the full data files or shipping an unprotected EXE on accident somewhere (sometimes they leave a debug EXE lying around).
Most "cracked" denuvo games are games cracked AFTER denuvo was removed by the publisher in an update (usually 6 months after release)
Just look at the Yakuza/Like a Dragon games
The claim was that games protected by denuvo are uncracked years later.
What is happening right now is important and interesting, too, but not the claim the person I replied to made.
"anything covered by Denuvo is unavailable even years later" just isn't true. And that's what I was replying to.
Sure!
That wasn't the claim made by the person I replied to. They said "anything covered by Denuvo is unavailable even years later." which isn't true. That's what my comment is about.
If it can run on your PC when copy-protected, it means at some point the CPU executed the right instructions, so a crack is always possible to create. It's just a matter of how much effort and time is it to reverse-engineer it. You cannot copy-protect software indefinitely.
I remember feeling cool as fuck as a teenager because I cracked GTA 3 by dumping the live memory of the binary post decryption. Of course it's been 25 years, so the status quo has improved by a lot and god knows how many man-years and kWh are wasted on copy protection.
Denuvo is also not a massive target because there are too many games nowadays to care about a specific one. The exception was when "Hogwarts Legacy" was released with Denuvo, and people went crazy for a crack which was delivered just 13 days later.
For example, physical FPS exploits include devices that sit in the HDMI/DP chain with a USB output and emulate a keyboard and mouse.
He had no idea how to sell it. After it sitting around for awhile, I tried pitching the technology to few friends in VC, who had absolutely no idea what I was talking about.
It bothered me for a long time to see such a culmination of talent and effort get 0 reward for it. I've wondered if such technology would be interesting to some large publisher to just buy outright, bringing their anti-piracy in-house rather than relying on Denuvo. Any ideas/help appreciated :)
This seems like an odd claim _especially_ for indie games. Indie games tend to already have trouble attracting buyers, it feels like anyone considering pirating it would just move on if they couldn't do so.
0. https://www.gamedeveloper.com/business/so-52-45-of-people-pl...
Personally, Steam's about where I draw the line. They've given me enough value as an ecosystem and their native 'DRM' doesn't seem that obtrusive, so they've got a lot of my money over the years.
I've regretted every single time I happened to buy a game, which turned out to have other DRM or any form of 'anti cheat' client side. They just never work in the long run.
I pirated GTA5 to test it on my machine back in the days. Textures popped in seconds later because the HDD was way too slow to handle the game. I prefer pirating a game over dealing with refunds. I have it for free from Epic. Would I buy it now? No. I don't like the game at all after playing for 4 hours.
What is my favorite single player game? Cyberpunk. Do I share that information? Yes.
It's a shame that OP didn't add a tracker to the pirate plea button. I would wager that he made practically zero sales from it - looking at how well donations seem to work in software development in general. I think that this is why microtransactions work well. They give away a nerfed version of the game for free, and after the player formed an attachment to it, the game can be upgraded for a price. In a way, this is a much more human design, than forking up the entire cost in advance.
My thought regarding indie games were successful ones though. Something like Celeste or Balatro.
The main problem with this is that some of us who buy indie games specifically buy them because they are available on DRM free platforms like Itch.io and GoG.
Adding DRM is just going to stop me from ever wanting to purchase the game. Its the same problem with Steam sucking up indie devs who started to only release on Steam. Will never purchase their game on a platform where I can't keep my own offline backup for when the service eventually fails.
I was right there with you with this opinion back in the day. Distribution was terrible, people didn't have near 24-7 access to internet. The times have changed. You're also not 11 years old anymore. You can afford to pay your peers in your industry.
Or what if they want to play the game they bought on different computers they own?
Or what if they're troubleshooting something?
What about when I wanna play the game again in 10 years and your activation servers are down?
> You're also not 11 years old anymore. You can afford to pay your peers in your industry.
I haven't pirated a game in forever, and as a paying customer, I'm harmed by anti-piracy measures. Pirates usually get a better experience since crackers strip out the DRM.
I didn't play MH:World on PC but from what I have seen MH:Wilds suffers from piss-poor optimization that is unrelated to the (two!) DRM they have put in. It may be Denuvo, but from what I've seen, it is just the usual laziness that is prevalent in most AAA games today. Instead of spending the performance budget where it matters by having programmers collaborate with artists, they just throw everything at the engine which ends up overwhelmed and in turn throws everything to DLSS and framegen resulting in an ugly mess (but a raytraced ugly mess!) if you don't have the latest overpriced hardware.
And it may be the same problem with Denuvo. Denuvo doesn't have to cause massive performance problems, but developers have to implement it correctly, using license checks sparingly, and certainly not in performance-critical code.
Also note that when the publisher removes Denuvo, it may also come with other performance optimizations, not everything comes from the removal of Denuvo.
You are not wrong about the additional failure of AAA to keep their games optimized but the ways denuvo affects performance are particularly insidious.
The world is less fun with less art and games. And those require money to be made. The cost of securing that or making legitimate purchases cheaper (broadening the legal market) may be the initial online requirement and potential performance impacts.
Again, I'm not saying Denuvo is or is not a net in one way or the other. Just that there is room for gray.
That's an extremely naive take that shows some stark ignorance of the tech and market forces at work.
From a tech standpoint, Denuvo negatively impacting performance has been debunked many times over (see my previous post about that).
On the economical side, you need to realize that whenever you are playing and enjoying a game, it's most likely due to the fact that the previous games sold by that developer have been successful in making money, which was most likely made possible by Denuvo.
In other words, making piracy harder allows the next generation of games to be created.
There is pretty much zero evidence that this is true and some credible evidence that it is untrue.
For example, plenty of games have had Denuvo removed after a few months by the publisher and showed zero improvement in performance.
This fake narrative is being pushed by software pirates bitter that Denuvo is being so effective at preventing them from stealing games.
So like, no? are you a denuvo associate? Or what's the story here, what are your credentials?
Do you also abstain from other DRMs as well, or just some in particular? They can be quite nasty, and mobile games are also pretty horrible for privacy as well. As a compromise for myself, I use a separate Windows for gaming, and I have almost no real data on that partition.
[1] https://www.reddit.com/r/Asmongold/comments/119x8ht/heres_em...
Nowadays, there is no way I could do it, I tried to get back into hackthebox recently and the new RE challenges make my brain hurt.
Are you sure about that? I have a ROG Ally running Bazzite and I have played several games on this page[0] that use Denuvo.
0: https://store.steampowered.com/curator/26095454-Denuvo-Watch...
DRM's primary purpose is to force consumers into an ultimatum: accept our inflated pricing and enforced inconveniences, or get nothing at all. For some products, this is part of their brand identity, since they bill themselves as "premium" or "AAA". For others, it's enforcement of their monopoly control (e.g., sports broadcasting). In all cases, it's treating the consumer like a disposable and squeezable commodity, which isn't necessarily inaccurate for some products and their target audiences, but certainly isn't the only way to do business.
If you cut down the difficulty of cracking a game, and generally made it easier to pirate, wed just have a nice cracked Steam store anyone can download any play anything they want, do you really think thats going to help the market?
2. Characterizing the buying and selling of a goods, a non essential like a video games no less, as an "ultimatium" is ridiculous. By pirating youre just subsidizing the cost of the game onto people who paid for the game legitimately.
You developed the game, you have the right to charge whatever you want for it.
Perhaps there are arguments to be made since copies of digital goods are essentially free, but this isnt it
The legitimate buyers do have.
Who you want to annoy more - the people who gives you money or the people you never heard and you would never hear about?
The experience for me, when I buy a game, is that I either don't buy one with DRM, or, I buy one that _might_ work, and then I spend a little while trying to get the right version of Proton that runs correctly, and get banned / blocked temporarily for switching my machine identifiers or something too much.
It really is a sick joke that the experience for gaming, music and video is all far, far better for those who _don't_ pay than for those who do.
Denuvo is effective enough that if a game has it, it is almost impossible to pirate. So in most cases, it is either pay or do not play the game at all.
There was one key player who knew how to crack Denuvo DRM. They went by the name Empress but haven't cracked anything in the past year, and also mentally deranged, often including very transphobic rants in the NFO file of the torrents they release.
That's still a net win for the pirate I'd argue; for them it's zero steps to "don't play the game at all", for someone like myself it's pay->waste time trying to get it run and fail->refund/no-refund.
It's self fulfilling though. Some people won't behave nicely if a game comes with Denuvo.
I can understand the argument against DRM in general and owning things you buy, but that seems like a different problem.
The disk space usage is weird, but 100mb to 300mb executables is irrelevant in the age of terabyte drives and 50gb game installs.
Nice to confirm that there was no way I was ever going to notice its impact.
Is she (he?) still schizoposting via homophobic and transphobic .nfo files, combining super natural female moon goddess intuition with deep rooted cracking knowledge and has a growing telegram community full of G*mer simps?
For those not in the know, empress is/was THE famous denuvo cracker with a rather... eccentric online presentation of themself.
Nobody knows what happened after, or whether he reached a deal with Denuvo or anything else. But Empress did arrive some time after he got arrested, so it could be speculated. He has denied it himself however, on multiple occasions, but even if he is Empress it's obviously something you won't expect him to admit after all that's happened.
Don't play AAA slop
op is top
F DRMs though. Good news is those AAA games are rarely worth anyone's time anyways. Better spin up indies or classic games - a good SNES game is worth a hundred of those garbo AAA license rehashes.
Generating an image or sound is seemingly child's play compared to actual complex software tasks. There's not 1,000 different open source DRM codebases you can train against. It's not a diverse field.
Generating code to do script kiddie hooking? Sure. Reversing a complex multi-tiered obfuscation and trust platform? Yeah, right.
There’s also multiplayer as anti piracy. It is impracticable to spoof unseen, complex server code forever.
Environment Integrity is the most flexible. That means you can’t pirate because you can’t sideload code that doesn’t belong to you, and that a remote license check cannot be spoofed. The environment also has to provide enough incremental value in updates that most people will keep auto-update on. Although, of course, Apple could force updates.
To me, the problem is how to avoid this conversation altogether. The kind of person who has the personality defect that makes him post rants about DRM doesn’t listen long enough to figure out “validity” in games.
Like imagine when people invoke that word, “valid.” This is what DRM is about to audiences, not technology. Video games are aesthetic experiences, you don’t have to play them to survive, to me it is valid to consider anything related to the game, like its DRM or the development team or whatever, as fair game for “valid.” But.
If you don’t think Denuvo is valid, you don’t think “AAA single player games on PC” is valid. And maybe that’s okay, maybe you can only go to iOS or the Switch or PS5 (Environment Integrity DRM) for AAA single player. There are no indie developers on consoles, so suddenly, you are also saying, “the only place for single player that costs money to make for self published is iOS.”
This is why I personally find the crusade against Denuvo so ironic: the people who could take the biggest creative risks and reap the most reward, including the right to keep making whatever it is they want, benefit the most from Denuvo.