The command is "BPEK". It takes two arguments: address and length (in decimal if I remember correctly), and returns raw bytes prepended with a short ascii header.
There's a limit to the length that can be returned in one query, so you'll need to script it to dump the whole thing. I've attached a python script I've used for it as an example.