There is a lot to consider (transfer pricing, tax residence of the Singapore/foreign company) but what you propose is possible, although it might not be entirely realistic to get it down to zero tax for the company and it might end up costing more than your tax savings.
However, you still haven't solved for how to pay yourself. You'd need to make sure that what you end up paying yourself is taxable as capital gains.
If you just transfer funds from Singapore to yourself, you might still be looking at full federal and state income tax, just as you would if you had just operated the business as an LLC. So then you've spent time and money on setting up a foreign company just to end up on the same taxable income as before, or more if the Singapore company qualifies as tax resident in the US and is liable for tax as an S or C corp.
Speak with a tax advisory firm with international reach. Toggle signatureThis is the probably the answer to your question.