It's a little bit harder than it sounds. You need to dump the memory of the game which is encrypted on runtime (there is no public tool for this currently available)
If you did this successfully you need to mess around with the many anti debug shit like random jumps and much more.
Older builds (below 11.2.0) are less complicated