Function at 0x6d6ae0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x79a200]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x38]
push ebp
mov ebp, dword [esp + 0x40]
push esi
mov esi, dword [esp + 0x3c]
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebp
mov edi, dword [esi + 0x10de4]
mov dword [esp + 0x14], eax
cmp dword [esi + 0x10de0], edi
je 0x6d6b53
imul ecx, edi, 0x2c
mov edx, dword [ecx + esi + 0x10dfc]
mov eax, edx
sub eax, edi
mov edi, dword [esp + 0x14]
mov dword [edi], eax
mov eax, dword [ecx + esi + 0x10e00]
pop edi
mov dword [esi + 0x10de4], edx
pop esi
mov dword [ebp], eax
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0068d76f
add esp, 0x2c
ret
cmp dword [ebx + 0x18], 0
jne 0x6d6bff
cmp dword [esi + 0x10d98], 0x80
jb 0x6d6b72
push esi
call fcn.006d5490
add esp, 4
cmp dword [esi + 0x10ddc], 0x10
jb 0x6d6bff
xor eax, eax
lea ecx, [esi + 0x10d9c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
nop
mov edi, eax
mov dword [esp + 0x18], 4
xor ebp, ebp
mov ebx, 1
movzx ecx, word [esi + ebx*2 + 0x70e4]
mov edx, edi
and edx, 1
shr ecx, 4
mov eax, edx
shr edi, 1
neg eax
shr eax, 4
and eax, 0x7f
lea ebx, [edx + ebx*2]
xor ecx, eax
movzx eax, byte [ecx + 0x76d368]
add ebp, eax
sub dword [esp + 0x18], 1
jne 0x6d6ba1
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
mov dword [ecx], ebp
add ecx, 4
mov dword [esp + 0x10], ecx
cmp eax, 0x10
jb 0x6d6b90
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov dword [esi + 0x10ddc], 0
push dword [esp + 0x50]
push dword [esp + 0x18]
push ebp
push ebx
push esi
call fcn.006d5730
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x6d6d5c
movups xmm0, xmmword [esi + 0x1e8]
mov edi, 1
movups xmmword [esp + 0x28], xmm0
cmp eax, edi
jbe 0x6d6ca4
lea eax, [esi + 0x1f8]
lea ecx, [esi + 0xa88]
push eax
push ecx
push ebx
call fcn.006d77e0
mov ebp, dword [ebx + 0x48]
add esp, 0xc
mov dword [esi + 0xa8c], eax
cmp eax, ebp
jae 0x6d6ca4
mov edx, dword [ebx + 0x14]
mov eax, 0xfff
mov ecx, dword [ebx + 0x20]
sub eax, edi
sub ecx, edx
inc ecx
cmp ecx, eax
cmovae ecx, eax
mov eax, dword [esp + 0x50]
push ecx
push ebp
push edi
add eax, edi
dec edx
push eax
push dword [esp + 0x20]
mov eax, dword [ebx]
add eax, edx
push eax
lea eax, [esp + 0x40]
push eax
push esi
call fcn.006d5d80
inc edi
mov dword [esp + 0x30], eax
add esp, 0x20
lea ecx, [esi + 0xa88]
cmp edi, eax
lea eax, [esi + 0x1f8]
jb 0x6d6c40
imul eax, edi, 0x2c
mov dword [esi + 0x10de0], edi
mov ebx, dword [eax + esi + 0x10dfc]
mov ebp, dword [eax + esi + 0x10e00]
nop dword [eax + eax]
imul edx, edi, 0x2c
add edx, esi
cmp byte [edx + 0x10dec], 0
je 0x6d6d15
imul ecx, ebx, 0x2c
lea eax, [ebx - 1]
add ecx, esi
mov dword [ecx + 0x10e00], 0xffffffff
mov byte [ecx + 0x10dec], 0
mov dword [ecx + 0x10dfc], eax
cmp byte [edx + 0x10ded], 0
je 0x6d6d15
mov byte [ecx + 0x10dc0], 0
mov eax, dword [edx + 0x10df0]
mov dword [ecx + 0x10dd0], eax
mov eax, dword [edx + 0x10df4]
mov dword [ecx + 0x10dd4], eax
imul eax, ebx, 0x2c
mov edx, ebx
mov ecx, ebp
mov ebx, dword [eax + esi + 0x10dfc]
mov ebp, dword [eax + esi + 0x10e00]
mov dword [eax + esi + 0x10dfc], edi
mov edi, edx
mov dword [eax + esi + 0x10e00], ecx
test edx, edx
jne 0x6d6cc0
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x10dfc]
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x10de4], eax
mov dword [edi], eax
mov eax, dword [esi + 0x10e00]
mov dword [ecx], eax
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0068d76f
add esp, 0x2c
ret