MMC reading/writing to PC

So I have a flash memory eMMC I want to make an image of. It has all the pins I need to do SPI broken out (cmd, clk, dat0-3) so I know it should be possible given the right code.

I would really like to write what is on the flash memory to pc, either via serial or wireless and be able to write it back later bit for bit. Format/storage/transfer method doesn't really matter so much as long as the data is the same on the eMMC in the end. This is usually done with dat0, cmd and clk pins taken to an SD card adapter and making a disk image using win32diskimager.

Is there an easy way to basically dump a raw image of an SD card/flash to a PC or will I have to do it all from scratch? I know PC side I will have to put together something to send the data back and forth but that shouldn't be too bad. Would it just be reading block for block and sending it over serial to a file on the pc? Then write block for block back using the same file? Or would I need to use a certain block size to make sure the data is sent correctly?

read mmc sd card