📚 OpenRCE is preserved as a read-only archive. Launched at RECon Montreal in 2005. Registration and posting are disabled.








Flag: Tornado! Hurricane!

 Forums >>  Brainstorms - General  >>  Code section obfuscator

Topic created on: April 6, 2010 16:14 CDT by xeon .

Hello at all,
I'm trying to find a simple code section obfuscator for PE/32 file format. I do not want anything fancy, or compression feature.
I'd like to ask if someone can point me to implementation examples or reference material.

Thank you

  xeon     April 8, 2010 06:51.19 CDT
Hello, any suggestions?

  choiseokwoo   April 8, 2010 19:14.47 CDT
General obfuscation of a code section seems to be impossible.
If a code section is obfuscated, the code section size is enlarged such that the addresses in the section and the following sections, and the addresses that point to the obfuscated section should be changed.
However, it is nearly impossible to judge some bytes are addresses or data, especially for x86 PE files, which have irregular instruction set sizes.

  xeon     April 9, 2010 02:35.19 CDT
I didn't thought about pointers to the code section, you're right, they are a pain. Also simple relative JMPs could have problems.
So, no way? This is sad.

  dennis     April 9, 2010 04:46.29 CDT
maybe mistfall or aslan could help?

http://vxheavens.com/lib/vzo21.html
http://piotrbania.com/all/4514N/index_rev.html

  xeon     April 9, 2010 07:07.41 CDT
The first of the two links is very interesting. It brought me to think that the biggest part is disassembling correctly the executable. Which lead me to think "IDA", and its ability to modify executables.
A module for IDA to do this would be great.

  dennis     April 9, 2010 09:38.42 CDT
(way back) I remember someone on EFnet mentioning his tool which watermarks an executable by disassembling it and replacing its instructions with equivalent ones without the tool changing section sizes et cetera. Unfortunately, I don't remember the tool's name and whether it was public at all, but this shouldn't be too hard to implement yourself if you resort to existing libraries. I'd recommend pefile and pydasm for python.

  jumpzero     April 11, 2010 20:17.21 CDT
well, why don't u use 'code virtualizer' of oreans?
http://oreans.com

  xeon     April 13, 2010 07:22.05 CDT
Well, that's what I was looking for! That "code virtualizer" seems to do assembler-level obfuscation. I'll definitively try that.

Note: Registration is required to post to the forums.

There are 31,328 total registered users.


Recently Created Topics
[help] Unpacking VMP...
Mar/12
Reverse Engineering ...
Jul/06
let 'IDAPython' impo...
Sep/24
set 'IDAPython' as t...
Sep/24
GuessType return une...
Sep/20
About retrieving the...
Sep/07
How to find specific...
Aug/15
How to get data depe...
Jul/07
Identify RVA data in...
May/06
Question about memor...
Dec/12


Recent Forum Posts
Finding the procedur...
rolEYder
Question about debbu...
rolEYder
Identify RVA data in...
sohlow
let 'IDAPython' impo...
sohlow
How to find specific...
hackgreti
Problem with ollydbg
sh3dow
How can I write olly...
sh3dow
New LoadMAP plugin v...
mefisto...
Intel pin in loaded ...
djnemo
OOP_RE tool available?
Bl4ckm4n


Recent Blog Entries
halsten
Mar/14
Breaking IonCUBE VM

oleavr
Oct/24
Anatomy of a code tracer

hasherezade
Sep/24
IAT Patcher - new tool for ...

oleavr
Aug/27
CryptoShark: code tracer ba...

oleavr
Jun/25
Build a debugger in 5 minutes

More ...


Recent Blog Comments
nieo on:
Mar/22
IAT Patcher - new tool for ...

djnemo on:
Nov/17
Kernel debugger vs user mod...

acel on:
Nov/14
Kernel debugger vs user mod...

pedram on:
Dec/21
frida.github.io: scriptable...

capadleman on:
Jun/19
Using NtCreateThreadEx for ...

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit