The results indicated that the TP53 and LRP1B acted as the key genes in regulating the immune phenotypes of HCC via EPCAM. Here, TP53 is linked to hepatocellular carcinoma.