Kernel function hooking using exception tables