No, it is not illegal to move company assets offshore. However if you do not declare the existence of the assets to the tax authorities than this is breaking the law.

 Any assets which you have control whether domestic or offshore, are usually liable to taxes in your home jurisdiction.