Rating:

Original writeup (https://tobloef.com/ctf/pwn2win-ctf-2017#regex-baby).