Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How did Themida Virtualize Code?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Wed Jun 10, 2009 7:44 pm    Post subject: How did Themida Virtualize Code? Reply with quote

How do those programs create a virtual machine to process the new set of instructions?
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Wed Jun 10, 2009 10:58 pm    Post subject: Reply with quote

It's like a disassembler, that handles the code step by step.

  • Disassemble first instruction.
  • Execute and update VM context.
  • Disassemble next instruction.
  • Execute and update VM context.
  • ...
  • Return to non virtualized code.

It's basically an emulation of what a processor does. The VM context is a structure that holds register information. Execution of the instructions is done by specific handlers.

_________________


Last edited by sponge on Thu Jun 11, 2009 1:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Thu Jun 11, 2009 1:43 pm    Post subject: Reply with quote

sponge wrote:
It's like a disassembler, that handles the code step by step.

  • Disassemble first instruction.
  • Execute and update VM context.
  • Disassemble next instruction.
  • Execute and update VM context.
  • ...
  • Return to non virtualized code.

It's basically an emulation of what a processor does. The VM context is a structure that holds register information.


Wow that must be very slow... And thanks for the info. Google wasn't being helpful...
Back to top
View user's profile Send private message
Pro-surf
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Dec 2007
Posts: 1415
Location: Under Ur Bed , Moauahauha

PostPosted: Thu Jun 11, 2009 3:02 pm    Post subject: Reply with quote

Themida is still crackable ..
the one i use is -_- wbb-themidaVersion2.0.3.0

too bad

_________________
ProsTrain VIP |..........| - 80% Done Smile im close to the finish line Smile
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Thu Jun 11, 2009 3:13 pm    Post subject: Reply with quote

Pro-surf wrote:
Themida is still crackable ..
the one i use is -_- wbb-themidaVersion2.0.3.0

too bad
I'd like to see your little tool convert vm bytecode to x86. Rolling Eyes
_________________
Back to top
View user's profile Send private message
Pro-surf
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Dec 2007
Posts: 1415
Location: Under Ur Bed , Moauahauha

PostPosted: Thu Jun 11, 2009 3:40 pm    Post subject: Reply with quote

lol
_________________
ProsTrain VIP |..........| - 80% Done Smile im close to the finish line Smile
Back to top
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Thu Jun 11, 2009 5:43 pm    Post subject: Reply with quote

well I can unpack themida no problem just making it runable is hard story.. but unpacked its still good resource for hacking you can see strings.. and even OLD patterns you can find to make injections etc.. still good for hacking
_________________
Hacks I made for kongregate.
Kongregate Universal Badge Hack: http://forum.cheatengine.org/viewtopic.php?p=4129411
Kongreate Auto Rating/Voter hack: http://forum.cheatengine.org/viewtopic.php?t=263576
Took a test lol
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Thu Jun 11, 2009 6:42 pm    Post subject: Reply with quote

Im gonna make a fail version of a vm and see if I fail or not at making it.
Back to top
View user's profile Send private message
&Vage
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Jul 2008
Posts: 1053

PostPosted: Sat Jun 13, 2009 4:11 pm    Post subject: Reply with quote

I managed to unpack Warrock.exe which is packed with Themida, but I failed to unencrypt the VM ops :< I suck.
Back to top
View user's profile Send private message
azfk
Cheater
Reputation: 0

Joined: 26 May 2009
Posts: 37

PostPosted: Mon Jun 15, 2009 8:47 am    Post subject: Reply with quote

vm is like a one way encryption... (it was never meant to be reversed)

and the part where it says that theres a unique set of instructions for EVERY different protected application is stretching the truth...

the algorithm is studied on some level, i have a small paper on it

so if you can replicate it which is quite tedious... then you got it
Back to top
View user's profile Send private message
&Vage
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Jul 2008
Posts: 1053

PostPosted: Mon Jun 15, 2009 9:11 am    Post subject: Reply with quote

There's a x86 virtualizer source...

https://www.openrce.org/blog/view/847/x86_Virtualizer_-_source_code
Back to top
View user's profile Send private message
Sprinto
Newbie cheater
Reputation: 0

Joined: 24 Jan 2008
Posts: 21

PostPosted: Tue Jun 16, 2009 5:23 am    Post subject: Reply with quote

inst thamida the hardest to crack?
Back to top
View user's profile Send private message
azfk
Cheater
Reputation: 0

Joined: 26 May 2009
Posts: 37

PostPosted: Tue Jun 16, 2009 9:15 pm    Post subject: Reply with quote

one of the hardest things to crack, to fully understand and reverse it completely (and not just mash up a workaround because of what you know what the protection scheme is) takes university level knowledge.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites