How to do these things in assembly !?

Posted on 2012-09-13
Last Modified: 2012-09-16
Hello ,
I'm new to assembly and need to help doing bit small thing, it may be so simple for assembly programmers! But its not for me ! ..

PUSH OFFSET 001E5740                ; ASCII "cmd "

I need to replace the address 001E5740 with a label or a variable how to do this in assembly please give me an example.
Also, the second line the address  [1E92B0] is an address of a library in windows 7, how to get the real address everytime i run the program because its change everytime I run the program.
Note that the previous code is from OllyDBG
Bese regards,
Question by:hintco
    1 Comment
    LVL 10

    Accepted Solution


    This is the sample for storing the variable.

    var DWORD 3 ; variable
    push var
    push offset var

    Open in new window

    For the address see this (arwin) example :

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Suggested Solutions

    This is an issue that we can get adding / removing permissions in the vCSA 6.0. We can also have issues searching for users / groups in the AD (using your identify sources). This is how one of the ways to handle this issues and fix it.
    When we have a dead host and we lose all connections to the ESXi, and we need to find a way to move all VMs from that dead ESXi host.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now