Function at 0x51e4f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov ecx, 0x65a8eb
call fcn.0053954a
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
not ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x10], 0
je 0x51e565
mov edx, dword [ebp + 0xc]
and edx, 3
je 0x51e565
mov eax, 0x400
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp - 4]
and eax, 0xff
mov edx, dword [ebp - 4]
shr edx, 8
xor edx, dword [ecx + eax*4 + 0x5e6c08]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp + 0x10], ecx
jmp 0x51e51d
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0x20
jb 0x51e943
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 8], edx
mov eax, 0x400
imul ecx, eax, 3
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, 0x400
shl eax, 1
mov esi, dword [ebp - 4]
shr esi, 8
and esi, 0xff
mov ecx, dword [ecx + edx*4 + 0x5e6c08]
xor ecx, dword [eax + esi*4 + 0x5e6c08]
mov edx, 0x400
shl edx, 0
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
xor ecx, dword [edx + eax*4 + 0x5e6c08]
mov edx, 0x400
imul eax, edx, 0
mov edx, dword [ebp - 4]
shr edx, 0x18
xor ecx, dword [eax + edx*4 + 0x5e6c08]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 8], edx
mov eax, 0x400
imul ecx, eax, 3
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, 0x400
shl eax, 1
mov esi, dword [ebp - 4]
shr esi, 8
and esi, 0xff
mov ecx, dword [ecx + edx*4 + 0x5e6c08]
xor ecx, dword [eax + esi*4 + 0x5e6c08]
mov edx, 0x400
shl edx, 0
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
xor ecx, dword [edx + eax*4 + 0x5e6c08]
mov edx, 0x400
imul eax, edx, 0
mov edx, dword [ebp - 4]
shr edx, 0x18
xor ecx, dword [eax + edx*4 + 0x5e6c08]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 8], edx
mov eax, 0x400
imul ecx, eax, 3
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, 0x400
shl eax, 1
mov esi, dword [ebp - 4]
shr esi, 8
and esi, 0xff
mov ecx, dword [ecx + edx*4 + 0x5e6c08]
xor ecx, dword [eax + esi*4 + 0x5e6c08]
mov edx, 0x400
shl edx, 0
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
xor ecx, dword [edx + eax*4 + 0x5e6c08]
mov edx, 0x400
imul eax, edx, 0
mov edx, dword [ebp - 4]
shr edx, 0x18
xor ecx, dword [eax + edx*4 + 0x5e6c08]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 8], edx
mov eax, 0x400
imul ecx, eax, 3
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, 0x400
shl eax, 1
mov esi, dword [ebp - 4]
shr esi, 8
and esi, 0xff
mov ecx, dword [ecx + edx*4 + 0x5e6c08]
xor ecx, dword [eax + esi*4 + 0x5e6c08]
mov edx, 0x400
shl edx, 0
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
xor ecx, dword [edx + eax*4 + 0x5e6c08]
mov edx, 0x400
imul eax, edx, 0
mov edx, dword [ebp - 4]
shr edx, 0x18
xor ecx, dword [eax + edx*4 + 0x5e6c08]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 8], edx
mov eax, 0x400
imul ecx, eax, 3
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, 0x400
shl eax, 1
mov esi, dword [ebp - 4]
shr esi, 8
and esi, 0xff
mov ecx, dword [ecx + edx*4 + 0x5e6c08]
xor ecx, dword [eax + esi*4 + 0x5e6c08]
mov edx, 0x400
shl edx, 0
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
xor ecx, dword [edx + eax*4 + 0x5e6c08]
mov edx, 0x400
imul eax, edx, 0
mov edx, dword [ebp - 4]
shr edx, 0x18
xor ecx, dword [eax + edx*4 + 0x5e6c08]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 8], edx
mov eax, 0x400
imul ecx, eax, 3
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, 0x400
shl eax, 1
mov esi, dword [ebp - 4]
shr esi, 8
and esi, 0xff
mov ecx, dword [ecx + edx*4 + 0x5e6c08]
xor ecx, dword [eax + esi*4 + 0x5e6c08]
mov edx, 0x400
shl edx, 0
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
xor ecx, dword [edx + eax*4 + 0x5e6c08]
mov edx, 0x400
imul eax, edx, 0
mov edx, dword [ebp - 4]
shr edx, 0x18
xor ecx, dword [eax + edx*4 + 0x5e6c08]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 8], edx
mov eax, 0x400
imul ecx, eax, 3
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, 0x400
shl eax, 1
mov esi, dword [ebp - 4]
shr esi, 8
and esi, 0xff
mov ecx, dword [ecx + edx*4 + 0x5e6c08]
xor ecx, dword [eax + esi*4 + 0x5e6c08]
mov edx, 0x400
shl edx, 0
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
xor ecx, dword [edx + eax*4 + 0x5e6c08]
mov edx, 0x400
imul eax, edx, 0
mov edx, dword [ebp - 4]
shr edx, 0x18
xor ecx, dword [eax + edx*4 + 0x5e6c08]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 8], edx
mov eax, 0x400
imul ecx, eax, 3
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, 0x400
shl eax, 1
mov esi, dword [ebp - 4]
shr esi, 8
and esi, 0xff
mov ecx, dword [ecx + edx*4 + 0x5e6c08]
xor ecx, dword [eax + esi*4 + 0x5e6c08]
mov edx, 0x400
shl edx, 0
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
xor ecx, dword [edx + eax*4 + 0x5e6c08]
mov edx, 0x400
imul eax, edx, 0
mov edx, dword [ebp - 4]
shr edx, 0x18
xor ecx, dword [eax + edx*4 + 0x5e6c08]
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0x10]
sub eax, 0x20
mov dword [ebp + 0x10], eax
jmp 0x51e56b
cmp dword [ebp + 0x10], 4
jb 0x51e9d3
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
xor edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov ecx, 0x400
imul edx, ecx, 3
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, 0x400
shl ecx, 1
mov esi, dword [ebp - 4]
shr esi, 8
and esi, 0xff
mov edx, dword [edx + eax*4 + 0x5e6c08]
xor edx, dword [ecx + esi*4 + 0x5e6c08]
mov eax, 0x400
shl eax, 0
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [eax + ecx*4 + 0x5e6c08]
mov eax, 0x400
imul ecx, eax, 0
mov eax, dword [ebp - 4]
shr eax, 0x18
xor edx, dword [ecx + eax*4 + 0x5e6c08]
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 0x10]
sub ecx, 4
mov dword [ebp + 0x10], ecx
jmp 0x51e943
mov edx, dword [ebp - 8]
mov dword [ebp + 0xc], edx
cmp dword [ebp + 0x10], 0
je 0x51ea19
mov eax, 0x400
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp - 4]
and eax, 0xff
mov edx, dword [ebp - 4]
shr edx, 8
xor edx, dword [ecx + eax*4 + 0x5e6c08]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp + 0x10], ecx
jne 0x51e9df
mov edx, dword [ebp - 4]
not edx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
pop esi
add esp, 8
cmp ebp, esp
call fcn.0053951b
mov esp, ebp
pop ebp
ret