PE: Add position independent decompressor stub for i386

This commit is contained in:
Kornel Pal
2021-12-22 02:58:09 +01:00
committed by Markus F.X.J. Oberhumer
parent 7f1f29b0d8
commit 76ddf6b8da
5 changed files with 21 additions and 6 deletions
+7
View File
@@ -40,7 +40,14 @@ section PEISDLL1
jnz reloc_end_jmp
section PEMAIN01
pusha
section PESOCREL
mov esi, offset start_of_compressed // relocated
section PESOCPIC
call get_eip
get_eip:
pop eax
lea esi, [eax + start_of_compressed - get_eip]
section PESOUNC0
lea edi, [esi + start_of_uncompressed]
section PEICONS1
incw [edi + icon_offset]