Breast cancer (BC) is the most common cancer and the most frequent cause of cancer death among women worldwide. The aim of the present study was to identify the critical genes for the diagnosis and prognosis of BC. Two mRNA expression data (GSE29431 and GSE42568) were acquired from the GEO database. The determination of differently expressed genes (DEGs) between BC specimens and nontumor specimens was completed via the LIMMA package of R. GO annotation and KEGG pathway enrichment analyses were applied to explore the function of DEGs. Kaplan-Meier methods were used to determine the prognostic value of DEGs in BC using TCGA datasets. The diagnostic value of the survival-related DGEs were confirmed using ROC assays in two GEO datasets. RT-PCR was used to examine the expression of the critical genes in BC cells and normal breast cells. CCK-8 experiments were applied to explore the function of the critical genes in BC cells. In this study, we identified 31 DEGs between BC specimens and nontumor specimens. KEGG analysis revealed 31 DEGs were involved in PPAR signal path, AMPK signal path, glycerolipid metabolism, adipocytokine signaling pathway, phenylalanine metabolism, tyrosine metabolic process, and glycine, serine, and threonine metabolic process. Four DEGs including CRYAB, DEFB132, MAOA, and RBP4 were observed to be associated with clinical outcome of BC patients. Their diagnostic values were also confirmed in both GSE29431 and GSE42568 datasets. In addition, we analyzed TCGA datasets and confirmed that the results were consistent with GEO datasets. Finally, the results of RT-PCR confirmed that the expression of CRYAB and RBP4 was distinctly downregulated in BC cells. CCK-8 analysis revealed that overexpression of CRYAB and RBP4 distinctly suppressed the proliferation of BC cells. Overall, our findings suggested CRYAB and RBP4 as critical genes for the diagnosis and prognosis of BC patients. They may be used as novel biomarkers for BC patients.