Function at 0x4edd325e
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], 2
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x14]
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 [0x4edd3988]
pmullw mm2, mm3
movq mm7, qword [0x4edd39a8]
movq mm4, mm0
pmaddwd mm4, mm6
movq mm5, mm0
movq mm3, mm2
psrlq mm5, 0x10
movq mm1, qword [0x4edd3980]
pmaddwd mm5, mm6
psrlq mm3, 0x10
paddw mm0, mm2
pmaddwd mm2, mm7
movq mm6, mm0
psrlq mm6, 0x10
pmaddwd mm3, mm7
movq mm7, qword [0x4edd39d0]
pmaddwd mm0, mm1
pmaddwd mm6, mm1
pxor mm2, mm7
movq mm1, qword [0x4edd39d8]
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 - 0xbc], mm2
pmullw mm6, mm7
movq mm7, qword [0x4edd39e0]
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 - 0xa4], mm0
paddd mm5, mm6
movq mm0, qword [ebp - 0xbc]
psubd mm6, mm7
movq qword [ebp - 0x1c], mm5
movq mm7, mm3
movq qword [ebp - 0x2c], mm6
paddd mm3, mm2
movq qword [ebp - 0x8c], mm4
pslld mm1, 0xd
movq qword [ebp - 0xfc], mm3
psubd mm2, mm7
movq mm6, qword [esi + 0x10]
movq mm3, mm0
movq qword [ebp - 0xdc], mm2
paddd mm0, mm1
movq mm7, qword [edi + 0x10]
movq qword [ebp - 0xec], mm0
psubd mm1, mm3
movq mm0, qword [esi + 0x70]
pmullw mm6, mm7
movq qword [ebp - 0x7c], 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 - 0x6c], mm6
pmullw mm4, mm5
movq qword [ebp - 0x4c], mm0
paddw mm0, mm6
movq qword [ebp - 0xd4], mm2
movq mm3, mm2
movq qword [ebp - 0x34], mm4
paddw mm2, mm4
paddw mm1, mm4
movq mm4, qword [0x4edd3998]
paddw mm3, mm6
movq mm5, mm1
movq mm7, mm0
psrlq mm7, 0x10
paddw mm5, mm3
movq mm6, mm5
pmaddwd mm5, mm4
pmaddwd mm0, qword [0x4edd3990]
psrlq mm6, 0x10
pmaddwd mm6, mm4
movq mm4, mm2
movq qword [ebp - 0x44], mm5
psrlq mm4, 0x10
pxor mm0, qword [0x4edd39d0]
movq mm5, mm1
movq qword [ebp - 0x5c], mm6
psrlq mm5, 0x10
movq mm6, qword [0x4edd39c0]
nop
paddd mm0, qword [0x4edd39d8]
pmaddwd mm2, mm6
movq qword [ebp - 0xac], mm0
pmaddwd mm4, mm6
pmaddwd mm7, qword [0x4edd3990]
movq mm0, mm3
movq mm6, qword [0x4edd39b0]
psrlq mm0, 0x10
pxor mm2, qword [0x4edd39d0]
pmaddwd mm1, mm6
paddd mm2, qword [0x4edd39d8]
pmaddwd mm5, mm6
movq mm6, qword [0x4edd3978]
nop
pxor mm4, qword [0x4edd39d0]
pmaddwd mm3, mm6
paddd mm4, qword [0x4edd39d8]
pmaddwd mm0, mm6
movq mm6, qword [0x4edd39d0]
nop
pxor mm1, mm6
pxor mm7, mm6
paddd mm1, qword [0x4edd39d8]
pxor mm5, mm6
paddd mm7, qword [0x4edd39d8]
pxor mm3, mm6
paddd mm5, qword [0x4edd39d8]
nop
movq qword [ebp - 0x64], mm7
pxor mm0, mm6
paddd mm1, qword [ebp - 0x44]
nop
movq mm6, qword [ebp - 0xac]
nop
paddd mm5, qword [ebp - 0x5c]
paddd mm6, mm1
paddd mm3, qword [0x4edd39d8]
paddd mm1, mm2
paddd mm0, qword [0x4edd39d8]
paddd mm7, mm5
paddd mm3, qword [ebp - 0x44]
paddd mm5, mm4
paddd mm0, qword [ebp - 0x5c]
paddd mm2, mm3
paddd mm3, qword [ebp - 0xac]
paddd mm4, mm0
paddd mm0, qword [ebp - 0x64]
movq qword [ebp - 0x24], mm1
nop
movq qword [ebp - 0xf4], mm0
nop
movq mm0, qword [ebp - 0x4c]
nop
movq qword [ebp - 0xc4], mm2
movq mm1, mm0
movq mm2, qword [0x4edd3970]
psrlq mm1, 0x10
movq qword [ebp - 0x94], mm3
pmaddwd mm0, mm2
movq mm3, qword [ebp - 0xd4]
pmaddwd mm1, mm2
movq qword [ebp - 0x74], mm4
movq mm2, mm3
movq mm4, qword [0x4edd39b8]
psrlq mm2, 0x10
movq qword [ebp - 0xb4], mm5
pmaddwd mm3, mm4
movq mm5, qword [ebp - 0x34]
pmaddwd mm2, mm4
movq qword [ebp - 0x3c], mm6
movq mm4, mm5
movq mm6, qword [0x4edd39c8]
psrlq mm4, 0x10
movq qword [ebp - 0x9c], mm7
pmaddwd mm5, mm6
movq mm7, qword [ebp - 0x6c]
pmaddwd mm4, mm6
paddd mm0, qword [ebp - 0x3c]
movq mm6, mm7
paddd mm1, qword [ebp - 0x9c]
psrlq mm6, 0x10
movq qword [ebp - 0xe4], mm0
nop
movq mm0, qword [0x4edd39a0]
nop
movq qword [ebp - 0x84], mm1
pmaddwd mm7, mm0
paddd mm3, qword [ebp - 0xc4]
pmaddwd mm6, mm0
movq mm0, qword [ebp - 0x8c]
nop
paddd mm7, qword [ebp - 0x94]
nop
paddd mm6, qword [ebp - 0xf4]
psubd mm0, mm7
movq mm1, qword [ebp - 0x1c]
nop
movq qword [ebp - 0x54], mm3
psubd mm1, mm6
movq mm3, qword [0x4edd39e8]
nop
paddd mm2, qword [ebp - 0x74]
paddd mm0, mm3
paddd mm7, qword [ebp - 0x8c]
psrad mm0, 0xb
movq qword [ebp - 0xcc], mm2
paddd mm1, mm3
paddd mm6, qword [ebp - 0x1c]
psrad mm1, 0xb
paddd mm5, qword [ebp - 0x24]
movq mm2, mm0
paddd mm4, qword [ebp - 0xb4]
punpcklwd mm0, mm1
paddd mm6, mm3
punpckhwd mm2, mm1
paddd mm7, mm3
punpckldq mm0, mm2
mov edi, dword [ebp - 0xc]
movq qword [edi + 0x70], mm0
psrad mm6, 0xb
movq mm2, qword [ebp - 0xec]
psrad mm7, 0xb
psubd mm2, mm5
movq mm0, mm7
movq mm1, qword [ebp - 0xfc]
punpcklwd mm7, mm6
psubd mm1, mm4
punpckhwd mm0, mm6
paddd mm5, qword [ebp - 0xec]
punpckldq mm7, mm0
paddd mm4, qword [ebp - 0xfc]
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 - 0x7c]
punpcklwd mm2, mm1
punpckhwd mm0, mm1
movq mm1, mm5
movq mm7, qword [ebp - 0xdc]
punpckldq mm2, mm0
movq qword [edi + 0x60], mm2
psrad mm4, 0xb
movq mm2, mm6
punpcklwd mm5, mm4
paddd mm6, qword [ebp - 0x54]
punpckhwd mm1, mm4
psubd mm2, qword [ebp - 0x54]
punpckldq mm5, mm1
movq qword [edi + 0x10], mm5
movq mm0, mm7
paddd mm7, qword [ebp - 0xcc]
paddd mm6, mm3
psubd mm0, qword [ebp - 0xcc]
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 - 0xa4]
punpcklwd mm6, mm7
movq mm5, mm4
punpckhwd mm1, mm7
paddd mm4, qword [ebp - 0xe4]
punpckldq mm6, mm1
psubd mm5, qword [ebp - 0xe4]
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 - 0x2c]
punpckldq mm2, mm6
movq mm1, mm0
psrad mm4, 0xb
paddd mm0, qword [ebp - 0x84]
psrad mm5, 0xb
paddd mm0, mm3
movq mm6, mm4
psubd mm1, qword [ebp - 0x84]
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 - 8], 8
add dword [ebp - 0x14], 8
movq qword [edi + 0x40], mm5
add dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
jne 0x4edd3285
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], 8
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0xc]
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 [0x4edd3a00]
movq mm6, mm0
pmaddwd mm2, qword [0x4edd3a08]
psubw mm6, mm1
punpckldq mm4, mm6
movq mm6, mm0
movq mm5, mm3
pslld mm4, 0x10
pxor mm3, qword [0x4edd39d0]
punpckhdq mm2, mm2
paddd mm3, qword [0x4edd39d8]
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 [0x4edd3a10]
punpckldq mm5, mm5
paddw mm5, mm3
punpckldq mm2, mm2
pmaddwd mm5, qword [0x4edd3a30]
punpckhdq mm6, mm2
pmaddwd mm3, qword [0x4edd3a28]
paddw mm6, mm1
pmaddwd mm6, qword [0x4edd3a20]
nop
pmaddwd mm1, qword [0x4edd3a18]
punpckhdq mm5, mm5
movq mm2, qword [0x4edd39d8]
nop
pxor mm3, qword [0x4edd39d0]
nop
pxor mm6, qword [0x4edd39d0]
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 [0x4edd39f0]
paddd mm0, mm4
movq mm6, qword [0x4edd39f8]
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 - 4]
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 - 4], 4
movd edx, mm0
pand mm3, mm6
add edi, dword [ebp + 0x18]
shl eax, 0x10
mov al, byte [ebx + ecx]
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 [ebx + ecx]
mov ah, byte [ecx + edx]
movd mm5, eax
punpckldq mm4, mm5
add dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x10]
movq qword [edi], mm4
dec eax
mov dword [ebp - 0x10], eax
jne 0x4edd37c1
emms
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18