Function at 0x42e2f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor edi, edi
xor esi, esi
mov dword [ebx + 0x6af78], 2
jmp 0x42e521
cmp eax, 3
jb 0x42e363
mov edx, dword [ebx + 0x6af7c]
mov eax, dword [ebx + 0x6af74]
shl eax, 5
xor ecx, ecx
mov cl, byte [ebx + edx + 0x1af6a]
xor eax, ecx
and eax, 0x7fff
mov dword [ebx + 0x6af74], eax
mov edi, dword [ebx + eax*4 + 0x4af68]
mov eax, dword [ebx + 0x6af7c]
and eax, 0x7fff
mov dword [ebx + eax*4 + 0x2af68], edi
mov edx, dword [ebx + 0x6af74]
mov ecx, dword [ebx + 0x6af7c]
mov dword [ebx + edx*4 + 0x4af68], ecx
test edi, edi
je 0x42e3a4
mov eax, dword [ebx + 0x6af7c]
sub eax, edi
cmp eax, 0x7efa
ja 0x42e3a4
mov eax, dword [ebx + 0x6af88]
mov edx, dword [ebx + 0x6af98]
cmp eax, edx
jae 0x42e38c
mov dword [ebx + 0x6af98], eax
push edi
push ebx
call fcn.0042df94
add esp, 8
mov esi, eax
mov eax, dword [ebx + 0x6af88]
cmp esi, eax
jbe 0x42e3a4
mov esi, eax
cmp esi, 3
jb 0x42e499
mov eax, esi
sub eax, 3
push eax
mov edx, dword [ebx + 0x6af7c]
mov ecx, dword [ebx + 0x6af80]
sub edx, ecx
push edx
push ebx
call fcn.0042d610
add esp, 0xc
mov dword [ebp - 4], eax
sub dword [ebx + 0x6af88], esi
mov eax, dword [ebx + 0x6af90]
cmp esi, eax
ja 0x42e44c
mov edx, dword [ebx + 0x6af88]
cmp edx, 3
jb 0x42e44c
dec esi
inc dword [ebx + 0x6af7c]
xor ecx, ecx
mov edx, dword [ebx + 0x6af7c]
mov eax, dword [ebx + 0x6af74]
shl eax, 5
mov cl, byte [ebx + edx + 0x1af6a]
xor eax, ecx
and eax, 0x7fff
mov dword [ebx + 0x6af74], eax
mov edi, dword [ebx + eax*4 + 0x4af68]
mov eax, dword [ebx + 0x6af7c]
and eax, 0x7fff
dec esi
mov dword [ebx + eax*4 + 0x2af68], edi
mov edx, dword [ebx + 0x6af74]
mov ecx, dword [ebx + 0x6af7c]
mov dword [ebx + edx*4 + 0x4af68], ecx
jne 0x42e3ea
inc dword [ebx + 0x6af7c]
jmp 0x42e4c3
add dword [ebx + 0x6af7c], esi
xor esi, esi
mov eax, dword [ebx + 0x6af7c]
movzx eax, byte [ebx + eax + 0x1af68]
mov dword [ebx + 0x6af74], eax
shl eax, 5
mov edx, dword [ebx + 0x6af7c]
xor ecx, ecx
mov cl, byte [ebx + edx + 0x1af69]
xor eax, ecx
and eax, 0x7fff
mov dword [ebx + 0x6af74], eax
push 0x5d05b4
push 1
push ebx
call fcn.0042c564
add esp, 0xc
jmp 0x42e4c3
mov eax, dword [ebx + 0x6af7c]
xor edx, edx
mov dl, byte [ebx + eax + 0x1af68]
push edx
push 0
push ebx
call fcn.0042d610
add esp, 0xc
mov dword [ebp - 4], eax
dec dword [ebx + 0x6af88]
inc dword [ebx + 0x6af7c]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x42e50c
push 0
mov eax, dword [ebx + 0x6af7c]
mov edx, dword [ebx + 0x6af6c]
sub eax, edx
push eax
mov ecx, dword [ebx + 0x6af6c]
test ecx, ecx
jl 0x42e4f4
mov eax, dword [ebx + 0x6af6c]
add eax, ebx
add eax, 0x1af68
jmp 0x42e4f6
xor eax, eax
push eax
push ebx
call fcn.0042d3a4
add esp, 0x10
mov edx, dword [ebx + 0x6af7c]
mov dword [ebx + 0x6af6c], edx
mov ecx, dword [ebx + 0x6af88]
cmp ecx, 0x106
jae 0x42e521
push ebx
call fcn.0042e188
pop ecx
mov eax, dword [ebx + 0x6af88]
test eax, eax
jne 0x42e30d
push 1
mov edx, dword [ebx + 0x6af7c]
mov ecx, dword [ebx + 0x6af6c]
sub edx, ecx
push edx
mov eax, dword [ebx + 0x6af6c]
test eax, eax
jl 0x42e55a
mov edx, dword [ebx + 0x6af6c]
add edx, ebx
add edx, 0x1af68
jmp 0x42e55c
xor edx, edx
push edx
push ebx
call fcn.0042d3a4
add esp, 0x10
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret