Like 15 years ago Steam launched CEG (Custom Executable Generation) - I remember reading a write-up a while ago, but each user had a customer launcher generated on install I think, and I think there was an extra segment put into the .exe file and that was put to use somehow, though I don't know if CEG is still a thing.
CEG is long dead/was broken immediately in a pragmatic, automatable way.