Plants with certain medicinal values are a good source for isolating function-specific endophytes. Rosa roxburghii Tratt. has been reported to be a botanical source of antimicrobial compounds, which may represent a promising candidate for screening endophytic fungi with antimicrobial potential. In this study, 54 endophytes were isolated and molecularly identified from R. roxburghii. The preliminary screening using the plate confrontation method resulted in 15 different endophytic strains showing at least one strong inhibition or three or more moderate inhibition against the 12 tested strains. Further re-screening experiments based on the disc diffusion method demonstrated that Epicoccum latusicollum HGUP191049 and Setophoma terrestris HGUP190028 had excellent antagonistic activity. The minimum inhibitory concentration (MIC) test for extracellular metabolites finally indicated that HGUP191049 had lower MIC values and a broader antimicrobial spectrum, compared to HGUP190028. Genomic, non-target metabolomic, and comparative genomic studies were performed to understand the biosynthetic capacity of the screened-out endophytic fungus. Genome sequencing and annotation of HGUP191049 revealed a size of 33.24 megabase pairs (Mbp), with 24 biosynthetic gene clusters (BGCs), where the putative antimicrobial compounds, oxyjavanicin, patulin and squalestatin S1 were encoded by three different BGCs, respectively. In addition, the non-targeted metabolic results demonstrated that the strain contained approximately 120 antimicrobial secondary metabolites and was structurally diverse. Finally, comparative genomics revealed differences in pathogenicity, virulence, and carbohydrate-active enzymes in the genome of Epicoccum spp. Moreover, the results of the comparative analyses presumed that Epicoccum is a promising source of antimicrobial terpenes, while oxyjavanicin and squalestatin S1 are antimicrobial compounds shared by the genus. In conclusion, R. roxburghii and the endophytic HGUP191049 isolated from it are promising sources of broad-spectrum antimicrobial agents.