Function at 0x51df30
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]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
and ecx, 0xff00
add eax, ecx
mov edx, dword [ebp + 8]
and edx, 0xff00
shl edx, 8
add eax, edx
mov ecx, dword [ebp + 8]
and ecx, 0xff
shl ecx, 0x18
add eax, ecx
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
not edx
mov dword [ebp - 4], edx
cmp dword [ebp + 0x10], 0
je 0x51dfd7
mov eax, dword [ebp + 0xc]
and eax, 3
je 0x51dfd7
mov ecx, 0x400
shl ecx, 2
mov edx, dword [ebp - 4]
shr edx, 0x18
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor edx, eax
mov eax, dword [ebp - 4]
shl eax, 8
xor eax, dword [ecx + edx*4 + 0x5e6c08]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jmp 0x51df8f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], 0x20
jb 0x51e3c5
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
shl ecx, 2
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, 0x400
imul eax, eax, 5
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
imul eax, edx, 6
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, 0xff
xor ecx, dword [eax + edx*4 + 0x5e6c08]
mov eax, 0x400
imul edx, eax, 7
mov eax, dword [ebp - 4]
shr eax, 0x18
xor ecx, dword [edx + eax*4 + 0x5e6c08]
mov dword [ebp - 4], ecx
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
shl ecx, 2
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, 0x400
imul eax, eax, 5
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
imul eax, edx, 6
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, 0xff
xor ecx, dword [eax + edx*4 + 0x5e6c08]
mov eax, 0x400
imul edx, eax, 7
mov eax, dword [ebp - 4]
shr eax, 0x18
xor ecx, dword [edx + eax*4 + 0x5e6c08]
mov dword [ebp - 4], ecx
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
shl ecx, 2
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, 0x400
imul eax, eax, 5
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
imul eax, edx, 6
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, 0xff
xor ecx, dword [eax + edx*4 + 0x5e6c08]
mov eax, 0x400
imul edx, eax, 7
mov eax, dword [ebp - 4]
shr eax, 0x18
xor ecx, dword [edx + eax*4 + 0x5e6c08]
mov dword [ebp - 4], ecx
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
shl ecx, 2
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, 0x400
imul eax, eax, 5
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
imul eax, edx, 6
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, 0xff
xor ecx, dword [eax + edx*4 + 0x5e6c08]
mov eax, 0x400
imul edx, eax, 7
mov eax, dword [ebp - 4]
shr eax, 0x18
xor ecx, dword [edx + eax*4 + 0x5e6c08]
mov dword [ebp - 4], ecx
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
shl ecx, 2
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, 0x400
imul eax, eax, 5
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
imul eax, edx, 6
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, 0xff
xor ecx, dword [eax + edx*4 + 0x5e6c08]
mov eax, 0x400
imul edx, eax, 7
mov eax, dword [ebp - 4]
shr eax, 0x18
xor ecx, dword [edx + eax*4 + 0x5e6c08]
mov dword [ebp - 4], ecx
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
shl ecx, 2
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, 0x400
imul eax, eax, 5
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
imul eax, edx, 6
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, 0xff
xor ecx, dword [eax + edx*4 + 0x5e6c08]
mov eax, 0x400
imul edx, eax, 7
mov eax, dword [ebp - 4]
shr eax, 0x18
xor ecx, dword [edx + eax*4 + 0x5e6c08]
mov dword [ebp - 4], ecx
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
shl ecx, 2
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, 0x400
imul eax, eax, 5
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
imul eax, edx, 6
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, 0xff
xor ecx, dword [eax + edx*4 + 0x5e6c08]
mov eax, 0x400
imul edx, eax, 7
mov eax, dword [ebp - 4]
shr eax, 0x18
xor ecx, dword [edx + eax*4 + 0x5e6c08]
mov dword [ebp - 4], ecx
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
shl ecx, 2
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, 0x400
imul eax, eax, 5
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
imul eax, edx, 6
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, 0xff
xor ecx, dword [eax + edx*4 + 0x5e6c08]
mov eax, 0x400
imul edx, eax, 7
mov eax, dword [ebp - 4]
shr eax, 0x18
xor ecx, dword [edx + eax*4 + 0x5e6c08]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x10]
sub ecx, 0x20
mov dword [ebp + 0x10], ecx
jmp 0x51dfdd
cmp dword [ebp + 0x10], 4
jb 0x51e455
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
xor eax, dword [edx]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
mov edx, 0x400
shl edx, 2
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, 0x400
imul ecx, ecx, 5
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
imul ecx, eax, 6
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
xor edx, dword [ecx + eax*4 + 0x5e6c08]
mov ecx, 0x400
imul eax, ecx, 7
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor edx, dword [eax + ecx*4 + 0x5e6c08]
mov dword [ebp - 4], edx
mov edx, dword [ebp + 0x10]
sub edx, 4
mov dword [ebp + 0x10], edx
jmp 0x51e3c5
mov eax, dword [ebp - 8]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x10], 0
je 0x51e49b
mov ecx, 0x400
shl ecx, 2
mov edx, dword [ebp - 4]
shr edx, 0x18
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor edx, eax
mov eax, dword [ebp - 4]
shl eax, 8
xor eax, dword [ecx + edx*4 + 0x5e6c08]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x51e461
mov eax, dword [ebp - 4]
not eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff00
add eax, ecx
mov edx, dword [ebp - 4]
and edx, 0xff00
shl edx, 8
add eax, edx
mov ecx, dword [ebp - 4]
and ecx, 0xff
shl ecx, 0x18
add eax, ecx
pop esi
add esp, 8
cmp ebp, esp
call fcn.0053951b
mov esp, ebp
pop ebp
ret