FAIR/CBM capabilities for charm and dilepton studies