So the knowledge embodied in genes is knowledge of how to get themselves replicated at the expense of their rivals. Genes often do this by imparting useful functionality to their organism, and in those cases their knowledge incidentally includes knowledge about that functionality.