Function at 0x4055fd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, edi
sub eax, 0x80
je 0x40563a
sub eax, 0x40
je 0x40562e
sub eax, 0x40
je 0x405622
xor eax, eax
inc eax
jmp 0x405881
mov dword [esi + 0x200], 0xe
jmp 0x405644
mov dword [esi + 0x200], 0xc
jmp 0x405644
mov dword [esi + 0x200], 0xa
push ebx
mov ebx, edi
sar ebx, 5
test ebx, ebx
jle 0x40567f
add edx, 2
xor edi, edi
movzx ecx, byte [edx - 2]
movzx eax, byte [edx - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
lea edx, [edx + 4]
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
mov dword [esi + edi*4], ecx
inc edi
cmp edi, ebx
jl 0x405653
mov edi, dword [ebp + 8]
sub edi, 0x80
je 0x40580a
sub edi, 0x40
je 0x40577d
sub edi, 0x40
jne 0x40587e
mov ebx, dword [esi]
lea edi, [esi + 0x1c]
mov ecx, dword [edi]
mov edx, 0x430598
mov dword [ebp + 8], edx
mov esi, ecx
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov ecx, dword [eax*4 + str.cwko0]
mov eax, esi
shr eax, 8
shl ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + str.cwko0]
movzx eax, byte [edi]
lea edi, [edi + 0x20]
shl ecx, 8
xor ecx, dword [eax*4 + str.cwko0]
mov eax, esi
shr eax, 0x18
shl ecx, 8
xor ecx, dword [eax*4 + str.cwko0]
mov eax, dword [edi - 0x38]
xor ebx, ecx
xor ebx, dword [edx]
mov ecx, dword [edi - 0x34]
xor eax, ebx
mov edx, dword [edi - 0x30]
xor ecx, eax
xor edx, ecx
mov dword [edi - 0x18], eax
mov dword [edi - 0x14], ecx
mov eax, edx
shr eax, 0x18
mov dword [edi - 0x10], edx
mov dword [edi - 0x1c], ebx
mov ecx, dword [eax*4 + str.cwko0]
mov eax, edx
shr eax, 0x10
shl ecx, 8
movzx eax, al
shr edx, 8
xor ecx, dword [eax*4 + str.cwko0]
shl ecx, 8
movzx eax, dl
mov edx, dword [ebp + 8]
add edx, 4
mov dword [ebp + 8], edx
xor ecx, dword [eax*4 + str.cwko0]
movzx eax, byte [edi - 0x10]
shl ecx, 8
xor ecx, dword [eax*4 + str.cwko0]
xor ecx, dword [edi - 0x2c]
mov eax, dword [edi - 0x28]
xor eax, ecx
mov dword [edi - 0xc], ecx
mov ecx, dword [edi - 0x24]
xor ecx, eax
mov dword [edi - 8], eax
mov dword [edi - 4], ecx
xor ecx, esi
mov dword [edi], ecx
cmp edx, 0x4305b4
jl 0x4056ac
jmp 0x40587e
mov eax, dword [esi]
lea edi, [esi + 0x14]
mov ecx, dword [edi]
mov ebx, 0x430598
mov dword [ebp + 8], eax
mov edx, ecx
mov ecx, dword [edi - 0xc]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov esi, dword [eax*4 + str.cwko0]
mov eax, edx
shr eax, 8
movzx eax, al
shl esi, 8
xor esi, dword [eax*4 + str.cwko0]
movzx eax, byte [edi]
lea edi, [edi + 0x18]
shl esi, 8
xor esi, dword [eax*4 + str.cwko0]
mov eax, edx
shr eax, 0x18
shl esi, 8
xor esi, dword [eax*4 + str.cwko0]
xor esi, dword [ebx]
add ebx, 4
xor esi, dword [ebp + 8]
mov eax, dword [edi - 0x28]
xor eax, esi
mov dword [edi - 0x14], esi
xor ecx, eax
mov dword [edi - 0x10], eax
mov eax, dword [edi - 0x20]
xor eax, ecx
mov dword [edi - 0xc], ecx
mov ecx, dword [edi - 0x1c]
xor ecx, eax
mov dword [edi - 8], eax
mov dword [edi - 4], ecx
xor ecx, edx
mov dword [edi], ecx
mov dword [ebp + 8], esi
cmp ebx, 0x4305b8
jl 0x40578c
jmp 0x40587e
mov ecx, dword [esi]
mov ebx, 0x430598
add esi, 0xc
mov edi, dword [esi]
mov eax, edi
shr eax, 0x10
movzx eax, al
mov edx, dword [eax*4 + str.cwko0]
mov eax, edi
shr eax, 8
movzx eax, al
shl edx, 8
xor edx, dword [eax*4 + str.cwko0]
movzx eax, byte [esi]
lea esi, [esi + 0x10]
shl edx, 8
xor edx, dword [eax*4 + str.cwko0]
mov eax, edi
shr eax, 0x18
shl edx, 8
xor edx, dword [eax*4 + str.cwko0]
xor edx, dword [ebx]
add ebx, 4
mov eax, dword [esi - 0x18]
xor edx, ecx
mov ecx, dword [esi - 0x14]
xor eax, edx
xor ecx, eax
mov dword [esi - 0xc], edx
mov dword [esi - 4], ecx
xor edi, ecx
mov dword [esi - 8], eax
mov ecx, edx
mov dword [esi], edi
cmp ebx, str.cwko0
jl 0x405816
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret