Writing your own RDI /sRDI loader using C and ASM

https://blog.malicious.group/writing-your-own-rdi-srdi-loader-using-c-and-asm/