CoDe_InSiDe
December 28th, 2001, 03:12
Hi LaptoniC,
Yes the Import Table only consists of the User32.dll Entry.
BUT... the Import Table starts at 00007548 (Virtual/Raw Offset doesn't matter in this case

) look a little further down at Offset 00007574.
You'll see there these 4 Dwords:
7B8AFFFF = NOT this value and you'll get the RVA to the ILT for Kernel32.
FF8FFFFF = NOT this value and you'll get the RVA to the IAT for Kernel32.
04790000 = RVA to the name "Kernel32.dll"
FFFFFFFF = NOT this value and you'll get 00000000 hehe
See?
Now you can easily rebuild the Import Table, but i don't know if it's everytime with the same amount of Bytes behind the Import Table...?
Hmmm, ah well.... just Decrypt the API Names and make a new "Kernel32.dll" Entry behind the "User32.dll" Entry with these 4 Dwords (actually 3 Dwords since the last one is 00000000

)
Hope this helps a bit.
Cya...
CoDe_InSiDe