Function at 0x40ce12
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 0x40ce29
xor edx, edx
mov eax, ebx
mov byte [edx + 0x43ee28], 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 0x40ce5f
xor ebx, ebx
test bl, bl
je 0x40ce9a
movzx eax, bl
lea ecx, [ebp - 0x205]
movzx eax, byte [ebp + eax - 0x104]
sub ecx, eax
movzx edx, byte [ecx]
jmp 0x40ce9c
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 + 0x43ec28], cl
mov byte [ebx*4 + 0x43fa49], cl
mov byte [ebx*4 + 0x43fa48], cl
mov byte [ebx*4 + 0x43f64b], cl
mov byte [ebx*4 + 0x43f648], cl
mov byte [ebx*4 + 0x43f24b], cl
mov byte [ebx*4 + 0x43f24a], cl
mov byte [ebx*4 + 0x43ee4a], cl
mov byte [ebx*4 + 0x43ee49], cl
test cl, cl
je 0x40cf11
movzx eax, cl
movzx eax, byte [ebp + eax - 0x104]
movzx eax, byte [ebp + eax - 0x2eb]
jmp 0x40cf13
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
test cl, cl
je 0x40cf48
movzx eax, cl
movzx eax, byte [ebp + eax - 0x104]
movzx eax, byte [ebp + eax - 0x303]
jmp 0x40cf4a
xor eax, eax
movzx esi, bl
mov ecx, esi
mov byte [ebx*4 + 0x43fa4a], al
shl ecx, 3
xor ecx, esi
mov byte [ebx*4 + 0x43f649], al
shl ecx, 2
xor ecx, esi
mov byte [ebx*4 + 0x43f248], al
add ecx, ecx
mov byte [ebx*4 + 0x43ee4b], al
mov eax, ecx
sar eax, 8
xor al, cl
cmp al, 5
je 0x40cfb4
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 0x40cfb6
xor dl, dl
mov byte [ebx + 0x43ed28], dl
test dl, dl
je 0x40cfd5
movzx eax, dl
movzx eax, byte [ebp + eax - 0x104]
movzx eax, byte [ebp + eax - 0x29c]
jmp 0x40cfd7
xor eax, eax
movzx ecx, dl
mov byte [ebx*4 + 0x440a4a], al
mov byte [ebx*4 + 0x440649], al
mov byte [ebx*4 + 0x440248], al
mov byte [ebx*4 + 0x43fe4b], al
mov byte [ecx*4 + 0x441a4a], al
mov byte [ecx*4 + 0x441649], al
mov byte [ecx*4 + 0x441248], al
mov byte [ecx*4 + 0x440e4b], al
test dl, dl
je 0x40d028
movzx eax, byte [ebp + ecx - 0x104]
movzx eax, byte [ebp + eax - 0x23d]
jmp 0x40d02a
xor eax, eax
mov byte [ebx*4 + 0x440a48], al
mov byte [ebx*4 + 0x44064b], al
mov byte [ebx*4 + 0x44024a], al
mov byte [ebx*4 + 0x43fe49], al
mov byte [ecx*4 + 0x441a48], al
mov byte [ecx*4 + 0x44164b], al
mov byte [ecx*4 + 0x44124a], al
mov byte [ecx*4 + 0x440e49], al
test dl, dl
je 0x40d078
movzx eax, byte [ebp + ecx - 0x104]
movzx eax, byte [ebp + eax - 0x216]
jmp 0x40d07a
xor eax, eax
mov byte [ebx*4 + 0x440a49], al
mov byte [ebx*4 + 0x440648], al
mov byte [ebx*4 + 0x44024b], al
mov byte [ebx*4 + 0x43fe4a], al
mov byte [ecx*4 + 0x441a49], al
mov byte [ecx*4 + 0x441648], al
mov byte [ecx*4 + 0x44124b], al
mov byte [ecx*4 + 0x440e4a], al
test dl, dl
je 0x40d0c8
movzx eax, byte [ebp + ecx - 0x104]
movzx eax, byte [ebp + eax - 0x225]
jmp 0x40d0ca
xor eax, eax
mov byte [ebx*4 + 0x440a4b], al
mov byte [ebx*4 + 0x44064a], al
mov byte [ebx*4 + 0x440249], al
mov byte [ebx*4 + 0x43fe48], al
inc ebx
mov byte [ecx*4 + 0x441a4b], al
mov byte [ecx*4 + 0x44164a], al
mov byte [ecx*4 + 0x441249], al
mov byte [ecx*4 + 0x440e48], al
cmp ebx, 0x100
jl 0x40ce7e
pop esi
pop ebx
mov esp, ebp
pop ebp
ret