Re: NK.Bin and binary extraction.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Otaku <otaku@xxxxxxxxxxxxxxxxxxxxx> wrote in
news:fr4yg.3227$v4.3081@xxxxxxxxxxxxxxxxxxxx:

Hi.
[...]
Can anyone shed any further light on the formats involved ?

The contents of the FILES section are added (and usually compressed)
to the image and they could be extracted/replaced using the binmod
tool.
DLLs and EXEs included in the MODULES section are not included in the
..bin file as they are on disk, they are splitted in code, data and
resources sections, R/W data and resources are compressed and R/O
data and code sections are "packed" to be put in slot 1, so I suppose
that you'll have to undo some code relocations, decompress the
resources and put them back in their original format. The process is
somewhat documented in PF help if you search "romimage".
It's not an easy work and I don't know if it can be done at all.
You may use cvrtbin to convert the .bin file to a "flat" ROM image,
if this could speed-up your work.

The new release of the OS should include a tools that allows you to
browse and compare .bin files, but I don't know if it will allow you
to extract files from those files and if it will be backward
compatible with the image format of older releases of the OS.

In this way you'll be able to "unpack" the drivers, but you won't be
able to extract the OAL so you won't be able to add features that
require an OAL modification (ex: handle a new interrupt, unless the
OAL supports loadable ISRs).

--
Valter Minute
(the reply address of this message is invalid)
(l'indirizzo di reply di questo messaggio non è valido)
.



Relevant Pages

  • Re: NK.Bin and binary extraction.
    ... DLLs and EXEs included in the MODULES section are not included in the .bin file as they are on disk, they are splitted in code, data and resources sections, R/W data and resources are compressed and R/O data and code sections are "packed" to be put in slot 1, so I suppose that you'll have to undo some code relocations, decompress the resources and put them back in their original format. ... You may use cvrtbin to convert the .bin file to a "flat" ROM image, if this could speed-up your work. ... The new release of the OS should include a tools that allows you to browse and compare .bin files, but I don't know if it will allow you to extract files from those files and if it will be backward compatible with the image format of older releases of the OS. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: How I can read textfile contained in the exe
    ... I manage to read the textfile using resources and System.Reflection ... I guess I can do the same for the first access 2007 and extract it to a folder. ... The variable executing_assembly is a reference to the executing code, ... The My_Namespace variable is necessary as the resource streams ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How I can read textfile contained in the exe
    ... I manage to read the textfile using resources and System.Reflection ... I guess I can do the same for the first access 2007 and extract it to a folder. ... The variable executing_assembly is a reference to the executing code, ... The My_Namespace variable is necessary as the resource streams are not named "abc.txt", but rather "namespace.abc.text", when built. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: TResourceStream: Why isnt this code working ?
    ... everything related to resources in the Win SDK help file. ... All I want to do is to be able to extract all BITMAPS and ICONS ... > There are a number of freeware / shareware utilities that will extract ...
    (borland.public.delphi.language.objectpascal)
  • Re: VBS for reading Message Table in dll file
    ... You may be able to do it with straight script. ... to extract FileVersionInfo from any PE file. ... read the PE file directly to find the addresses of the resources. ... I query the eventlog with the MS Log Parser. ...
    (microsoft.public.scripting.vbscript)