none
Extracting DLL/EXE file from NK.bin RRS feed

  • Question

  • This seems like a simple thing to do but I'm having the hardest time doing so. I've got an old NK.BIN that I am trying to copy an exe file and a few dlls from. I opened the file in Visual Studio and I am able to view all the files but there's no way to extract them. On certain files such as shortcuts or a bitmap file, I'm able to right click on it and hit Save As but that's not available on dll or exe files. I tried the extract command in binmod but it tells me that it's unable to locate the specified file. What other options can I try? Thanks!!
    Monday, July 2, 2018 8:59 PM

Answers

  • That's not possible. ROMIMAGE strips all header information of EXE and DLL files (that were placed in the MODULE section) and places just the binary blobs in a certain location in the NK.BIN. Theoretically you should be able to read the TOC and re-create the proper headers yourself, but it's not as simple as you initially thought.

    The only files you can extract AS-IS are the files that were placed in the FILES section (as they are in the NK.BIN AS-IS).


    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: https://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    NXP Proven Partner
    https://guruce.com
    Consultancy, training and development services.

    Interested in WEC on i.MX6?
    Get the only 100% stable and best performing i.MX6 BSP for WEC7 and WEC2013 here: https://guruce.com/imx6

    Tuesday, July 3, 2018 8:57 AM
    Moderator