Function at 0x41e07a
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 0x41e3ec
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 3
jb 0x41e12e
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 0x41e197
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
sub eax, dword [ebp - 0xc]
cmp eax, 0x7efa
ja 0x41e197
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x6afa0]
cmp eax, dword [ecx + 0x6af90]
jbe 0x41e16d
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.0041dbdc
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 0x41e197
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af90]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jb 0x41e321
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.0041d000
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 0x41e2b9
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 3
jb 0x41e2b9
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 0x41e207
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
inc eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af84], eax
jmp 0x41e31f
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 0x41e36c
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.0041d000
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 0x41e3cf
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af74], 0
jl 0x41e396
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 0x41e39a
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.0041cd60
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 0x41e3e7
push dword [ebp + 8]
call fcn.0041de8c
pop ecx
jmp 0x41e095
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af74], 0
jl 0x41e410
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 0x41e414
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.0041cd60
add esp, 0x10
leave
ret