Function at 0x44c210
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
push ebx
push ebp
sub esp, 0x28
pcmpeqb mm5, mm5
mov eax, 1
mov edi, dword [esp + 0x54]
xor edx, edx
sub dword [esp + 0x58], eax
movd mm7, eax
mov dword [esp + 4], edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x18], edx
jmp 0x44c23d
add edx, 1
cmp edi, dword [esp + 0x58]
jge 0x44c669
cmp edx, dword [esp + 0x5c]
jge 0x44c669
mov dword [esp + 4], edx
mov esi, dword [esp + 0x3c]
add esi, edi
mov eax, dword [esp + 0x48]
movzx edx, byte [esi]
movzx ebx, byte [esi + 1]
movzx ebp, byte [esi + 2]
movd mm6, edx
movsx edx, word [eax + edx*2]
movsx ebx, word [eax + ebx*2 + 0x200]
movsx ebp, word [eax + ebp*2 + 0x400]
xor edx, ebx
mov ebx, dword [esp + 0x4c]
xor edx, ebp
mov ebp, dword [esp + 0x50]
mov eax, dword [ebx + edx*4]
mov dword [ebx + edx*4], edi
movd ebx, mm7
mov edx, 0x7fff
and edx, edi
mov dword [ebp + edx*4], eax
test ebx, ebx
je 0x44c3ce
pxor mm7, mm7
mov edx, dword [esp + 0x58]
mov ecx, 0x102
sub edx, edi
cmp edx, ecx
cmovl ecx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov ebx, 2
mov dword [esp + 0x18], ebx
jmp 0x44c2ed
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x50]
and eax, 0x7fff
add dword [esp + 8], 1
mov eax, dword [ebp + eax*4]
cmp ebx, dword [esp + 0x14]
jge 0x44c3ce
mov edx, edi
sub edx, eax
cmp edx, 0x8000
jge 0x44c3ce
cmp dword [esp + 8], 0x200
jge 0x44c3ce
mov edx, dword [esp + 0x3c]
cmp eax, dword [esp + 0x54]
jl 0x44c3c5
add edx, eax
movzx ebp, word [ebx + esi - 1]
movzx ecx, word [ebx + edx - 1]
cmp ebp, ecx
jne 0x44c2d7
mov ecx, dword [esp + 0x14]
xor ebp, ebp
cmp ecx, 8
jle 0x44c358
movq mm0, qword [esi]
movq mm1, qword [edx]
pcmpeqb mm0, mm1
pxor mm0, mm5
pmovmskb ebp, mm0
bsf ebp, ebp
jne 0x44c3b2
add ebp, 8
sub ecx, 8
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], eax
sub ecx, 4
jl 0x44c379
mov ebx, dword [ebp + esi]
mov eax, dword [ebp + edx]
cmp ebx, eax
jne 0x44c396
add ebp, 4
sub ecx, 4
jge 0x44c365
add ecx, 4
je 0x44c3aa
movzx ebx, byte [ebp + esi]
movzx eax, byte [ebp + edx]
sub ebx, eax
jne 0x44c3aa
add ebp, 1
sub ecx, 1
jne 0x44c37e
jmp 0x44c3aa
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 + 0x18]
mov eax, dword [esp + 0x20]
cmp ebx, ebp
jge 0x44c2d7
mov ebx, ebp
mov dword [esp + 0xc], eax
jmp 0x44c2d7
mov edx, dword [esp + 0x40]
jmp 0x44c323
add esi, 1
add edi, 1
mov edx, dword [esp + 0x58]
mov ecx, 0x102
sub edx, edi
cmp edx, ecx
cmovl ecx, edx
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x48]
movzx edx, byte [esi]
movzx ebx, byte [esi + 1]
movzx ebp, byte [esi + 2]
movsx edx, word [eax + edx*2]
movsx ebx, word [eax + ebx*2 + 0x200]
movsx ebp, word [eax + ebp*2 + 0x400]
xor edx, ebx
mov ebx, dword [esp + 0x4c]
xor edx, ebp
mov eax, dword [ebx + edx*4]
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov ebx, 2
jmp 0x44c43b
mov ebp, dword [esp + 0x50]
and eax, 0x7fff
add dword [esp + 8], 1
mov eax, dword [ebp + eax*4]
cmp ebx, dword [esp + 0x14]
jge 0x44c51c
mov edx, edi
sub edx, eax
cmp edx, 0x8000
jge 0x44c51c
cmp dword [esp + 8], 0x200
jge 0x44c51c
mov edx, dword [esp + 0x3c]
cmp eax, dword [esp + 0x54]
jl 0x44c513
add edx, eax
movzx ebp, word [ebx + esi - 1]
movzx ecx, word [ebx + edx - 1]
cmp ebp, ecx
jne 0x44c429
mov ecx, dword [esp + 0x14]
xor ebp, ebp
cmp ecx, 8
jle 0x44c4a6
movq mm0, qword [esi]
movq mm1, qword [edx]
pcmpeqb mm0, mm1
pxor mm0, mm5
pmovmskb ebp, mm0
bsf ebp, ebp
jne 0x44c500
add ebp, 8
sub ecx, 8
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
sub ecx, 4
jl 0x44c4c7
mov ebx, dword [ebp + esi]
mov eax, dword [ebp + edx]
cmp ebx, eax
jne 0x44c4e4
add ebp, 4
sub ecx, 4
jge 0x44c4b3
add ecx, 4
je 0x44c4f8
movzx ebx, byte [ebp + esi]
movzx eax, byte [ebp + edx]
sub ebx, eax
jne 0x44c4f8
add ebp, 1
sub ecx, 1
jne 0x44c4cc
jmp 0x44c4f8
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 + 0x1c]
mov eax, dword [esp + 0x20]
cmp ebx, ebp
jge 0x44c429
mov ebx, ebp
mov dword [esp + 0x10], eax
jmp 0x44c429
mov edx, dword [esp + 0x40]
jmp 0x44c471
mov eax, edi
mov edx, dword [esp + 0xc]
sub eax, 1
mov ecx, ebx
mov ebx, dword [esp + 0x18]
sub eax, edx
cmp ebx, ecx
jl 0x44c65b
cmp ebx, 3
jg 0x44c54e
cmp ebx, 3
jne 0x44c65b
cmp eax, 0x1000
jg 0x44c65b
movd mm6, ebx
movd mm7, eax
mov esi, edi
sub ebx, 1
add edi, ebx
mov dword [esp], edi
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x48]
sub ebx, 2
jl 0x44c5ff
mov dword [esp + 0x24], 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 + 0x4c]
xor ebx, edx
mov edx, dword [esp + 0x50]
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 + 0x24]
add esi, 1
movd dword [edx + edi*4], mm1
mov edx, dword [esp + 0x3c]
sub ebx, 2
jge 0x44c56f
add ebx, 2
je 0x44c644
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x4c]
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 + 0x44]
mov edx, dword [esp + 4]
punpcklwd mm6, mm7
movd dword [eax + edx*4], mm6
jmp 0x44c23a
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], edx
jmp 0x44c647
mov esi, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
mov dword [esi], edi
mov dword [eax], edx
emms
add esp, 0x28
pop ebp
pop ebx
pop esi
pop edi
ret