just test code a crypter in xe2 (64bit). Bcoz in 64bit peb location moved and sizeof pointer is 8, some walking peb failed and u will get error :D .

Btw here u go alternative getmodulehandle compatible 32 and 64bit pe (xe2)
View full article »