It resides in: hypothalamus.
One of hypothalamus' main function in Central coordination of vertebrate biological rhythms is to regulate the production of hormones.
The level of hormones in our body could determine how we response to a certain things and would heavily affect our overall behavior.