Function at 0x40f390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
movups xmm0, xmmword [eax]
mov edi, dword [ebp + 0xc]
lea ebx, [edi + 0xc]
mov dword [ebp - 8], ebx
movups xmmword [edi], xmm0
lea esi, [edi + 0x30]
movups xmm0, xmmword [eax + 0x10]
movups xmmword [edi + 0x10], xmm0
mov edx, dword [edi + 0x1c]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x41f740]
xor ecx, dword [eax*4 + str.cwko0]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x41ef40]
movzx eax, dl
xor ecx, dword [eax*4 + 0x421f40]
xor ecx, dword [edi]
mov eax, dword [edi + 4]
xor ecx, 1
xor eax, ecx
mov dword [edi + 0x20], ecx
mov ecx, dword [edi + 8]
mov dword [edi + 0x24], eax
xor ecx, eax
mov eax, dword [ebx]
mov ebx, 6
xor eax, ecx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], eax
lea edi, [ebx - 5]
mov edx, dword [esi - 4]
lea esi, [esi + 0x20]
ror edx, 0x18
add edi, edi
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x41f740]
xor ecx, dword [eax*4 + str.cwko0]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x41ef40]
movzx eax, dl
xor ecx, dword [eax*4 + 0x421f40]
xor ecx, dword [esi - 0x40]
mov eax, dword [esi - 0x3c]
xor eax, ecx
mov dword [esi - 0x20], ecx
mov ecx, dword [esi - 0x38]
mov dword [esi - 0x1c], eax
xor ecx, eax
mov eax, dword [esi - 0x34]
xor eax, ecx
mov dword [esi - 0x18], ecx
mov dword [esi - 0x14], eax
mov edx, dword [esi - 0x14]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x41f740]
xor ecx, dword [eax*4 + str.cwko0]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x41ef40]
movzx eax, dl
xor ecx, dword [eax*4 + 0x421f40]
xor ecx, dword [esi - 0x30]
xor ecx, edi
mov dword [esi - 0x10], ecx
mov eax, dword [esi - 0x2c]
xor eax, ecx
mov dword [esi - 0xc], eax
mov ecx, dword [esi - 0x28]
xor ecx, eax
mov dword [esi - 8], ecx
mov eax, dword [esi - 0x24]
xor eax, ecx
mov dword [esi - 4], eax
sub ebx, 1
jne 0x40f414
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 8], ebx
add edi, 0xec
mov ebx, dword [ebp - 8]
lea esi, [eax + 0x1d4]
mov dword [ebp - 4], 0x38
add eax, 0xf4
mov edx, dword [ebx - 0xc]
lea eax, [eax + 0x10]
mov ecx, dword [edi - 0xc]
lea ebx, [ebx + 0x10]
mov dword [eax - 0x14], ecx
lea esi, [esi - 0x10]
mov dword [esi + 0xc], edx
lea edi, [edi - 0x10]
mov ecx, 0xffffff10
mov edx, dword [ecx + eax - 0x10]
mov ecx, dword [ecx + esi + 0x10]
mov dword [eax - 0x10], ecx
mov dword [esi + 0x10], edx
mov edx, dword [ebx - 0x14]
mov ecx, dword [edi + 0xc]
mov dword [eax - 0xc], ecx
mov dword [esi + 0x14], edx
mov edx, dword [ebx - 0x10]
mov ecx, dword [edi + 0x10]
mov dword [eax - 8], ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 0x18], edx
add ecx, 4
mov edx, dword [ebp - 4]
sub edx, 4
mov dword [ebp + 8], ecx
mov dword [ebp - 4], edx
cmp ecx, edx
jle 0x40f4f5
mov esi, dword [ebp + 0xc]
mov edi, 0x34
add esi, 0x100
nop dword [eax]
mov edx, dword [esi]
lea esi, [esi + 4]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [eax*4 + str.cwko0]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x41e340]
mov eax, dword [eax*4 + str.cwko0]
xor ecx, dword [eax*4 + 0x41e740]
mov eax, edx
shr eax, 0x18
mov eax, dword [eax*4 + str.cwko0]
xor ecx, dword [eax*4 + 0x420b40]
movzx eax, dl
mov eax, dword [eax*4 + str.cwko0]
xor ecx, dword [eax*4 + 0x41eb40]
mov dword [esi - 4], ecx
sub edi, 1
jne 0x40f560
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8