Hypertrophic cardiomyopathy (HCM) is a genetic heterogeneous disorder and the main cause of sudden cardiac death in adolescents and young adults. This study was aimed at identifying potential diagnostic biomarkers and biological pathways to help to diagnose and treat HCM through bioinformatics analysis. We selected the GSE36961 dataset from the Gene Expression Omnibus (GEO) database and identified 893 differentially expressed genes (DEGs). Subsequently, 12 modules were generated through weighted gene coexpression network analysis (WGCNA), and the turquoise module showed the highest negative correlation with HCM (cor = −0.9, p-value = 4 × 10−52). With the filtering standard gene significance (GS) < −0.7 and module membership (MM) > 0.9, 19 genes were then selected to establish the least absolute shrinkage and selection operator (LASSO) model, and LYVE1, MAFB, and MT1M were finally identified as key genes. The expression levels of these genes were additionally verified in the GSE130036 dataset. Gene Set Enrichment Analysis (GSEA) showed oxidative phosphorylation, tumor necrosis factor alpha-nuclear factor-κB (TNFα-NFκB), interferon-gamma (IFNγ) response, and inflammatory response were four pathways possibly related to HCM. In conclusion, LYVE1, MAFB, and MT1M were potential biomarkers of HCM, and oxidative stress, immune response as well as inflammatory response were likely to be associated with the pathogenesis of HCM.