Advertisement
Guest User

Untitled

a guest
Jul 5th, 2022
34
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None
  1. strarr cmds[3]
  2. str lineaddr
  3. cmds[0]='mov qword ptr ds:[rbx], rcx'
  4. cmds[1]='lea rdx,qword ptr ds:[rbx+8]'
  5. cmds[2]='xor ecx,ecx'
  6. strarr  res[1]
  7. hex Nextaddr
  8. int count,0
  9. res=findasm cmds[0]
  10. int i,0
  11. if.1 i < $ArrayLen(res)
  12. Nextaddr=res[i]+$dis.len(res[i])
  13. if.2 cmds[1]==$DisAt(Nextaddr)
  14. Nextaddr=Nextaddr +$dis.len(Nextaddr)
  15. //logs Nextaddr
  16. if.3 cmds[2]==$DisAt(Nextaddr)
  17. logs 'Found at: ' + res[i]
  18. count=count+1
  19. End.3
  20. End.2
  21. i=i+1
  22. repeat.1
  23. End.1
  24. logs 'result count is :' + count
  25. ret
Advertisement
RAW Paste Data Copied
Advertisement