#MATL, 24 bytes
MATL, 24 bytes
j1Y24Y2hG5IePtk=~!XB1+)h
Uses current version (9.1.0) of the language/compiler.
Examples
>> matl
> j1Y24Y2hG5IePtk=~!XB1+)h
>
> a0RE000000IJmcN
a0RE000000IJmcNMAT
>> matl
> j1Y24Y2hG5IePtk=~!XB1+)h
>
> a01M00000062mPg
a01M00000062mPgIAI
Explanation
j % input string
1Y2 % predefined literal: 'ABC...Z'
4Y2 % predefined literal; '012...9'
h % concatenate into string 'ABC...Z012...9'
G % push input string
5Ie % reshape into 5x3 matrix, column-major order
P % flip vertically
tk=~ % 1 if uppercase, 0 if lowercase
!XB1+ % convert each column to binary number and add 1
) % index 'ABC...Z012...9' with resulting numbers
h % concatenate result with original string