XR3X

Jump to content


Photo

[FASM x86] Small software stack virtual machine

source

  • You cannot start a new topic
  • Please log in to reply
No replies to this topic

#1 0xDADA11C7

0xDADA11C7

    Beginner

  • Members +
  • 12 posts
  • LocationUkraine

Posted 12 December 2014 - 09:40 PM

This VM developed for criptographyc purposes. I must note, when I tell about VM, then I mean a family of similar virtual machines. The following VM is officially approved iridium sample in vacuum for use in the examples. VM size varies in ranges about 700 bytes.
Architecture:

  • Two 32-bits stack - data and return
  • VM size varies in ranges about 700 bytes.
  • Every VM is unique because unique opcodes, unique fiels and unique functions number
  • Access to memory can be in Bytes, Words (2 Bytes) and DWords (Double Words, 4 bytes)

Please Login or Register to see this Hidden Content

 

picovm.inc


Please Login or Register to see this Hidden Content

picovm.inc


Please Login or Register to see this Hidden Content

Characteristics of VM stored in file picovm.settings.json (JSON format):
 

Please Login or Register to see this Hidden Content

Virtual machines generator (written in JS):

Please Login or Register to see this Hidden Content

Examples

 

For shorting source code I using next macros:

Please Login or Register to see this Hidden Content

Crypto algorithm RC4:

Please Login or Register to see this Hidden Content


Edited by 0xDADA11C7, 12 December 2014 - 09:42 PM.

  • x58, Cypher, Tigerass and 3 others like this



Also tagged with one or more of these keywords: source