Function at 0x6d54a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x10
mov edx, eax
push ebx
push esi
mov esi, eax
mov ebx, eax
shr esi, 5
inc esi
push edi
cmp eax, esi
jb 0x6d54de
nop word [eax + eax]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + edx - 1]
mov eax, ebx
shl eax, 5
sub edx, esi
add ecx, eax
mov eax, ebx
shr eax, 2
add ecx, eax
xor ebx, ecx
cmp edx, esi
jae 0x6d54c0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, ebx
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x6d5568
mov ecx, dword [ebp + 0x10]
cmp dword [edi + 0xc], ecx
jne 0x6d5562
mov edx, dword [ebp + 0xc]
lea eax, [edi + 0x10]
mov esi, ecx
sub esi, 4
jb 0x6d5519
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x6d5522
add edx, 4
add eax, 4
sub esi, 4
jae 0x6d5508
cmp esi, 0xfffffffc
je 0x6d567b
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x6d555f
cmp esi, 0xfffffffd
je 0x6d567b
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x6d555f
cmp esi, 0xfffffffe
je 0x6d567b
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x6d555f
cmp esi, 0xffffffff
je 0x6d567b
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x6d567b
mov ecx, dword [ebp + 0x10]
mov edi, dword [edi]
test edi, edi
jne 0x6d54f6
mov esi, dword [ebp + 0x10]
lea eax, [esi + 0x11]
push eax
push 0
push 0
push dword [ebp + 8]
call fcn.006d5400
mov edi, eax
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0x10]
mov dword [edi + 0xc], esi
push ecx
mov dword [edi + 8], ebx
mov word [edi + 4], 4
mov byte [edi + 6], 0
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0x1c
mov byte [edi + esi + 0x10], 0
mov edx, dword [eax + 0x10]
mov ecx, dword [edx + 8]
mov eax, dword [edx]
dec ecx
and ecx, ebx
mov eax, dword [eax + ecx*4]
mov dword [edi], eax
mov eax, dword [edx]
mov dword [eax + ecx*4], edi
inc dword [edx + 4]
mov eax, dword [edx + 8]
cmp dword [edx + 4], eax
jle 0x6d567b
cmp eax, 0x3ffffffe
jg 0x6d567b
mov ebx, dword [ebp + 8]
add eax, eax
mov dword [ebp + 0x10], eax
lea edi, [eax*4]
push edi
push 0
push 0
push ebx
call fcn.006d5400
mov ecx, dword [ebp + 0x10]
add esp, 0x10
mov ebx, dword [ebx + 0x10]
mov esi, eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ebx
test ecx, ecx
jle 0x6d5614
shr edi, 2
xor eax, eax
mov ecx, edi
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx + 8]
xor edi, edi
mov dword [ebp - 4], edi
test eax, eax
jle 0x6d565d
mov eax, dword [ebx]
mov esi, dword [eax + edi*4]
test esi, esi
je 0x6d564c
mov edi, dword [ebp - 8]
lea ebx, [ecx - 1]
nop
mov eax, dword [esi + 8]
mov edx, dword [esi]
and eax, ebx
lea ecx, [edi + eax*4]
mov eax, dword [ecx]
mov dword [esi], eax
mov dword [ecx], esi
mov esi, edx
test edx, edx
jne 0x6d5630
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx + 8]
inc edi
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], edi
cmp edi, eax
jl 0x6d5620
mov esi, dword [ebp - 8]
push 0
shl eax, 2
push eax
push dword [ebx]
push dword [ebp + 8]
call fcn.006d5400
mov eax, dword [ebp + 0x10]
add esp, 0x10
mov edi, dword [ebp - 0x10]
mov dword [ebx + 8], eax
mov dword [ebx], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret