Add dump_kernel_to_memory

It will be used for finding symbols in memory.