Function at 0x4d5060
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xdc
call fcn.0059cab0
mov eax, dword [0x65fec0]
xor eax, esp
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0xec]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xe0]
push ebx
push ebp
mov ebp, dword [esp + 0xec]
mov ebx, dword [eax + 0x64]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ebp
mov edi, dword [ebx + 0xc8]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], edi
lea eax, [edi + 0x10]
cmp ecx, eax
je 0x4d50da
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.0059c3d3
add esp, 0xdc
ret
lea eax, [esp + 0x44]
mov dword [ebx + 0x20], 0
neg eax
lea ecx, [esp + 0x44]
and eax, 0xf
add eax, ecx
mov dword [esp + 0xc], eax
push esi
lea ecx, [eax + 0x30]
mov dword [esp + 0x1c], ecx
lea ecx, [ebx + 0x20]
lea esi, [eax + 0x40]
mov dword [esp + 0x20], esi
push ecx
push ebx
cmp edi, 0x40
ja 0x4d5335
push 0x80
push 0x5f1f60
push eax
mov dword [esp + 0x54], 0x80
call fcn.0043abc0
push dword [esp + 0x24]
lea eax, [ebx + 0xd0]
push eax
call fcn.0050d1e0
mov ecx, dword [esp + 0x38]
xor ebp, ebp
movups xmm0, xmmword [ebx + 0x94]
mov eax, dword [esp + 0x44]
add esp, 0x1c
mov dword [ebx + 0x70], 0
movups xmmword [ecx], xmm0
mov dword [ebx + 0xa8], 0xd
mov dword [ebx + 0xac], 0
mov dword [ebx + 0xb0], edi
mov dword [ebx + 0xb4], 0
cmp dword [eax + 8], ebp
je 0x4d51b2
test edi, edi
je 0x4d5308
mov ecx, dword [esp + 0x14]
mov ebp, edi
mov edx, dword [esp + 0x18]
sub ecx, esi
sub edx, esi
movzx eax, byte [ecx + esi]
lea esi, [esi + 1]
xor byte [esi - 1], al
movzx eax, byte [esi - 1]
mov byte [edx + esi - 1], al
sub edi, 1
jne 0x4d5196
jmp 0x4d5308
test edi, edi
je 0x4d5308
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
cmp edi, 0x40
jb 0x4d532f
lea ebx, [ecx - 1]
xor ebp, ebp
lea edx, [eax + 0x3f]
add ebx, edi
add edx, edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], edx
cmp esi, ebx
ja 0x4d51eb
cmp edx, ecx
jae 0x4d532f
mov edx, dword [esp + 0x14]
lea ebx, [edx - 1]
add ebx, edi
cmp esi, ebx
ja 0x4d5202
cmp dword [esp + 0x2c], edx
jae 0x4d52c8
cmp ecx, ebx
ja 0x4d5210
cmp dword [esp + 0x34], edx
jae 0x4d52c8
mov ebx, edi
and ebx, 0xffffffc0
mov dword [esp + 0x2c], ebx
lea ebx, [ecx + 0x20]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x34], ebx
lea ebx, [eax + 0x50]
mov eax, ecx
sub eax, esi
mov dword [esp + 0x38], eax
mov eax, edx
sub eax, ecx
mov ecx, dword [esp + 0x34]
mov esi, eax
nop dword [eax]
movups xmm0, xmmword [ebx - 0x10]
mov eax, dword [esp + 0x38]
lea ecx, [ecx + 0x40]
movups xmm2, xmmword [edx + ebp]
add eax, ebx
movups xmmword [ebx - 0x10], xmm2
movaps xmm1, xmm2
movups xmm2, xmmword [eax + esi]
pxor xmm1, xmm0
movups xmm0, xmmword [ebx]
movups xmmword [ecx - 0x60], xmm1
movups xmmword [ebx], xmm2
movaps xmm1, xmm2
movups xmm2, xmmword [esi + ecx - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ebx + 0x10]
movups xmmword [eax], xmm1
movups xmmword [ebx + 0x10], xmm2
movaps xmm1, xmm2
movups xmm2, xmmword [edx + ebp + 0x30]
add ebp, 0x40
pxor xmm1, xmm0
mov eax, ebp
movups xmm0, xmmword [ebx + 0x20]
movups xmmword [ecx - 0x40], xmm1
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebx + 0x20], xmm2
add ebx, 0x40
movups xmmword [ecx - 0x30], xmm1
cmp ebp, edi
jb 0x4d5240
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
cmp eax, edi
jae 0x4d5308
mov eax, dword [esp + 0x10]
lea ebx, [eax + 0x40]
mov dword [esp + 0x38], edi
mov eax, ecx
sub edx, ecx
sub eax, esi
mov dword [esp + 0x20], edx
add ebx, ebp
mov dword [esp + 0x3c], eax
mov esi, edi
sub esi, ebp
mov ebp, edx
lea ecx, [ebx + eax]
mov al, byte [ebx]
mov dl, byte [ecx + ebp]
lea ebx, [ebx + 1]
xor al, dl
mov byte [ebx - 1], dl
mov byte [ecx], al
mov eax, dword [esp + 0x3c]
sub esi, 1
jne 0x4d52e5
mov ebp, dword [esp + 0x38]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
mov esi, ebp
neg esi
and esi, 0xf
push esi
lea eax, [edi + 0x40]
add eax, ebp
push 0
push eax
call fcn.0059e1f0
lea eax, [esi + ebp]
lea ecx, [eax + 0x20]
lea edx, [eax + edi]
jmp 0x4d541a
mov edx, dword [esp + 0x14]
jmp 0x4d52c8
push 0x40
push 0x5f1f60
push eax
mov dword [esp + 0x54], 0x40
call fcn.0043abc0
push dword [esp + 0x24]
lea eax, [ebx + 0xd0]
push eax
call fcn.0050d1e0
push 0x10
lea eax, [ebx + 0x94]
mov dword [ebx + 0x20], 1
push eax
lea eax, [ebx + 0xd0]
mov dword [ebx + 0x70], 0
push eax
call fcn.0050d2b0
mov eax, dword [esp + 0x50]
add esp, 0x28
mov dword [ebx + 0xa8], 0xd
mov dword [ebx + 0xac], 0
mov dword [ebx + 0xb0], edi
mov dword [ebx + 0xb4], 0
cmp dword [eax + 8], 0
mov dword [esp + 0x1c], esi
je 0x4d53d2
lea eax, [ebx + 0x20]
push eax
push ebx
push edi
push dword [esp + 0x20]
push ebp
call fcn.0043abc0
push edi
lea eax, [ebx + 0xd0]
push ebp
push eax
call fcn.0050d2b0
jmp 0x4d53f1
mov esi, dword [esp + 0x14]
lea eax, [ebx + 0xd0]
push edi
push esi
push eax
call fcn.0050d2b0
lea eax, [ebx + 0x20]
push eax
push ebx
push edi
push esi
push ebp
call fcn.0043abc0
add esp, 0x20
mov eax, edi
neg eax
and eax, 0xf
push eax
lea eax, [ebx + 0xd0]
push 0x5f1f60
push eax
call fcn.0050d2b0
mov ebp, edi
mov ecx, 0x10
mov edi, dword [esp + 0x1c]
mov edx, edi
mov esi, dword [esp + 0x20]
add esp, 0xc
movups xmm0, xmmword [ebx + 0xa8]
add esi, ebp
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x18]
push ecx
push dword [esp + 0x20]
add esi, ebp
lea ebp, [ebx + 0xd0]
push ebp
movups xmmword [edx + 0x40], xmm0
call fcn.0050d2b0
push dword [esp + 0x4c]
push edi
call fcn.00401320
mov ecx, dword [esp + 0x3c]
lea eax, [ebx + 0x84]
cmp dword [ecx + 8], 0
cmove eax, dword [esp + 0x30]
push eax
push ebp
call fcn.0050d160
mov eax, dword [esp + 0x44]
add esp, 0x1c
mov dword [ebx + 0xc8], 0xffffffff
cmp dword [eax + 8], 0
je 0x4d54ab
movups xmm0, xmmword [ebx + 0x84]
movups xmmword [esi], xmm0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xe8]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0059c3d3
add esp, 0xdc
ret
push 0x10
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.00401390
add esp, 0xc
test eax, eax
je 0x4d548e
mov ecx, dword [esp + 0x44]
sub esi, ecx
add esi, 0x10
lea eax, [ecx - 0x10]
push eax
push 0
push esi
call fcn.0059e1f0
add esp, 0xc
or eax, 0xffffffff
jmp 0x4d5492