There currently are a variety of options to travel by night train from Rosenheim (Germany) to Tatabánya (Hungary), taking between approximately 8 and 9 hours: Namely the EN 443 and the EN 50237. These lines are operated by MÁV-Start.
MÁV-Start is Hungary's national passenger railway operator, running domestic and international trains connecting Hungary with neighboring countries.