Function at 0x806ac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
mov esi, dword [esp + 0x74]
cmp eax, 1
mov dword [esp + 0x28], ecx
jne 0x806bf9
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov ebx, dword [eax]
mov ebp, dword [edx]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov ecx, dword [ecx]
mov edx, dword [edx]
mov esi, ebx
and esi, 1
neg esi
mov eax, ebp
and eax, 1
neg eax
mov dword [esp + 0x20], edx
and eax, edx
mov dword [esp + 0x18], ecx
xor esi, ecx
mov dword [esp], eax
and esi, eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0x1f
xor edx, edx
mov eax, ebp
mov dword [esp + 4], ebx
mov dword [esp + 0x14], ebx
nop word cs:[eax + eax]
shr eax, 1
mov dword [esp + 0x1c], eax
shr dword [esp + 0x14], 1
shl ebp, 0x1e
sar ebp, 0x1f
and ebp, dword [esp + 0x20]
bt dword [esp + 4], 1
mov eax, 0
sbb eax, eax
xor eax, dword [esp + 0x18]
and eax, ebp
mov edi, eax
mov ebx, dword [esp + 0xc]
mov ecx, ebx
shl edi, cl
mov dword [esp + 4], edi
mov ecx, dword [esp + 0x10]
shr eax, cl
mov edi, ebp
mov ecx, ebx
shl edi, cl
mov ecx, dword [esp]
mov ebx, esi
xor ebx, edi
mov esi, dword [esp + 4]
xor esi, ecx
xor edi, ecx
mov ecx, dword [esp + 0x10]
shr ebp, cl
and esi, ebx
xor ebx, dword [esp + 4]
or ebx, edi
mov dword [esp], ebx
mov ecx, edx
xor ecx, ebp
mov edx, eax
mov edi, dword [esp + 8]
xor edx, edi
xor ebp, edi
and edx, ecx
xor ecx, eax
or ecx, ebp
mov dword [esp + 8], ecx
inc dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
mov ebp, dword [esp + 0x1c]
mov eax, ebp
dec dword [esp + 0x10]
jne 0x806b40
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
mov dword [eax], esi
mov eax, dword [ecx]
mov dword [eax + 4], edx
mov eax, dword [ecx + 4]
mov edx, dword [esp]
mov dword [eax], edx
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 8]
mov dword [eax + 4], ecx
jmp 0x806f10
mov dword [esp + 0x10], edx
mov edi, eax
shr edi, 1
mov edx, eax
sub edx, edi
lea ebp, [edi*4]
mov ebx, dword [esi]
add ebx, ebp
mov dword [esp], ebx
mov dword [esp + 0x58], ebx
mov esi, dword [esi + 4]
add esi, ebp
mov dword [esp + 8], esi
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 0x78]
mov ebx, dword [esi]
add ebx, ebp
mov dword [esp + 0x50], ebx
add ebp, dword [esi + 4]
mov esi, ebp
mov dword [esp + 0x54], ebp
mov eax, dword [ecx]
mov ebp, dword [ecx + 4]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], eax
mov dword [esp + 0x1c], eax
lea eax, [eax + edx*4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], ebp
lea edx, [edx*4]
add edx, ebp
mov dword [esp + 0x44], edx
cmp dword [esp + 0x7c], 0
mov dword [esp + 0xc], edi
je 0x806d26
mov dword [esp + 0x34], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 4], esi
xor eax, eax
mov edi, dword [esp + 0x1c]
nop dword [eax + eax]
mov ecx, dword [esp + 0x74]
mov ebp, dword [ecx]
mov ebx, dword [ecx + 4]
mov ebx, dword [ebx + eax*4]
mov ecx, dword [esp]
mov esi, dword [ecx + eax*4]
mov ecx, dword [esp + 8]
mov edx, dword [ecx + eax*4]
mov ebp, dword [ebp + eax*4]
xor ebp, edx
mov ecx, esi
xor ecx, ebx
and ecx, ebp
mov dword [edi + eax*4], ecx
xor edx, ebx
xor ebp, esi
or ebp, edx
mov ecx, dword [esp + 0x14]
mov dword [ecx + eax*4], ebp
inc eax
cmp dword [esp + 0xc], eax
jne 0x806c90
xor eax, eax
mov ebx, dword [esp + 0x18]
nop word cs:[eax + eax]
mov edx, dword [esp + 0x78]
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov edx, dword [edx + eax*4]
mov esi, dword [ebx + eax*4]
mov ebx, dword [esp + 4]
mov ebx, dword [ebx + eax*4]
mov ecx, dword [ecx + eax*4]
xor ecx, ebx
mov ebp, esi
xor ebp, edx
and ebp, ecx
mov edi, dword [esp + 0x20]
mov dword [edi + eax*4], ebp
xor ebx, edx
xor ecx, esi
or ecx, ebx
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 4]
mov edx, dword [esp + 0x34]
mov dword [edx + eax*4], ecx
mov edi, dword [esp + 0xc]
inc eax
cmp edi, eax
jne 0x806ce0
cmp dword [esp + 0x24], edi
mov ebp, dword [esp + 0x7c]
je 0x806d57
mov eax, dword [esp]
mov eax, dword [eax + edi*4]
mov ecx, dword [esp + 0x1c]
mov dword [ecx + edi*4], eax
mov eax, dword [esp + 8]
mov eax, dword [eax + edi*4]
mov edx, dword [esp + 0x14]
mov dword [edx + edi*4], eax
mov eax, dword [ebx + edi*4]
mov dword [ecx + ebp*4], eax
mov eax, dword [esi + edi*4]
mov dword [edx + ebp*4], eax
mov ecx, dword [esp + 0x24]
lea eax, [ecx + ecx]
mov dword [esp + 4], eax
lea eax, [ecx*8]
mov esi, dword [esp + 0x10]
mov ecx, dword [esi]
add ecx, eax
mov dword [esp + 0x2c], ecx
add eax, dword [esi + 4]
mov dword [esp + 0x30], eax
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
and ebp, 0xfffffffe
mov dword [esp + 0x18], eax
lea eax, [eax + ebp*4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], ecx
lea eax, [ecx + ebp*4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x40]
lea edx, [esp + 0x2c]
mov ecx, esi
mov edi, dword [esp + 0x24]
push edi
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00806ac0
add esp, 0xc
lea eax, [esp + 0x50]
lea ecx, [esp + 0x38]
lea edx, [esp + 0x2c]
push edi
push eax
lea eax, [esp + 0x60]
push eax
call fcn.00806ac0
add esp, 0xc
mov ecx, ebx
lea edx, [esp + 0x2c]
push dword [esp + 0xc]
push dword [esp + 0x7c]
push dword [esp + 0x7c]
call fcn.00806ac0
add esp, 0xc
test ebp, ebp
je 0x806e52
xor eax, eax
mov dword [esp + 8], ebp
nop word cs:[eax + eax]
mov edx, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esp], ecx
mov esi, dword [edx + eax*4]
mov ebp, dword [ebx]
mov ebx, dword [ebx + 4]
mov ebp, dword [ebp + eax*4]
mov ebx, dword [ebx + eax*4]
mov ecx, dword [ecx + eax*4]
xor ecx, ebx
xor ebx, esi
mov edi, ecx
xor edi, ebp
and edi, ebx
mov dword [edx + eax*4], edi
mov ebx, dword [esp + 0x28]
xor ebp, esi
or ebp, ecx
mov ecx, dword [esp]
mov dword [ecx + eax*4], ebp
mov ebp, dword [esp + 8]
mov esi, dword [esp + 0x10]
inc eax
cmp ebp, eax
jne 0x806e10
cmp dword [esp + 4], 0
je 0x806f10
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + eax*4]
mov dword [esp], ecx
mov ecx, dword [esp + 0x20]
lea eax, [ecx + eax*4]
mov dword [esp + 0xc], eax
xor edx, edx
nop dword [eax + eax]
mov eax, dword [esp + 0x10]
mov ebp, dword [eax]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov dword [esp + 8], ecx
mov ebx, dword [ebp + edx*4]
mov eax, dword [esp + 0x14]
mov esi, dword [eax + edx*4]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + edx*4]
mov edi, dword [ecx + edx*4]
xor edi, eax
xor eax, ebx
mov ecx, edi
xor ecx, esi
and ecx, eax
mov dword [ebp + edx*4], ecx
mov ebp, dword [esp + 0x10]
xor esi, ebx
or esi, edi
mov eax, dword [esp + 8]
mov dword [eax + edx*4], esi
inc edx
cmp dword [esp + 4], edx
jne 0x806e80
xor edx, edx
mov ebx, dword [esp]
nop
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edx*4]
mov ecx, dword [ebp]
mov esi, dword [ebp + 4]
mov ecx, dword [ecx + edx*4]
mov esi, dword [esi + edx*4]
mov edi, dword [ebx + edx*4]
xor edi, esi
mov ebx, ecx
xor ebx, eax
and ebx, edi
mov ebp, dword [esp]
mov dword [ebp + edx*4], ebx
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp]
xor esi, eax
xor edi, ecx
or edi, esi
mov eax, dword [esp + 0xc]
mov dword [eax + edx*4], edi
inc edx
cmp dword [esp + 4], edx
jne 0x806ed0
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret