Function at 0x41bc40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
xor ebx, ebx
mov dword [ebp + 8], ecx
push edi
mov eax, dword [esi + 0x6af90]
lea edi, [esi + 0x6af84]
mov dword [esi + 0x6af80], 2
test eax, eax
je 0x41be48
cmp eax, 3
lea eax, [esi + 0x6af7c]
mov dword [ebp - 4], eax
jb 0x41bcc5
mov edx, dword [edi]
mov eax, dword [eax]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp + 8], eax
mov eax, dword [edi]
mov dword [esi + ecx*4 + 0x4af70], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x41bcff
mov eax, dword [edi]
sub eax, ecx
cmp eax, 0x7efa
ja 0x41bcff
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x41bce8
mov dword [esi + 0x6afa0], eax
push ecx
push esi
call fcn.0041c8e0
mov ecx, dword [esi + 0x6af90]
mov ebx, eax
add esp, 8
cmp ebx, ecx
cmova ebx, ecx
mov ecx, dword [edi]
cmp ebx, 3
jb 0x41bdcf
sub ecx, dword [esi + 0x6af88]
lea eax, [ebx - 3]
push eax
push ecx
push esi
call fcn.0041b700
mov ecx, dword [esi + 0x6af90]
add esp, 0xc
mov edx, dword [esi + 0x6af98]
sub ecx, ebx
mov dword [ebp - 8], eax
mov dword [esi + 0x6af90], ecx
cmp ebx, edx
ja 0x41bd90
cmp ecx, 3
jb 0x41bd90
dec ebx
nop
inc dword [edi]
mov edx, dword [edi]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp + 8], eax
mov eax, dword [edi]
mov dword [esi + ecx*4 + 0x4af70], eax
sub ebx, 1
jne 0x41bd40
jmp 0x41bdec
cmp ebx, edx
lea eax, [esi + 0x6af7c]
mov edx, dword [ebp - 4]
cmova edx, eax
add dword [edi], ebx
mov eax, dword [edi]
xor ebx, ebx
push str.Call_UPDATE_HASH___MIN_MATCH_3_more_times
push 1
push esi
movzx ecx, byte [eax + esi + 0x1af70]
mov dword [edx], ecx
movzx eax, byte [eax + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
mov dword [edx], eax
call fcn.0041a0c0
add esp, 0xc
jmp 0x41bdee
movzx eax, byte [ecx + esi + 0x1af70]
push eax
push 0
push esi
call fcn.0041b700
add esp, 0xc
mov dword [ebp - 8], eax
dec dword [esi + 0x6af90]
inc dword [edi]
cmp dword [ebp - 8], 0
je 0x41be22
mov eax, dword [esi + 0x6af74]
mov ecx, dword [edi]
sub ecx, eax
test eax, eax
js 0x41be0b
add eax, 0x1af70
add eax, esi
jmp 0x41be0d
xor eax, eax
push 0
push ecx
push eax
push esi
call fcn.0041c0a0
mov eax, dword [edi]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x41be37
push esi
call fcn.0041bf40
add esp, 4
mov eax, dword [esi + 0x6af90]
mov ecx, dword [ebp + 8]
test eax, eax
jne 0x41bc71
mov eax, dword [esi + 0x6af74]
mov ecx, dword [edi]
sub ecx, eax
test eax, eax
js 0x41be71
push 1
add eax, 0x1af70
push ecx
add eax, esi
push eax
push esi
call fcn.0041c0a0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push ecx
xor eax, eax
push eax
push esi
call fcn.0041c0a0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret