If the person marries a U.S. citizen, they may be eligible to apply for permanent residency (a green card) through their spouse. Once they have obtained permanent residency, they can then apply for naturalization after meeting the eligibility requirements.
As for visiting Brazil, the person's student visa status may allow them to travel outside the United States and return as long as they maintain their student visa status and comply with the terms and conditions of their visa. However, it's important to check with the U.S. Citizenship and Immigration Services (USCIS) and/or the Brazilian consulate or embassy for the most up-to-date information and guidance regarding travel while on a student visa.