You need help from your own CPA.
You seem to be asking about using Business Funds for a different business? Or, Personal Funds for a potential Business?
What matters is, where did the Funds come from, and what right is there to Remove these funds, and if that is a business, what is the relationship between the business Losing the funds and this new activity. Then, what is this New purchase, an Asset sale, an Entity purchase, etc.
None of us on the QB forum can answer these questions. You would need to review them with your own CPA.
Am purchasing an existing business, not sure how to handle transaction.
My current question is how to record the earnest money I paid.
To answer your question
Unless the earnest money was refunded when you settled the sale, it acts as a deposit
if the earnest money was 5K, and the purchase price was 100K
at settlement you had to come up with 95K, cash or loan
Now the question is, is this a business buying another, or is this you buying a business?
And if this is a business buying another business, then the entity types matter as well.