The results further confirmed that risk of HCC was positively associated with ALT (OR = 1.07, 95% CI: 1.05–1.10), AST (OR = 1.24, 95% CI: 1.14–1.34), MASLD (OR = 6.91, 95% CI: 1.50–31.72), percent liver fat (OR = 10.72, 95% CI: 2.08–55.35), and liver iron content (OR = 3.82, 95% CI: 2.53–5.77). This evidence concerns the gene GPT and hepatocellular carcinoma.