Function at 0x42de44
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 0x42e075
cmp eax, 3
jb 0x42deb7
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 0x42def8
mov eax, dword [ebx + 0x6af7c]
sub eax, edi
cmp eax, 0x7efa
ja 0x42def8
mov eax, dword [ebx + 0x6af88]
mov edx, dword [ebx + 0x6af98]
cmp eax, edx
jae 0x42dee0
mov dword [ebx + 0x6af98], eax
push edi
push ebx
call fcn.0042dae8
add esp, 8
mov esi, eax
mov eax, dword [ebx + 0x6af88]
cmp esi, eax
jbe 0x42def8
mov esi, eax
cmp esi, 3
jb 0x42dfed
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.0042d164
add esp, 0xc
mov dword [ebp - 4], eax
sub dword [ebx + 0x6af88], esi
mov eax, dword [ebx + 0x6af90]
cmp esi, eax
ja 0x42dfa0
mov edx, dword [ebx + 0x6af88]
cmp edx, 3
jb 0x42dfa0
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 0x42df3e
inc dword [ebx + 0x6af7c]
jmp 0x42e017
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 0x5cefab
push 1
push ebx
call fcn.0042c0b8
add esp, 0xc
jmp 0x42e017
mov eax, dword [ebx + 0x6af7c]
xor edx, edx
mov dl, byte [ebx + eax + 0x1af68]
push edx
push 0
push ebx
call fcn.0042d164
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 0x42e060
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 0x42e048
mov eax, dword [ebx + 0x6af6c]
add eax, ebx
add eax, 0x1af68
jmp 0x42e04a
xor eax, eax
push eax
push ebx
call fcn.0042cef8
add esp, 0x10
mov edx, dword [ebx + 0x6af7c]
mov dword [ebx + 0x6af6c], edx
mov ecx, dword [ebx + 0x6af88]
cmp ecx, 0x106
jae 0x42e075
push ebx
call fcn.0042dcdc
pop ecx
mov eax, dword [ebx + 0x6af88]
test eax, eax
jne 0x42de61
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 0x42e0ae
mov edx, dword [ebx + 0x6af6c]
add edx, ebx
add edx, 0x1af68
jmp 0x42e0b0
xor edx, edx
push edx
push ebx
call fcn.0042cef8
add esp, 0x10
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret