How to use xdbg scripting to automate reverse engineering, hack memory and test protection mechanisms