Building upon the CO2-ECBM technology (CO2-Enhanced Coaled Methane Recovery Technology), hot flue gas injection for displacing coalbed methane has been proposed to improve methane recovery efficiency and reduce the costs associated with CO2 capture during the displacement process as well as flue gas desulfurization and denitrification at coal-fired power plants. To explore the microscopic mechanisms of displacement and the influence of functional groups, this study used Molecular Dynamics (MD) and Grand Canonical Monte Carlo (GCMC) methods with Materials Studio software to model slit pores grafted with various functional groups for gas adsorption simulations. The adsorption characteristics of eight key functional groups (-C=OCH₃, -COOH, -CH₂OH, Ar-OH, -OCH₃, -C6H6, -CH₃, -CH₂) for hot flue gas and methane were analyzed, focusing on adsorption strengths and underlying mechanisms. Simulations of the dynamic injection of hot flue gas were conducted, monitoring energy changes and methane density distribution to establish the relationship between adsorption strength and the difficulty of coalbed methane (CBM) displacement. The results indicate that in this simulation, the methane displacement efficiency using hot flue gas to displace coalbed methane exceeded 98%, demonstrating significantly better displacement performance compared to the use of pure carbon dioxide or nitrogen. Although both methane and hot flue gas show that greater interaction energy with pores makes displacement more difficult, the underlying causes differ. A comparison of the interaction energies between different functional groups and various gases reveals that oxygen-containing functional groups (-C=OCH3, -COOH, -CH2OH, Ar-OH, -OCH3) are unfavorable for the displacement of coalbed methane by wet hot flue gas, whereas aliphatic hydrocarbons (-CH3, -CH2) facilitate the displacement process.