You'll have enough time to go to T1 - it's a 10min-ish walk from T3.
If you are flying J (AUH-DUB, AUH-PER), then you have access to the EY J lounge, which is nice, but can be packed especially around midnight. I would go to the lounge nearest to your gate. The transit and security process can...