Can DynamoRIO Add x86 labels to instructions?

26 views
Skip to first unread message

Galangkangin Gotera

unread,
Oct 18, 2023, 11:21:22 PM10/18/23
to DynamoRIO Users
Hi,

Currently I am trying to write a tool that does adds some functionality when the address of a write matches a certain address in x86 architecture. Is it possible to add x86 labels to instrumentation? Something like this:

drutil_insert_get_mem_addr(drcontext, ilist, where, dst, reg_tmp, reg_ptr);

INSTR_CREATE_cmp(drcontext,  opnd_create_reg(reg_tmp), OPND_CREATE_MEMPTR(INTERESTED_MEMORY))
INTR_CREATE_jcc(drcontext,  OP_JNE, GO)

drx_buf_insert_load_buf_ptr(drcontext, buf, ilist, where, reg_ptr);
// ... more code to execute if reg_tmp == INTERESTED_MEMORY)

GO:
// ... continue execution from here whatever the result is

Thanks in advance.




Nahome Bete

unread,
Oct 23, 2023, 3:51:52 PM10/23/23
to DynamoRIO Users
Reply all
Reply to author
Forward
0 new messages