Parts/scrap value. If someone hauls it off for free you're ahead. You won't have to fork out insurance, registration, etc. for it once it's gone. Remember: vehicles are NOT investments, they depreciate and (like this Camry) wear out & require maintenance. If you liked this car & got good use out of it look for another one, in which case you may want to pick parts off it, or start looking for other transportation appliances. If, as you say, everything else works fine on it, save up or borrow $ (if you can) for an engine rebuild.
Unless you're flush with cash, don't buy new. Get what you can afford to pay for outright - no loans! Then, when the first loan payment & insurance premium *would have* come due, take that money and either fix anything that you may want fixed on your vehicle, or sock it away as "Oh, Sh!t" money for reserve for when something needs fixing. It's ironic that banks will lend money for car loans of $20k+ but not to fix a paid for vehicle (a few hundred $ to a few thousand at most). This has put many people in a financial hole. Don't be that guy. Be the guy/gal with the best kind of car: Paid For.