Function at 0x414617
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 0x41464d
sub eax, 0x40
je 0x414642
sub eax, 0x40
je 0x414637
push 1
pop eax
leave
ret
mov edx, dword [ebp + 8]
mov dword [edx], 0xe
jmp 0x414656
mov edx, dword [ebp + 8]
mov dword [edx], 0xc
jmp 0x414656
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 0x414694
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 0x41466e
mov ecx, dword [ebp + 0x10]
mov edi, 0xff
sub ecx, 0x80
je 0x41482f
sub ecx, 0x40
je 0x4147a0
sub ecx, 0x40
jne 0x41489f
mov dword [ebp + 8], 0x42aecc
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], 0x42aee8
mov dword [eax + 0x3c], ecx
mov eax, dword [ebp - 8]
jl 0x4146c1
jmp 0x41489f
mov dword [ebp + 8], 0x42aecc
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], 0x42aeec
mov dword [eax + 0x24], ebx
mov dword [eax + 0x2c], ecx
mov eax, dword [ebp + 0xc]
jl 0x4147a7
jmp 0x41489f
mov dword [ebp + 8], 0x42aecc
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], 0x42aef4
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
jl 0x414836
mov ecx, dword [edx]
xor esi, esi
test ecx, ecx
jl 0x4148ec
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 0x4148ad
push 1
lea eax, [edx + 0x114]
pop ecx
cmp dword [edx], ecx
mov dword [ebp + 8], ecx
jle 0x414a53
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 + 0x429acc]
mov ebx, dword [ebx*4 + str.cwko0]
xor esi, dword [ebx*4 + 0x4292cc]
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 + 0x42a2cc]
xor ebx, ebx
xor esi, dword [ecx*4 + 0x428acc]
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 + 0x429acc]
mov ebx, dword [ebx*4 + str.cwko0]
xor esi, dword [ebx*4 + 0x4292cc]
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 + 0x42a2cc]
xor ebx, ebx
xor esi, dword [ecx*4 + 0x428acc]
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 + 0x429acc]
mov ebx, dword [ebx*4 + str.cwko0]
xor esi, dword [ebx*4 + 0x4292cc]
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 + 0x42a2cc]
xor ebx, ebx
xor esi, dword [ecx*4 + 0x428acc]
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 + 0x429acc]
mov ebx, dword [ebx*4 + str.cwko0]
xor esi, dword [ebx*4 + 0x4292cc]
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 + 0x42a2cc]
xor esi, dword [ecx*4 + 0x428acc]
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov dword [eax - 4], esi
cmp ecx, dword [edx]
jl 0x414900
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret