Function at 0x50cd00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x53c074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x108], eax
cmp ecx, 0x40
jl 0x50d048
push ebx
push edi
mov edi, eax
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x44]
mov ebx, esi
sub ebx, edx
sub edi, eax
mov eax, dword [ebp - 0x108]
lea edx, [esi + 0x3c]
shr ecx, 6
mov dword [ebp + 8], ecx
nop dword [eax]
lea ecx, [ebp - 0xc4]
cmp ecx, edx
ja 0x50cd64
lea ecx, [ebp - 0x88]
cmp ecx, esi
jae 0x50cdae
lea edx, [ebp - 0xc4]
lea ecx, [eax + 0x3c]
cmp edx, ecx
lea edx, [esi + 0x3c]
ja 0x50cd81
lea edx, [ebp - 0x88]
cmp edx, eax
lea edx, [esi + 0x3c]
jae 0x50cdae
cmp esi, ecx
ja 0x50cd89
cmp edx, eax
jae 0x50cdae
lea eax, [ebp - 8]
cmp esi, eax
mov eax, dword [ebp - 0x108]
ja 0x50cda0
lea ecx, [ebp - 0x44]
cmp edx, ecx
lea ecx, [eax + 0x3c]
jae 0x50cdae
lea edx, [ebp - 0x44]
cmp edx, ecx
ja 0x50cdd0
lea ecx, [ebp - 8]
cmp ecx, eax
jb 0x50cdd0
xor edx, edx
lea eax, [ebp - 0x44]
add eax, edx
mov ecx, dword [eax + edi]
mov dword [eax], ecx
mov eax, dword [eax + ebx]
xor eax, ecx
mov dword [ebp + edx - 0xc4], eax
add edx, 4
cmp edx, 0x40
jl 0x50cdb0
jmp 0x50cdf6
xor ecx, ecx
lea eax, [ebp - 0x44]
add eax, ecx
movups xmm1, xmmword [eax + edi]
movups xmm0, xmmword [ebx + eax]
movups xmmword [eax], xmm1
pxor xmm0, xmm1
movups xmmword [ebp + ecx - 0xc4], xmm0
add ecx, 0x10
cmp ecx, 0x40
jl 0x50cdd2
push 0
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x44]
call fcn.0050d360
push 0x1000000
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x84]
call fcn.0050d360
push 0x2000000
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x44]
call fcn.0050d360
push 0x3000000
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x84]
call fcn.0050d360
push 0x4000000
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x44]
call fcn.0050d360
push 0x5000000
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x84]
call fcn.0050d360
push 0x6000000
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x44]
call fcn.0050d360
push 0x7000000
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x84]
call fcn.0050d360
push 0x8000000
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x44]
call fcn.0050d360
push 0x9000000
lea edx, [ebp - 0x104]
lea ecx, [ebp - 0x84]
call fcn.0050d360
push 0
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0xc4]
call fcn.0050de00
push 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x84]
call fcn.0050de00
push 2
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x44]
call fcn.0050de00
push 3
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x84]
call fcn.0050de00
push 4
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x44]
call fcn.0050de00
push 5
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x84]
call fcn.0050de00
add esp, 0x40
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x44]
push 6
call fcn.0050de00
push 7
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x84]
call fcn.0050de00
push 8
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x44]
call fcn.0050de00
push 9
lea edx, [ebp - 0xc4]
lea ecx, [ebp - 0x84]
call fcn.0050de00
lea eax, [ebp - 0xc4]
add esp, 0x10
lea edx, [esi + 0x3c]
cmp eax, edx
ja 0x50cf77
lea eax, [ebp - 0x88]
cmp eax, esi
jae 0x50cf8b
lea eax, [ebp - 0xc8]
cmp esi, eax
ja 0x50cfab
lea eax, [ebp - 0x104]
cmp edx, eax
jb 0x50cfab
xor eax, eax
nop dword [eax]
mov ecx, dword [ebp + eax - 0x104]
xor ecx, dword [ebp + eax - 0xc4]
xor dword [eax + esi], ecx
add eax, 4
cmp eax, 0x40
jl 0x50cf90
jmp 0x50d021
movups xmm1, xmmword [esi]
movups xmm0, xmmword [ebp - 0x104]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp - 0xc4]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp - 0xf4]
movups xmmword [esi], xmm1
movups xmm1, xmmword [esi + 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp - 0xb4]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp - 0xe4]
movups xmmword [esi + 0x10], xmm1
movups xmm1, xmmword [esi + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp - 0xa4]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp - 0xd4]
movups xmmword [esi + 0x20], xmm1
movups xmm1, xmmword [esi + 0x30]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp - 0x94]
pxor xmm1, xmm0
movups xmmword [esi + 0x30], xmm1
add dword [esi + 0x40], 1
jne 0x50d02a
inc dword [esi + 0x44]
mov eax, dword [ebp - 0x108]
add edi, 0x40
add eax, 0x40
sub dword [ebp + 8], 1
mov dword [ebp - 0x108], eax
jne 0x50cd50
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004c3717
mov esp, ebp
pop ebp
ret