Function at 0x1003e730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0x10]
mov eax, ecx
push esi
mov esi, dword [ebp + 8]
push edi
cmp byte [eax], 0
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
jne 0x1003eac5
mov eax, dword [ebp + 0x14]
test al, 4
je 0x1003e777
lea eax, [edx*4]
push eax
push esi
push edi
call fcn.100ef570
mov edx, dword [ebp - 4]
add esp, 0xc
pop edi
mov byte [edx + 0xc], 0
pop esi
mov esp, ebp
pop ebp
ret 0x10
xor ecx, ecx
test al, 8
je 0x1003e8f9
test edx, edx
jle 0x1003eac5
cmp edx, 0x10
jb 0x1003e824
lea eax, [edx - 1]
lea eax, [esi + eax*4]
cmp edi, eax
ja 0x1003e7a6
lea eax, [edx - 1]
lea eax, [edi + eax*4]
cmp eax, esi
jae 0x1003e824
movaps xmm1, xmmword [0x10141990]
mov eax, edx
and eax, 0xfffffff0
mov edx, esi
sub edx, edi
mov dword [ebp - 8], eax
lea eax, [edi + 0x10]
mov dword [ebp + 0x14], edx
mov edx, dword [ebp + 0x10]
lea edi, [esi + 0x30]
movups xmm0, xmmword [eax - 0x10]
mov esi, dword [ebp + 0x14]
lea eax, [eax + 0x40]
add ecx, 0x10
lea edi, [edi + 0x40]
movups xmmword [edi - 0x70], xmm0
xorps xmm0, xmm1
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [eax - 0x40]
movups xmmword [esi + eax - 0x40], xmm0
mov esi, dword [ebp + 8]
xorps xmm0, xmm1
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [edi - 0x50], xmm0
xorps xmm0, xmm1
movups xmmword [eax - 0x30], xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [edi - 0x40], xmm0
xorps xmm0, xmm1
movups xmmword [eax - 0x20], xmm0
cmp ecx, dword [ebp - 8]
jl 0x1003e7c5
mov edi, dword [ebp + 0xc]
mov dword [ebp + 8], ecx
cmp ecx, edx
jge 0x1003eac5
movss xmm1, dword [0x10141990]
mov eax, edx
sub eax, ecx
cmp eax, 4
jl 0x1003e8bb
lea eax, [ecx + 3]
lea eax, [esi + eax*4]
sub esi, edi
mov dword [ebp + 0x14], eax
lea eax, [ecx + 1]
lea eax, [edi + eax*4]
mov edi, edx
mov edx, dword [ebp + 0x14]
sub edi, ecx
sub edi, 4
shr edi, 2
inc edi
mov dword [ebp + 8], edi
lea ecx, [ecx + edi*4]
mov edi, dword [ebp + 0xc]
sub dword [ebp + 8], 1
lea eax, [eax + 0x10]
movss xmm0, dword [eax - 0x14]
lea edx, [edx + 0x10]
movss dword [edx - 0x1c], xmm0
xorps xmm0, xmm1
movss dword [eax - 0x14], xmm0
movss xmm0, dword [eax - 0x10]
movss dword [esi + eax - 0x10], xmm0
xorps xmm0, xmm1
movss dword [eax - 0x10], xmm0
movss xmm0, dword [eax - 0xc]
movss dword [edx - 0x14], xmm0
xorps xmm0, xmm1
movss dword [eax - 0xc], xmm0
movss xmm0, dword [eax - 8]
movss dword [edx - 0x10], xmm0
xorps xmm0, xmm1
movss dword [eax - 8], xmm0
jne 0x1003e861
mov edx, dword [ebp + 0x10]
jmp 0x1003e8bd
sub esi, edi
cmp ecx, edx
jge 0x1003eac5
lea eax, [edi + ecx*4]
sub edx, ecx
nop word [eax + eax]
movss xmm0, dword [eax]
lea eax, [eax + 4]
movss dword [esi + eax - 4], xmm0
xorps xmm0, xmm1
movss dword [eax - 4], xmm0
sub edx, 1
jne 0x1003e8d0
mov edx, dword [ebp - 4]
pop edi
pop esi
mov byte [edx + 0xc], 0
mov esp, ebp
pop ebp
ret 0x10
test edx, edx
jle 0x1003eac5
cmp edx, 0x10
jb 0x1003e9c2
lea eax, [edx - 1]
xor ecx, ecx
lea eax, [esi + eax*4]
cmp edi, eax
ja 0x1003e924
lea eax, [edx - 1]
lea eax, [edi + eax*4]
cmp eax, esi
jae 0x1003e9c2
mov eax, edx
mov edx, esi
and eax, 0xfffffff0
sub edx, edi
mov dword [ebp - 8], eax
lea eax, [edi + 0x10]
mov dword [ebp + 0x14], edx
lea edi, [esi + 0x30]
mov edx, dword [ebp + 0x10]
nop dword [eax]
movups xmm2, xmmword [edi - 0x30]
mov esi, dword [ebp + 0x14]
add ecx, 0x10
movups xmm1, xmmword [eax - 0x10]
movaps xmm0, xmm2
addps xmm0, xmm1
subps xmm2, xmm1
movups xmmword [edi - 0x30], xmm0
movups xmmword [eax - 0x10], xmm2
movups xmm2, xmmword [esi + eax]
movups xmm1, xmmword [eax]
movaps xmm0, xmm2
addps xmm0, xmm1
subps xmm2, xmm1
movups xmmword [esi + eax], xmm0
mov esi, dword [ebp + 8]
movups xmmword [eax], xmm2
movups xmm2, xmmword [edi - 0x10]
movups xmm1, xmmword [eax + 0x10]
movaps xmm0, xmm2
addps xmm0, xmm1
subps xmm2, xmm1
movups xmmword [edi - 0x10], xmm0
movups xmmword [eax + 0x10], xmm2
movups xmm1, xmmword [eax + 0x20]
movups xmm2, xmmword [edi]
movaps xmm0, xmm1
addps xmm0, xmm2
subps xmm2, xmm1
movups xmmword [edi], xmm0
add edi, 0x40
movups xmmword [eax + 0x20], xmm2
add eax, 0x40
cmp ecx, dword [ebp - 8]
jl 0x1003e940
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x14], ecx
cmp ecx, edx
jge 0x1003eac5
mov eax, edx
sub eax, ecx
cmp eax, 4
jl 0x1003ea94
lea eax, [ecx + 3]
lea eax, [esi + eax*4]
sub esi, edi
mov dword [ebp - 8], eax
lea eax, [ecx + 1]
lea eax, [edi + eax*4]
mov dword [ebp - 0xc], esi
mov edi, dword [ebp - 8]
mov dword [ebp + 0x14], eax
mov eax, edx
mov esi, dword [ebp + 0x14]
sub eax, ecx
mov edx, dword [ebp - 0xc]
sub eax, 4
shr eax, 2
inc eax
lea ecx, [ecx + eax*4]
nop dword [eax]
movss xmm1, dword [esi - 4]
movss xmm2, dword [edi - 0xc]
movaps xmm0, xmm1
addss xmm0, xmm2
subss xmm2, xmm1
movss dword [edi - 0xc], xmm0
movss xmm1, dword [esi]
movss dword [esi - 4], xmm2
movaps xmm0, xmm1
movss xmm2, dword [edx + esi]
addss xmm0, xmm2
subss xmm2, xmm1
movss dword [edx + esi], xmm0
movss xmm1, dword [esi + 4]
movss dword [esi], xmm2
movaps xmm0, xmm1
movss xmm2, dword [edi - 4]
addss xmm0, xmm2
subss xmm2, xmm1
movss dword [edi - 4], xmm0
movss xmm1, dword [esi + 8]
movss dword [esi + 4], xmm2
movaps xmm0, xmm1
movss xmm2, dword [edi]
addss xmm0, xmm2
subss xmm2, xmm1
movss dword [edi], xmm0
add edi, 0x10
movss dword [esi + 8], xmm2
add esi, 0x10
sub eax, 1
jne 0x1003ea00
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cmp ecx, edx
jge 0x1003eac5
sub esi, edi
lea eax, [edi + ecx*4]
sub edx, ecx
nop dword [eax + eax]
movss xmm1, dword [eax]
movss xmm2, dword [esi + eax]
movaps xmm0, xmm1
addss xmm0, xmm2
subss xmm2, xmm1
movss dword [esi + eax], xmm0
movss dword [eax], xmm2
add eax, 4
sub edx, 1
jne 0x1003eaa0
mov edx, dword [ebp - 4]
pop edi
pop esi
mov byte [edx + 0xc], 0
mov esp, ebp
pop ebp
ret 0x10