Function at 0x42d6d3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af80], 2
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0
je 0x42da45
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 3
jb 0x42d787
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af7c]
shl eax, 5
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x6af84]
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0x1af72]
xor eax, ecx
and eax, 0x7fff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af7c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af7c]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 + 0x4af70]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
and eax, 0x7fff
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [ecx + eax*4 + 0x2af70], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 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 - 0xc], 0
je 0x42d7f0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
sub eax, dword [ebp - 0xc]
cmp eax, 0x7efa
ja 0x42d7f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x6afa0]
cmp eax, dword [ecx + 0x6af90]
jbe 0x42d7c6
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x6af90]
mov dword [eax + 0x6afa0], ecx
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0042d235
pop ecx
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0x6af90]
jbe 0x42d7f0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af90]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jb 0x42d97a
mov eax, dword [ebp - 8]
sub eax, 3
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
sub eax, dword [ecx + 0x6af88]
push eax
push dword [ebp + 8]
call fcn.0042c659
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af90]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af90], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0x6af98]
ja 0x42d912
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 3
jb 0x42d912
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
inc eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af84], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af7c]
shl eax, 5
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x6af84]
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0x1af72]
xor eax, ecx
and eax, 0x7fff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af7c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af7c]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 + 0x4af70]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
and eax, 0x7fff
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [ecx + eax*4 + 0x2af70], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 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 - 8]
dec eax
mov dword [ebp - 8], eax
jne 0x42d860
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
inc eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af84], eax
jmp 0x42d978
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
add eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af84], eax
and dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + eax + 0x1af70]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af7c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af7c]
shl eax, 5
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x6af84]
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 0x1af71]
xor eax, ecx
and eax, 0x7fff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af7c], eax
jmp 0x42d9c5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + eax + 0x1af70]
push eax
push 0
push dword [ebp + 8]
call fcn.0042c659
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af90]
dec eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af90], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
inc eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af84], eax
cmp dword [ebp - 4], 0
je 0x42da28
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af74], 0
jl 0x42d9ef
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af74]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0x1af70]
mov dword [ebp - 0x10], eax
jmp 0x42d9f3
and dword [ebp - 0x10], 0
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
sub eax, dword [ecx + 0x6af74]
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0042c3b9
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x6af84]
mov dword [eax + 0x6af74], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0x106
jae 0x42da40
push dword [ebp + 8]
call fcn.0042d4e5
pop ecx
jmp 0x42d6ee
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af74], 0
jl 0x42da69
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af74]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0x1af70]
mov dword [ebp - 0x14], eax
jmp 0x42da6d
and dword [ebp - 0x14], 0
push 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
sub eax, dword [ecx + 0x6af74]
push eax
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.0042c3b9
add esp, 0x10
leave
ret