Here's what's supposed to happen with ICs in theory:
2 C8H18 + 25 O2 → 16 CO2 + 18 H2O
But, there's other stuff in gasoline besides C8H18. Maybe a touch of S.
And there's other stuff in the air beside O2, mainly N, plus the ambient pollutants borne in the air, which will vary by locality.
No matter how you treat exhaust gasses, with catalytic converters and or octane rating, what goes into combustion is the chemical formula of gasoline and it's family of compounds, plus additives and any impurities not removed during refining, plus all the stuff that's in the atmosphere, plus any tiny amount of oil that the engine might be consuming, and even when combustion is theoretically complete, what comes out is not necessarily pure CO2 and H2O.
To the extent that the gasoline is not "pure" and overall system is not working perfectly, you will also emit H2S, SO2, CO, various NOx, Ozone, Formaldehyde (CH2O), various other HCs and other pollutants.
(Not an authority on IC, but I took AP Chemistry, Quantitative Analysis, Qualitative Analysis, Organic, and AP Physics at Vandy, so I know enough to be dangerous )
13