Conversion of units in lammps

It is not per mol of atoms. If you divide that energy value by 6.02E23, you get the total energy in your simulation box (i.e., corresponding to that amount of atoms you have). And then, based on that, you can convert it to match the (per mol) of whatever compound you have.

For more in the topic, you can check: Enthalpy units