Function at 0x40a1a7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
cmp dword [0x41d438], eax
jne 0x40a4c1
inc eax
xor ecx, ecx
mov edx, eax
shr edx, 7
and edx, 1
imul edx, edx, 0x11b
mov dword [ecx + 0x41a3e0], eax
add eax, eax
add ecx, 4
xor eax, edx
cmp ecx, 0x28
jb 0x40a1be
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
mov ebx, dword [ebp - 0x10]
mov dl, bl
call fcn.0040a0fe
movzx eax, al
lea ecx, [eax + eax]
xor ecx, eax
shl ecx, 1
xor ecx, eax
shl ecx, 1
xor ecx, eax
shl ecx, 1
xor eax, ecx
mov ecx, eax
shr ecx, 8
xor cl, al
xor cl, 0x63
movzx ecx, cl
mov edx, ecx
shr edx, 7
mov edi, edx
imul edx, edx, 0x11b
imul edi, edi, 0x1b000000
lea esi, [ecx + ecx]
mov eax, esi
xor eax, ecx
shl eax, 0x18
xor eax, edi
xor edx, esi
mov edi, ecx
shl edi, 8
or edi, ecx
shl edi, 8
or eax, edi
or eax, edx
mov edx, eax
mov edi, eax
shr edx, 0x18
shl edi, 8
or edx, edi
mov edi, eax
mov esi, ebx
shl esi, 2
mov dword [esi + 0x41c820], edx
mov edx, eax
mov dword [esi + 0x41c420], eax
shr edx, 0x10
shl edi, 0x10
or edx, edi
mov dword [esi + 0x41cc20], edx
mov edx, eax
shr eax, 8
shl edx, 0x18
or edx, eax
mov dword [esi + 0x41d020], edx
mov eax, ecx
shr eax, 0x18
mov edx, ecx
shl edx, 8
or eax, edx
mov dword [esi + 0x41a820], eax
mov eax, ecx
shr eax, 0x10
mov edx, ecx
shl edx, 0x10
or eax, edx
mov dword [esi + 0x41ac20], eax
mov eax, ecx
shl eax, 0x18
mov dword [esi + 0x41a420], ecx
shr ecx, 8
or eax, ecx
mov dword [esi + 0x41b020], eax
movzx ecx, bl
mov eax, ecx
shl eax, 3
xor eax, ecx
shl eax, 2
xor eax, ecx
shl eax, 1
mov edx, eax
shr edx, 8
xor dl, al
xor dl, 5
call fcn.0040a0fe
movzx eax, al
mov ebx, eax
shr ebx, 6
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
and ebx, 1
mov dword [ebp - 0x14], ebx
mov edi, eax
shr edi, 5
mov edx, edi
mov dword [ebp - 4], edi
and dword [ebp - 4], 2
and edi, 1
mov ebx, edi
imul ebx, ebx, 0x11b
lea ecx, [eax + eax]
xor ecx, eax
mov dword [ebp - 0x1c], ecx
add ecx, ecx
xor ecx, eax
shl ecx, 1
xor ecx, ebx
mov ebx, dword [ebp - 4]
imul ebx, ebx, 0x11b
xor ecx, ebx
mov ebx, dword [ebp - 0x14]
and dword [ebp - 0xc], 2
imul ebx, ebx, 0x11b
xor ecx, ebx
mov ebx, dword [ebp - 0xc]
imul ebx, ebx, 0x11b
xor ecx, ebx
and edx, 4
mov ebx, edx
imul ebx, ebx, 0x11b
xor ecx, ebx
mov dword [ebp - 8], eax
shr dword [ebp - 8], 7
mov ebx, dword [ebp - 8]
imul ebx, ebx, 0x11b
xor ecx, ebx
mov dword [ebp - 0x18], edi
imul edi, edi, 0x1b000000
mov ebx, eax
shl ebx, 2
xor ebx, eax
shl ebx, 1
xor ebx, eax
shl ebx, 0x18
xor ebx, edi
mov edi, dword [ebp - 4]
imul edi, edi, 0x1b000000
xor ebx, edi
mov edi, edx
imul edi, edi, 0x1b000000
xor ebx, edi
mov edi, dword [ebp - 8]
imul edi, edi, 0x1b000000
xor ebx, edi
mov edi, dword [ebp - 0x1c]
or ecx, ebx
mov ebx, edi
mov edi, dword [ebp - 0x18]
imul edi, edi, 0x11b0000
shl ebx, 2
xor ebx, eax
shl ebx, 0x10
xor ebx, edi
mov edi, dword [ebp - 4]
imul edi, edi, 0x11b0000
xor ebx, edi
mov edi, dword [ebp - 0x14]
imul edi, edi, 0x11b0000
xor ebx, edi
mov edi, dword [ebp - 0xc]
imul edi, edi, 0x11b0000
xor ebx, edi
mov edi, edx
imul edi, edi, 0x11b0000
imul edx, edx, 0x11b00
xor ebx, edi
mov edi, dword [ebp - 0x18]
or ecx, ebx
imul edi, edi, 0x11b00
mov ebx, eax
shl ebx, 3
xor ebx, eax
shl ebx, 8
xor ebx, edi
mov edi, dword [ebp - 4]
imul edi, edi, 0x11b00
xor ebx, edi
xor ebx, edx
or ecx, ebx
mov edi, ecx
mov ebx, ecx
shr edi, 0x18
shl ebx, 8
or edi, ebx
mov ebx, ecx
mov dword [ebp - 0x1c], edi
mov edx, eax
shl edx, 2
mov dword [edx + 0x4187e0], edi
mov edi, ecx
mov dword [edx + 0x4183e0], ecx
shr edi, 0x10
mov dword [esi + 0x41b420], ecx
shl ebx, 0x10
or edi, ebx
mov ebx, ecx
mov dword [edx + 0x418be0], edi
mov dword [ebp - 0x18], edi
mov edi, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 0x41b820], ecx
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x41bc20], ecx
shl edi, 0x18
shr ebx, 8
or edi, ebx
mov dword [edx + 0x418fe0], edi
mov ecx, eax
shr ecx, 0x18
mov edx, eax
shl edx, 8
or ecx, edx
mov dword [esi + 0x4197e0], ecx
mov ecx, eax
shr ecx, 0x10
mov edx, eax
shl edx, 0x10
or ecx, edx
mov dword [esi + 0x419be0], ecx
mov ecx, eax
shl ecx, 0x18
mov dword [esi + 0x4193e0], eax
shr eax, 8
or ecx, eax
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x100
mov dword [esi + 0x41c020], edi
mov dword [esi + 0x419fe0], ecx
jb 0x40a1e5
pop edi
pop esi
mov dword [0x41d438], 1
xor eax, eax
pop ebx
leave
ret