A working example and some more explanation is given here: https://www.codeproject.com/Articles/1212332/64-bit-Structured-Exception-Handling-SEH-in-ASM