You said it yourself, if you bring up the subject, you will get fired based on the company's past actions. Don't kid yourself, they know that what they are doing is illegal. They don't care. It is called wage theft and very few companies do it unknowingly.
If you want to force the issue, document every bit of overtime you do and make paper backups of the documentation that you store off-site. Then when you leave, you can hire a laywer and sue for back pay. In fact before you do anything, consult a lawyer to see what type of proof you would need. The lawyer may get most of the back pay, but you should still get some.
However, in a small country or city, this could easily get known in the industry and make it harder to get another job. That is part of the risk of being a whistle-blower and only you can factor in how much this will affect your ultimate decision.
Other alternatives are:
Go to work for a better company, one that follows the law or at least one that expects fewer hours.
Start your own company and pay workers properly and don't force people to work long hours. Contract out to companies like the one you work for and show them that long hours causes more work.
Start freelancing rather than working for a company. Then you can work whatever hours you want and you can get paid for all of them.
Change to another industry where the long hours are not the norm. Or stop working for hi-tech companies and do development work for other types of companies. Check out other industries and govenrment positions to see what types of industries are less liekly to be so exploitive. I know around here, government projects are far less likely to require the ridiculous hours of overtime. Check around your country to see what works best. But above all stay far far away from anything that is close to being a start-up or owned by one or two individuals.
Network with others in the high tech industry. You may find a better place to work from getting better known in your own industry. Working conditions tend to be better in places where they actively recruit the best talent.