It’s the fish sauce or possibly shrimp paste, which is often an ingredient in Thai chili paste, such as red chili paste, which is used in pad Thai. Both fish sauce and shrimp paste are fermented and when cooked, they blow off their bad smell (in an odorous cloud), and after that, they smell rich and appetizing.