Function at 0x408980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 0xc]
cmp edx, 0x10
je 0x40899f
cmp edx, 0x18
je 0x40899f
cmp edx, 0x20
je 0x40899f
xor ax, ax
mov esp, ebp
pop ebp
ret
mov al, byte [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
mov cl, byte [ebx + 0x208]
and al, 3
shr edx, 2
push esi
or cl, al
cmp edx, 4
push edi
mov byte [ebx + 0x208], cl
mov dword [ebx], edx
mov esi, edx
ja 0x4089c9
mov esi, 4
mov ecx, dword [ebp + 8]
add esi, 6
mov dword [ebx + 4], esi
mov edi, dword [ecx]
lea eax, [ebx + 8]
mov dword [eax], edi
mov edi, dword [ecx + 4]
mov dword [ebx + 0xc], edi
mov edi, dword [ecx + 8]
lea esi, [esi*4 + 4]
mov dword [ebx + 0x10], edi
mov edi, dword [ecx + 0xc]
sub esi, edx
sub edx, 4
lea esi, [eax + esi*4]
mov dword [ebx + 0x14], edi
mov dword [ebp + 0xc], esi
mov edi, 0x434320
je 0x408bb0
sub edx, 2
je 0x408b12
sub edx, 2
jne 0x408c27
mov edx, dword [ecx + 0x10]
mov dword [ebx + 0x18], edx
mov edx, dword [ecx + 0x14]
mov dword [ebx + 0x1c], edx
mov edx, dword [ecx + 0x18]
mov dword [ebx + 0x20], edx
mov ecx, dword [ecx + 0x1c]
mov dword [ebx + 0x24], ecx
mov ebx, dword [eax + 0x1c]
mov ecx, ebx
rol ecx, 0x18
mov edx, ecx
shr edx, 0x18
mov edx, dword [edx*4 + 0x436f98]
mov dword [ebp - 4], ebx
mov ebx, ecx
shr ebx, 0x10
movzx esi, bl
xor edx, dword [esi*4 + 0x436b98]
mov ebx, ecx
movzx ecx, cl
shr ebx, 8
movzx esi, bl
mov ebx, dword [esi*4 + 0x436798]
mov esi, dword [ecx*4 + str.cwko0]
mov ecx, dword [eax + 4]
xor edx, ebx
mov ebx, dword [eax]
xor edx, esi
mov esi, dword [edi]
xor edx, ebx
xor edx, esi
mov esi, dword [eax + 0xc]
mov dword [eax + 0x20], edx
mov ebx, edx
mov edx, dword [eax + 8]
xor ecx, ebx
xor edx, ecx
mov dword [eax + 0x24], ecx
xor esi, edx
mov dword [eax + 0x28], edx
mov ecx, esi
shr ecx, 0x10
movzx ecx, cl
mov dword [ebp - 8], ecx
mov dword [eax + 0x2c], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edx*4 + 0x436f98]
mov edx, dword [ebp - 8]
xor ecx, dword [edx*4 + 0x436b98]
mov edx, esi
shr edx, 8
movzx edx, dl
mov ebx, dword [edx*4 + 0x436798]
movzx edx, byte [eax + 0x2c]
mov esi, dword [edx*4 + str.cwko0]
mov edx, dword [eax + 0x10]
xor ecx, ebx
mov ebx, dword [ebp - 4]
xor ecx, esi
xor ecx, edx
mov edx, dword [eax + 0x14]
xor edx, ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [eax + 0x18]
xor ecx, edx
mov dword [eax + 0x38], ecx
xor ecx, ebx
mov dword [eax + 0x3c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x34], edx
add eax, 0x20
add edi, 4
cmp eax, ecx
jb 0x408a32
mov ebx, dword [ebp + 0x14]
jmp 0x408c27
mov edx, dword [ecx + 0x10]
mov dword [ebx + 0x18], edx
mov ecx, dword [ecx + 0x14]
mov dword [ebx + 0x1c], ecx
mov edi, edi
mov ecx, dword [eax + 0x14]
rol ecx, 0x18
mov dword [ebp - 8], ebx
mov ebx, ecx
shr ebx, 0x10
mov edx, ecx
shr edx, 0x18
mov edx, dword [edx*4 + 0x436f98]
movzx esi, bl
xor edx, dword [esi*4 + 0x436b98]
mov ebx, ecx
shr ebx, 8
movzx esi, bl
mov ebx, dword [esi*4 + 0x436798]
movzx ecx, cl
mov esi, dword [ecx*4 + str.cwko0]
mov ecx, dword [eax + 4]
xor edx, ebx
mov ebx, dword [eax]
xor edx, esi
mov esi, dword [edi]
xor edx, ebx
xor edx, esi
mov esi, dword [eax + 0xc]
mov ebx, edx
xor ecx, ebx
mov ebx, dword [ebp - 8]
mov dword [eax + 0x18], edx
mov edx, dword [eax + 8]
xor edx, ecx
mov dword [eax + 0x1c], ecx
mov ecx, dword [eax + 0x10]
xor esi, edx
xor ecx, esi
mov dword [eax + 0x20], edx
mov edx, dword [eax + 0x14]
mov dword [eax + 0x28], ecx
xor ecx, edx
mov dword [eax + 0x2c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x24], esi
add eax, 0x18
add edi, 4
cmp eax, ecx
jb 0x408b20
jmp 0x408c27
mov ecx, dword [eax + 0xc]
rol ecx, 0x18
mov dword [ebp - 8], ebx
mov ebx, ecx
shr ebx, 0x10
movzx esi, bl
mov ebx, dword [esi*4 + 0x436b98]
mov edx, ecx
shr edx, 0x18
mov edx, dword [edx*4 + 0x436f98]
xor edx, ebx
mov ebx, ecx
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x436798]
mov ebx, dword [eax]
movzx ecx, cl
mov esi, dword [ecx*4 + str.cwko0]
mov ecx, dword [eax + 8]
xor edx, esi
mov esi, dword [edi]
xor edx, ebx
xor edx, esi
mov dword [eax + 0x10], edx
mov ebx, dword [eax + 0x10]
mov edx, dword [eax + 4]
xor edx, ebx
mov ebx, dword [ebp - 8]
xor ecx, edx
mov dword [eax + 0x14], edx
mov edx, dword [eax + 0xc]
mov dword [eax + 0x18], ecx
xor ecx, edx
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp + 0xc]
add eax, 0x10
add edi, 4
cmp eax, ecx
jb 0x408bb0
mov cl, byte [ebx + 0x208]
mov eax, 1
cmp cl, al
je 0x408f17
mov esi, dword [ebx + 8]
mov dword [ebx + 0x108], esi
lea edx, [ebx + 8]
mov esi, dword [edx + 4]
add edx, 4
lea ecx, [ebx + 0x108]
mov dword [ecx + 4], esi
mov esi, dword [edx + 4]
add ecx, 4
add edx, 4
add ecx, 4
mov dword [ecx], esi
mov esi, dword [edx + 4]
add edx, 4
add ecx, 4
mov dword [ecx], esi
mov esi, dword [ebx + 4]
add ecx, 4
add edx, 4
cmp esi, eax
mov dword [ebp - 8], eax
jbe 0x408ef7
mov esi, dword [edx]
mov edi, esi
and edi, 0x80808080
mov eax, edi
shr eax, 7
sub edi, eax
mov eax, esi
and eax, 0xff7f7f7f
shl eax, 1
and edi, 0x1b1b1b1b
xor edi, eax
mov eax, edi
and eax, 0x80808080
mov ebx, eax
shr ebx, 7
sub eax, ebx
mov ebx, edi
and eax, 0x1b1b1b1b
and ebx, 0xff7f7f7f
shl ebx, 1
xor eax, ebx
mov dword [ebp + 0xc], eax
and eax, 0x80808080
mov ebx, eax
shr ebx, 7
sub eax, ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x1b1b1b1b
and ebx, 0xff7f7f7f
shl ebx, 1
xor eax, ebx
xor esi, eax
mov ebx, edi
xor ebx, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor eax, esi
add edx, 4
rol eax, 0x10
rol ebx, 0x18
xor eax, ebx
mov ebx, dword [ebp + 0xc]
rol esi, 8
xor eax, esi
xor eax, dword [ebp - 4]
xor eax, ebx
xor eax, edi
mov dword [ecx], eax
mov eax, dword [edx]
mov esi, eax
and esi, 0x80808080
mov edi, esi
shr edi, 7
sub esi, edi
and esi, 0x1b1b1b1b
mov edi, eax
and edi, 0xff7f7f7f
shl edi, 1
xor esi, edi
mov ebx, esi
mov edi, ebx
and edi, 0x80808080
mov esi, edi
shr esi, 7
sub edi, esi
and edi, 0x1b1b1b1b
mov esi, ebx
and esi, 0xff7f7f7f
shl esi, 1
xor edi, esi
mov esi, edi
and esi, 0x80808080
mov dword [ebp + 0xc], edi
mov edi, esi
shr edi, 7
sub esi, edi
mov edi, dword [ebp + 0xc]
add ecx, 4
add edx, 4
and esi, 0x1b1b1b1b
and edi, 0xff7f7f7f
shl edi, 1
xor esi, edi
xor eax, esi
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
xor esi, eax
rol esi, 0x10
mov edi, ebx
xor edi, eax
rol edi, 0x18
xor esi, edi
mov edi, dword [ebp - 4]
rol eax, 8
xor esi, eax
xor esi, edi
xor esi, dword [ebp + 0xc]
xor esi, ebx
mov dword [ecx], esi
mov eax, dword [edx]
mov esi, eax
and esi, 0x80808080
mov edi, esi
shr edi, 7
sub esi, edi
and esi, 0x1b1b1b1b
mov edi, eax
and edi, 0xff7f7f7f
shl edi, 1
xor esi, edi
mov ebx, esi
mov edi, ebx
and edi, 0x80808080
mov esi, edi
shr esi, 7
sub edi, esi
and edi, 0x1b1b1b1b
mov esi, ebx
and esi, 0xff7f7f7f
shl esi, 1
xor edi, esi
mov esi, edi
and esi, 0x80808080
mov dword [ebp + 0xc], edi
mov edi, esi
shr edi, 7
sub esi, edi
mov edi, dword [ebp + 0xc]
and esi, 0x1b1b1b1b
and edi, 0xff7f7f7f
shl edi, 1
xor esi, edi
xor eax, esi
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
xor esi, eax
add ecx, 4
add edx, 4
rol esi, 0x10
mov edi, ebx
xor edi, eax
rol edi, 0x18
xor esi, edi
mov edi, dword [ebp - 4]
rol eax, 8
xor esi, eax
mov eax, dword [ebp + 0xc]
xor esi, edi
xor esi, eax
xor esi, ebx
mov dword [ecx], esi
mov eax, dword [edx]
mov esi, eax
and esi, 0x80808080
mov edi, esi
shr edi, 7
sub esi, edi
add ecx, 4
add edx, 4
and esi, 0x1b1b1b1b
mov edi, eax
and edi, 0xff7f7f7f
shl edi, 1
xor esi, edi
mov ebx, esi
mov edi, ebx
and edi, 0x80808080
mov esi, edi
shr esi, 7
sub edi, esi
and edi, 0x1b1b1b1b
mov esi, ebx
and esi, 0xff7f7f7f
shl esi, 1
xor edi, esi
mov esi, edi
mov dword [ebp + 0xc], esi
and esi, 0x80808080
mov edi, esi
shr edi, 7
sub esi, edi
mov edi, dword [ebp + 0xc]
and esi, 0x1b1b1b1b
and edi, 0xff7f7f7f
shl edi, 1
xor esi, edi
xor eax, esi
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
xor esi, eax
rol esi, 0x10
mov edi, ebx
xor edi, eax
rol edi, 0x18
xor esi, edi
mov edi, dword [ebp - 4]
rol eax, 8
xor esi, eax
mov eax, dword [ebp + 0xc]
xor esi, edi
xor esi, eax
mov eax, dword [ebp - 8]
xor esi, ebx
mov dword [ecx], esi
mov esi, dword [ebp + 0x14]
mov edi, dword [esi + 4]
add ecx, 4
inc eax
cmp eax, edi
mov dword [ebp - 8], eax
jb 0x408c82
mov eax, 1
mov esi, dword [edx]
mov dword [ecx], esi
mov esi, dword [edx + 4]
add edx, 4
add ecx, 4
mov dword [ecx], esi
mov esi, dword [edx + 4]
add ecx, 4
add edx, 4
mov dword [ecx], esi
mov edx, dword [edx + 4]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret