Function at 0x10228f60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
push esi
mov ecx, dword [edx + 0xbc]
mov eax, dword [edx + 0x6c]
movsd xmm3, qword [edx + 0x18]
lea eax, [eax + ecx*8]
mov dword [ebp - 0xc], eax
mov eax, dword [edx + 0x68]
push edi
lea eax, [eax + ecx*4]
mov ecx, dword [edx + 0x104]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0x5c]
xorps xmm2, xmm2
mov ecx, dword [eax + ecx*4 + 4]
mov eax, dword [edx + 0x58]
lea edi, [eax + ecx*4]
mov eax, dword [edx + 0x60]
mov dword [ebp + 8], edi
lea eax, [eax + ecx*8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [edx + 0x8c]
mov edx, 1
mov esi, edi
cmp eax, edx
jl 0x10228ffd
movsd xmm1, qword [0x1028cdc0]
mov edi, eax
jmp 0x10228fd0
movsd xmm0, qword [ecx + edx*8]
ucomisd xmm0, xmm2
lahf
test ah, 0x44
jnp 0x10228ff5
andpd xmm0, xmm1
comisd xmm0, xmm3
jb 0x10228ff0
mov dword [esi], edx
sub esi, 4
jmp 0x10228ff5
movsd qword [ecx + edx*8], xmm2
inc edx
cmp edx, edi
jle 0x10228fd0
mov edi, dword [ebp + 8]
mov eax, edi
sub eax, esi
mov esi, dword [ebp + 0x14]
sar eax, 2
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov edx, 1
movsd xmm1, qword [eax]
cmp esi, 4
jl 0x10229096
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp + 0x14]
add esi, 0x18
add edi, 0xc
shr edx, 2
mov dword [ebp - 0x14], edx
lea edx, [edx*4 + 1]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x14]
lea ecx, [ecx]
mov eax, dword [edi - 8]
add edi, 0x10
movsd xmm0, qword [ecx + eax*8]
mulsd xmm0, qword [esi - 0x10]
mov eax, dword [edi - 0x14]
add esi, 0x20
subsd xmm1, xmm0
movsd xmm0, qword [ecx + eax*8]
mulsd xmm0, qword [esi - 0x28]
mov eax, dword [edi - 0x10]
subsd xmm1, xmm0
movsd xmm0, qword [ecx + eax*8]
mulsd xmm0, qword [esi - 0x20]
mov eax, dword [edi - 0xc]
subsd xmm1, xmm0
movsd xmm0, qword [ecx + eax*8]
mulsd xmm0, qword [esi - 0x18]
subsd xmm1, xmm0
dec edx
jne 0x10229040
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
cmp edx, esi
jg 0x102290be
mov edi, dword [ebp - 0xc]
lea ecx, [ecx]
mov eax, dword [ebp - 0x10]
inc edx
mov eax, dword [eax + edx*4 - 4]
movsd xmm0, qword [ecx + eax*8]
mulsd xmm0, qword [edi + edx*8 - 8]
subsd xmm1, xmm0
cmp edx, esi
jle 0x102290a0
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 8]
movsd xmm3, qword [0x1028cdd0]
xor eax, eax
mov dword [ebp + 0x14], eax
cmp edx, 4
jl 0x1022916a
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
mov dword [ebp - 0x14], eax
mov esi, eax
lea eax, [edi - 8]
mov dword [ebp - 0x10], eax
lea eax, [edx - 4]
mov edx, dword [ebp - 0x10]
shr eax, 2
inc eax
mov dword [ebp - 0x18], eax
mov edi, eax
shl eax, 2
mov dword [ebp + 0x14], eax
lea ecx, [ecx]
mov eax, dword [edx + 8]
lea edx, [edx - 0x10]
movsd xmm0, qword [ecx + eax*8]
xorpd xmm0, xmm3
movsd qword [esi + 0x10], xmm0
movsd qword [ecx + eax*8], xmm2
mov eax, dword [edx + 0x14]
lea esi, [esi - 0x20]
movsd xmm0, qword [ecx + eax*8]
xorpd xmm0, xmm3
movsd qword [esi + 0x28], xmm0
movsd qword [ecx + eax*8], xmm2
mov eax, dword [edx + 0x10]
movsd xmm0, qword [ecx + eax*8]
xorpd xmm0, xmm3
movsd qword [esi + 0x20], xmm0
movsd qword [ecx + eax*8], xmm2
mov eax, dword [edx + 0xc]
movsd xmm0, qword [ecx + eax*8]
xorpd xmm0, xmm3
movsd qword [esi + 0x18], xmm0
movsd qword [ecx + eax*8], xmm2
dec edi
jne 0x10229100
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp - 4]
cmp eax, edx
jge 0x102291a1
shl eax, 3
sub esi, eax
mov eax, dword [ebp + 0x14]
shl eax, 2
sub edi, eax
sub edx, dword [ebp + 0x14]
mov eax, dword [edi]
lea edi, [edi - 4]
movsd xmm0, qword [ecx + eax*8]
xorpd xmm0, xmm3
movsd qword [esi], xmm0
movsd qword [ecx + eax*8], xmm2
lea esi, [esi - 8]
dec edx
jne 0x10229181
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
pop edi
movsd qword [eax], xmm1
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret