Function at 0x513350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
shl eax, 7
movups xmm0, xmmword [eax + edx - 0x40]
movups xmmword [ebp - 0xe4], xmm0
movups xmm0, xmmword [eax + edx - 0x30]
movups xmmword [ebp - 0xd4], xmm0
movups xmm0, xmmword [eax + edx - 0x20]
movups xmmword [ebp - 0xc4], xmm0
movups xmm0, xmmword [eax + edx - 0x10]
mov eax, dword [ebp + 0x10]
shld ecx, eax, 1
movups xmmword [ebp - 0xb4], xmm0
add eax, eax
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0xa4], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x34], xmm0
test ecx, ecx
jb 0x51374f
ja 0x5133c4
test eax, eax
je 0x51374f
mov eax, dword [ebp - 0x30]
push ebx
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x34]
push esi
mov dword [ebp - 0x4c], eax
push edi
xorps xmm0, xmm0
movlpd qword [ebp - 0x34], xmm0
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
mov ecx, dword [edx]
add edx, 4
xor dword [ebp + eax*4 - 0xe4], ecx
add eax, 1
adc esi, 0
jne 0x5133fa
cmp eax, 0x10
jb 0x5133e1
movups xmm4, xmmword [ebp - 0xb4]
mov dword [ebp + 0xc], edx
movups xmm3, xmmword [ebp - 0xc4]
mov dword [ebp - 0x48], 4
movups xmm2, xmmword [ebp - 0xd4]
movups xmm1, xmmword [ebp - 0xe4]
movups xmmword [ebp - 0x60], xmm4
mov eax, dword [ebp - 0x58]
mov edi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 4], eax
movups xmmword [ebp - 0x70], xmm3
mov eax, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x64]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x14], eax
movups xmmword [ebp - 0x80], xmm2
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x80]
movups xmmword [ebp - 0x90], xmm1
mov esi, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x78]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 8], ecx
nop dword [eax]
lea eax, [ecx + edx]
rol eax, 7
xor eax, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x10], eax
rol ecx, 9
xor ecx, dword [ebp - 0x14]
add eax, ecx
mov dword [ebp - 0x94], ecx
rol eax, 0xd
xor eax, edx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x9c], eax
add eax, ecx
ror eax, 0xe
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
lea eax, [esi + edx]
rol eax, 7
xor eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea ecx, [eax + edx]
rol ecx, 9
xor ecx, dword [ebp - 4]
mov dword [ebp - 0x30], ecx
lea esi, [eax + ecx]
rol esi, 0xd
xor esi, dword [ebp - 0x2c]
lea eax, [esi + ecx]
ror eax, 0xe
xor eax, edx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
lea eax, [edi + edx]
rol eax, 7
xor eax, dword [ebp - 0x20]
mov dword [ebp - 0x98], eax
lea ecx, [eax + edx]
rol ecx, 9
xor ecx, dword [ebp - 0x38]
lea edi, [ecx + eax]
rol edi, 0xd
xor edi, dword [ebp - 0x28]
mov dword [ebp - 0x20], edi
lea eax, [ecx + edi]
ror eax, 0xe
xor eax, edx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
lea eax, [ebx + edx]
rol eax, 7
xor eax, dword [ebp - 0x3c]
add edx, eax
rol edx, 9
xor edx, dword [ebp - 0x40]
lea ebx, [edx + eax]
rol ebx, 0xd
xor ebx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ebx
lea edi, [edx + ebx]
mov ebx, edi
mov dword [ebp - 4], edi
ror ebx, 0xe
xor ebx, dword [ebp - 0x24]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 8]
add ebx, eax
rol ebx, 7
xor ebx, esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x8c], ebx
lea edi, [ebx + esi]
rol edi, 9
xor edi, ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x88], edi
lea ecx, [edi + ebx]
rol ecx, 0xd
xor ecx, eax
mov dword [ebp - 0x3c], ecx
lea eax, [edi + ecx]
mov dword [ebp - 0x84], ecx
mov ecx, dword [ebp - 0x10]
ror eax, 0xe
xor eax, esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x18]
lea ebx, [ecx + eax]
rol ebx, 7
xor ebx, dword [ebp - 0x20]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x78], ebx
mov edi, dword [ebp - 0x28]
lea esi, [eax + ebx]
rol esi, 9
xor esi, edx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x74], esi
lea edx, [esi + ebx]
rol edx, 0xd
xor edx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x80], edx
lea ecx, [edx + esi]
ror ecx, 0xe
xor ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x7c], ecx
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax]
rol edx, 7
xor edx, dword [ebp - 0xc]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x64], edx
lea ebx, [eax + edx]
rol ebx, 9
xor ebx, dword [ebp - 0x94]
add edx, ebx
mov dword [ebp - 0x14], ebx
rol edx, 0xd
xor edx, ecx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x6c], edx
lea ecx, [edx + ebx]
ror ecx, 0xe
xor ecx, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp - 0x98]
lea edx, [eax + ecx]
rol edx, 7
xor edx, dword [ebp - 0x9c]
lea ebx, [edx + eax]
rol ebx, 9
xor ebx, dword [ebp - 0x30]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x5c], ebx
lea esi, [edx + ebx]
rol esi, 0xd
xor esi, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x58], esi
lea ecx, [esi + ebx]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x2c]
ror ecx, 0xe
xor ecx, eax
sub dword [ebp - 0x48], 1
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 8]
jne 0x5134a0
movups xmm0, xmmword [ebp - 0x90]
mov dword [ebp - 0x60], edx
lea eax, [ebp - 0x90]
push 0x40
paddd xmm1, xmm0
movups xmm0, xmmword [ebp - 0x80]
push eax
movups xmmword [ebp - 0xe4], xmm1
paddd xmm0, xmm2
movups xmmword [ebp - 0xd4], xmm0
movups xmm0, xmmword [ebp - 0x70]
paddd xmm0, xmm3
movups xmmword [ebp - 0xc4], xmm0
movups xmm0, xmmword [ebp - 0x60]
paddd xmm0, xmm4
movups xmmword [ebp - 0xb4], xmm0
call fcn.004578d0
mov ebx, dword [ebp - 0x4c]
add esp, 8
mov edi, dword [ebp - 0x50]
mov edx, ebx
movups xmm0, xmmword [ebp - 0xe4]
and edx, 1
mov ecx, ebx
imul edx, dword [ebp + 0x10]
mov eax, edi
shrd ecx, eax, 1
shr eax, 1
add edx, ecx
shl edx, 6
add edx, dword [ebp + 8]
add ebx, 1
mov dword [ebp - 0x4c], ebx
adc edi, 0
mov dword [ebp - 0x50], edi
movups xmmword [edx], xmm0
movups xmm0, xmmword [ebp - 0xd4]
movups xmmword [edx + 0x10], xmm0
movups xmm0, xmmword [ebp - 0xc4]
movups xmmword [edx + 0x20], xmm0
movups xmm0, xmmword [ebp - 0xb4]
movups xmmword [edx + 0x30], xmm0
mov edx, dword [ebp + 0xc]
cmp edi, dword [ebp - 0xa0]
jb 0x5133d3
ja 0x51374c
cmp ebx, dword [ebp - 0xa4]
jb 0x5133d3
pop edi
pop esi
pop ebx
lea eax, [ebp - 0xe4]
push 0x40
push eax
call fcn.004578d0
add esp, 8
mov esp, ebp
pop ebp
ret