Function at 0x50ccd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x458], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x470], eax
mov eax, dword [ebp + 0x20]
push ebx
mov dword [ebp - 0x474], eax
mov eax, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x44c], eax
mov eax, dword [ebp + 0x28]
push edi
mov dword [ebp - 0x478], eax
jne 0x50cd32
cmp dword [esi + 0xa4], 1
jne 0x50d059
mov edi, dword [esi + 4]
mov dword [ebp - 0x454], edi
lea eax, [edi - 0x10]
cmp eax, 0x3f0
ja 0x50d059
push dword [esi + 0xa8]
call fcn.005102c0
add esp, 4
mov dword [ebp - 0x450], eax
test eax, eax
je 0x50d059
push eax
call fcn.0050fb90
movzx ebx, al
add esp, 4
lea eax, [ebx + ebx]
mov dword [ebp - 0x45c], eax
add eax, 2
cmp eax, edi
ja 0x50d059
cmp dword [ebp + 0x14], 0
lea eax, [ebp - 0x444]
push eax
push dword [ebp - 0x44c]
jne 0x50cda3
push esi
call fcn.0050cbc0
add esp, 0xc
jmp 0x50cdb8
push dword [ebp - 0x46c]
push dword [ebp - 0x458]
push esi
call fcn.0050c790
add esp, 0x14
mov edi, eax
test edi, edi
jne 0x50d027
lea eax, [ebp - 0x468]
push eax
call fcn.00510320
push edi
push dword [ebp - 0x450]
lea eax, [ebp - 0x468]
push eax
call fcn.005103e0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x50d018
mov eax, dword [ebp - 0x454]
lea ecx, [ebp - 0x468]
sub eax, ebx
lea esi, [ebp - 0x443]
push ecx
dec eax
add esi, ebx
push eax
push esi
mov dword [ebp - 0x458], eax
lea eax, [ebp - 0x443]
push ebx
push eax
call fcn.0050da80
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x50d018
lea eax, [ebp - 0x468]
push eax
push ebx
lea eax, [ebp - 0x443]
push eax
push dword [ebp - 0x458]
push esi
call fcn.0050da80
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x50d018
lea eax, [ebp - 0x468]
push eax
call fcn.0050fae0
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x1c]
push dword [ebp - 0x470]
push dword [ebp - 0x450]
call fcn.0050f8f0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x50d027
mov dl, byte [ebp - 0x444]
xor ecx, ecx
mov byte [ebp - 0x445], dl
test ebx, ebx
je 0x50cf34
cmp ebx, 0x20
jb 0x50cf1b
mov eax, ebx
xorps xmm3, xmm3
and eax, 0xffffffe0
xorps xmm2, xmm2
nop word [eax + eax]
movups xmm0, xmmword [esi]
movups xmm1, xmmword [ebp + ecx - 0x44]
pxor xmm1, xmm0
movups xmm0, xmmword [esi + 0x10]
add esi, 0x20
por xmm3, xmm1
movups xmm1, xmmword [ebp + ecx - 0x34]
add ecx, 0x20
pxor xmm1, xmm0
por xmm2, xmm1
cmp ecx, eax
jb 0x50ceb0
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or dl, al
mov byte [ebp - 0x445], dl
cmp ecx, ebx
jae 0x50cf34
nop
mov al, byte [ebp + ecx - 0x44]
inc ecx
xor al, byte [esi]
inc esi
or dl, al
cmp ecx, ebx
jb 0x50cf20
mov byte [ebp - 0x445], dl
mov eax, dword [ebp - 0x454]
xor ebx, ebx
sub eax, dword [ebp - 0x45c]
xor edi, edi
add eax, 0xfffffffe
mov dword [ebp - 0x44c], ebx
xor cl, cl
mov dword [ebp - 0x450], eax
xor edx, edx
cmp eax, 2
jb 0x50cfa1
nop dword [eax]
or cl, byte [esi + edx]
mov al, cl
neg al
or al, cl
or cl, byte [esi + edx + 1]
not al
add edx, 2
movzx eax, al
shr eax, 7
add edi, eax
mov al, cl
neg al
mov dword [ebp - 0x45c], edi
or al, cl
not al
movzx eax, al
shr eax, 7
add ebx, eax
mov eax, dword [ebp - 0x450]
dec eax
cmp edx, eax
jb 0x50cf60
mov eax, dword [ebp - 0x450]
cmp edx, eax
jae 0x50cfbc
or cl, byte [edx + esi]
mov al, cl
neg al
or al, cl
not al
movzx eax, al
shr eax, 7
mov dword [ebp - 0x44c], eax
mov cl, byte [ebp - 0x445]
lea eax, [ebx + edi]
add eax, dword [ebp - 0x44c]
add esi, eax
mov al, byte [esi]
inc esi
xor al, 1
or cl, al
je 0x50cfdd
mov edi, 0xffffbf00
jmp 0x50d027
mov eax, dword [ebp - 0x454]
sub eax, esi
lea eax, [ebp + eax - 0x444]
cmp eax, dword [ebp + 0x2c]
jbe 0x50cff8
mov edi, 0xffffbc00
jmp 0x50d027
mov ecx, dword [ebp - 0x474]
mov dword [ecx], eax
test eax, eax
je 0x50d014
push eax
push esi
push dword [ebp - 0x478]
call fcn.005478f0
add esp, 0xc
xor edi, edi
jmp 0x50d027
lea eax, [ebp - 0x468]
push eax
call fcn.0050fae0
add esp, 4
lea eax, [ebp - 0x444]
push 0x400
push eax
call fcn.0050f8d0
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.0050f8d0
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00544c5a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffbf80
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00544c5a
mov esp, ebp
pop ebp
ret