Function at 0x598140
Capabilities:
Encode data using xor

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