Function at 0x53d750
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x20
mov edx, dword [ebp + 8]
sub ecx, edx
sar ecx, 2
mov eax, ecx
mov dword [ebp + 0xc], ecx
sar eax, 1
test eax, eax
jle 0x53d95e
push ebx
dec ecx
push esi
sar ecx, 1
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
nop dword [eax]
mov ecx, dword [edx + eax*4 - 4]
dec eax
mov esi, edi
mov dword [ebp - 0x10], ecx
mov ecx, eax
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebp - 4], ecx
cmp eax, dword [ebp - 0xc]
jge 0x53d869
nop dword [eax]
lea eax, [ebx + ebx]
mov ecx, dword [edx + eax*4 + 8]
mov ebx, dword [edx + eax*4 + 4]
mov dword [ebp - 0x20], eax
call fcn.0043e770
mov ecx, ebx
movss xmm0, dword [eax]
subss xmm0, dword [esi]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [edi + 4]
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, dword [edi + 8]
movss dword [ebp - 0x1c], xmm0
call fcn.0043e770
movss xmm2, dword [ebp - 0x18]
movss xmm4, dword [ebp - 0x14]
mulss xmm2, xmm2
mov ebx, dword [ebp - 0x20]
movss xmm1, dword [eax]
movss xmm3, dword [eax + 4]
subss xmm3, dword [edi + 4]
subss xmm1, dword [esi]
movss xmm0, dword [eax + 8]
xor eax, eax
subss xmm0, dword [edi + 8]
mulss xmm4, xmm4
mov edx, dword [ebp + 8]
mulss xmm3, xmm3
mov ecx, dword [ebp - 4]
mulss xmm1, xmm1
addss xmm4, xmm2
movss xmm2, dword [ebp - 0x1c]
mulss xmm2, xmm2
addss xmm3, xmm1
mulss xmm0, xmm0
addss xmm4, xmm2
addss xmm3, xmm0
comiss xmm4, xmm3
seta al
inc ebx
xor eax, 1
add ebx, eax
mov eax, dword [edx + ebx*4]
mov dword [edx + ecx*4], eax
mov ecx, ebx
mov dword [ebp - 4], ecx
cmp ebx, dword [ebp - 0xc]
jl 0x53d7a0
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jne 0x53d886
mov ebx, dword [ebp + 0xc]
test bl, 1
jne 0x53d886
mov eax, dword [edx + ebx*4 - 4]
mov dword [edx + ecx*4], eax
lea ecx, [ebx - 1]
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
lea ebx, [ecx - 1]
sar ebx, 1
cmp eax, ecx
jge 0x53d94d
mov ecx, dword [edx + ebx*4]
call fcn.0043e770
mov ecx, dword [ebp - 0x10]
movss xmm0, dword [eax]
subss xmm0, dword [esi]
movss dword [ebp - 0x1c], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 4]
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, dword [esi + 8]
movss dword [ebp - 0x18], xmm0
call fcn.0043e770
movss xmm2, dword [ebp - 0x1c]
movss xmm4, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
movss xmm1, dword [eax]
movss xmm3, dword [eax + 4]
subss xmm3, dword [esi + 4]
subss xmm1, dword [esi]
movss xmm0, dword [eax + 8]
subss xmm0, dword [esi + 8]
mov ecx, dword [ebp - 4]
mulss xmm2, xmm2
mulss xmm4, xmm4
mulss xmm3, xmm3
mulss xmm1, xmm1
addss xmm4, xmm2
movss xmm2, dword [ebp - 0x18]
mulss xmm2, xmm2
addss xmm3, xmm1
mulss xmm0, xmm0
addss xmm4, xmm2
addss xmm3, xmm0
comiss xmm4, xmm3
jbe 0x53d947
mov eax, dword [edx + ebx*4]
mov dword [edx + ecx*4], eax
mov ecx, ebx
mov eax, dword [ebp - 8]
dec ebx
sar ebx, 1
mov dword [ebp - 4], ecx
cmp eax, ecx
jl 0x53d893
jmp 0x53d94a
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0x10]
mov dword [edx + ecx*4], esi
test eax, eax
jg 0x53d780
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret