Function at 0x44d490
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 0x44d4bd
add edx, 1
cmp edi, dword [esp + 0x58]
jge 0x44d8e9
cmp edx, dword [esp + 0x5c]
jge 0x44d8e9
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 0x44d64e
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 0x44d56d
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 0x44d64e
mov edx, edi
sub edx, eax
cmp edx, 0x8000
jge 0x44d64e
cmp dword [esp + 8], 0x200
jge 0x44d64e
mov edx, dword [esp + 0x3c]
cmp eax, dword [esp + 0x54]
jl 0x44d645
add edx, eax
movzx ebp, word [ebx + esi - 1]
movzx ecx, word [ebx + edx - 1]
cmp ebp, ecx
jne 0x44d557
mov ecx, dword [esp + 0x14]
xor ebp, ebp
cmp ecx, 8
jle 0x44d5d8
movq mm0, qword [esi]
movq mm1, qword [edx]
pcmpeqb mm0, mm1
pxor mm0, mm5
pmovmskb ebp, mm0
bsf ebp, ebp
jne 0x44d632
add ebp, 8
sub ecx, 8
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], eax
sub ecx, 4
jl 0x44d5f9
mov ebx, dword [ebp + esi]
mov eax, dword [ebp + edx]
cmp ebx, eax
jne 0x44d616
add ebp, 4
sub ecx, 4
jge 0x44d5e5
add ecx, 4
je 0x44d62a
movzx ebx, byte [ebp + esi]
movzx eax, byte [ebp + edx]
sub ebx, eax
jne 0x44d62a
add ebp, 1
sub ecx, 1
jne 0x44d5fe
jmp 0x44d62a
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 0x44d557
mov ebx, ebp
mov dword [esp + 0xc], eax
jmp 0x44d557
mov edx, dword [esp + 0x40]
jmp 0x44d5a3
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 0x44d6bb
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 0x44d79c
mov edx, edi
sub edx, eax
cmp edx, 0x8000
jge 0x44d79c
cmp dword [esp + 8], 0x200
jge 0x44d79c
mov edx, dword [esp + 0x3c]
cmp eax, dword [esp + 0x54]
jl 0x44d793
add edx, eax
movzx ebp, word [ebx + esi - 1]
movzx ecx, word [ebx + edx - 1]
cmp ebp, ecx
jne 0x44d6a9
mov ecx, dword [esp + 0x14]
xor ebp, ebp
cmp ecx, 8
jle 0x44d726
movq mm0, qword [esi]
movq mm1, qword [edx]
pcmpeqb mm0, mm1
pxor mm0, mm5
pmovmskb ebp, mm0
bsf ebp, ebp
jne 0x44d780
add ebp, 8
sub ecx, 8
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
sub ecx, 4
jl 0x44d747
mov ebx, dword [ebp + esi]
mov eax, dword [ebp + edx]
cmp ebx, eax
jne 0x44d764
add ebp, 4
sub ecx, 4
jge 0x44d733
add ecx, 4
je 0x44d778
movzx ebx, byte [ebp + esi]
movzx eax, byte [ebp + edx]
sub ebx, eax
jne 0x44d778
add ebp, 1
sub ecx, 1
jne 0x44d74c
jmp 0x44d778
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 0x44d6a9
mov ebx, ebp
mov dword [esp + 0x10], eax
jmp 0x44d6a9
mov edx, dword [esp + 0x40]
jmp 0x44d6f1
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 0x44d8db
cmp ebx, 3
jg 0x44d7ce
cmp ebx, 3
jne 0x44d8db
cmp eax, 0x1000
jg 0x44d8db
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 0x44d87f
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 0x44d7ef
add ebx, 2
je 0x44d8c4
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 0x44d4ba
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], edx
jmp 0x44d8c7
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