Should I write a rebuttal for all for the reviewers or just the rejecting reviewers?
You should address comments from all the reviewers, but focus on responding to the negative reviews.

Also, it's always good to say something generic like "we thank all four reviewers for their time and thoughtful comments".

If the reviews include questions, definitely respond to those questions. If the reviews include helpful suggestions, acknowledge them and say that you will implement them in the final version.

When responding to the negative reviews, acknowledge what they have said and then explain why you think differently. Avoid sounding combative.