Function at 0x40c754
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
push ebx
push esi
xor eax, eax
xor ecx, ecx
inc eax
mov esi, 0x11b
push edi
mov edx, eax
and dl, 0x80
movsx edx, dl
mov byte [ebp + ecx - 0x304], al
mov byte [ebp + ecx - 0x205], al
mov byte [ebp + eax - 0x104], cl
inc ecx
neg edx
sbb edx, edx
and edx, esi
lea edi, [eax + eax]
xor edx, edi
xor eax, edx
cmp eax, 1
jne 0x40c76a
xor ecx, ecx
pop edi
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
mov byte [ecx + 0x439760], al
and edx, esi
add eax, eax
xor eax, edx
inc ecx
cmp ecx, 0x1e
jb 0x40c79d
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x40c7c5
mov ebx, dword [ebp - 4]
test bl, bl
je 0x40c7e1
movzx eax, bl
movzx eax, byte [ebp + eax - 0x104]
lea ecx, [ebp - 0x205]
sub ecx, eax
movzx eax, byte [ecx]
jmp 0x40c7e3
xor eax, eax
lea ecx, [eax + eax]
xor ecx, eax
add ecx, ecx
xor ecx, eax
add ecx, ecx
xor ecx, eax
add ecx, ecx
xor eax, ecx
mov ecx, eax
sar ecx, 8
xor cl, al
xor cl, 0x63
lea eax, [ebx*4]
lea edx, [eax + 0x438760]
mov byte [ebx + 0x439880], cl
mov byte [edx + 1], cl
mov byte [edx], cl
mov byte [eax + 0x438b63], cl
mov byte [eax + 0x438b60], cl
mov byte [eax + 0x438f63], cl
mov byte [eax + 0x438f62], cl
mov byte [eax + 0x439362], cl
mov byte [eax + 0x439361], cl
je 0x40c851
movzx edx, cl
movzx edx, byte [ebp + edx - 0x104]
movzx edx, byte [ebp + edx - 0x2eb]
jmp 0x40c853
xor edx, edx
mov byte [eax + 0x438763], dl
mov byte [eax + 0x438b62], dl
mov byte [eax + 0x438f61], dl
mov byte [eax + 0x439360], dl
test cl, cl
je 0x40c884
movzx ecx, cl
movzx ecx, byte [ebp + ecx - 0x104]
movzx ecx, byte [ebp + ecx - 0x303]
jmp 0x40c886
xor ecx, ecx
mov byte [eax + 0x438762], cl
mov byte [eax + 0x438b61], cl
mov byte [eax + 0x438f60], cl
mov byte [eax + 0x439363], cl
movzx esi, bl
mov ecx, esi
shl ecx, 3
xor ecx, esi
shl ecx, 2
xor ecx, esi
add ecx, ecx
mov edx, ecx
sar edx, 8
xor dl, cl
xor dl, 5
je 0x40c8ed
mov ecx, esi
shl ecx, 3
xor ecx, esi
shl ecx, 2
xor ecx, esi
add ecx, ecx
mov edx, ecx
sar edx, 8
movzx edx, dl
movzx ecx, cl
xor edx, ecx
xor edx, 5
movzx ecx, byte [ebp + edx - 0x104]
lea edx, [ebp - 0x205]
sub edx, ecx
mov bl, byte [edx]
jmp 0x40c8ef
xor bl, bl
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x439780], bl
test bl, bl
je 0x40c911
movzx ecx, bl
movzx ecx, byte [ebp + ecx - 0x104]
movzx edx, byte [ebp + ecx - 0x29c]
jmp 0x40c913
xor edx, edx
movzx esi, bl
mov ecx, esi
shl ecx, 2
mov byte [eax + 0x437762], dl
mov byte [eax + 0x437b61], dl
mov byte [eax + 0x437f60], dl
mov byte [eax + 0x438363], dl
mov byte [ecx + 0x436762], dl
mov byte [ecx + 0x436b61], dl
mov byte [ecx + 0x436f60], dl
mov byte [ecx + 0x437363], dl
test bl, bl
je 0x40c961
movzx edx, byte [ebp + esi - 0x104]
movzx edx, byte [ebp + edx - 0x23d]
jmp 0x40c963
xor edx, edx
mov byte [eax + 0x437760], dl
mov byte [eax + 0x437b63], dl
mov byte [eax + 0x437f62], dl
mov byte [eax + 0x438361], dl
mov byte [ecx + 0x436760], dl
mov byte [ecx + 0x436b63], dl
mov byte [ecx + 0x436f62], dl
mov byte [ecx + 0x437361], dl
test bl, bl
je 0x40c9a9
movzx edx, byte [ebp + esi - 0x104]
movzx edx, byte [ebp + edx - 0x216]
jmp 0x40c9ab
xor edx, edx
mov byte [eax + 0x437761], dl
mov byte [eax + 0x437b60], dl
mov byte [eax + 0x437f63], dl
mov byte [eax + 0x438362], dl
mov byte [ecx + 0x436761], dl
mov byte [ecx + 0x436b60], dl
mov byte [ecx + 0x436f63], dl
mov byte [ecx + 0x437362], dl
test bl, bl
je 0x40c9f1
movzx edx, byte [ebp + esi - 0x104]
movzx edx, byte [ebp + edx - 0x225]
jmp 0x40c9f3
xor edx, edx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x100
mov byte [eax + 0x437763], dl
mov byte [eax + 0x437b62], dl
mov byte [eax + 0x437f61], dl
mov byte [eax + 0x438360], dl
mov byte [ecx + 0x436763], dl
mov byte [ecx + 0x436b62], dl
mov byte [ecx + 0x436f61], dl
mov byte [ecx + 0x437360], dl
jl 0x40c7c2
pop esi
pop ebx
leave
ret