Function at 0x40cc50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
xor eax, eax
push ebx
xor ebx, ebx
inc ebx
push esi
mov edx, ebx
mov esi, 0x11b
mov byte [ebp + eax - 0x304], dl
mov byte [ebp + eax - 0x205], dl
mov byte [ebp + edx - 0x104], al
inc eax
mov dword [ebp - 4], eax
mov eax, edx
and al, 0x80
movzx ecx, al
lea eax, [edx + edx]
neg ecx
sbb ecx, ecx
and ecx, esi
xor ecx, eax
mov eax, dword [ebp - 4]
xor edx, ecx
cmp edx, ebx
jne 0x40cc67
xor edx, edx
mov eax, ebx
mov byte [edx + 0x43de28], bl
and al, 0x80
movzx ecx, al
neg ecx
sbb ecx, ecx
add ebx, ebx
and ecx, esi
xor ebx, ecx
inc edx
cmp edx, 0x1e
jb 0x40cc9d
xor ebx, ebx
test bl, bl
je 0x40ccd8
movzx eax, bl
lea ecx, [ebp - 0x205]
movzx eax, byte [ebp + eax - 0x104]
sub ecx, eax
movzx edx, byte [ecx]
jmp 0x40ccda
xor edx, edx
lea eax, [edx + edx]
xor eax, edx
add eax, eax
xor eax, edx
add eax, eax
xor eax, edx
add eax, eax
xor edx, eax
mov ecx, edx
xor ecx, 0x6300
sar ecx, 8
xor ecx, edx
mov byte [ebx + 0x43dc28], cl
mov byte [ebx*4 + 0x43ea49], cl
mov byte [ebx*4 + 0x43ea48], cl
mov byte [ebx*4 + 0x43e64b], cl
mov byte [ebx*4 + 0x43e648], cl
mov byte [ebx*4 + 0x43e24b], cl
mov byte [ebx*4 + 0x43e24a], cl
mov byte [ebx*4 + 0x43de4a], cl
mov byte [ebx*4 + 0x43de49], cl
test cl, cl
je 0x40cd4f
movzx eax, cl
movzx eax, byte [ebp + eax - 0x104]
movzx eax, byte [ebp + eax - 0x2eb]
jmp 0x40cd51
xor eax, eax
mov byte [ebx*4 + 0x43ea4b], al
mov byte [ebx*4 + 0x43e64a], al
mov byte [ebx*4 + 0x43e249], al
mov byte [ebx*4 + 0x43de48], al
test cl, cl
je 0x40cd86
movzx eax, cl
movzx eax, byte [ebp + eax - 0x104]
movzx eax, byte [ebp + eax - 0x303]
jmp 0x40cd88
xor eax, eax
movzx esi, bl
mov ecx, esi
mov byte [ebx*4 + 0x43ea4a], al
shl ecx, 3
xor ecx, esi
mov byte [ebx*4 + 0x43e649], al
shl ecx, 2
xor ecx, esi
mov byte [ebx*4 + 0x43e248], al
add ecx, ecx
mov byte [ebx*4 + 0x43de4b], al
mov eax, ecx
sar eax, 8
xor al, cl
cmp al, 5
je 0x40cdf2
mov edx, esi
shl edx, 3
xor edx, esi
shl edx, 2
xor edx, esi
add edx, edx
mov eax, edx
sar eax, 8
movzx ecx, al
movzx eax, dl
xor ecx, eax
xor ecx, 5
movzx eax, byte [ebp + ecx - 0x104]
lea ecx, [ebp - 0x205]
sub ecx, eax
mov dl, byte [ecx]
jmp 0x40cdf4
xor dl, dl
mov byte [ebx + 0x43dd28], dl
test dl, dl
je 0x40ce13
movzx eax, dl
movzx eax, byte [ebp + eax - 0x104]
movzx eax, byte [ebp + eax - 0x29c]
jmp 0x40ce15
xor eax, eax
movzx ecx, dl
mov byte [ebx*4 + 0x43fa4a], al
mov byte [ebx*4 + 0x43f649], al
mov byte [ebx*4 + 0x43f248], al
mov byte [ebx*4 + 0x43ee4b], al
mov byte [ecx*4 + 0x440a4a], al
mov byte [ecx*4 + 0x440649], al
mov byte [ecx*4 + 0x440248], al
mov byte [ecx*4 + 0x43fe4b], al
test dl, dl
je 0x40ce66
movzx eax, byte [ebp + ecx - 0x104]
movzx eax, byte [ebp + eax - 0x23d]
jmp 0x40ce68
xor eax, eax
mov byte [ebx*4 + 0x43fa48], al
mov byte [ebx*4 + 0x43f64b], al
mov byte [ebx*4 + 0x43f24a], al
mov byte [ebx*4 + 0x43ee49], al
mov byte [ecx*4 + 0x440a48], al
mov byte [ecx*4 + 0x44064b], al
mov byte [ecx*4 + 0x44024a], al
mov byte [ecx*4 + 0x43fe49], al
test dl, dl
je 0x40ceb6
movzx eax, byte [ebp + ecx - 0x104]
movzx eax, byte [ebp + eax - 0x216]
jmp 0x40ceb8
xor eax, eax
mov byte [ebx*4 + 0x43fa49], al
mov byte [ebx*4 + 0x43f648], al
mov byte [ebx*4 + 0x43f24b], al
mov byte [ebx*4 + 0x43ee4a], al
mov byte [ecx*4 + 0x440a49], al
mov byte [ecx*4 + 0x440648], al
mov byte [ecx*4 + 0x44024b], al
mov byte [ecx*4 + 0x43fe4a], al
test dl, dl
je 0x40cf06
movzx eax, byte [ebp + ecx - 0x104]
movzx eax, byte [ebp + eax - 0x225]
jmp 0x40cf08
xor eax, eax
mov byte [ebx*4 + 0x43fa4b], al
mov byte [ebx*4 + 0x43f64a], al
mov byte [ebx*4 + 0x43f249], al
mov byte [ebx*4 + 0x43ee48], al
inc ebx
mov byte [ecx*4 + 0x440a4b], al
mov byte [ecx*4 + 0x44064a], al
mov byte [ecx*4 + 0x440249], al
mov byte [ecx*4 + 0x43fe48], al
cmp ebx, 0x100
jl 0x40ccbc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret