DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 7 of 7

Thread: assembly pattern

  1. #1
    Join Date
    Dec 2006
    Posts
    16

    assembly pattern

    hey
    someone is aware of program that can recognize patterns in assembly ? (in "patterns" i mean , recognize "entering" to funcion section and so on..)
    thanks !

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    What assembly?

    Are you talking about the assembly language?

  3. #3
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819
    just search for a "Disassembler" .. it will do all the work .. I'm not inclined to share specific one here .. rather than mine !
    Programmer&Cracker CS
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

  4. #4
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Quote Originally Posted by mystic-d
    (in "patterns" i mean , recognize "entering" to funcion section and so on..)
    I don't know what you mean by this. Could you provide some more details?

  5. #5
    Join Date
    Dec 2003
    Posts
    3,366
    every assembly language (and its binary counterpart, for that matter) have specific commands to do this, you can build a list by studying that language/binary.

    For example, you might have
    1) a jump statement. Jumps are like a goto -- you could be using them as an if statement (if this do next 5 statements, else jump past them) or you could be jumping around from segment to segment in a fashion that is sort of like subroutines

    2) calling a subroutine -- some assembly languages support full on subroutines or have tools that at least look like subroutines (by macros or something).

    3) fooling with odd chip specific stuff... for example fooling with a "code segment" register or a "data segment" register or an instruction pointer register.

    There are a variety of such things on every platform. The problem is that some things are difficult to second guess.. such as a jump for an "if-like statemet" vs a jump for a "procedure like block of code". For some things, you may never be able to tell just by parsing.

  6. #6
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819
    well what the disassembler do is not a heavy work and is not a problem at all ... any binary .. executable one consists of words ... those words are in 32-bit machine a 4 BYTE ... for each combination of this word there is a corresponded assembly command , after extracting the OP-Code and the Operand you can exactly disassemble the word .. beside that the New OS which has multi-processing , need a multi programming and multi sections in the code .. thus if you analyze the executable file you'll find in it section for code , section for data , section for header ... etc so that if you learn this file structure correctly you'll be able to disassemble it very easily ..
    Programmer&Cracker CS
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

  7. #7
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819
    I wanna say also that .. there is no compilation from assembly to binary .. assembly is exactly the machine language which the machine understand .. learning and writting in assembly is just heavy because you do what the machine does ... after writing an assembly code you just need to assemble it in an executable file and nothing more .. it's also well known for that commands like J [for jumb] .. EQU and so on are very short they just hold a code that is replaced before assembling the file and this is exactly all .
    Programmer&Cracker CS
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

Similar Threads

  1. Replies: 8
    Last Post: 09-13-2007, 10:38 AM
  2. Java Singleton Pattern Tutorial
    By hemanthjava in forum Java
    Replies: 2
    Last Post: 11-14-2006, 11:57 PM
  3. how to list resources in a package?
    By stoughto in forum Java
    Replies: 2
    Last Post: 06-11-2006, 09:56 AM
  4. Problem loading an assembly
    By mjtech in forum .NET
    Replies: 3
    Last Post: 03-29-2006, 09:01 PM
  5. RC1 Assembly Reference Problem
    By Matteo Garutti in forum .NET
    Replies: 0
    Last Post: 11-14-2001, 04:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center