Function at 0x4122a2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x100]
mov edx, ecx
shl edx, 4
sub esp, 0x34
add edx, eax
test byte [eax + 0x104], 2
jne 0x4122c5
xor eax, eax
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [edx]
xor esi, dword [eax]
push edi
mov dword [ebp - 0x34], esi
mov esi, dword [edx + 4]
xor esi, dword [eax + 4]
mov dword [ebp - 0x30], esi
mov esi, dword [edx + 8]
xor esi, dword [eax + 8]
mov dword [ebp - 0x2c], esi
mov esi, dword [edx + 0xc]
xor esi, dword [eax + 0xc]
dec ecx
mov dword [ebp - 0x28], esi
lea esi, [ebp - 0x24]
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], esi
je 0x4125c0
mov dword [ebp - 0x14], ecx
mov esi, 0x1010101
mov ecx, 0xff7f7f7f
movzx edi, byte [eax + 7]
movzx edi, byte [edi + 0x8256e0]
movzx ebx, byte [eax + 0xa]
movzx ebx, byte [ebx + 0x8256e0]
shl edi, 8
or edi, ebx
mov ebx, dword [eax + 0xc]
shr ebx, 8
sub edx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + 0x8256e0]
mov dword [ebp - 0x10], edx
shl edi, 8
or edi, ebx
movzx ebx, byte [eax]
movzx ebx, byte [ebx + 0x8256e0]
shl edi, 8
or edi, ebx
xor edi, dword [edx]
mov edx, edi
shr edx, 7
and edx, esi
imul edx, edx, 0x1b
mov ebx, edi
and ebx, ecx
add ebx, ebx
xor edx, ebx
mov ebx, edx
mov dword [ebp - 4], edx
and edx, ecx
add edx, edx
shr ebx, 7
and ebx, esi
imul ebx, ebx, 0x1b
xor ebx, edx
mov edx, ebx
shr edx, 7
and edx, esi
imul edx, edx, 0x1b
mov dword [ebp + 0x10], ebx
and ebx, ecx
add ebx, ebx
xor edx, ebx
xor edi, edx
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov edx, dword [ebp + 0x10]
xor edx, edi
rol edx, 0x10
xor ebx, edi
ror ebx, 8
xor edx, ebx
rol edi, 8
xor edx, edi
xor edx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
xor edx, dword [ebp + 0x10]
xor edx, dword [ebp - 4]
mov dword [edi], edx
movzx edx, byte [eax + 0xb]
movzx edi, byte [edx + 0x8256e0]
movzx edx, byte [eax + 0xe]
movzx edx, byte [edx + 0x8256e0]
shl edi, 8
or edi, edx
mov edx, dword [eax]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x8256e0]
shl edi, 8
or edi, edx
movzx edx, byte [eax + 4]
movzx edx, byte [edx + 0x8256e0]
shl edi, 8
or edi, edx
mov edx, dword [ebp - 0x10]
xor edi, dword [edx + 4]
mov edx, edi
shr edx, 7
and edx, esi
imul edx, edx, 0x1b
mov ebx, edi
and ebx, ecx
add ebx, ebx
xor edx, ebx
mov ebx, edx
mov dword [ebp - 4], edx
and edx, ecx
add edx, edx
shr ebx, 7
and ebx, esi
imul ebx, ebx, 0x1b
xor ebx, edx
mov edx, ebx
shr edx, 7
and edx, esi
imul edx, edx, 0x1b
mov dword [ebp + 0x10], ebx
and ebx, ecx
add ebx, ebx
xor edx, ebx
xor edi, edx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 0x10]
xor edx, edi
mov ebx, dword [ebp - 4]
rol edx, 0x10
xor ebx, edi
ror ebx, 8
xor edx, ebx
rol edi, 8
xor edx, edi
xor edx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
xor edx, dword [ebp + 0x10]
xor edx, dword [ebp - 4]
mov dword [edi + 4], edx
movzx edx, byte [eax + 0xf]
movzx edi, byte [edx + 0x8256e0]
movzx edx, byte [eax + 2]
movzx edx, byte [edx + 0x8256e0]
shl edi, 8
or edi, edx
mov edx, dword [eax + 4]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x8256e0]
shl edi, 8
or edi, edx
movzx edx, byte [eax + 8]
movzx edx, byte [edx + 0x8256e0]
shl edi, 8
or edi, edx
mov edx, dword [ebp - 0x10]
xor edi, dword [edx + 8]
mov edx, edi
shr edx, 7
and edx, esi
imul edx, edx, 0x1b
mov ebx, edi
and ebx, ecx
add ebx, ebx
xor edx, ebx
mov ebx, edx
shr ebx, 7
and ebx, esi
imul ebx, ebx, 0x1b
mov dword [ebp - 4], edx
and edx, ecx
add edx, edx
xor ebx, edx
mov edx, ebx
shr edx, 7
and edx, esi
imul edx, edx, 0x1b
mov dword [ebp + 0x10], ebx
and ebx, ecx
add ebx, ebx
xor edx, ebx
mov dword [ebp - 8], edx
xor edi, edx
mov edx, dword [ebp + 0x10]
xor edx, edi
mov ebx, dword [ebp - 4]
rol edx, 0x10
xor ebx, edi
ror ebx, 8
xor edx, ebx
rol edi, 8
xor edx, edi
xor edx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
xor edx, dword [ebp + 0x10]
xor edx, dword [ebp - 4]
mov dword [edi + 8], edx
movzx edx, byte [eax + 3]
movzx edi, byte [edx + 0x8256e0]
movzx edx, byte [eax + 6]
movzx edx, byte [edx + 0x8256e0]
shl edi, 8
or edi, edx
mov edx, dword [eax + 8]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x8256e0]
shl edi, 8
or edi, edx
movzx edx, byte [eax + 0xc]
movzx edx, byte [edx + 0x8256e0]
shl edi, 8
or edi, edx
mov edx, dword [ebp - 0x10]
xor edi, dword [edx + 0xc]
mov edx, edi
shr edx, 7
and edx, esi
imul edx, edx, 0x1b
mov ebx, edi
and ebx, ecx
add ebx, ebx
xor edx, ebx
mov ebx, edx
shr ebx, 7
and ebx, esi
imul ebx, ebx, 0x1b
mov dword [ebp - 4], edx
and edx, ecx
add edx, edx
xor ebx, edx
mov edx, ebx
shr edx, 7
and edx, esi
imul edx, edx, 0x1b
mov dword [ebp + 0x10], ebx
and ebx, ecx
add ebx, ebx
xor edx, ebx
mov ebx, dword [ebp + 0x10]
xor edi, edx
xor ebx, edi
mov dword [ebp - 8], edx
mov edx, dword [ebp - 4]
rol ebx, 0x10
xor edx, edi
ror edx, 8
xor ebx, edx
mov edx, dword [ebp - 0xc]
rol edi, 8
xor ebx, edi
xor ebx, dword [ebp - 8]
mov edi, eax
xor ebx, dword [ebp + 0x10]
mov eax, edx
xor ebx, dword [ebp - 4]
dec dword [ebp - 0x14]
mov dword [edx + 0xc], ebx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edi
jne 0x41230a
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + 0x8256e0]
shr eax, 0x18
movzx eax, byte [eax + 0x8256e0]
mov ebx, dword [ebp - 0x18]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp - 0x18]
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x8256e0]
shr ebx, 0x10
movzx edi, bl
movzx edi, byte [edi + 0x8256e0]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp - 0x24]
movzx esi, cl
movzx esi, byte [esi + 0x8256e0]
shl eax, 8
or eax, esi
mov esi, dword [ebp - 0x1c]
shr esi, 0x18
movzx esi, byte [esi + 0x8256e0]
mov ebx, ecx
shr ebx, 8
shl esi, 8
or esi, edi
movzx edi, bl
movzx edi, byte [edi + 0x8256e0]
shl esi, 8
or esi, edi
movzx edi, byte [ebp - 0x20]
movzx edi, byte [edi + 0x8256e0]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + 0x8256e0]
shl esi, 8
or esi, edi
mov edi, dword [ebp - 0x18]
shr edi, 0x18
movzx edi, byte [edi + 0x8256e0]
shl edi, 8
or edi, ebx
mov ebx, dword [ebp - 0x20]
shr ebx, 8
movzx ebx, bl
movzx ebx, byte [ebx + 0x8256e0]
shl edi, 8
or edi, ebx
movzx ebx, byte [ebp - 0x1c]
movzx ebx, byte [ebx + 0x8256e0]
shl edi, 8
or edi, ebx
mov ebx, dword [ebp - 0x20]
shr ebx, 0x10
shr ecx, 0x18
movzx ecx, byte [ecx + 0x8256e0]
movzx ebx, bl
movzx ebx, byte [ebx + 0x8256e0]
xor esi, dword [edx - 0xc]
xor edi, dword [edx - 8]
shl ecx, 8
or ecx, ebx
mov ebx, dword [ebp - 0x1c]
shr ebx, 8
movzx ebx, bl
movzx ebx, byte [ebx + 0x8256e0]
shl ecx, 8
or ecx, ebx
movzx ebx, byte [ebp - 0x18]
movzx ebx, byte [ebx + 0x8256e0]
sub edx, 0x10
xor eax, dword [edx]
shl ecx, 8
or ecx, ebx
xor ecx, dword [edx + 0xc]
mov edx, dword [ebp + 0xc]
mov dword [edx + 8], edi
pop edi
mov dword [edx], eax
mov dword [edx + 4], esi
xor eax, eax
pop esi
mov dword [edx + 0xc], ecx
inc eax
pop ebx
leave
ret