Function at 0x590ed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, edx
mov edx, ecx
imul ecx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], edx
push esi
lea esi, [edx*4]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], esi
push edi
test eax, eax
jle 0x590f5a
mov edi, dword [ebp + 0xc]
lea eax, [edx*8]
mov edx, dword [ebp + 8]
mov esi, edi
mov dword [ebp - 0xc], eax
add esi, 0xfffffffc
mov eax, edx
lea ecx, [edx + ecx*4]
mov edx, dword [ebp - 0xc]
add edx, esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
movss xmm0, dword [ecx]
addss xmm0, dword [eax]
mov edx, dword [ebp - 0x18]
movss dword [edi], xmm0
movss xmm0, dword [eax]
add eax, esi
subss xmm0, dword [ecx]
add edi, dword [ebp - 0xc]
add ecx, esi
movss dword [edx], xmm0
add edx, dword [ebp - 0xc]
sub dword [ebp - 0x14], 1
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x1c]
jne 0x590f21
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
jmp 0x590f5d
mov dword [ebp - 8], esi
cmp edx, 2
jl 0x5910d1
je 0x591081
test eax, eax
jle 0x59107c
mov edi, dword [ebp + 8]
lea esi, [edx*8]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x1c]
lea ecx, [edi + ecx*4]
mov edi, dword [ebp + 0xc]
add esi, edi
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
cmp edx, 2
jle 0x591050
mov edi, dword [ebp - 0xc]
mov ecx, eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 0x20], eax
lea eax, [edx - 3]
mov edx, dword [ebp - 0x14]
shr eax, 1
inc eax
mov dword [ebp - 0x24], eax
nop word [eax + eax]
mov eax, dword [ebp - 0x20]
add esi, 8
add ecx, 8
add edx, 8
sub edi, 8
movss xmm4, dword [esi]
movss xmm1, dword [eax]
movaps xmm0, xmm4
mulss xmm4, dword [eax - 4]
movss xmm5, dword [esi - 4]
mulss xmm5, dword [eax - 4]
add eax, 8
sub dword [ebp - 0x24], 1
mulss xmm0, xmm1
mov dword [ebp - 0x20], eax
mulss xmm1, dword [esi - 4]
addss xmm5, xmm0
subss xmm4, xmm1
movaps xmm0, xmm4
addss xmm0, dword [ecx]
movss dword [edx], xmm0
movaps xmm0, xmm5
subss xmm4, dword [ecx]
movss dword [edi], xmm4
addss xmm0, dword [ecx - 4]
movss dword [edx - 4], xmm0
movss xmm0, dword [ecx - 4]
subss xmm0, xmm5
movss dword [edi - 4], xmm0
jne 0x590fd0
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x38]
add eax, esi
add dword [ebp - 0xc], edx
add edi, edx
mov edx, dword [ebp - 0x1c]
add ecx, esi
sub dword [ebp - 0x28], 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ecx
jne 0x590fa4
mov eax, dword [ebp - 4]
lea esi, [edx*4]
test dl, 1
jne 0x5910d1
lea edi, [edx - 1]
mov dword [ebp - 0x38], edi
add edi, dword [ebp - 0x2c]
test eax, eax
jle 0x5910d1
mov ecx, dword [ebp + 0xc]
lea eax, [edx*8]
mov edx, dword [ebp + 8]
add ecx, esi
movss xmm1, dword [0x5c7710]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x38]
lea edx, [edx + eax*4]
mov eax, dword [ebp + 8]
lea edi, [eax + edi*4]
movss xmm0, dword [edi]
add edi, esi
xorps xmm0, xmm1
movss dword [ecx], xmm0
mov eax, dword [edx]
add edx, esi
mov dword [ecx - 4], eax
add ecx, dword [ebp - 0x34]
sub dword [ebp - 4], 1
jne 0x5910b4
pop edi
pop esi
mov esp, ebp
pop ebp
ret