Function at 0x616ca0
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0xb0], edi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x54], 2
mov dword [ebp - 0xac], esi
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0xb0]
movq mm0, qword [esi + 0x20]
movq mm1, qword [edi + 0x20]
movq mm2, qword [esi + 0x60]
pmullw mm0, mm1
movq mm3, qword [edi + 0x60]
movq mm6, qword [0x6855b8]
pmullw mm2, mm3
movq mm7, qword [0x6855d8]
movq mm4, mm0
pmaddwd mm4, mm6
movq mm5, mm0
movq mm3, mm2
psrlq mm5, 0x10
movq mm1, qword [0x6855b0]
pmaddwd mm5, mm6
psrlq mm3, 0x10
paddw mm0, mm2
pmaddwd mm2, mm7
movq mm6, mm0
psrlq mm6, 0x10
pmaddwd mm3, mm7
movq mm7, qword [0x685600]
pmaddwd mm0, mm1
pmaddwd mm6, mm1
pxor mm2, mm7
movq mm1, qword [0x685608]
pxor mm3, mm7
paddd mm2, mm1
paddd mm3, mm1
paddd mm2, mm0
paddd mm4, mm0
movq mm0, qword [esi]
paddd mm3, mm6
movq mm1, qword [edi]
paddd mm5, mm6
movq mm6, qword [esi + 0x40]
pmullw mm0, mm1
movq mm7, qword [edi + 0x40]
nop
movq qword [ebp - 0xe8], mm2
pmullw mm6, mm7
movq mm7, qword [0x685610]
movq mm1, mm0
paddw mm0, mm6
nop
psubw mm1, mm6
movq mm6, mm0
pmaddwd mm0, mm7
psrlq mm6, 0x10
pmaddwd mm6, mm7
movq mm2, mm1
pmaddwd mm1, mm7
psrlq mm2, 0x10
pmaddwd mm2, mm7
pslld mm0, 0xd
movq mm7, mm4
pslld mm6, 0xd
paddd mm4, mm0
psubd mm0, mm7
movq mm7, mm5
pslld mm2, 0xd
movq qword [ebp - 0x38], mm0
paddd mm5, mm6
movq mm0, qword [ebp - 0xe8]
psubd mm6, mm7
movq qword [ebp - 0x70], mm5
movq mm7, mm3
movq qword [ebp - 0x90], mm6
paddd mm3, mm2
movq qword [ebp - 0xd0], mm4
pslld mm1, 0xd
movq qword [ebp - 0x108], mm3
psubd mm2, mm7
movq mm6, qword [esi + 0x10]
movq mm3, mm0
movq qword [ebp - 0xf8], mm2
paddd mm0, mm1
movq mm7, qword [edi + 0x10]
movq qword [ebp - 0x100], mm0
psubd mm1, mm3
movq mm0, qword [esi + 0x70]
pmullw mm6, mm7
movq qword [ebp - 0xc8], mm1
movq mm1, qword [edi + 0x70]
movq mm2, qword [esi + 0x50]
pmullw mm0, mm1
movq mm3, qword [edi + 0x50]
movq mm4, qword [esi + 0x30]
pmullw mm2, mm3
movq mm5, qword [edi + 0x30]
movq mm1, mm0
movq qword [ebp - 0xc0], mm6
pmullw mm4, mm5
movq qword [ebp - 0xa8], mm0
paddw mm0, mm6
movq qword [ebp - 0x48], mm2
movq mm3, mm2
movq qword [ebp - 0x20], mm4
paddw mm2, mm4
paddw mm1, mm4
movq mm4, qword [0x6855c8]
paddw mm3, mm6
movq mm5, mm1
movq mm7, mm0
psrlq mm7, 0x10
paddw mm5, mm3
movq mm6, mm5
pmaddwd mm5, mm4
pmaddwd mm0, qword [0x6855c0]
psrlq mm6, 0x10
pmaddwd mm6, mm4
movq mm4, mm2
movq qword [ebp - 0x30], mm5
psrlq mm4, 0x10
pxor mm0, qword [0x685600]
movq mm5, mm1
movq qword [ebp - 0xb8], mm6
psrlq mm5, 0x10
movq mm6, qword [0x6855f0]
nop
paddd mm0, qword [0x685608]
pmaddwd mm2, mm6
movq qword [ebp - 0xe0], mm0
pmaddwd mm4, mm6
pmaddwd mm7, qword [0x6855c0]
movq mm0, mm3
movq mm6, qword [0x6855e0]
psrlq mm0, 0x10
pxor mm2, qword [0x685600]
pmaddwd mm1, mm6
paddd mm2, qword [0x685608]
pmaddwd mm5, mm6
movq mm6, qword [0x6855a8]
nop
pxor mm4, qword [0x685600]
pmaddwd mm3, mm6
paddd mm4, qword [0x685608]
pmaddwd mm0, mm6
movq mm6, qword [0x685600]
nop
pxor mm1, mm6
pxor mm7, mm6
paddd mm1, qword [0x685608]
pxor mm5, mm6
paddd mm7, qword [0x685608]
pxor mm3, mm6
paddd mm5, qword [0x685608]
nop
movq qword [ebp - 0x50], mm7
pxor mm0, mm6
paddd mm1, qword [ebp - 0x30]
nop
movq mm6, qword [ebp - 0xe0]
nop
paddd mm5, qword [ebp - 0xb8]
paddd mm6, mm1
paddd mm3, qword [0x685608]
paddd mm1, mm2
paddd mm0, qword [0x685608]
paddd mm7, mm5
paddd mm3, qword [ebp - 0x30]
paddd mm5, mm4
paddd mm0, qword [ebp - 0xb8]
paddd mm2, mm3
paddd mm3, qword [ebp - 0xe0]
paddd mm4, mm0
paddd mm0, qword [ebp - 0x50]
movq qword [ebp - 0x88], mm1
nop
movq qword [ebp - 8], mm0
nop
movq mm0, qword [ebp - 0xa8]
nop
movq qword [ebp - 0x80], mm2
movq mm1, mm0
movq mm2, qword [0x6855a0]
psrlq mm1, 0x10
movq qword [ebp - 0x18], mm3
pmaddwd mm0, mm2
movq mm3, qword [ebp - 0x48]
pmaddwd mm1, mm2
movq qword [ebp - 0x68], mm4
movq mm2, mm3
movq mm4, qword [0x6855e8]
psrlq mm2, 0x10
movq qword [ebp - 0x60], mm5
pmaddwd mm3, mm4
movq mm5, qword [ebp - 0x20]
pmaddwd mm2, mm4
movq qword [ebp - 0xa0], mm6
movq mm4, mm5
movq mm6, qword [0x6855f8]
psrlq mm4, 0x10
movq qword [ebp - 0xd8], mm7
pmaddwd mm5, mm6
movq mm7, qword [ebp - 0xc0]
pmaddwd mm4, mm6
paddd mm0, qword [ebp - 0xa0]
movq mm6, mm7
paddd mm1, qword [ebp - 0xd8]
psrlq mm6, 0x10
movq qword [ebp - 0x28], mm0
nop
movq mm0, qword [0x6855d0]
nop
movq qword [ebp - 0x78], mm1
pmaddwd mm7, mm0
paddd mm3, qword [ebp - 0x80]
pmaddwd mm6, mm0
movq mm0, qword [ebp - 0xd0]
nop
paddd mm7, qword [ebp - 0x18]
nop
paddd mm6, qword [ebp - 8]
psubd mm0, mm7
movq mm1, qword [ebp - 0x70]
nop
movq qword [ebp - 0x40], mm3
psubd mm1, mm6
movq mm3, qword [0x685618]
nop
paddd mm2, qword [ebp - 0x68]
paddd mm0, mm3
paddd mm7, qword [ebp - 0xd0]
psrad mm0, 0xb
movq qword [ebp - 0xf0], mm2
paddd mm1, mm3
paddd mm6, qword [ebp - 0x70]
psrad mm1, 0xb
paddd mm5, qword [ebp - 0x88]
movq mm2, mm0
paddd mm4, qword [ebp - 0x60]
punpcklwd mm0, mm1
paddd mm6, mm3
punpckhwd mm2, mm1
paddd mm7, mm3
punpckldq mm0, mm2
mov edi, dword [ebp - 0xac]
movq qword [edi + 0x70], mm0
psrad mm6, 0xb
movq mm2, qword [ebp - 0x100]
psrad mm7, 0xb
psubd mm2, mm5
movq mm0, mm7
movq mm1, qword [ebp - 0x108]
punpcklwd mm7, mm6
psubd mm1, mm4
punpckhwd mm0, mm6
paddd mm5, qword [ebp - 0x100]
punpckldq mm7, mm0
paddd mm4, qword [ebp - 0x108]
paddd mm2, mm3
paddd mm1, mm3
paddd mm5, mm3
paddd mm4, mm3
psrad mm2, 0xb
movq qword [edi], mm7
psrad mm1, 0xb
movq mm0, mm2
psrad mm5, 0xb
movq mm6, qword [ebp - 0xc8]
punpcklwd mm2, mm1
punpckhwd mm0, mm1
movq mm1, mm5
movq mm7, qword [ebp - 0xf8]
punpckldq mm2, mm0
movq qword [edi + 0x60], mm2
psrad mm4, 0xb
movq mm2, mm6
punpcklwd mm5, mm4
paddd mm6, qword [ebp - 0x40]
punpckhwd mm1, mm4
psubd mm2, qword [ebp - 0x40]
punpckldq mm5, mm1
movq qword [edi + 0x10], mm5
movq mm0, mm7
paddd mm7, qword [ebp - 0xf0]
paddd mm6, mm3
psubd mm0, qword [ebp - 0xf0]
paddd mm7, mm3
paddd mm2, mm3
psrad mm7, 0xb
paddd mm0, mm3
psrad mm6, 0xb
movq mm1, mm6
psrad mm2, 0xb
movq mm4, qword [ebp - 0x38]
punpcklwd mm6, mm7
movq mm5, mm4
punpckhwd mm1, mm7
paddd mm4, qword [ebp - 0x28]
punpckldq mm6, mm1
psubd mm5, qword [ebp - 0x28]
psrad mm0, 0xb
movq qword [edi + 0x20], mm6
movq mm6, mm2
paddd mm4, mm3
punpcklwd mm2, mm0
paddd mm5, mm3
punpckhwd mm6, mm0
movq mm0, qword [ebp - 0x90]
punpckldq mm2, mm6
movq mm1, mm0
psrad mm4, 0xb
paddd mm0, qword [ebp - 0x78]
psrad mm5, 0xb
paddd mm0, mm3
movq mm6, mm4
psubd mm1, qword [ebp - 0x78]
psrad mm0, 0xb
paddd mm1, mm3
punpcklwd mm4, mm0
movq mm3, mm5
punpckhwd mm6, mm0
movq qword [edi + 0x50], mm2
punpckldq mm4, mm6
psrad mm1, 0xb
movq qword [edi + 0x30], mm4
punpcklwd mm5, mm1
punpckhwd mm3, mm1
punpckldq mm5, mm3
add dword [ebp - 0xc], 8
add dword [ebp - 0xb0], 8
movq qword [edi + 0x40], mm5
add dword [ebp - 0xac], 8
mov eax, dword [ebp - 0x54]
dec eax
mov dword [ebp - 0x54], eax
jne 0x616ccd
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x54], 8
mov dword [ebp - 0xac], esi
mov dword [ebp - 0x94], 0
mov esi, dword [ebp - 0xac]
mov edi, dword [ebp + 0x14]
movq mm0, qword [esi]
movq mm1, qword [esi + 8]
movq mm2, mm0
movq mm3, mm0
paddw mm2, mm1
movq mm4, mm2
punpckhdq mm3, mm1
pmaddwd mm3, qword [0x685630]
movq mm6, mm0
pmaddwd mm2, qword [0x685638]
psubw mm6, mm1
punpckldq mm4, mm6
movq mm6, mm0
movq mm5, mm3
pslld mm4, 0x10
pxor mm3, qword [0x685600]
punpckhdq mm2, mm2
paddd mm3, qword [0x685608]
psrad mm4, 3
psrlq mm3, 0x20
movq mm7, mm4
punpckldq mm5, mm3
movq mm3, mm0
paddd mm5, mm2
paddw mm3, mm1
paddd mm4, mm5
psubd mm7, mm5
movq mm5, mm3
movq mm2, mm0
pmaddwd mm0, qword [0x685640]
punpckldq mm5, mm5
paddw mm5, mm3
punpckldq mm2, mm2
pmaddwd mm5, qword [0x685660]
punpckhdq mm6, mm2
pmaddwd mm3, qword [0x685658]
paddw mm6, mm1
pmaddwd mm6, qword [0x685650]
nop
pmaddwd mm1, qword [0x685648]
punpckhdq mm5, mm5
movq mm2, qword [0x685608]
nop
pxor mm3, qword [0x685600]
nop
pxor mm6, qword [0x685600]
paddd mm3, mm2
paddd mm6, mm2
paddd mm3, mm5
movq mm5, mm6
paddd mm6, mm3
movq mm2, mm5
punpckldq mm5, mm5
punpckhdq mm2, mm5
paddd mm1, mm6
paddd mm2, mm3
movq mm5, mm1
movq mm3, mm4
paddd mm0, mm2
movq mm2, mm7
punpckldq mm5, mm5
punpckhdq mm1, mm5
psubd mm3, mm0
movq mm5, qword [0x685620]
paddd mm0, mm4
movq mm6, qword [0x685628]
psubd mm2, mm1
paddd mm0, mm5
paddd mm1, mm7
paddd mm1, mm5
psrad mm0, 0x12
paddd mm3, mm5
psrad mm1, 0x12
paddd mm2, mm5
psrad mm3, 0x12
pand mm1, mm6
psrad mm2, 0x12
movd ebx, mm1
psrlq mm1, 0x20
mov ecx, dword [ebp + 0x1c]
add edi, dword [ebp - 0x94]
movd edx, mm1
pand mm0, mm6
mov ah, byte [ecx + ebx]
mov edi, dword [edi]
movd ebx, mm0
psrlq mm0, 0x20
mov al, byte [ecx + edx]
add dword [ebp - 0x94], 4
movd edx, mm0
pand mm3, mm6
add edi, dword [ebp + 0x18]
shl eax, 0x10
mov al, byte [ecx + ebx]
mov ah, byte [ecx + edx]
movd mm4, eax
pand mm2, mm6
movd ebx, mm3
psrlq mm3, 0x20
movd edx, mm3
mov ah, byte [ecx + ebx]
mov al, byte [ecx + edx]
movd ebx, mm2
psrlq mm2, 0x20
shl eax, 0x10
movd edx, mm2
mov al, byte [ecx + ebx]
mov ah, byte [ecx + edx]
movd mm5, eax
punpckldq mm4, mm5
add dword [ebp - 0xac], 0x10
mov eax, dword [ebp - 0x54]
movq qword [edi], mm4
dec eax
mov dword [ebp - 0x54], eax
jne 0x617212
emms
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18