Function at 0x412ce0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
lea edi, [ebp - 0x54]
mov ecx, 0x15
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af80], 2
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x6af90], 0
je 0x4130a6
mov edx, dword [ebp + 8]
cmp dword [edx + 0x6af90], 3
jb 0x412dae
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]
xor ebx, ebx
mov bl, byte [edx + eax + 0x1af72]
xor ecx, ebx
and ecx, 0x7fff
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af7c], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6af7c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4 + 0x4af70]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af84]
and eax, 0x7fff
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx + eax*4 + 0x2af70], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af7c]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
mov dword [edx + ecx*4 + 0x4af70], eax
cmp dword [ebp - 4], 0
je 0x412e1b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6af84]
sub edx, dword [ebp - 4]
cmp edx, 0x7efa
ja 0x412e1b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x6afa0]
cmp edx, dword [ecx + 0x6af90]
jbe 0x412dee
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.004010fa
add esp, 8
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x6af90]
jbe 0x412e1b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6af90]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 3
jb 0x412fcd
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.0040130c
add esp, 0xc
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af90]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af90], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x6af98]
ja 0x412f4c
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x6af90], 3
jb 0x412f4c
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
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]
xor ebx, ebx
mov bl, byte [edx + eax + 0x1af72]
xor ecx, ebx
and ecx, 0x7fff
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af7c], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6af7c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4 + 0x4af70]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af84]
and eax, 0x7fff
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx + eax*4 + 0x2af70], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af7c]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
mov dword [edx + ecx*4 + 0x4af70], eax
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jne 0x412e8e
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af84]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af84], eax
jmp 0x412fcb
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af84]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af84], eax
mov dword [ebp - 0xc], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af84]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + eax + 0x1af70]
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af7c], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6af7c]
shl edx, 5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af84]
mov eax, dword [ebp + 8]
xor ebx, ebx
mov bl, byte [eax + ecx + 0x1af71]
xor edx, ebx
and edx, 0x7fff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af7c], edx
push str.Call_UPDATE_HASH___MIN_MATCH_3_more_times
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00401190
add esp, 0xc
jmp 0x41301e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af84]
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + ecx + 0x1af70]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040130c
add esp, 0xc
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af90]
sub eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af90], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af84]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af84], eax
cmp dword [ebp - 8], 0
je 0x413086
mov edx, dword [ebp + 8]
cmp dword [edx + 0x6af74], 0
jl 0x413048
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af74]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x1af70]
mov dword [ebp - 0x10], eax
jmp 0x41304f
mov dword [ebp - 0x10], 0
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x6af84]
sub eax, dword [edx + 0x6af74]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004012bc
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6af84]
mov dword [eax + 0x6af74], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0x106
jae 0x4130a1
mov ecx, dword [ebp + 8]
push ecx
call fcn.004012e9
add esp, 4
jmp 0x412d13
mov edx, dword [ebp + 8]
cmp dword [edx + 0x6af74], 0
jl 0x4130ca
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af74]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x1af70]
mov dword [ebp - 0x14], eax
jmp 0x4130d1
mov dword [ebp - 0x14], 0
push 1
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x6af84]
sub eax, dword [edx + 0x6af74]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004012bc
add esp, 0x10
pop edi
pop esi
pop ebx
add esp, 0x54
cmp ebp, esp
call fcn.00419880
mov esp, ebp
pop ebp
ret