dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: how to understand assemble language

  1. #1
    Join Date
    Jul 2007
    Posts
    20

    how to understand assemble language

    hi
    i want to know exact what the code does . can any one help me how to understand what is this .actually i have open flash player .exe with thw help of olly dbg how can i do this

    // code starts
    Code:
    004994F0 >   83EC 44        SUB ESP,44
    004994F3     56             PUSH ESI
    004994F4     FF15 68614D00  CALL DWORD PTR DS:[<&KERNEL32.GetCommand>;  kernel32.GetCommandLineA
    004994FA  |. 8BF0           MOV ESI,EAX
    004994FC  |. 8A06           MOV AL,BYTE PTR DS:[ESI]
    004994FE  |. 3C 22          CMP AL,22
    00499500  |. 75 1C          JNZ SHORT SAFlashP.0049951E
    00499502  |. 8A46 01        MOV AL,BYTE PTR DS:[ESI+1]
    00499505  |. 46             INC ESI
    00499506  |. 3C 22          CMP AL,22
    00499508  |. 74 0C          JE SHORT SAFlashP.00499516
    0049950A  |> 84C0           /TEST AL,AL
    0049950C  |. 74 08          |JE SHORT SAFlashP.00499516
    0049950E  |. 8A46 01        |MOV AL,BYTE PTR DS:[ESI+1]
    00499511  |. 46             |INC ESI
    00499512  |. 3C 22          |CMP AL,22
    00499514  |.^75 F4          \JNZ SHORT SAFlashP.0049950A
    00499516  |> 803E 22        CMP BYTE PTR DS:[ESI],22
    00499519  |. 75 0F          JNZ SHORT SAFlashP.0049952A
    0049951B  |. 46             INC ESI
    0049951C  |. EB 0C          JMP SHORT SAFlashP.0049952A
    0049951E  |> 3C 20          CMP AL,20
    00499520  |. 76 08          JBE SHORT SAFlashP.0049952A
    00499522  |> 8A46 01        /MOV AL,BYTE PTR DS:[ESI+1]
    00499525  |. 46             |INC ESI
    00499526  |. 3C 20          |CMP AL,20
    00499528  |.^77 F8          \JA SHORT SAFlashP.00499522
    0049952A  |> 8A06           MOV AL,BYTE PTR DS:[ESI]
    0049952C  |. 84C0           TEST AL,AL
    0049952E  |. 74 0C          JE SHORT SAFlashP.0049953C
    00499530  |> 3C 20          /CMP AL,20
    00499532  |. 77 08          |JA SHORT SAFlashP.0049953C
    00499534  |. 8A46 01        |MOV AL,BYTE PTR DS:[ESI+1]
    00499537  |. 46             |INC ESI
    00499538  |. 84C0           |TEST AL,AL
    0049953A  |.^75 F4          \JNZ SHORT SAFlashP.00499530
    0049953C  |> 8D4424 04      LEA EAX,DWORD PTR SS:[ESP+4]
    00499540  |. C74424 30 0000>MOV DWORD PTR SS:[ESP+30],0
    00499548  |. 50             PUSH EAX                                 ; /pStartupinfo
    00499549  |. FF15 E0614D00  CALL DWORD PTR DS:[<&KERNEL32.GetStartup>; \GetStartupInfoA
    0049954F  |. F64424 30 01   TEST BYTE PTR SS:[ESP+30],1
    00499554  |. 74 0B          JE SHORT SAFlashP.00499561
    00499556  |. 8B4424 34      MOV EAX,DWORD PTR SS:[ESP+34]
    0049955A  |. 25 FFFF0000    AND EAX,0FFFF
    0049955F  |. EB 05          JMP SHORT SAFlashP.00499566
    00499561  |> B8 0A000000    MOV EAX,0A
    00499566  |> 50             PUSH EAX                                 ; /Arg4
    00499567  |. 56             PUSH ESI                                 ; |Arg3
    00499568  |. 6A 00          PUSH 0                                   ; |Arg2 = 00000000
    0049956A  |. 6A 00          PUSH 0                                   ; |/pModule = NULL
    0049956C  |. FF15 CC614D00  CALL DWORD PTR DS:[<&KERNEL32.GetModuleH>; |\GetModuleHandleA
    00499572  |. 50             PUSH EAX                                 ; |Arg1
    00499573  |. E8 28EAFFFF    CALL SAFlashP.00497FA0                   ; \SAFlashP.00497FA0
    00499578  |. 50             PUSH EAX                                 ; /ExitCode
    00499579  \. FF15 64614D00  CALL DWORD PTR DS:[<&KERNEL32.ExitProces>; \ExitProcess
    help me its vary urgent
    regards
    vasanth
    Last edited by cilu; September 24th, 2007 at 01:41 AM. Reason: code tags

  2. #2
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: how to understand assemble language

    You can't learn overnight assembly. It takes time (more than for a high-level language). Why do you need it? Does your flash player crash, or what?
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

  3. #3
    Join Date
    Jul 2007
    Posts
    20

    Re: how to understand assemble language

    actually my requirement is ,
    i want to play swf file on the flash player 7 , to open the flash player.exe
    we will double click flash player 7. exe it will open . just like a small window
    it appears , in that there will be the menu item
    FILE when we click
    open
    one system dialog box will pop up .on that system dialog box there will be buttons called ok ,CANCEL ,BROWSE when we click on browse button the path
    will be allocated with the open dialog box where the exact swf file is present
    when we press ok button it will play on the player with swf file.
    //
    so i dont want to do all this user interaction , i want to know where the exact memory is allocated for the path when we click the browse button
    where the exact path is allocated in th memory
    so i have used the olly dbg dubgger to open the code flash player7 .exe
    //
    actually i want to jump from open to browse , so i want to know where the exact location where the path is specified when we click browse button in string path in the edit control .and stored in the memory and create new exe . when i double click it should open withe swf file . dont want to open player , file , open , browse, ok
    so it is only possible with this debugger
    help me
    regards
    vasanth





    1) I have flash player7 .exe file , i have opened this exe file with the olly dbg debugger ,

  4. #4
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: how to understand assemble language

    Bottom line, you want to open a swf file in flash player from another application? I'm not familiar with flash player, but it probably supports command line arguments, so you can invoke it with CreateProcess, passing the appropriate file. Windows Explorer has a list of associations between file extensions and programs used to open those files. If flash player is specified for swf you can also use ShellExecute().
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

  5. #5
    Join Date
    Jul 2007
    Posts
    20

    Re: changing of exe file

    Hi
    1)can we change an exe file with the help of ollyDbg debugger
    2)how we can change the functionality of an exe file by opening with
    ollyDbg
    regards
    vasanth

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)