We have built a cellular automata with 64 bit steps and obeys Wolfram rule 126, it's boundary condition wraps around so that the last bit is a neighbor of the first bit. Below you can find a special step we chose from the automata.
The flag is encrypted with AES256-CBC, the encryption key is the previous step that generates the given step. Your task is to reverse the given step and find the encryption key.
Example decryption with 32 bit steps:
echo "404c368b" > /tmp/plain.key; xxd -r -p /tmp/plain.key > /tmp/enc.key
echo "U2FsdGVkX18+Wl0awCH/gWgLGZC4NiCkrlpesuuX8E70tX8t/TAarSEHTnpY/C1D" | openssl enc -d -aes-256-cbc -pbkdf2 -md sha1 -base64 --pass file:/tmp/enc.key
rule126('deadbeef') = 73ffe3b8 | reverse_rule126('73ffe3b8') = deadbeef
rule126('73ffe3b8') = de0036ec | reverse_rule126('de0036ec') = 73ffe3b8
rule126('de0036ec') = f3007fbf | reverse_rule126('f3007fbf') = de0036ec