flat assembler
Message board for the users of flat assembler.
![]() Goto page Previous 1, 2 |
Author |
|
l_inc 18 Sep 2015, 22:58
AssemblerX86
Quote: I want a specific RVA of the .text section to work in the new section. This is nonsense. RVAs are relative to the image base. An RVA cannot belong to multiple sections at the same time. Quote: I have added the E9 to the PE entry point (in .text) to jump to the entry point of the new section. (Currently, the new section is just a copy of .text) This is gonna crash. In order to make it work as unmodified, you should put the instructions you overwritten at the jump destination point. After these instructions in the new section put a jump back to the original section after these instructions. _________________ Faith is a superposition of knowledge and fallacy |
|||
![]() |
|
revolution 19 Sep 2015, 02:15
l_inc wrote: In order to make it work as unmodified, you should put the instructions you overwritten at the jump destination point. After these instructions in the new section put a jump back to the original section after these instructions. |
|||
![]() |
|
l_inc 19 Sep 2015, 11:07
revolution
Our current context is when this is done by hand with assistance of a user friendly dissassembler, not just an LDE. It's good to pay attention however to not ovewrite a fixupped location. _________________ Faith is a superposition of knowledge and fallacy |
|||
![]() |
|
AssemblerX86 19 Sep 2015, 13:03
So moving the whole section data to another section and jumping to that new section wont work? I mean it would be easier to add the instructions I want to the entry point and then jumping to the new section.
|
|||
![]() |
|
revolution 19 Sep 2015, 13:11
It was suggested to change the entry point. Then you don't have to worry about all the business of fixups and instruction boundaries and other tricky things that are easy to get wrong.
|
|||
![]() |
|
AssemblerX86 19 Sep 2015, 13:46
But isn't changing the entry point same as jumping to that address of another section?
Are those fixups almost-impossible or is there a way to do it? I only have to fix the addresses of CALLs and JMPs? What do I have to set them to? |
|||
![]() |
|
revolution 19 Sep 2015, 14:15
AssemblerX86 wrote: But isn't changing the entry point same as jumping to that address of another section? Anyhow, up to you how you do it. If you want to learn about x86 encoding and PE formats then this would be a good way to do that. |
|||
![]() |
|
l_inc 19 Sep 2015, 14:38
AssemblerX86
revolution wrote:
In the current context I totally agree with revolution on this. _________________ Faith is a superposition of knowledge and fallacy |
|||
![]() |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.