The key pathways of KXYA on HBV-related HCC were Cancer, Hepatitis B, Viral carcinogenesis, Focal adhesion, and PI3K-Akt signaling, and KXYA treatment could regulate the expression of the key genes including HNF4A, MAPK8, NR3C1, PTEN, EGFR, and HDAC1. The KXYA exhibited a curative effect via inhibiting proliferation, migration, and promoting apoptosis of HBV-related HCC and the pharmacological mechanism was related to the regulation of the expression of HNF4A, MAPK8, NR3C1, PTEN, EGFR, and HDAC1. Here, MAPK8 is linked to hepatocellular carcinoma.