Function at 0x414d60
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
test dl, 7
jne 0x4151ad
cmp edx, 0x10
jb 0x4151ad
cmp edx, 0x20
ja 0x4151ad
mov al, byte [esp + 0x10]
test al, 3
je 0x4151ad
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
mov cl, byte [ebp + 0x208]
mov bl, byte [ebp + 0x208]
xor cl, al
and cl, 3
shr edx, 2
push esi
xor bl, cl
cmp edx, 4
push edi
mov byte [ebp + 0x208], bl
mov dword [ebp], edx
mov esi, edx
ja 0x414dbf
mov esi, 4
mov ecx, dword [esp + 0x18]
add esi, 6
mov dword [ebp + 4], esi
mov edi, dword [ecx]
lea eax, [ebp + 8]
mov dword [eax], edi
mov edi, dword [ecx + 4]
mov dword [ebp + 0xc], edi
mov edi, dword [ecx + 8]
lea esi, [esi*4 + 4]
mov dword [ebp + 0x10], edi
mov edi, dword [ecx + 0xc]
sub esi, edx
sub edx, 4
mov dword [ebp + 0x14], edi
lea ebx, [eax + esi*4]
je 0x414f9b
sub edx, 2
je 0x414efc
sub edx, 2
jne 0x41500d
mov edx, dword [ecx + 0x10]
mov dword [ebp + 0x18], edx
mov edx, dword [ecx + 0x14]
mov dword [ebp + 0x1c], edx
mov edx, dword [ecx + 0x18]
mov dword [ebp + 0x20], edx
mov ecx, dword [ecx + 0x1c]
mov dword [ebp + 0x24], ecx
mov esi, 0x4534f0
jmp 0x414e30
mov esi, dword [esp + 0x1c]
lea esp, [esp]
mov edi, dword [eax + 0x1c]
mov ecx, edi
shr ecx, 0x10
movzx ecx, cl
mov edx, edi
shr edx, 0x18
mov edx, dword [edx*4 + 0x455d68]
xor edx, dword [ecx*4 + 0x455968]
mov ecx, edi
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + str.cwko0]
movzx ecx, byte [eax + 0x1c]
xor edx, dword [ecx*4 + 0x456168]
xor edx, dword [eax]
xor edx, dword [esi]
mov ecx, dword [eax + 4]
xor ecx, edx
mov dword [eax + 0x20], edx
mov edx, dword [eax + 8]
xor edx, ecx
mov dword [eax + 0x24], ecx
add esi, 4
mov dword [eax + 0x28], edx
mov dword [esp + 0x1c], esi
mov esi, dword [eax + 0xc]
xor esi, edx
mov ecx, esi
shr ecx, 0x10
movzx ecx, cl
mov dword [esp + 0x10], ecx
mov dword [eax + 0x2c], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edx*4 + 0x456168]
mov edx, dword [esp + 0x10]
xor ecx, dword [edx*4 + 0x455d68]
mov edx, esi
shr edx, 8
movzx edx, dl
mov esi, dword [edx*4 + 0x455968]
movzx edx, byte [eax + 0x2c]
xor ecx, esi
mov esi, dword [edx*4 + str.cwko0]
mov edx, dword [eax + 0x10]
xor ecx, esi
xor ecx, edx
mov edx, dword [eax + 0x14]
xor edx, ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [eax + 0x18]
xor ecx, edx
mov dword [eax + 0x38], ecx
xor ecx, edi
mov dword [eax + 0x34], edx
mov dword [eax + 0x3c], ecx
add eax, 0x20
cmp eax, ebx
jb 0x414e28
jmp 0x41500d
mov edx, dword [ecx + 0x10]
mov dword [ebp + 0x18], edx
mov ecx, dword [ecx + 0x14]
mov dword [ebp + 0x1c], ecx
mov dword [esp + 0x1c], 0x4534f0
mov edx, dword [eax + 0x14]
mov dword [esp + 0x10], ebx
mov ecx, edx
shr ecx, 0x18
mov edi, dword [ecx*4 + 0x455d68]
mov ebx, edx
shr ebx, 0x10
movzx esi, bl
xor edi, dword [esi*4 + 0x455968]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor edi, dword [ecx*4 + str.cwko0]
movzx ecx, dl
mov esi, dword [ecx*4 + 0x456168]
mov ecx, dword [eax]
xor edi, esi
mov esi, dword [eax + 8]
xor edi, ecx
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ecx]
add ecx, 4
xor edi, ebx
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 4]
mov ebx, edi
xor ecx, ebx
mov ebx, dword [esp + 0x10]
xor esi, ecx
mov dword [eax + 0x18], edi
mov edi, dword [eax + 0xc]
mov dword [eax + 0x1c], ecx
mov ecx, dword [eax + 0x10]
xor edi, esi
xor ecx, edi
mov dword [eax + 0x28], ecx
xor ecx, edx
mov dword [eax + 0x20], esi
mov dword [eax + 0x24], edi
mov dword [eax + 0x2c], ecx
add eax, 0x18
cmp eax, ebx
jb 0x414f10
jmp 0x41500d
mov edi, 0x4534f0
mov edx, dword [eax + 0xc]
mov dword [esp + 0x1c], ebx
mov ebx, edx
shr ebx, 0x10
movzx esi, bl
mov ebx, dword [esi*4 + 0x455968]
mov ecx, edx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x455d68]
xor ecx, ebx
mov ebx, edx
shr ebx, 8
movzx esi, bl
xor ecx, dword [esi*4 + str.cwko0]
movzx esi, dl
mov ebx, dword [esi*4 + 0x456168]
mov esi, dword [eax]
xor ecx, ebx
mov ebx, dword [edi]
xor ecx, esi
mov esi, dword [eax + 4]
xor ecx, ebx
mov ebx, dword [esp + 0x1c]
xor esi, ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [eax + 8]
xor ecx, esi
mov dword [eax + 0x18], ecx
xor ecx, edx
mov dword [eax + 0x14], esi
mov dword [eax + 0x1c], ecx
add eax, 0x10
add edi, 4
cmp eax, ebx
jb 0x414fa0
mov dl, byte [ebp + 0x208]
and dl, 3
cmp dl, 1
je 0x4151a3
mov eax, dword [ebp + 4]
mov edx, dword [ebp + 8]
shl eax, 4
lea ecx, [eax + ebp + 0x108]
mov dword [ecx], edx
lea eax, [ebp + 8]
mov edx, dword [eax + 4]
add eax, 4
mov dword [ecx + 4], edx
mov edx, dword [eax + 4]
add ecx, 4
add eax, 4
add ecx, 4
mov dword [ecx], edx
mov edx, dword [eax + 4]
add eax, 4
add ecx, 4
mov dword [ecx], edx
mov edx, dword [ebp + 4]
mov edi, 1
add eax, 4
sub ecx, 0x1c
cmp edx, edi
jbe 0x415183
lea esp, [esp]
mov esi, dword [eax]
mov ebx, esi
shr ebx, 0x10
movzx ebx, bl
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x458168]
xor edx, dword [ebx*4 + 0x457d68]
mov ebx, esi
shr ebx, 8
movzx esi, bl
mov ebx, dword [esi*4 + 0x457968]
movzx esi, byte [eax]
xor edx, ebx
xor edx, dword [esi*4 + 0x457568]
mov dword [ecx], edx
mov esi, dword [eax + 4]
add eax, 4
mov ebx, esi
shr ebx, 0x10
movzx ebx, bl
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x458168]
xor edx, dword [ebx*4 + 0x457d68]
mov ebx, esi
shr ebx, 8
movzx esi, bl
mov ebx, dword [esi*4 + 0x457968]
movzx esi, byte [eax]
xor edx, ebx
xor edx, dword [esi*4 + 0x457568]
mov dword [ecx + 4], edx
mov esi, dword [eax + 4]
add ecx, 4
add eax, 4
mov ebx, esi
shr ebx, 0x10
movzx ebx, bl
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x458168]
xor edx, dword [ebx*4 + 0x457d68]
mov ebx, esi
shr ebx, 8
movzx esi, bl
mov ebx, dword [esi*4 + 0x457968]
movzx esi, byte [eax]
xor edx, ebx
xor edx, dword [esi*4 + 0x457568]
mov dword [ecx + 4], edx
mov esi, dword [eax + 4]
add ecx, 4
add eax, 4
mov ebx, esi
shr ebx, 0x10
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x458168]
movzx ebx, bl
xor edx, dword [ebx*4 + 0x457d68]
mov ebx, esi
shr ebx, 8
movzx esi, bl
mov ebx, dword [esi*4 + 0x457968]
movzx esi, byte [eax]
xor edx, ebx
mov ebx, dword [esi*4 + 0x457568]
add ecx, 4
xor edx, ebx
mov dword [ecx], edx
mov edx, dword [ebp + 4]
add eax, 4
sub ecx, 0x1c
inc edi
cmp edi, edx
jb 0x415070
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
add eax, 4
add ecx, 4
mov dword [ecx], edx
mov edx, dword [eax + 4]
add ecx, 4
add eax, 4
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
pop edi
pop esi
pop ebp
mov ax, 1
pop ebx
pop ecx
ret
test edx, edx
je 0x4151c0
mov eax, dword [esp + 0x14]
and byte [eax + 0x208], 0xfc
xor eax, eax
pop ecx
ret
mov ecx, dword [esp + 0x14]
mov dx, word [ecx]
shl dx, 2
movsx eax, dx
pop ecx
ret