Baltimore Catechism...yikes...learned by rote. retained very little. The filtered version of the bible.
If one commits a sin knowingly taking a living sacrament while in the state of mortal sin,
Can I administer baptism, a sacrament of the dead, while I’m in the state of mortal sin ?
The validity of any sacrament is unaffected by the state of grace or state of sin of the minister of the sacrament, or the recipient.
Anyone, baptized or not, can baptize.
Yes, anyone can baptize...so long as they use proper form (”I baptize thee in the Name of the Father, Son and Holy Ghost”) and matter (water) and do what the (Catholic) Church intends.