Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01-12-2009, 01:36
tokk350
 
Posts: n/a
Code Virtualization Help

Helo, i have a little question about virtual machines which uses PE protectors. I google a lot, but I don't find any idea to create my own code protecting VM. Have you any ideas ? (...SORRY FOR MY ENGLISH...)
Reply With Quote
  #2  
Old 01-12-2009, 07:59
Finite
 
Posts: n/a
Study other VM protectors and steal their ideas. You have Themida, Securom, VMProtect to study...
Reply With Quote
  #3  
Old 01-12-2009, 10:29
Sabor Sabor is offline
Friend
 
Join Date: Sep 2005
Posts: 68
Rept. Given: 0
Rept. Rcvd 3 Times in 3 Posts
Thanks Given: 0
Thanks Rcvd at 2 Times in 2 Posts
Sabor Reputation: 3
check rewolfs release, really a good start; read the readme.
Reply With Quote
  #4  
Old 01-18-2009, 17:38
tokk350
 
Posts: n/a
yeah study, but studiing some unpacked Protectors or Virtualizers is really hard and rewolfs ??? I don't hear about it. and goolge don't help me with rewolfs. Have you something else idea ?
Reply With Quote
  #5  
Old 01-19-2009, 19:46
scherzo
 
Posts: n/a
Maybe this could help you to have some ideas... not well written but well... that's from a comercial protector

http://www.codebreakers-journal.com/content/view/290/97/

scherzo
Reply With Quote
  #6  
Old 01-25-2009, 00:01
Evilcry Evilcry is offline
Friend
 
Join Date: Jan 2009
Posts: 59
Rept. Given: 4
Rept. Rcvd 16 Times in 10 Posts
Thanks Given: 3
Thanks Rcvd at 42 Times in 19 Posts
Evilcry Reputation: 16
Take also a look to libemu

Code:
http://libemu.carnivore.it/
Regards
Reply With Quote
  #7  
Old 02-08-2009, 17:45
Externalist
 
Posts: n/a
Here you can understand the basic workings of a VM.
_http://rapidshare.com/files/16968098/Inside_Code_Virtualizer.rar

And here is a VM compiler source code by 0rp posted a long time ago.
_http://www.woodmann.com/forum/showthread.php?t=10003

Cheers
Reply With Quote
The Following User Gave Reputation+1 to For This Useful Post:
dubya (03-06-2009)
  #8  
Old 03-06-2009, 22:00
dubya dubya is offline
Friend
 
Join Date: Feb 2004
Posts: 7
Rept. Given: 2
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 2
Thanks Rcvd at 1 Time in 1 Post
dubya Reputation: 0
^Thanks for those links!

Aren't there any open-source examples available? (Irony, I know -- OSS on an RE forum )
Reply With Quote
  #9  
Old 03-08-2009, 05:21
tokk350
 
Posts: n/a
Thumbs up

Here you can find the Rewolf's x86 Virtualizer Source code it's very simple but very easy to know how ...
Code:
http://www.rewolf.pl/
AND all users thanx for good reasons on this post
Reply With Quote
The Following 2 Users Gave Reputation+1 to For This Useful Post:
dubya (03-08-2009), redbull (03-20-2009)
  #10  
Old 03-19-2009, 15:35
peexe
 
Posts: n/a
learn cv inside
Reply With Quote
  #11  
Old 03-19-2009, 21:38
ahmadmansoor's Avatar
ahmadmansoor ahmadmansoor is offline
Coder
 
Join Date: Feb 2006
Location: Syria
Posts: 1,047
Rept. Given: 517
Rept. Rcvd 374 Times in 142 Posts
Thanks Given: 380
Thanks Rcvd at 416 Times in 119 Posts
ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399
@peexe : can u explain more ....... ???!!!!!
__________________
Ur Best Friend Ahmadmansoor
Always My Best Friend: Aaron & JMI & ZeNiX
Reply With Quote
  #12  
Old 03-19-2009, 23:18
gunterg gunterg is offline
Friend
 
Join Date: Sep 2004
Posts: 59
Rept. Given: 0
Rept. Rcvd 2 Times in 2 Posts
Thanks Given: 2
Thanks Rcvd at 3 Times in 3 Posts
gunterg Reputation: 2
I think he refer at Inside Code Virtualizer by scherzo

Regards
Reply With Quote
  #13  
Old 03-22-2009, 09:11
wtbw
 
Posts: n/a
Rolf's posts might also interest you.

http://www.openrce.org/blog/view/123...art_0:__Basics
Reply With Quote
  #14  
Old 03-26-2009, 17:57
OHPen's Avatar
OHPen OHPen is offline
Friend
 
Join Date: Aug 2003
Location: lost in code...
Posts: 92
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 0 Times in 0 Posts
OHPen Reputation: 0
It is not that difficult to write an own vm based protector. as the others explained read papers about commercial products. but you can also start with a minimum set of requirements.

- C/C++
- Disassembler Library

And there you go. First step could be just to virtualize only a single type of instruction, for example an arithmetic one like

add eax, 0x12345678

This will keep your code very small. There is no need to support hundereds of different opcodes if you just want to understand the concept.

Regards,
OHPen
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hardware virtualization is good in cracking? Nicogalan General Discussion 7 12-03-2012 02:48


All times are GMT +8. The time now is 00:04.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )