setting up a company in Thailand is a royal pain in the ass according the expats I know that have tried to do it. basically without bribing people it isn't going to happen and then you are subjected to very different tax standards than locals are. I guess this is how they discourage small business investment, which might actually be good for the locals. I have no idea
But if it is that easy to set up in Vietnam it does sound really silly that your friend tried to do a workaround. No offense, but I'm glad he got busted.