microsoft has to operate under some form of law, and most countries have computer fraud laws (especially in the US, where it's a federal law). Writing a program to exploit someone else's machine for your own financial gain is certainly computer fraud, so they would be prosecuted for it.