Function at 0x1007a400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, dword [ebp + 0x10]
xorps xmm0, xmm0
mov eax, dword [ebp + 0x30]
movsd xmm3, qword [ebp + 0x34]
push esi
shr eax, 9
lea esi, [ecx + 1]
and eax, 1
sar esi, 1
mov dword [ebp + 0x30], eax
mov dword [ebp - 4], esi
movss dword [ebp - 0x20], xmm0
cvtpd2ps xmm3, xmm3
test eax, eax
je 0x1007a449
mov eax, dword [ebp + 8]
movss xmm0, dword [eax + 4]
lea edx, [eax + 4]
movss dword [ebp - 0x20], xmm0
mov eax, dword [eax]
mov dword [edx], eax
jmp 0x1007a44c
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
cmp ecx, 1
jne 0x1007a468
movss xmm0, dword [edx]
mov eax, dword [ebp + 0xc]
mulss xmm0, xmm3
movss dword [eax], xmm0
jmp 0x1007a7b8
cmp ecx, 2
jne 0x1007a498
movss xmm2, dword [edx]
movss xmm1, dword [edx + 4]
mov eax, dword [ebp + 0xc]
addss xmm1, xmm2
subss xmm2, dword [edx + 4]
mulss xmm1, xmm3
mulss xmm2, xmm3
movss dword [eax], xmm1
movss dword [eax + 4], xmm2
jmp 0x1007a7b8
push edi
test cl, 1
je 0x1007a59a
mov esi, dword [ebp + 0xc]
mov edi, 1
mov eax, dword [edx]
mov dword [esi], eax
mov dword [esi + 4], 0
cmp dword [ebp - 4], edi
jle 0x1007a511
mov eax, dword [ebp + 0x1c]
dec ecx
movss xmm3, dword [0x101a2400]
lea ecx, [eax + ecx*4]
mov dword [ebp - 0x10], ecx
lea esp, [esp]
movss xmm2, dword [edx + edi*8]
mov eax, dword [eax + edi*4]
movaps xmm0, xmm2
mov ecx, dword [ecx]
xorps xmm0, xmm3
movss xmm1, dword [edx + edi*8 - 4]
inc edi
movss dword [esi + eax*8], xmm1
movss dword [esi + eax*8 + 4], xmm0
mov eax, dword [ebp + 0x1c]
movss dword [esi + ecx*8], xmm1
movss dword [esi + ecx*8 + 4], xmm2
mov ecx, dword [ebp - 0x10]
sub ecx, 4
mov dword [ebp - 0x10], ecx
cmp edi, dword [ebp - 4]
jl 0x1007a4d0
mov ecx, dword [ebp + 0x10]
movsd xmm0, qword [0x1019b448]
sub esp, 8
movsd qword [esp], xmm0
push pe_nt_image_headers32
push dword [ebp + 0x2c]
push 0
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ecx
push esi
push esi
call fcn.1007afe0
movsd xmm2, qword [ebp + 0x34]
mov eax, 1
movss xmm0, dword [esi]
add esp, 0x34
mov ecx, dword [ebp + 0x10]
cvtpd2ps xmm2, xmm2
mulss xmm0, xmm2
movss dword [esi], xmm0
cmp ecx, eax
jle 0x1007a7b4
lea ebx, [ebx]
movss xmm1, dword [esi + eax*8 + 8]
movss xmm0, dword [esi + eax*8]
mulss xmm1, xmm2
mulss xmm0, xmm2
movss dword [esi + eax*4 + 4], xmm1
movss dword [esi + eax*4], xmm0
add eax, 2
cmp eax, ecx
jl 0x1007a570
jmp 0x1007a7b4
movss xmm2, dword [edx + ecx*4 - 4]
xor eax, eax
mov edi, dword [ebp + 0xc]
movaps xmm1, xmm2
subss xmm1, dword [edx]
addss xmm2, dword [edx]
mov esi, dword [ebp + 0x20]
cmp edx, edi
movss xmm7, dword [edx + 4]
sete al
add esi, 8
mov dword [ebp - 0x10], eax
mov eax, 2
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 4]
movss dword [edi], xmm2
movss dword [edi + 4], xmm1
mov dword [ebp - 0x14], eax
cmp eax, esi
jge 0x1007a6e8
lea esi, [edi + 0xc]
add ecx, 0xfffffffe
mov dword [ebp - 0x18], esi
mov esi, edi
sub esi, edx
mov dword [ebp - 0x28], esi
mov esi, edx
sub esi, edi
lea ecx, [edx + ecx*4]
mov dword [ebp - 0x24], esi
mov esi, dword [ebp - 4]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x10], 0
movss xmm2, dword [edx + eax*4]
mov edx, dword [ebp - 0xc]
movaps xmm6, xmm2
movss xmm4, dword [ecx - 4]
addss xmm2, dword [ecx]
subss xmm6, dword [ecx]
movss xmm1, dword [edx + 4]
addss xmm4, xmm7
subss xmm7, dword [ecx - 4]
movss xmm5, dword [edx]
movaps xmm0, xmm1
mov edi, dword [ebp - 0x24]
movaps xmm3, xmm5
mov edx, dword [ebp - 0x18]
mulss xmm0, xmm2
mulss xmm1, xmm7
mulss xmm5, xmm2
mulss xmm3, xmm7
movss xmm7, dword [edi + edx]
subss xmm5, xmm1
mov edi, dword [ebp + 0xc]
movaps xmm1, xmm4
addss xmm3, xmm0
movaps xmm0, xmm6
xorps xmm0, xmmword [0x101a2400]
subss xmm1, xmm5
addss xmm5, xmm4
subss xmm0, xmm3
subss xmm6, xmm3
je 0x1007a697
mov esi, dword [ebp - 0x28]
movss dword [edx - 4], xmm1
movss dword [edx], xmm0
movss dword [esi + ecx], xmm5
movss dword [esi + ecx + 4], xmm6
mov esi, dword [ebp - 4]
jmp 0x1007a6c7
mov ecx, eax
mov eax, dword [ebp + 0x1c]
sar ecx, 1
mov eax, dword [eax + ecx*4]
movss dword [edi + eax*4], xmm1
movss dword [edi + eax*4 + 4], xmm0
mov eax, esi
sub eax, ecx
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x1c]
movss dword [edi + eax*4], xmm5
movss dword [edi + eax*4 + 4], xmm6
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 8
add edx, 8
add eax, 2
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 8]
sub ecx, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ecx
cmp eax, esi
jl 0x1007a602
jg 0x1007a723
cmp dword [ebp - 0x10], 0
movss xmm1, dword [edx + esi*4]
mulss xmm7, dword [0x101a2398]
mulss xmm1, dword [0x101a2398]
je 0x1007a712
movss dword [edi + esi*4], xmm7
movss dword [edi + esi*4 + 4], xmm1
jmp 0x1007a723
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + esi*4]
movss dword [edi + eax*8], xmm7
movss dword [edi + eax*8 + 4], xmm1
mov esi, dword [ebp + 0x18]
xor ecx, ecx
movsd xmm0, qword [0x1019b448]
mov eax, pe_nt_image_headers32
sar dword [esi], 1
cmp dword [esi], 1
sete cl
sub esp, 8
xor edx, edx
cmp dword [ebp - 0x10], edx
movsd qword [esp], xmm0
cmovne eax, edx
push eax
push dword [ebp + 0x2c]
lea eax, [esi + ecx*4]
push edx
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x14]
sub eax, ecx
push eax
push dword [ebp - 4]
push edi
push edi
call fcn.1007afe0
shl dword [esi], 1
add esp, 0x34
mov ecx, dword [ebp + 0x10]
xor eax, eax
test ecx, ecx
jle 0x1007a7b4
movsd xmm1, qword [ebp + 0x34]
cvtpd2ps xmm1, xmm1
movaps xmm2, xmm1
xorps xmm2, xmmword [0x101a2400]
movss xmm0, dword [edi + eax*4]
mulss xmm0, xmm1
movss dword [edi + eax*4], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [edi + eax*4 + 4]
movss dword [edi + eax*4 + 4], xmm0
add eax, 2
cmp eax, ecx
jl 0x1007a790
mov edx, dword [ebp - 8]
pop edi
cmp dword [ebp + 0x30], 0
pop esi
je 0x1007a7c8
movss xmm0, dword [ebp - 0x20]
movss dword [edx], xmm0
mov esp, ebp
pop ebp
ret