Gene function annotation - bacterial genome
The PATRICBrc.org is a free resource you can annotate your genome and compare it with publicly available genomes.

Refer this tutorial for more detail.

Once you have annotated your genome in PATRIC, you will have PATRIC Local families (k-mer based protein family), which will help you identify all genes with a specific function.