Function at 0x1899a18
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af80], 2
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0
je 0x1899dc8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 3
jb 0x1899ad7
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af7c]
shl ecx, 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af84]
mov edx, dword [ebp + 8]
movzx eax, byte [edx + eax + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af7c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af7c]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4 + 0x4af70]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6af84]
and edx, 0x7fff
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax + edx*4 + 0x2af70], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af7c]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x6af84]
mov dword [ecx + eax*4 + 0x4af70], edx
cmp dword [ebp - 4], 0
je 0x1899b44
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af84]
sub ecx, dword [ebp - 4]
cmp ecx, 0x7efa
ja 0x1899b44
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x6afa0]
cmp edx, dword [ecx + 0x6af90]
jbe 0x1899b17
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6af90]
mov dword [eax + 0x6afa0], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.01899458
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 0x6af90]
jbe 0x1899b44
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af90]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 3
jb 0x1899cf0
mov eax, dword [ebp - 0xc]
sub eax, 3
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x6af84]
sub eax, dword [edx + 0x6af88]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.01898608
add esp, 0xc
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af90]
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af90], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 0x6af98]
ja 0x1899c71
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 3
jb 0x1899c71
mov eax, dword [ebp - 0xc]
sub eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af84]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af84], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af7c]
shl ecx, 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af84]
mov edx, dword [ebp + 8]
movzx eax, byte [edx + eax + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af7c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af7c]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4 + 0x4af70]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6af84]
and edx, 0x7fff
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax + edx*4 + 0x2af70], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af7c]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x6af84]
mov dword [ecx + eax*4 + 0x4af70], edx
mov eax, dword [ebp - 0xc]
sub eax, 1
mov dword [ebp - 0xc], eax
jne 0x1899bb7
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af84]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af84], ecx
jmp 0x1899cee
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af84]
add ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af84], ecx
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af84]
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx + 0x1af70]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af7c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af7c]
shl ecx, 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af84]
mov edx, dword [ebp + 8]
movzx eax, byte [edx + eax + 0x1af71]
xor ecx, eax
and ecx, 0x7fff
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af7c], ecx
push 0x10101b88
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.01896d68
add esp, 0xc
jmp 0x1899d40
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af84]
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx + 0x1af70]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.01898608
add esp, 0xc
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af90]
sub ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af90], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af84]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af84], ecx
cmp dword [ebp - 8], 0
je 0x1899da8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af74], 0
jl 0x1899d6a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6af74]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0x1af70]
mov dword [ebp - 0x50], ecx
jmp 0x1899d71
mov dword [ebp - 0x50], 0
push 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x6af84]
sub ecx, dword [eax + 0x6af74]
push ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.01898268
add esp, 0x10
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af84]
mov dword [ecx + 0x6af74], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0x106
jae 0x1899dc3
mov eax, dword [ebp + 8]
push eax
call fcn.018997d8
add esp, 4
jmp 0x1899a3c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af74], 0
jl 0x1899dec
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6af74]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0x1af70]
mov dword [ebp - 0x50], ecx
jmp 0x1899df3
mov dword [ebp - 0x50], 0
push 1
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x6af84]
sub ecx, dword [eax + 0x6af74]
push ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.01898268
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret