how to extract referenced data of instruction?

96 views
Skip to first unread message

Jun Koi

unread,
Sep 18, 2012, 4:27:16 AM9/18/12
to idap...@googlegroups.com
hi IDA experts,

in IDA, i have some instructions accessing static data, like below:

movd xmm3, ds:dword_401528

given the linear address ("ea") of the instruction, using IDAPython,
how can i extract the data referenced by the instruction? (i.e the
data at address ds:dword_401528 in above example)

many thanks,
Jun

Jun Koi

unread,
Sep 18, 2012, 4:30:04 AM9/18/12
to idap...@googlegroups.com
sorry for not being clear: i want to do static analysis here (not at
run time with debugger), and given that the data is static at that
address, i think there must be a way to get it.

thanks,
Jun

Jun Koi

unread,
Sep 20, 2012, 2:42:59 AM9/20/12
to idap...@googlegroups.com
any idea, pls? is this possible or not?

thanks,
Jun

nir izraeli

unread,
Sep 20, 2012, 2:55:15 AM9/20/12
to idap...@googlegroups.com

There's an API for that. GetOperandValue I think, just search idc.py for relevant functions and try them

--
You received this message because you are subscribed to the Google Groups "idapython" group.
To post to this group, send email to idap...@googlegroups.com.
To unsubscribe from this group, send email to idapython+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/idapython?hl=en.

Jun Koi

unread,
Sep 20, 2012, 3:37:36 AM9/20/12
to idap...@googlegroups.com
On Thu, Sep 20, 2012 at 2:55 PM, nir izraeli <nir...@gmail.com> wrote:
> There's an API for that. GetOperandValue I think, just search idc.py for
> relevant functions and try them
>

excellent, thanks!

Jun
Reply all
Reply to author
Forward
0 new messages