Function at 0x44da80
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
push ebx
push ebp
sub esp, 0x20
pcmpeqb mm5, mm5
mov edi, dword [esp + 0x4c]
xor edx, edx
mov dword [esp + 4], edx
jmp 0x44da9c
add edi, 1
add edx, 1
cmp edi, dword [esp + 0x50]
jge 0x44dd34
cmp edx, dword [esp + 0x54]
jge 0x44dd34
mov dword [esp + 4], edx
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x34]
mov ecx, 0x102
sub edx, edi
add esi, edi
cmp edx, ecx
cmovl ecx, edx
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x40]
movzx edx, byte [esi]
movzx ebx, byte [esi + 1]
movzx ebp, byte [esi + 2]
movd mm6, edx
pxor mm7, mm7
movsx edx, word [eax + edx*2]
movsx ebx, word [eax + ebx*2 + 0x200]
movsx ebp, word [eax + ebp*2 + 0x400]
xor edx, ebx
xor edx, ebp
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
mov eax, dword [ebx + edx*4]
mov dword [ebx + edx*4], edi
mov edx, 0x7fff
and edx, edi
mov dword [esp + 0xc], eax
mov dword [ebp + edx*4], eax
mov dword [esp + 8], 0
mov ebx, 2
jmp 0x44db39
mov ebp, dword [esp + 0x48]
and eax, 0x7fff
add dword [esp + 8], 1
mov eax, dword [ebp + eax*4]
cmp ebx, dword [esp + 0x10]
jge 0x44dc17
mov edx, edi
sub edx, eax
cmp edx, 0x8000
jge 0x44dc17
cmp dword [esp + 8], 0x10
jge 0x44dc17
mov edx, dword [esp + 0x34]
cmp eax, dword [esp + 0x4c]
jl 0x44dc0e
add edx, eax
movzx ebp, word [ebx + esi - 1]
movzx ecx, word [ebx + edx - 1]
cmp ebp, ecx
jne 0x44db27
mov ecx, dword [esp + 0x10]
xor ebp, ebp
cmp ecx, 8
jle 0x44dba1
movq mm0, qword [esi]
movq mm1, qword [edx]
pcmpeqb mm0, mm1
pxor mm0, mm5
pmovmskb ebp, mm0
bsf ebp, ebp
jne 0x44dbfb
add ebp, 8
sub ecx, 8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
sub ecx, 4
jl 0x44dbc2
mov ebx, dword [ebp + esi]
mov eax, dword [ebp + edx]
cmp ebx, eax
jne 0x44dbdf
add ebp, 4
sub ecx, 4
jge 0x44dbae
add ecx, 4
je 0x44dbf3
movzx ebx, byte [ebp + esi]
movzx eax, byte [ebp + edx]
sub ebx, eax
jne 0x44dbf3
add ebp, 1
sub ecx, 1
jne 0x44dbc7
jmp 0x44dbf3
movd mm0, ebx
movd mm1, eax
pcmpeqb mm0, mm1
pxor mm0, mm5
pmovmskb ebx, mm0
bsf ebx, ebx
add ebp, ebx
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp ebx, ebp
jge 0x44db27
mov ebx, ebp
mov dword [esp + 0xc], eax
jmp 0x44db27
mov edx, dword [esp + 0x38]
jmp 0x44db6c
cmp ebx, 3
jl 0x44dd20
mov ecx, edi
sub ecx, dword [esp + 0xc]
movd mm6, ebx
movd mm7, ecx
lea esi, [edi + 1]
sub ebx, 1
add edi, ebx
mov dword [esp], edi
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
sub ebx, 2
jl 0x44dcd8
mov dword [esp + 0x1c], ebx
movzx edi, byte [esi + edx]
movzx ebp, byte [esi + edx + 1]
movzx ebx, byte [esi + edx + 2]
movzx edx, byte [esi + edx + 3]
movsx edi, word [eax + edi*2]
movsx ecx, word [eax + ebp*2 + 0x200]
movsx ebp, word [eax + ebp*2]
xor ecx, edi
movsx edi, word [eax + ebx*2 + 0x400]
movsx ebx, word [eax + ebx*2 + 0x200]
movsx edx, word [eax + edx*2 + 0x400]
xor ecx, edi
mov edi, esi
xor ebx, ebp
mov ebp, dword [esp + 0x44]
xor ebx, edx
mov edx, dword [esp + 0x48]
movd mm0, dword [ebp + ecx*4]
mov dword [ebp + ecx*4], esi
add esi, 1
and edi, 0x7fff
movd mm1, dword [ebp + ebx*4]
movd dword [edx + edi*4], mm0
mov edi, esi
mov dword [ebp + ebx*4], esi
and edi, 0x7fff
mov ebx, dword [esp + 0x1c]
add esi, 1
movd dword [edx + edi*4], mm1
mov edx, dword [esp + 0x34]
sub ebx, 2
jge 0x44dc48
add ebx, 2
je 0x44dd1d
mov edi, dword [esp + 0x48]
mov ebp, dword [esp + 0x44]
movzx ecx, byte [esi + edx]
movzx ebx, byte [esi + edx + 1]
movzx edx, byte [esi + edx + 2]
movsx ecx, word [eax + ecx*2]
movsx ebx, word [eax + ebx*2 + 0x200]
movsx edx, word [eax + edx*2 + 0x400]
xor ecx, ebx
mov ebx, 0x7fff
xor ecx, edx
and ebx, esi
mov edx, dword [ebp + ecx*4]
mov dword [ebp + ecx*4], esi
mov dword [edi + ebx*4], edx
mov edi, dword [esp]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 4]
punpcklwd mm6, mm7
movd dword [eax + edx*4], mm6
jmp 0x44da96
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov dword [esi], edi
mov dword [eax], edx
emms
add esp, 0x20
pop ebp
pop ebx
pop esi
pop edi
ret