nezumi-lab
January 9th, 2009, 03:17
the story ("http://nezumi-lab.org/blog/?p=15") had a continue. read this:
Peter Ferrie> The requirement is not user32.dll, just a DLL
Peter Ferrie> that imports from kernel32.dll. I changed tls-nousr.exe
Peter Ferrie> to import from kernel31.dll instead of kernel32.dll.
Peter Ferrie> I created a kernel31.dll that imports from kernel32.dll
Peter Ferrie> the LoadLibraryA and GetProcAddress, and also exports them.
Peter Ferrie> The TLS code runs normally in that case.
Peter Ferrie> For the OllyDbg case, maybe a plug-in called LoadLibrary(”kernel32″
Peter Ferrie>from inside the process. It’s probably some reference counting thing.
yeah, right. I figured out that the MSVCR71.dll is suitable as well (see my previous post ("http://nezumi-lab.org/blog/?p=43")), just not changed the subject. anyway, it’s a bug of XP/S2K3 and eventually we found a workaround for it.
I wonder if Vista is buggy or it has been fixed there? guys! if you have Vista under your hands, plz, run the examples ("http://nezumi-lab.org/ffh/TLS-nousr.zip") and tell us the result. thanks!
http://nezumi-lab.org/blog/?p=51
Peter Ferrie> The requirement is not user32.dll, just a DLL
Peter Ferrie> that imports from kernel32.dll. I changed tls-nousr.exe
Peter Ferrie> to import from kernel31.dll instead of kernel32.dll.
Peter Ferrie> I created a kernel31.dll that imports from kernel32.dll
Peter Ferrie> the LoadLibraryA and GetProcAddress, and also exports them.
Peter Ferrie> The TLS code runs normally in that case.
Peter Ferrie> For the OllyDbg case, maybe a plug-in called LoadLibrary(”kernel32″

Peter Ferrie>from inside the process. It’s probably some reference counting thing.
yeah, right. I figured out that the MSVCR71.dll is suitable as well (see my previous post ("http://nezumi-lab.org/blog/?p=43")), just not changed the subject. anyway, it’s a bug of XP/S2K3 and eventually we found a workaround for it.
I wonder if Vista is buggy or it has been fixed there? guys! if you have Vista under your hands, plz, run the examples ("http://nezumi-lab.org/ffh/TLS-nousr.zip") and tell us the result. thanks!
http://nezumi-lab.org/blog/?p=51