Function at 0x4c6ad0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x54
call fcn.005f62e0
mov eax, dword [0x6c02d0]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x5c]
push ebx
push ebp
mov ebp, dword [esp + 0x68]
push esi
mov esi, dword [esp + 0x64]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x20], eax
mov al, byte [esi]
lea ebx, [esi + 0x20]
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov byte [esp + 0xf], al
lea eax, [esi + 0x10]
test byte [esp + 0xf], 0x40
push edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
jne 0x4c6b3e
push ecx
push eax
push esi
call edx
mov eax, dword [ebx + 4]
add esp, 0xc
add dword [ebx], 1
adc eax, 0
mov dword [ebx + 4], eax
movzx eax, byte [esp + 0x13]
mov edx, 0xf
and eax, 7
xor ecx, ecx
sub edx, eax
mov byte [esi], al
mov dword [esp + 0x4c], edx
cmp edx, 0xf
jae 0x4c6b76
nop word [eax + eax]
movzx eax, byte [esi + edx]
or ecx, eax
mov byte [esi + edx], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x4c6b60
lea ebx, [esi + 0x20]
movzx eax, byte [esi + 0xf]
mov edi, dword [esp + 0x74]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, edi
je 0x4c6b9e
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005f5e48
add esp, 0x54
ret
lea eax, [edi + 0xf]
or eax, 8
shr eax, 3
add dword [ebx], eax
adc dword [ebx + 4], 0
cmp dword [ebx + 4], 0x20000000
jb 0x4c6bd5
ja 0x4c6bbd
cmp dword [ebx], 0
jbe 0x4c6bd5
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005f5e48
add esp, 0x54
ret
mov ebx, edi
shr ebx, 4
test ebx, ebx
je 0x4c6c20
lea eax, [esi + 0x10]
push eax
push esi
push dword [esp + 0x24]
push ebx
push ebp
push dword [esp + 0x28]
call dword [esp + 0x3c]
shl ebx, 4
add esp, 0x18
add dword [esp + 0x14], ebx
add ebp, ebx
mov dword [esp + 0x30], ebp
sub edi, ebx
je 0x4c6c20
shr ebx, 4
push ebx
push esi
call fcn.004c6f80
mov ebx, dword [esp + 0x1c]
add esp, 8
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebx
jmp 0x4c6c34
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebx
test edi, edi
je 0x4c6de9
test edi, edi
je 0x4c6e55
mov edx, ebx
lea ecx, [esi + 0x10]
mov ebx, edi
mov al, byte [edx]
lea edx, [edx + 1]
xor byte [ecx], al
lea ecx, [ecx + 1]
sub ebx, 1
jne 0x4c6c43
mov ebx, dword [esp + 0x1c]
lea eax, [esi + 0x10]
push ebx
push eax
push eax
call dword [esp + 0x2c]
push ebx
lea eax, [esp + 0x60]
push eax
push esi
call dword [esp + 0x38]
mov ebx, dword [esp + 0x2c]
add esp, 0x18
xor eax, eax
mov dword [esp + 0x18], edi
cmp edi, 8
jb 0x4c6dc2
lea ecx, [esp + edi + 0x4f]
cmp ebp, ecx
ja 0x4c6c9e
lea ecx, [ebp - 1]
mov dword [esp + 0x18], edi
lea edx, [esp + 0x50]
add ecx, edi
cmp ecx, edx
jae 0x4c6dc2
lea ecx, [ebx - 1]
add ecx, edi
cmp ebp, ecx
ja 0x4c6cb8
lea ecx, [ebp - 1]
mov dword [esp + 0x18], edi
add ecx, edi
cmp ecx, ebx
jae 0x4c6dc2
mov edx, edi
mov dword [esp + 0x18], edx
cmp edi, 0x40
jb 0x4c6d8b
and edx, 0x3f
mov dword [esp + 0x18], edi
mov dword [esp + 0x48], edx
mov ecx, edi
sub ecx, edx
mov dword [esp + 0x28], ebp
mov edx, ebx
mov dword [esp + 0x44], ecx
sub edx, ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], edx
lea ecx, [ebp + 0x10]
mov esi, dword [esp + 0x34]
lea edx, [esp + 0x50]
sub edx, ebp
lea edi, [ebx + 0x30]
mov dword [esp + 0x38], edx
lea edx, [esp + 0x60]
sub edx, ebp
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x70]
sub edx, ebp
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x38]
nop word [eax + eax]
movups xmm0, xmmword [edi - 0x30]
mov ebx, dword [esp + 0x40]
lea edi, [edi + 0x40]
movups xmm1, xmmword [esp + eax + 0x50]
add eax, 0x40
lea ecx, [ecx + 0x40]
xorps xmm1, xmm0
movups xmmword [ecx - 0x50], xmm1
movups xmm0, xmmword [ecx + esi - 0x40]
movups xmm1, xmmword [ecx + edx - 0x40]
xorps xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm0, xmmword [edi - 0x50]
movups xmm1, xmmword [ecx + ebp - 0x40]
xorps xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
movups xmm1, xmmword [ecx + ebx - 0x40]
mov ebx, dword [esp + 0x14]
movups xmm0, xmmword [edi - 0x40]
xorps xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
cmp eax, dword [esp + 0x44]
jb 0x4c6d20
cmp dword [esp + 0x48], 8
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
jb 0x4c6dbe
mov edi, dword [esp + 0x28]
mov ecx, edx
mov esi, dword [esp + 0x24]
and ecx, 0xfffffff8
nop dword [eax + eax]
movq xmm1, qword [esi + eax]
movq xmm0, qword [esp + eax + 0x50]
xorps xmm1, xmm0
movq qword [edi + eax], xmm1
add eax, 8
cmp eax, ecx
jb 0x4c6da0
mov esi, dword [esp + 0x2c]
cmp eax, edx
jae 0x4c6de9
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x50]
mov esi, ebx
mov ebx, ebp
sub esi, ecx
sub ebx, ecx
lea edx, [esp + 0x50]
add edx, eax
inc eax
mov cl, byte [edx + esi]
xor cl, byte [edx]
mov byte [edx + ebx], cl
cmp eax, edi
jb 0x4c6dd2
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1c]
lea ebx, [esi + 0x10]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x4c]
cmp ecx, 0x10
jae 0x4c6e13
mov eax, 0x10
sub eax, ecx
push eax
lea eax, [ecx + esi]
push 0
push eax
call fcn.005f77b0
add esp, 0xc
push ebp
lea eax, [esp + 0x54]
push eax
push esi
call edi
mov eax, dword [esp + 0x5c]
add esp, 0xc
xor dword [ebx], eax
mov eax, dword [esp + 0x54]
xor dword [ebx + 4], eax
mov eax, dword [esp + 0x58]
xor dword [esi + 0x18], eax
mov eax, dword [esp + 0x5c]
xor dword [esi + 0x1c], eax
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x60]
pop edi
mov byte [esi], al
xor eax, eax
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005f5e48
add esp, 0x54
ret
mov ebp, dword [esp + 0x1c]
lea ebx, [esi + 0x10]
mov edi, dword [esp + 0x20]
push ebp
push ebx
push ebx
call edi
push ebp
lea eax, [esp + 0x60]
push eax
push esi
call edi
add esp, 0x18
jmp 0x4c6df4