Oh, OK.
You need to replace calls to syscall.Mmap with windows.VirtualAlloc [1], syscall.Mprotect with windows.VirtualProtect, etc.
You don't even need to change the ASM preamble.
[1]: https://pkg.go.dev/golang.org/x/sys/windows#VirtualAlloc
You need to replace calls to syscall.Mmap with windows.VirtualAlloc [1], syscall.Mprotect with windows.VirtualProtect, etc.
You don't even need to change the ASM preamble.
[1]: https://pkg.go.dev/golang.org/x/sys/windows#VirtualAlloc