On the Subject of Binary Cipher

!findclaim cipher lmao

Step 1: Axial Symmetry Transposition

In this step, you are going to create five 4 by 4 grids.

Grid #1:

Take the battery count modulo 2. If this value is 0, fill rows 1 and 2 with 10101010, otherwise 01010101.

Take the port count modulo 2. If this value is 0, fill rows 3 and 4 with 10101010, otherwise 01010101.

Grid #2:

Take the 16-digit binary number shown on the middle screen of Page 2, fill the 4 by 4 grid with these digits, then horizontally flip the grid.

Grid #3:

Take each cell in Grids #1 and #2 in reading order. If they are the same, this position in Grid #3 is a 1, otherwise it is a 0.

Grid #4:

Take the 16-digit binary number shown on the top screen of Page 1, fill the 4 by 4 grid with these digits, then horizontally flip the grid.

Grid #5:

Take each cell in Grids #3 and #4 in reading order. If they are the same, this position in Grid #5 is a 1, otherwise it is a 0.

Example:

Battery count: 2
Port count: 5
Page 1, top screen: 1100110100001001
Page 2, middle screen: 0001101010011001

1010
1010
0101
0101
1000
0101
1001
1001
1101
0000
0011
0011
0011
1011
0000
1001
0001
0100
1100
0101

Step 2: Alphabet Transposition

Take the alphabet, remove all occurrences of the keyword within it, remove the single letter found at the top screen of Page 2, then note down the 6th letter of this string.

Based on the single letter found at the top screen of Page 2 and the 6th letter of the string, determine which grid of X's below to use.

If the 6th letter is A B C D E F G H I J K L Z, use these tables:

Table A
X-XX
XX--
----
--X-
Table B
XXX-
X---
X---
X---
Table C
X--X
X--X
-X--
--X-

If the 6th letter is N O P Q R S T U V W X Y M, use these tables:

Table A
----
--X-
X-XX
XX--
Table B
X---
X---
XXX-
X---
Table C
-X--
--X-
X--X
X--X

Take the digits in the positions of the X's in reading reading order from Grid #5 to get a 6-digit binary number, known as the retrieved binary.

Example:

Page 1, bottom screen letter: B
Keyword: SCRAWL
Key: DEFGHIJKMNOPQTUVXYZ
Position 6 is I. The used table is B.

XXX-
X---
X---
X---
0001
0100
1100
0101

Retrieved binary: 000010

Step 3: ASCII Translation

Take the retrieved binary number from the previous step, and remove the digit found at the position of batteries, modulo 6, plus 1. This will get you a 5-digit binary number found in the table below.

Submit the letter associated with the found binary.

A00001H01000O01111V10110
B00010I01001P10000W10111
C00011J01010Q10001X11000
D00100K01011R10010Y11001
E00101L01100S10011Z11010
F00110M01101T10100
G00111N01110U10101

Retrieved binary: 000010
Battery count: 2
Retrieved binary, after removing digit 3: 00010
Answer: B