我看过这个主题:
如何查找偏移eax+ebx*4的点
eax将是要查找的指针值
ebx*4将是偏移量(ebx是元素长度为4字节的数组中的偏移量)
所以:
ebx=0:偏移=0
EBX=1:偏移量=4
EBX=2:偏移量=8
ebx=3:偏移量=c
EBX=4:偏移量=10
但我还是不明白如何确定EBX?
这是我的情况:我正试图得到目前红色派别的弹药指针:游击队(gfwl版本)
我看到当我加载另一个保存文件时,这个弹药的地址改变了。因此,我使用“找出写入这个地址的内容”作为弹药指针(加载另一个保存文件后,它将不再工作)。

然后我加载另一个保存文件,查看它向指针写入的内容:
结果是带有偏移量[ecx+eax*4]的指针。

所以我做了一个这样的指针
ecx=00c1b988(地址00c1b988保持值:ecx=00c1b994)
eax*4=我不知道如何使用它,所以我只放了:e71*4

eax will be the pointer value to look for
ebx*4 will be the offset (ebx is the offset in an array with elements of 4 bytes long)
so:
ebx=0 : offset=0
ebx=1 : offset=4
ebx=2 : offset=8
ebx=3 : offset=c
ebx=4 : offset=10

![[ecx+eax*4]](https://i.stack.imgur.com/M5VE1.png)
