Function at 0x50a7c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa8
call fcn.005466e0
mov eax, dword [0x5f1464]
xor eax, esp
mov dword [esp + 0xa4], eax
push ebx
push ebp
mov ebp, dword [esp + 0xb4]
lea ecx, [esp + 0x6c]
push esi
mov esi, dword [esp + 0xc0]
push edi
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x10], ebp
lea eax, [edi + 0x1f]
cmp ecx, eax
ja 0x50a80b
lea eax, [esp + 0x93]
cmp eax, edi
jae 0x50a821
lea eax, [esi + 0x1f]
lea ecx, [esp + 0x74]
cmp ecx, eax
ja 0x50a846
lea eax, [esp + 0x93]
cmp eax, esi
jb 0x50a846
mov ebx, esi
lea ebp, [esp + 0x74]
sub ebx, edi
mov ecx, edi
sub ebp, edi
mov edx, 0x20
mov al, byte [ecx + ebx]
xor al, byte [ecx]
mov byte [ecx + ebp], al
inc ecx
sub edx, 1
jne 0x50a832
mov ebp, dword [esp + 0x10]
jmp 0x50a87a
mov edx, esi
lea ebx, [esp + 0x74]
sub edx, edi
mov eax, edi
sub ebx, edi
mov ecx, 2
nop word [eax + eax]
lea eax, [eax + 0x10]
movups xmm1, xmmword [edx + eax - 0x10]
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [ebx + eax - 0x10], xmm1
sub ecx, 1
jne 0x50a860
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0050acf0
lea eax, [esp + 0x1c]
push eax
push edi
lea eax, [esp + 0xa4]
push eax
push ebp
call fcn.005089a0
lea eax, [esp + 0x4c]
push eax
push edi
call fcn.0050a3b0
lea eax, [esp + 0x74]
push eax
push esi
call fcn.0050a3b0
lea eax, [esp + 0x7c]
push eax
push eax
call fcn.0050a3b0
add esp, 0x30
xor eax, eax
nop word [eax + eax]
movups xmm1, xmmword [esp + eax + 0x54]
movups xmm0, xmmword [esp + eax + 0x34]
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x74], xmm1
add eax, 0x10
cmp eax, 0x20
jb 0x50a8d0
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0050acf0
lea eax, [esp + 0x24]
push eax
lea eax, [edi + 8]
push eax
lea eax, [esp + 0xa4]
push eax
push ebp
call fcn.005089a0
lea eax, [esp + 0x4c]
push eax
push eax
call fcn.0050a3b0
not byte [esp + 0x73]
lea eax, [esp + 0x74]
not byte [esp + 0x71]
not byte [esp + 0x70]
not byte [esp + 0x6c]
not byte [esp + 0x6b]
not byte [esp + 0x68]
not byte [esp + 0x66]
not byte [esp + 0x65]
not byte [esp + 0x62]
not byte [esp + 0x60]
not byte [esp + 0x5e]
not byte [esp + 0x5c]
not byte [esp + 0x5b]
not byte [esp + 0x59]
not byte [esp + 0x57]
not byte [esp + 0x55]
push eax
push eax
call fcn.0050a3b0
lea eax, [esp + 0x7c]
push eax
push eax
call fcn.0050a3b0
add esp, 0x30
xor eax, eax
nop word [eax + eax]
movups xmm1, xmmword [esp + eax + 0x54]
movups xmm0, xmmword [esp + eax + 0x34]
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x74], xmm1
add eax, 0x10
cmp eax, 0x20
jb 0x50a980
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0050acf0
lea eax, [esp + 0x2c]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [esp + 0xa4]
push eax
push ebp
call fcn.005089a0
lea eax, [esp + 0x4c]
push eax
push eax
call fcn.0050a3b0
lea eax, [esp + 0x74]
push eax
push eax
call fcn.0050a3b0
lea eax, [esp + 0x7c]
push eax
push eax
call fcn.0050a3b0
add esp, 0x30
xor eax, eax
nop word [eax + eax]
movups xmm1, xmmword [esp + eax + 0x54]
movups xmm0, xmmword [esp + eax + 0x34]
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x74], xmm1
add eax, 0x10
cmp eax, 0x20
jb 0x50a9f0
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0050acf0
lea eax, [esp + 0x34]
push eax
lea eax, [edi + 0x18]
push eax
lea eax, [esp + 0xa4]
push eax
push ebp
call fcn.005089a0
mov cl, byte [esp + 0x4b]
add esp, 0x18
mov bl, byte [esp + 0x32]
mov ebp, 0xc
nop dword [eax]
nop dword [eax + eax]
movzx eax, byte [esp + 0x15]
xor al, byte [esp + 0x17]
xor al, byte [esp + 0x19]
xor al, byte [esp + 0x1b]
xor al, byte [esp + 0x2d]
xor al, cl
movzx ecx, al
movzx eax, byte [esp + 0x14]
xor al, byte [esp + 0x16]
xor al, byte [esp + 0x18]
xor al, byte [esp + 0x1a]
xor al, byte [esp + 0x2c]
xor al, bl
shl cx, 8
movzx eax, al
or cx, ax
lea eax, [esp + 0x16]
push 0x1e
push eax
lea eax, [esp + 0x1c]
movzx ebx, cx
push eax
call fcn.00549bd0
mov ecx, ebx
mov byte [esp + 0x3e], bl
shr ecx, 8
add esp, 0xc
mov byte [esp + 0x33], cl
sub ebp, 1
jne 0x50aa50
lea eax, [esi + 0x1f]
xor edx, edx
lea ecx, [esp + 0x14]
cmp ecx, eax
ja 0x50aae3
lea eax, [esp + 0x33]
cmp eax, esi
jb 0x50aae3
mov eax, ecx
sub esi, eax
nop dword [eax]
lea ecx, [esp + 0x14]
add ecx, edx
inc edx
mov al, byte [ecx + esi]
xor byte [ecx], al
cmp edx, 0x20
jb 0x50aad0
jmp 0x50ab0c
lea eax, [esp + 0x14]
sub esi, eax
nop dword [eax]
lea eax, [esp + 0x14]
add eax, edx
add edx, 0x10
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + esi]
pxor xmm1, xmm0
movups xmmword [eax], xmm1
cmp edx, 0x20
jb 0x50aaf0
movzx eax, byte [esp + 0x15]
xor al, byte [esp + 0x17]
xor al, byte [esp + 0x19]
xor al, byte [esp + 0x1b]
xor al, byte [esp + 0x2d]
xor al, byte [esp + 0x33]
movzx ecx, al
movzx eax, byte [esp + 0x14]
xor al, byte [esp + 0x16]
xor al, byte [esp + 0x18]
xor al, byte [esp + 0x1a]
xor al, byte [esp + 0x2c]
xor al, byte [esp + 0x32]
movzx eax, al
shl cx, 8
or cx, ax
lea eax, [esp + 0x16]
push 0x1e
push eax
lea eax, [esp + 0x1c]
movzx ebx, cx
push eax
call fcn.00549bd0
mov byte [esp + 0x3e], bl
lea edx, [esp + 0x20]
shr ebx, 8
lea ecx, [edi + 0x1f]
add esp, 0xc
mov byte [esp + 0x33], bl
xor eax, eax
cmp edx, ecx
ja 0x50ab9b
lea ecx, [esp + 0x33]
cmp ecx, edi
jb 0x50ab9b
mov esi, edi
mov ecx, edx
sub esi, ecx
lea edx, [esp + 0x14]
add edx, eax
inc eax
mov cl, byte [edx + esi]
xor byte [edx], cl
cmp eax, 0x20
jb 0x50ab88
jmp 0x50abbf
mov edx, edi
lea ecx, [esp + 0x14]
sub edx, ecx
lea ecx, [esp + 0x14]
add ecx, eax
add eax, 0x10
movups xmm0, xmmword [ecx]
movups xmm1, xmmword [ecx + edx]
pxor xmm1, xmm0
movups xmmword [ecx], xmm1
cmp eax, 0x20
jb 0x50aba3
mov cl, byte [esp + 0x33]
mov esi, 0x3d
mov bl, byte [esp + 0x32]
nop dword [eax]
movzx eax, byte [esp + 0x15]
xor al, byte [esp + 0x17]
xor al, byte [esp + 0x19]
xor al, byte [esp + 0x1b]
xor al, byte [esp + 0x2d]
xor al, cl
movzx ecx, al
movzx eax, byte [esp + 0x14]
xor al, byte [esp + 0x16]
xor al, byte [esp + 0x18]
xor al, byte [esp + 0x1a]
xor al, byte [esp + 0x2c]
xor al, bl
shl cx, 8
movzx eax, al
or cx, ax
lea eax, [esp + 0x16]
push 0x1e
push eax
lea eax, [esp + 0x1c]
movzx ebx, cx
push eax
call fcn.00549bd0
mov ecx, ebx
mov byte [esp + 0x3e], bl
shr ecx, 8
add esp, 0xc
mov byte [esp + 0x33], cl
sub esi, 1
jne 0x50abd0
movups xmm0, xmmword [esp + 0x14]
mov ecx, dword [esp + 0xb4]
lea eax, [esi + 1]
movups xmmword [edi], xmm0
movups xmm0, xmmword [esp + 0x24]
movups xmmword [edi + 0x10], xmm0
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00545b6c
add esp, 0xa8
ret