That pointer is pointing to the Thread Information Block described here.
At that particular offset in the TIB struct points to the Process Environment Block (PEB)described here
Quite possibly it will be looking at some of the PEB information to determine if a debugger is attached, we discussed some of this in the LDR_MODULE (Anti-Debugging) thread. Hope this helps.
> jms: That pointer is pointing to the Thread Information Block described here.
>
> At that particular offset in the TIB struct points to the Process Environment Block (PEB)described here
>
> Quite possibly it will be looking at some of the PEB information to determine if a debugger is attached, we discussed some of this in the LDR_MODULE (Anti-Debugging) thread. Hope this helps.
Yea the +2 offset is where the isDebuggerPresent variable lives. So it's basically, checking for a debugger without making the call the the isDebuggerPresent API.