Function at 0x6131f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x1c], 8
movzx ebx, byte [edx + 0xb]
movzx ecx, byte [edx + 0xf]
shl ebx, 8
lea eax, [esi + 0x88]
shl ecx, 8
mov dword [ebp - 0x14], eax
lea eax, [esi + 0x488]
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x888]
mov dword [ebp - 8], eax
lea eax, [esi + 0xc88]
mov dword [ebp - 0x10], eax
movzx eax, byte [edx + 0xa]
or ebx, eax
mov dword [ebp - 0x20], esi
movzx eax, byte [edx + 9]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 8]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 0xe]
or ecx, eax
xor ebx, dword [esi + 0x10a0]
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 3]
xor ecx, dword [esi + 0x10a4]
mov dword [ebp - 4], ecx
movzx ecx, byte [edx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx]
push edi
movzx edi, byte [edx + 7]
shl eax, 8
or eax, ecx
shl edi, 8
movzx ecx, byte [edx + 6]
xor eax, dword [esi + 0x1098]
or edi, ecx
movzx ecx, byte [edx + 5]
shl edi, 8
or edi, ecx
movzx ecx, byte [edx + 4]
shl edi, 8
mov edx, edi
mov dword [ebp + 8], edi
or edx, ecx
xor edx, dword [esi + 0x109c]
add esi, 0x1118
mov dword [ebp + 8], edx
mov dword [ebp - 0x18], esi
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
shr ecx, 8
movzx ecx, cl
shr edx, 0x10
movzx edx, dl
mov esi, dword [ebp - 0x14]
ror ebx, 0x1f
mov edi, dword [edi + edx*4]
mov edx, dword [ebp - 8]
xor edi, dword [edx + ecx*4]
mov edx, dword [ebp + 8]
mov ecx, edx
shr ecx, 0x18
xor edi, dword [esi + ecx*4]
mov esi, dword [ebp - 8]
movzx ecx, dl
mov edx, dword [ebp - 0xc]
xor edi, dword [edx + ecx*4]
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov edx, dword [esi + edx*4]
mov esi, dword [ebp - 0xc]
xor edx, dword [esi + ecx*4]
mov ecx, eax
mov esi, dword [ebp - 0x10]
shr ecx, 0x18
xor edx, dword [esi + ecx*4]
mov esi, dword [ebp - 0x14]
movzx ecx, al
xor edx, dword [esi + ecx*4]
mov esi, dword [ebp - 0x18]
add edx, edi
mov ecx, dword [esi + 8]
mov esi, dword [esi + 0xc]
add ecx, edx
add esi, edx
xor ebx, ecx
mov ecx, dword [ebp - 4]
add esi, edi
shl ecx, 0x1f
mov edx, esi
xor esi, dword [ebp - 4]
shl edx, 0x1f
xor ecx, edx
shr esi, 1
or ecx, esi
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [ebp - 4]
shr ecx, 8
movzx ecx, cl
mov edi, dword [esi + edx*4]
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
xor edi, dword [edx + ecx*4]
mov edx, dword [ebp - 4]
mov ecx, edx
shr ecx, 0x18
xor edi, dword [esi + ecx*4]
mov esi, dword [ebp - 8]
movzx ecx, dl
mov edx, dword [ebp - 0xc]
xor edi, dword [edx + ecx*4]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [esi + edx*4]
mov esi, dword [ebp - 0xc]
xor edx, dword [esi + ecx*4]
mov ecx, ebx
shr ecx, 0x18
mov esi, dword [ebp - 0x10]
ror eax, 0x1f
xor edx, dword [esi + ecx*4]
mov esi, dword [ebp - 0x14]
movzx ecx, bl
xor edx, dword [esi + ecx*4]
mov esi, dword [ebp - 0x18]
add edx, edi
sub dword [ebp - 0x18], 0x10
mov ecx, dword [esi]
mov esi, dword [esi + 4]
add ecx, edx
add esi, edx
xor eax, ecx
mov ecx, dword [ebp + 8]
add esi, edi
mov edx, esi
shl ecx, 0x1f
xor esi, dword [ebp + 8]
shl edx, 0x1f
xor edx, ecx
shr esi, 1
or edx, esi
sub dword [ebp - 0x1c], 1
mov dword [ebp + 8], edx
jne 0x6132d3
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 4]
xor eax, dword [ecx + 0x1090]
xor edx, dword [ecx + 0x1094]
xor ebx, dword [ecx + 0x1088]
xor edi, dword [ecx + 0x108c]
mov ecx, ebx
shr ecx, 0x18
mov dword [ebp + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov byte [edx + 3], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edx + 2], cl
mov ecx, ebx
shr ecx, 8
mov byte [edx + 1], cl
mov byte [edx], bl
mov ebx, edi
mov ecx, ebx
mov byte [edx + 8], al
shr ecx, 0x18
mov byte [edx + 7], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edx + 6], cl
mov ecx, ebx
shr ecx, 8
mov byte [edx + 5], cl
mov ecx, eax
shr ecx, 0x18
mov byte [edx + 0xb], cl
mov ecx, eax
shr ecx, 0x10
mov byte [edx + 0xa], cl
mov ecx, eax
shr ecx, 8
mov byte [edx + 9], cl
mov ecx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x18
mov byte [edx + 0xf], al
mov eax, ecx
shr eax, 0x10
mov byte [edx + 0xe], al
mov eax, ecx
pop edi
shr eax, 8
pop esi
mov byte [edx + 4], bl
mov byte [edx + 0xd], al
mov byte [edx + 0xc], cl
pop ebx
mov esp, ebp
pop ebp
ret 8