Function at 0x44d140
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 0x44d15c
add edi, 1
add edx, 1
cmp edi, dword [esp + 0x50]
jge 0x44d3f4
cmp edx, dword [esp + 0x54]
jge 0x44d3f4
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 0x44d1f9
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 0x44d2d7
mov edx, edi
sub edx, eax
cmp edx, 0x8000
jge 0x44d2d7
cmp dword [esp + 8], 0x10
jge 0x44d2d7
mov edx, dword [esp + 0x34]
cmp eax, dword [esp + 0x4c]
jl 0x44d2ce
add edx, eax
movzx ebp, word [ebx + esi - 1]
movzx ecx, word [ebx + edx - 1]
cmp ebp, ecx
jne 0x44d1e7
mov ecx, dword [esp + 0x10]
xor ebp, ebp
cmp ecx, 8
jle 0x44d261
movq mm0, qword [esi]
movq mm1, qword [edx]
pcmpeqb mm0, mm1
pxor mm0, mm5
pmovmskb ebp, mm0
bsf ebp, ebp
jne 0x44d2bb
add ebp, 8
sub ecx, 8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
sub ecx, 4
jl 0x44d282
mov ebx, dword [ebp + esi]
mov eax, dword [ebp + edx]
cmp ebx, eax
jne 0x44d29f
add ebp, 4
sub ecx, 4
jge 0x44d26e
add ecx, 4
je 0x44d2b3
movzx ebx, byte [ebp + esi]
movzx eax, byte [ebp + edx]
sub ebx, eax
jne 0x44d2b3
add ebp, 1
sub ecx, 1
jne 0x44d287
jmp 0x44d2b3
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 0x44d1e7
mov ebx, ebp
mov dword [esp + 0xc], eax
jmp 0x44d1e7
mov edx, dword [esp + 0x38]
jmp 0x44d22c
cmp ebx, 3
jl 0x44d3e0
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 0x44d398
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 0x44d308
add ebx, 2
je 0x44d3dd
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 0x44d156
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