Function at 0x597e40
Capabilities:
Encode data using xor

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