Function at 0x41e1a3
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 0x41e515
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 3
jb 0x41e257
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 0x41e2c0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
sub eax, dword [ebp - 0xc]
cmp eax, 0x7efa
ja 0x41e2c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x6afa0]
cmp eax, dword [ecx + 0x6af90]
jbe 0x41e296
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.0041dd05
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 0x41e2c0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af90]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jb 0x41e44a
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.0041d129
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 0x41e3e2
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 3
jb 0x41e3e2
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 0x41e330
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af84]
inc eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af84], eax
jmp 0x41e448
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 0x41e495
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.0041d129
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 0x41e4f8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af74], 0
jl 0x41e4bf
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 0x41e4c3
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.0041ce89
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 0x41e510
push dword [ebp + 8]
call fcn.0041dfb5
pop ecx
jmp 0x41e1be
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af74], 0
jl 0x41e539
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 0x41e53d
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.0041ce89
add esp, 0x10
leave
ret