Function at 0x41b080
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af80], 2
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x6af90], 0
je 0x41b418
mov edx, dword [ebp + 8]
cmp dword [edx + 0x6af90], 3
jb 0x41b13c
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]
movzx eax, byte [edx + eax + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af7c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af7c]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4 + 0x4af70]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6af84]
and edx, 0x7fff
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + edx*4 + 0x2af70], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 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 0x41b1a9
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af84]
sub ecx, dword [ebp - 0xc]
cmp ecx, 0x7efa
ja 0x41b1a9
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x6afa0]
cmp ecx, dword [eax + 0x6af90]
jbe 0x41b17c
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af90]
mov dword [edx + 0x6afa0], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0041ab80
add esp, 8
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 0x6af90]
jbe 0x41b1a9
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af90]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 3
jb 0x41b340
mov edx, dword [ebp - 8]
sub edx, 3
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x6af84]
sub edx, dword [ecx + 0x6af88]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00419eb0
add esp, 0xc
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6af90]
sub edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af90], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 0x6af98]
ja 0x41b2d5
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 3
jb 0x41b2d5
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af84]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af84], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af7c]
shl eax, 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6af84]
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx + 0x1af72]
xor eax, edx
and eax, 0x7fff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af7c], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af7c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 + 0x4af70]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af84]
and ecx, 0x7fff
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [edx + ecx*4 + 0x2af70], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6af7c]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x6af84]
mov dword [eax + edx*4 + 0x4af70], ecx
mov edx, dword [ebp - 8]
sub edx, 1
mov dword [ebp - 8], edx
jne 0x41b21c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af84]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af84], ecx
jmp 0x41b33e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af84]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af84], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af84]
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx + 0x1af70]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af7c], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af7c]
shl eax, 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6af84]
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx + 0x1af71]
xor eax, edx
and eax, 0x7fff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af7c], eax
jmp 0x41b390
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af84]
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + eax + 0x1af70]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00419eb0
add esp, 0xc
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6af90]
sub edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af90], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6af84]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af84], edx
cmp dword [ebp - 4], 0
je 0x41b3f8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x6af74], 0
jl 0x41b3ba
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af74]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 0x1af70]
mov dword [ebp - 0x10], edx
jmp 0x41b3c1
mov dword [ebp - 0x10], 0
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x6af84]
sub edx, dword [ecx + 0x6af74]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00419be0
add esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af84]
mov dword [edx + 0x6af74], ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x6af90], 0x106
jae 0x41b413
mov eax, dword [ebp + 8]
push eax
call fcn.0041ae60
add esp, 4
jmp 0x41b0a1
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x6af74], 0
jl 0x41b43c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af74]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 0x1af70]
mov dword [ebp - 0x14], edx
jmp 0x41b443
mov dword [ebp - 0x14], 0
push 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x6af84]
sub edx, dword [ecx + 0x6af74]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00419be0
add esp, 0x10
mov esp, ebp
pop ebp
ret