You need a pak editor such as kimpale's, which is available on
www.helbreathss.tk i think, then you need to open the pak files, save the dialogs you want to replace as BMPs, open in whatever image editing program you use, edit them, save, and reimport back into the pak editor.