Function at 0x401300
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
sub eax, 0x80
je 0x40132d
sub eax, 0x40
je 0x401325
sub eax, 0x40
je 0x40131d
mov eax, 1
ret
mov dword [ebx], 0xe
jmp 0x401333
mov dword [ebx], 0xc
jmp 0x401333
mov dword [ebx], 0xa
push ebp
push esi
mov esi, ecx
sar esi, 5
xor edx, edx
push edi
lea eax, [ebx + 4]
test esi, esi
jle 0x40137d
mov ecx, dword [esp + 0x10]
add ecx, 2
jmp 0x401350
movzx edi, byte [ecx + 1]
movzx ebp, byte [ecx]
shl edi, 8
or edi, ebp
movzx ebp, byte [ecx - 1]
shl edi, 8
or edi, ebp
movzx ebp, byte [ecx - 2]
shl edi, 8
or edi, ebp
mov dword [eax + edx*4], edi
inc edx
add ecx, 4
cmp edx, esi
jl 0x401350
mov ecx, dword [esp + 0x14]
sub ecx, 0x80
je 0x401629
sub ecx, 0x40
je 0x401466
sub ecx, 0x40
jne 0x4017fd
mov edi, 0x4aeb28
mov esi, dword [eax + 0x1c]
mov ecx, esi
and ecx, 0xff
mov ecx, dword [ecx*4 + str.cwko0]
shl ecx, 8
mov edx, esi
shr edx, 0x18
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax + 0x1e]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax + 0x1d]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
mov edx, dword [eax + 4]
xor ecx, dword [eax]
add edi, 4
xor ecx, dword [edi - 4]
add eax, 0x20
xor edx, ecx
mov dword [eax], ecx
mov ecx, dword [eax - 0x18]
xor ecx, edx
mov dword [eax + 4], edx
mov edx, dword [eax - 0x14]
xor edx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
movzx ebp, byte [eax + 0xe]
mov ecx, edx
shr ecx, 0x18
mov ecx, dword [ecx*4 + str.cwko0]
shl ecx, 8
xor ecx, dword [ebp*4 + str.cwko0]
movzx ebp, byte [eax + 0xd]
shl ecx, 8
xor ecx, dword [ebp*4 + str.cwko0]
and edx, 0xff
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
mov edx, dword [eax - 0xc]
xor ecx, dword [eax - 0x10]
xor edx, ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [eax - 8]
xor ecx, edx
xor esi, ecx
cmp edi, 0x4aeb44
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], esi
jl 0x4013a0
jmp 0x4017fd
mov esi, 0x4aeb2c
jmp 0x401470
mov edx, dword [eax + 0x14]
mov ecx, edx
and ecx, 0xff
mov ecx, dword [ecx*4 + str.cwko0]
shl ecx, 8
mov edi, edx
shr edi, 0x18
xor ecx, dword [edi*4 + str.cwko0]
movzx edi, byte [eax + 0x16]
shl ecx, 8
xor ecx, dword [edi*4 + str.cwko0]
movzx edi, byte [eax + 0x15]
shl ecx, 8
xor ecx, dword [edi*4 + str.cwko0]
mov edi, dword [eax + 4]
xor ecx, dword [esi - 4]
xor ecx, dword [eax]
xor edi, ecx
mov dword [eax + 0x18], ecx
mov ecx, dword [eax + 8]
xor ecx, edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x1c], edi
mov edi, dword [eax + 0xc]
xor edi, ecx
mov ecx, dword [eax + 0x10]
xor ecx, edi
xor edx, ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], edx
mov ecx, edx
and ecx, 0xff
shr edx, 0x18
mov dword [eax + 0x24], edi
mov ecx, dword [ecx*4 + str.cwko0]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax + 0x2e]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax + 0x2d]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
mov edx, dword [eax + 0x1c]
xor ecx, dword [esi]
xor ecx, dword [eax + 0x18]
xor edx, ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [eax + 0x20]
xor ecx, edx
mov dword [eax + 0x34], edx
mov dword [eax + 0x38], ecx
mov edx, edi
xor edx, ecx
mov ecx, dword [eax + 0x28]
xor ecx, edx
mov dword [eax + 0x3c], edx
mov edx, dword [eax + 0x2c]
xor edx, ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov ecx, edx
and ecx, 0xff
mov ecx, dword [ecx*4 + str.cwko0]
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax + 0x46]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax + 0x45]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
mov edx, dword [eax + 0x34]
xor ecx, dword [esi + 4]
xor ecx, dword [eax + 0x30]
xor edx, ecx
mov dword [eax + 0x48], ecx
mov ecx, dword [eax + 0x38]
mov dword [eax + 0x4c], edx
xor ecx, edx
mov edx, dword [eax + 0x3c]
xor edx, ecx
mov dword [eax + 0x50], ecx
mov ecx, dword [eax + 0x40]
xor ecx, edx
mov dword [eax + 0x54], edx
mov edx, dword [eax + 0x44]
xor edx, ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], edx
mov ecx, edx
and ecx, 0xff
mov ecx, dword [ecx*4 + str.cwko0]
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax + 0x5e]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax + 0x5d]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
mov edx, dword [eax + 0x4c]
xor ecx, dword [esi + 8]
add esi, 0x10
xor ecx, dword [eax + 0x48]
add eax, 0x60
xor edx, ecx
mov dword [eax], ecx
mov ecx, dword [eax - 0x10]
xor ecx, edx
mov dword [eax + 4], edx
mov edx, dword [eax - 0xc]
xor edx, ecx
mov dword [eax + 8], ecx
mov ecx, dword [eax - 8]
xor ecx, edx
mov dword [eax + 0xc], edx
mov edx, dword [eax - 4]
xor edx, ecx
cmp esi, 0x4aeb4c
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
jl 0x401470
jmp 0x4017fd
mov esi, 0x4aeb2c
mov edi, edi
mov edx, dword [eax + 0xc]
mov ecx, edx
and ecx, 0xff
mov ecx, dword [ecx*4 + str.cwko0]
shl ecx, 8
mov edi, edx
shr edi, 0x18
xor ecx, dword [edi*4 + str.cwko0]
movzx edi, byte [eax + 0xe]
shl ecx, 8
xor ecx, dword [edi*4 + str.cwko0]
movzx edi, byte [eax + 0xd]
shl ecx, 8
xor ecx, dword [edi*4 + str.cwko0]
mov edi, dword [eax + 4]
xor ecx, dword [esi - 4]
xor ecx, dword [eax]
xor edi, ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [eax + 8]
xor ecx, edi
xor edx, ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
mov ecx, edx
and ecx, 0xff
shr edx, 0x18
mov dword [eax + 0x14], edi
mov ecx, dword [ecx*4 + str.cwko0]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax + 0x1e]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax + 0x1d]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
mov edx, edi
xor ecx, dword [esi]
xor ecx, dword [eax + 0x10]
xor edx, ecx
mov dword [eax + 0x20], ecx
mov ecx, dword [eax + 0x18]
xor ecx, edx
mov dword [eax + 0x24], edx
mov edx, dword [eax + 0x1c]
xor edx, ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], edx
mov ecx, edx
and ecx, 0xff
mov ecx, dword [ecx*4 + str.cwko0]
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax + 0x2e]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax + 0x2d]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
mov edx, dword [eax + 0x24]
xor ecx, dword [esi + 4]
xor ecx, dword [eax + 0x20]
xor edx, ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [eax + 0x28]
xor ecx, edx
mov dword [eax + 0x34], edx
mov edx, dword [eax + 0x2c]
xor edx, ecx
mov dword [eax + 0x38], ecx
mov ecx, edx
and ecx, 0xff
mov dword [eax + 0x3c], edx
mov ecx, dword [ecx*4 + str.cwko0]
shr edx, 0x18
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax + 0x3e]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax + 0x3d]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
mov edx, dword [eax + 0x34]
xor ecx, dword [esi + 8]
add esi, 0x14
xor ecx, dword [eax + 0x30]
add eax, 0x50
xor edx, ecx
mov dword [eax - 0x10], ecx
mov ecx, dword [eax - 0x18]
xor ecx, edx
mov dword [eax - 0xc], edx
mov edx, dword [eax - 0x14]
xor edx, ecx
mov dword [eax - 8], ecx
mov dword [eax - 4], edx
mov ecx, edx
and ecx, 0xff
mov ecx, dword [ecx*4 + str.cwko0]
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax - 2]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax - 3]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
mov edx, dword [eax - 0xc]
xor ecx, dword [esi - 8]
xor ecx, dword [eax - 0x10]
xor edx, ecx
mov dword [eax], ecx
mov ecx, dword [eax - 8]
xor ecx, edx
mov dword [eax + 4], edx
mov edx, dword [eax - 4]
xor edx, ecx
cmp esi, 0x4aeb54
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
jl 0x401630
xor eax, eax
cmp dword [ebx], eax
jl 0x40184f
lea ecx, [ebx + 0x108]
lea esp, [esp]
mov edx, dword [ebx]
sub edx, eax
shl edx, 4
mov edx, dword [edx + ebx + 4]
mov dword [ecx - 4], edx
mov edx, dword [ebx]
sub edx, eax
shl edx, 4
mov edx, dword [edx + ebx + 8]
mov dword [ecx], edx
mov edx, dword [ebx]
sub edx, eax
shl edx, 4
mov edx, dword [edx + ebx + 0xc]
mov dword [ecx + 4], edx
mov edx, dword [ebx]
sub edx, eax
inc edx
shl edx, 4
mov edx, dword [edx + ebx]
mov dword [ecx + 8], edx
inc eax
add ecx, 0x10
cmp eax, dword [ebx]
jle 0x401810
mov edx, 1
cmp dword [ebx], edx
lea eax, [ebx + 0x114]
jle 0x4019b0
mov ecx, dword [eax]
movzx edi, byte [eax + 2]
mov edi, dword [edi*4 + str.cwko0]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + str.cwko0]
mov esi, dword [esi*4 + 0x4adf28]
xor esi, dword [edi*4 + 0x4ad728]
movzx edi, byte [eax + 1]
mov edi, dword [edi*4 + str.cwko0]
xor esi, dword [edi*4 + 0x4acf28]
movzx edi, byte [eax + 6]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.cwko0]
xor esi, dword [ecx*4 + 0x4ac728]
mov ecx, dword [eax + 4]
mov dword [eax], esi
mov edi, dword [edi*4 + str.cwko0]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + str.cwko0]
mov esi, dword [esi*4 + 0x4adf28]
xor esi, dword [edi*4 + 0x4ad728]
movzx edi, byte [eax + 5]
mov edi, dword [edi*4 + str.cwko0]
xor esi, dword [edi*4 + 0x4acf28]
movzx edi, byte [eax + 0xa]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.cwko0]
xor esi, dword [ecx*4 + 0x4ac728]
mov ecx, dword [eax + 8]
mov dword [eax + 4], esi
mov edi, dword [edi*4 + str.cwko0]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + str.cwko0]
mov esi, dword [esi*4 + 0x4adf28]
xor esi, dword [edi*4 + 0x4ad728]
movzx edi, byte [eax + 9]
mov edi, dword [edi*4 + str.cwko0]
xor esi, dword [edi*4 + 0x4acf28]
movzx edi, byte [eax + 0xe]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.cwko0]
xor esi, dword [ecx*4 + 0x4ac728]
mov ecx, dword [eax + 0xc]
mov dword [eax + 8], esi
mov edi, dword [edi*4 + str.cwko0]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + str.cwko0]
mov esi, dword [esi*4 + 0x4adf28]
xor esi, dword [edi*4 + 0x4ad728]
movzx edi, byte [eax + 0xd]
mov edi, dword [edi*4 + str.cwko0]
xor esi, dword [edi*4 + 0x4acf28]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.cwko0]
xor esi, dword [ecx*4 + 0x4ac728]
inc edx
mov dword [eax + 0xc], esi
add eax, 0x10
cmp edx, dword [ebx]
jl 0x401862
pop edi
pop esi
xor eax, eax
pop ebp
ret