Hello, in IDA i have:

mov     ecx, offset dword_000001

mov     eax, ecx
mov     ecx, [eax]

why i can not change this to:

mov     ecx, offset dword_000001

mov     ecx, [ecx]

? thanks

Trying to reverse something? Tsk tsk tsk... What is dword_000001? Initialized, uninitialized? Oh, dword_000001 is a compiler generated name...

This should work:

mov     ecx, offset dword_000001
lea     ecx, [ecx]
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.