Function at 0x401e15
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x10]
mov eax, ecx
sub eax, 0x80
je 0x401e4b
sub eax, 0x40
je 0x401e40
sub eax, 0x40
je 0x401e35
push 1
pop eax
leave
ret
mov edx, dword [ebp + 8]
mov dword [edx], 0xe
jmp 0x401e54
mov edx, dword [ebp + 8]
mov dword [edx], 0xc
jmp 0x401e54
mov edx, dword [ebp + 8]
mov dword [edx], 0xa
sar ecx, 5
push ebx
push esi
test ecx, ecx
push edi
lea eax, [edx + 4]
jle 0x401e92
mov esi, dword [ebp + 0xc]
mov edi, eax
add esi, 2
mov dword [ebp + 8], ecx
movzx ebx, byte [esi - 1]
xor ecx, ecx
mov ch, byte [esi + 1]
mov cl, byte [esi]
add esi, 4
shl ecx, 8
or ecx, ebx
movzx ebx, byte [esi - 6]
shl ecx, 8
or ecx, ebx
mov dword [edi], ecx
add edi, 4
dec dword [ebp + 8]
jne 0x401e6c
mov ecx, dword [ebp + 0x10]
mov edi, 0xff
sub ecx, 0x80
je 0x40202d
sub ecx, 0x40
je 0x401f9e
sub ecx, 0x40
jne 0x40209d
mov dword [ebp + 8], 0x426160
mov ecx, dword [eax + 0x1c]
mov esi, ecx
mov ebx, ecx
and esi, edi
mov dword [ebp + 0x10], ecx
shr ebx, 0x18
mov esi, dword [esi*4 + str.cwko0]
shl esi, 8
xor esi, dword [ebx*4 + str.cwko0]
xor ebx, ebx
mov bl, byte [ebp + 0x12]
shl esi, 8
xor esi, dword [ebx*4 + str.cwko0]
xor ebx, ebx
mov bl, ch
mov ecx, dword [ebp + 8]
shl esi, 8
xor esi, dword [ebx*4 + str.cwko0]
xor ebx, ebx
add dword [ebp + 8], 4
xor esi, dword [ecx]
lea ecx, [eax + 0x20]
mov dword [ebp - 8], ecx
xor esi, dword [eax]
mov dword [ecx], esi
mov ecx, dword [eax + 4]
xor ecx, esi
mov esi, dword [eax + 8]
mov dword [eax + 0x24], ecx
xor esi, ecx
mov ecx, dword [eax + 0xc]
mov dword [eax + 0x28], esi
xor ecx, esi
mov dword [ebp + 0xc], ecx
mov esi, ecx
mov bl, byte [ebp + 0xe]
mov dword [eax + 0x2c], ecx
shr esi, 0x18
mov dword [ebp + 0xc], ebx
mov ebx, dword [esi*4 + str.cwko0]
shl ebx, 8
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebx*4 + str.cwko0]
mov ebx, dword [ebp - 4]
xor esi, ebx
xor ebx, ebx
mov bl, ch
and ecx, edi
shl esi, 8
xor esi, dword [ebx*4 + str.cwko0]
mov ebx, dword [eax + 0x14]
shl esi, 8
xor esi, dword [ecx*4 + str.cwko0]
mov ecx, dword [eax + 0x18]
xor esi, dword [eax + 0x10]
xor ebx, esi
mov dword [eax + 0x30], esi
xor ecx, ebx
mov dword [eax + 0x34], ebx
mov dword [eax + 0x38], ecx
xor ecx, dword [ebp + 0x10]
cmp dword [ebp + 8], 0x42617c
mov dword [eax + 0x3c], ecx
mov eax, dword [ebp - 8]
jl 0x401ebf
jmp 0x40209d
mov dword [ebp + 8], 0x426160
mov ecx, dword [eax + 0x14]
mov esi, ecx
mov ebx, ecx
and esi, edi
mov dword [ebp + 0x10], ecx
shr ebx, 0x18
mov esi, dword [esi*4 + str.cwko0]
shl esi, 8
xor esi, dword [ebx*4 + str.cwko0]
xor ebx, ebx
mov bl, byte [ebp + 0x12]
shl esi, 8
xor esi, dword [ebx*4 + str.cwko0]
xor ebx, ebx
mov bl, ch
mov ecx, dword [ebp + 8]
shl esi, 8
xor esi, dword [ebx*4 + str.cwko0]
mov ebx, dword [eax + 0xc]
add dword [ebp + 8], 4
xor esi, dword [ecx]
lea ecx, [eax + 0x18]
mov dword [ebp + 0xc], ecx
xor esi, dword [eax]
mov dword [ecx], esi
mov ecx, dword [eax + 4]
xor ecx, esi
mov esi, dword [eax + 8]
xor esi, ecx
mov dword [eax + 0x1c], ecx
mov ecx, dword [eax + 0x10]
xor ebx, esi
xor ecx, ebx
mov dword [eax + 0x20], esi
mov dword [eax + 0x28], ecx
xor ecx, dword [ebp + 0x10]
cmp dword [ebp + 8], 0x426180
mov dword [eax + 0x24], ebx
mov dword [eax + 0x2c], ecx
mov eax, dword [ebp + 0xc]
jl 0x401fa5
jmp 0x40209d
mov dword [ebp + 8], 0x426160
mov ecx, dword [eax + 0xc]
mov esi, ecx
mov ebx, ecx
and esi, edi
mov dword [ebp + 0x10], ecx
shr ebx, 0x18
mov esi, dword [esi*4 + str.cwko0]
shl esi, 8
xor esi, dword [ebx*4 + str.cwko0]
xor ebx, ebx
mov bl, byte [ebp + 0x12]
shl esi, 8
xor esi, dword [ebx*4 + str.cwko0]
xor ebx, ebx
mov bl, ch
shl esi, 8
xor esi, dword [ebx*4 + str.cwko0]
mov ebx, dword [ebp + 8]
add dword [ebp + 8], 4
xor esi, dword [eax]
add eax, 0x10
xor esi, dword [ebx]
mov ebx, dword [eax - 8]
mov dword [eax], esi
xor esi, dword [eax - 0xc]
xor ebx, esi
mov dword [eax + 4], esi
xor ecx, ebx
cmp dword [ebp + 8], 0x426188
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
jl 0x402034
mov ecx, dword [edx]
xor esi, esi
test ecx, ecx
jl 0x4020ea
lea eax, [edx + 0x108]
sub ecx, esi
shl ecx, 4
mov ecx, dword [ecx + edx + 4]
mov dword [eax - 4], ecx
mov ecx, dword [edx]
sub ecx, esi
shl ecx, 4
mov ecx, dword [ecx + edx + 8]
mov dword [eax], ecx
mov ecx, dword [edx]
sub ecx, esi
add eax, 0x10
shl ecx, 4
mov ecx, dword [ecx + edx + 0xc]
mov dword [eax - 0xc], ecx
mov ecx, dword [edx]
sub ecx, esi
inc ecx
shl ecx, 4
inc esi
mov ecx, dword [ecx + edx]
mov dword [eax - 8], ecx
mov ecx, dword [edx]
cmp esi, ecx
jle 0x4020ab
push 1
lea eax, [edx + 0x114]
pop ecx
cmp dword [edx], ecx
mov dword [ebp + 8], ecx
jle 0x402251
mov ecx, dword [eax]
xor ebx, ebx
mov dword [ebp + 0x10], ecx
mov bl, byte [ebp + 0x12]
mov esi, dword [ebx*4 + str.cwko0]
xor ebx, ebx
mov bl, ch
mov esi, dword [esi*4 + 0x424d60]
mov ebx, dword [ebx*4 + str.cwko0]
xor esi, dword [ebx*4 + 0x424560]
mov ebx, ecx
shr ebx, 0x18
and ecx, edi
mov ebx, dword [ebx*4 + str.cwko0]
mov ecx, dword [ecx*4 + str.cwko0]
xor esi, dword [ebx*4 + 0x425560]
xor ebx, ebx
xor esi, dword [ecx*4 + 0x423d60]
mov ecx, dword [eax + 4]
mov dword [ebp + 0x10], ecx
mov bl, byte [ebp + 0x12]
mov dword [eax], esi
add eax, 0x10
mov esi, dword [ebx*4 + str.cwko0]
xor ebx, ebx
mov bl, ch
mov esi, dword [esi*4 + 0x424d60]
mov ebx, dword [ebx*4 + str.cwko0]
xor esi, dword [ebx*4 + 0x424560]
mov ebx, ecx
shr ebx, 0x18
and ecx, edi
mov ebx, dword [ebx*4 + str.cwko0]
mov ecx, dword [ecx*4 + str.cwko0]
xor esi, dword [ebx*4 + 0x425560]
xor ebx, ebx
xor esi, dword [ecx*4 + 0x423d60]
mov ecx, dword [eax - 8]
mov dword [ebp + 0x10], ecx
mov bl, byte [ebp + 0x12]
mov dword [eax - 0xc], esi
mov esi, dword [ebx*4 + str.cwko0]
xor ebx, ebx
mov bl, ch
mov esi, dword [esi*4 + 0x424d60]
mov ebx, dword [ebx*4 + str.cwko0]
xor esi, dword [ebx*4 + 0x424560]
mov ebx, ecx
shr ebx, 0x18
and ecx, edi
mov ebx, dword [ebx*4 + str.cwko0]
mov ecx, dword [ecx*4 + str.cwko0]
xor esi, dword [ebx*4 + 0x425560]
xor ebx, ebx
xor esi, dword [ecx*4 + 0x423d60]
mov ecx, dword [eax - 4]
mov dword [ebp + 0x10], ecx
mov bl, byte [ebp + 0x12]
mov dword [eax - 8], esi
mov esi, dword [ebx*4 + str.cwko0]
xor ebx, ebx
mov bl, ch
mov esi, dword [esi*4 + 0x424d60]
mov ebx, dword [ebx*4 + str.cwko0]
xor esi, dword [ebx*4 + 0x424560]
mov ebx, ecx
shr ebx, 0x18
and ecx, edi
mov ebx, dword [ebx*4 + str.cwko0]
mov ecx, dword [ecx*4 + str.cwko0]
xor esi, dword [ebx*4 + 0x425560]
xor esi, dword [ecx*4 + 0x423d60]
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov dword [eax - 4], esi
cmp ecx, dword [edx]
jl 0x4020fe
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret