Hepatocellular carcinoma (HCC) is a highly prevalent and fatal cancer. The role of PANoptosis, a novel form of programmed cell death, in HCC is yet to be fully understood. This study focuses on identifying and analyzing PANoptosis-associated differentially expressed genes in HCC (HPAN_DEGs), aiming to enhance our understanding of HCC pathogenesis and potential treatment strategies. We analyzed HCC differentially expressed genes from TCGA and IGCG databases and mapped them to the PANoptosis gene set, identifying 69 HPAN_DEGs. These genes underwent enrichment analyses, and consensus clustering analysis was used to determine three distinct HCC subgroups based on their expression profiles. The immune characteristics and mutation landscape of these subgroups were evaluated, and drug sensitivity was predicted using the HPAN-index and relevant databases. The HPAN_DEGs were mainly enriched in pathways associated with the cell cycle, DNA damage, Drug metabolism, Cytokines, and Immune receptors. We identified three HCC subtypes (Cluster_1, SFN+PDK4-; Cluster_2, SFN-PDK4+; Cluster_3, SFN/PDK4 intermediate expression) based on the expression profiles of the 69 HPAN_DEGs. These subtypes exhibited distinct clinical outcomes, immune characteristics, and mutation landscapes. The HPAN-index, generated by machine learning using the expression levels of 69 HPAN_DEGs, was identified as an independent prognostic factor for HCC. Moreover, the high HPAN-index group exhibited a high response to immunotherapy, while the low HPAN-index group showed sensitivity to small molecule targeted drugs. Notably, we observed that the YWHAB gene plays a significant role in Sorafenib resistance. This study identified 69 HPAN_DEGs crucial to tumor growth, immune infiltration, and drug resistance in HCC. Additionally, we discovered three distinct HCC subtypes and constructed an HPAN-index to predict immunotherapeutic response and drug sensitivity. Our findings underscore the role of YWHAB in Sorafenib resistance, presenting valuable insights for personalized therapeutic strategy development in HCC.