One way to set this up is using some form of consulting/temporary worker company as an intermediate. I was employed in that form for a while. So legally that company hires you and then invoices the U.S. corporation taking a cut. In my case that was Kelly Services and was hassle free (I got my salary as negotiated in time, only interaction I had with them was signing a contract and terminating it) no idea how hard this is to setup or what the cut is they take.