Function at 0x5ac226
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x783760]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x30], eax
inc edx
lea eax, [ebp - 0x14]
mov esi, ebx
sub edi, eax
movzx ecx, byte [edx - 1]
movzx eax, byte [edx]
lea edx, [edx + 4]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
xor ecx, eax
lea eax, [edi + esi*4]
shl ecx, 8
xor ecx, dword [ebp + eax - 0x14]
movzx eax, byte [edx - 2]
xor ecx, eax
mov dword [ebp + esi*4 - 0x14], ecx
inc esi
cmp esi, 4
jl 0x5ac24f
mov edx, dword [ebp + 0x14]
cmp edx, 1
jle 0x5ac3e2
mov edi, dword [ebp + 0x10]
lea eax, [edx - 1]
mov edx, dword [ebp - 8]
add edi, 0x18
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], eax
sar eax, 0x18
movzx ecx, al
mov eax, ebx
sar eax, 0x18
movzx eax, al
mov ebx, dword [ecx*4 + 0x713ed8]
xor ebx, dword [eax*4 + 0x7142d8]
mov eax, dword [ebp - 0x20]
sar eax, 0x18
movzx eax, al
xor ebx, dword [eax*4 + 0x7146d8]
mov eax, edx
sar eax, 0x18
movzx eax, al
xor ebx, dword [eax*4 + 0x714ad8]
mov eax, dword [ebp - 0x1c]
xor ebx, dword [edi - 8]
sar eax, 0x10
movzx ecx, al
mov eax, dword [ebp - 0x18]
sar eax, 0x10
movzx eax, al
mov edi, dword [ecx*4 + 0x713ed8]
xor edi, dword [eax*4 + 0x7142d8]
mov eax, dword [ebp - 0x20]
sar eax, 0x10
movzx eax, al
xor edi, dword [eax*4 + 0x7146d8]
mov eax, edx
sar eax, 0x10
movzx eax, al
xor edi, dword [eax*4 + 0x714ad8]
mov eax, dword [ebp - 0x28]
xor edi, dword [eax - 4]
mov eax, dword [ebp - 0x1c]
sar eax, 8
movzx ecx, al
mov eax, dword [ebp - 0x18]
sar eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x713ed8]
mov ecx, dword [ebp - 0x18]
movzx ecx, cl
xor esi, dword [eax*4 + 0x7142d8]
mov eax, dword [ebp - 0x20]
sar eax, 8
movzx eax, al
xor esi, dword [eax*4 + 0x7146d8]
mov eax, edx
sar eax, 8
movzx eax, al
xor esi, dword [eax*4 + 0x714ad8]
mov eax, dword [ebp - 0x28]
xor esi, dword [eax]
mov eax, dword [ebp - 0x1c]
movzx eax, al
mov edx, dword [eax*4 + 0x713ed8]
mov eax, dword [ebp - 0x20]
xor edx, dword [ecx*4 + 0x7142d8]
movzx eax, al
mov dword [ebp - 0x20], esi
xor edx, dword [eax*4 + 0x7146d8]
mov eax, dword [ebp - 0x24]
movzx eax, al
xor edx, dword [eax*4 + 0x714ad8]
mov eax, dword [ebp - 0x28]
xor edx, dword [eax + 4]
mov eax, ebx
mov ebx, edi
mov dword [ebp - 0x24], edx
mov edi, dword [ebp - 0x28]
add edi, 0x10
mov dword [ebp - 0x1c], eax
sub dword [ebp - 0x2c], 1
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], edi
jne 0x5ac2b4
mov edx, dword [ebp + 0x14]
xor ebx, ebx
mov eax, dword [ebp - 0x18]
jmp 0x5ac3fa
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
sar eax, 0x18
mov edi, 0xff00
movzx eax, al
add edx, edx
mov esi, dword [ebp + 0x10]
mov ecx, dword [eax*4 + 0x7142d8]
mov eax, dword [ebp - 0x24]
and ecx, 0xff0000
sar eax, 0x18
movzx eax, al
movzx eax, byte [eax*4 + 0x714ad8]
xor ecx, eax
mov eax, dword [ebp - 0x1c]
sar eax, 0x18
movzx eax, al
mov eax, dword [eax*4 + 0x713ed8]
and eax, 0xff000000
xor ecx, eax
mov eax, dword [ebp - 0x20]
sar eax, 0x18
movzx eax, al
mov eax, dword [eax*4 + 0x7146d8]
and eax, edi
xor ecx, eax
mov eax, dword [ebp - 0x18]
xor ecx, dword [esi + edx*8]
sar eax, 0x10
movzx eax, al
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax*4 + 0x7142d8]
mov eax, dword [ebp - 0x24]
and ecx, 0xff0000
sar eax, 0x10
movzx eax, al
movzx eax, byte [eax*4 + 0x714ad8]
xor ecx, eax
mov eax, dword [ebp - 0x1c]
sar eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x713ed8]
and eax, 0xff000000
xor ecx, eax
mov eax, dword [ebp - 0x20]
sar eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x7146d8]
and eax, edi
xor ecx, eax
mov eax, dword [ebp - 0x18]
xor ecx, dword [esi + edx*8 + 4]
sar eax, 8
movzx eax, al
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax*4 + 0x7142d8]
mov eax, dword [ebp - 0x24]
and ecx, 0xff0000
sar eax, 8
movzx eax, al
movzx eax, byte [eax*4 + 0x714ad8]
xor ecx, eax
mov eax, dword [ebp - 0x1c]
sar eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x713ed8]
and eax, 0xff000000
xor ecx, eax
mov eax, dword [ebp - 0x20]
sar eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x7146d8]
and eax, edi
xor ecx, eax
mov eax, dword [ebp - 0x18]
xor ecx, dword [esi + edx*8 + 8]
movzx eax, al
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax*4 + 0x7142d8]
mov eax, dword [ebp - 0x24]
and ecx, 0xff0000
movzx eax, al
movzx eax, byte [eax*4 + 0x714ad8]
xor ecx, eax
mov eax, dword [ebp - 0x1c]
movzx eax, al
mov eax, dword [eax*4 + 0x713ed8]
and eax, 0xff000000
xor ecx, eax
mov eax, dword [ebp - 0x20]
movzx eax, al
mov eax, dword [eax*4 + 0x7146d8]
and eax, edi
xor ecx, eax
xor ecx, dword [esi + edx*8 + 0xc]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 8], ecx
inc edx
mov ecx, dword [ebp + ebx*4 - 0x14]
mov eax, ecx
shr eax, 0x18
mov byte [edx - 1], al
mov eax, ecx
shr eax, 0x10
mov byte [edx], al
mov eax, ecx
shr eax, 8
lea edx, [edx + 4]
inc ebx
mov byte [edx - 3], al
mov byte [edx - 2], cl
cmp ebx, 4
jl 0x5ac564
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056e1bf
mov esp, ebp
pop ebp
ret