Function at 0x6b0790
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x70
call fcn.006fed10
mov eax, dword [0x8f5da4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x24]
push ebx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x5c], 1
call fcn.00645210
add esp, 4
mov dword [ebp - 0x54], eax
test eax, eax
js 0x6b0829
call fcn.0065ce00
mov dword [ebp - 0x48], eax
test eax, eax
je 0x6b0829
test esi, esi
jne 0x6b07ec
mov esi, 0x7b4a18
xor ecx, ecx
jmp 0x6b080c
mov ecx, dword [ebp + 0xc]
cmp ecx, 0xffffffff
jne 0x6b080c
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6b0800
mov eax, dword [ebp - 0x48]
sub ecx, edx
push 0
push ebx
push ecx
push esi
push eax
call fcn.0065cfb0
add esp, 0x14
test eax, eax
jne 0x6b083c
push dword [ebp - 0x48]
call fcn.0065cda0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006fffda
mov esp, ebp
pop ebp
ret
call fcn.0065ce00
mov esi, eax
mov dword [ebp - 0x70], esi
test esi, esi
je 0x6b081e
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x6b0a16
mov edx, 1
nop word [eax + eax]
cmp ecx, dword [ebp - 0x54]
mov ebx, ecx
push dword [ebp - 0x48]
cmovg ebx, dword [ebp - 0x54]
mov eax, edx
shr eax, 0x18
mov byte [ebp - 0x4c], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0x4b], al
mov eax, edx
shr eax, 8
push esi
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x4a], al
mov byte [ebp - 0x49], dl
call fcn.0065ccf0
add esp, 8
test eax, eax
je 0x6b0a3d
push dword [ebp + 0x14]
push dword [ebp - 0x60]
push esi
call fcn.0065d2b0
add esp, 0xc
test eax, eax
je 0x6b0a3d
push 4
lea eax, [ebp - 0x4c]
push eax
push esi
call fcn.0065d2b0
add esp, 0xc
test eax, eax
je 0x6b0a3d
push 0
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.0065cf00
add esp, 0xc
test eax, eax
je 0x6b0a3d
push ebx
lea eax, [ebp - 0x44]
push eax
push edi
call fcn.00700d60
add esp, 0xc
mov dword [ebp - 0x58], 1
cmp dword [ebp + 0x18], 1
jle 0x6b09fa
nop
push dword [ebp - 0x48]
push esi
call fcn.0065ccf0
add esp, 8
test eax, eax
je 0x6b0a3d
push dword [ebp - 0x54]
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.0065d2b0
add esp, 0xc
test eax, eax
je 0x6b0a3d
push 0
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.0065cf00
add esp, 0xc
test eax, eax
je 0x6b0a3d
xor esi, esi
test ebx, ebx
jle 0x6b09e7
cmp ebx, 0x20
jb 0x6b09c5
lea ecx, [edi - 1]
lea eax, [ebp + ebx - 0x45]
add ecx, ebx
cmp edi, eax
ja 0x6b0966
lea eax, [ebp - 0x44]
cmp ecx, eax
jae 0x6b09c5
mov eax, ebx
and eax, 0x8000001f
jns 0x6b0974
dec eax
or eax, 0xffffffe0
inc eax
mov edx, ebx
mov ecx, edi
sub edx, eax
lea ebx, [ebp - 0x34]
mov eax, edi
lea edi, [ebp - 0x44]
neg eax
add edi, eax
add eax, ebx
mov dword [ebp - 0x64], edi
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x68]
movups xmm0, xmmword [ecx]
add esi, 0x20
lea ecx, [ecx + 0x20]
movups xmm1, xmmword [eax + ecx - 0x20]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
movups xmm1, xmmword [ebx + ecx - 0x20]
movups xmm0, xmmword [ecx - 0x10]
pxor xmm1, xmm0
movups xmmword [ecx - 0x10], xmm1
cmp esi, edx
jl 0x6b0997
mov ebx, dword [ebp - 0x6c]
cmp esi, ebx
jge 0x6b09e7
lea eax, [esi + edi]
mov edx, ebx
lea edi, [ebp - 0x44]
sub edi, dword [ebp - 0x50]
sub edx, esi
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x6b09d6
mov edi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x58]
mov esi, dword [ebp - 0x70]
inc eax
mov dword [ebp - 0x58], eax
cmp eax, dword [ebp + 0x18]
jl 0x6b0900
mov ecx, dword [ebp + 0x20]
add edi, ebx
mov edx, dword [ebp - 0x5c]
sub ecx, ebx
inc edx
mov dword [ebp + 0x20], ecx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x50], edi
test ecx, ecx
jne 0x6b0860
push esi
call fcn.0065cda0
push dword [ebp - 0x48]
call fcn.0065cda0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006fffda
mov esp, ebp
pop ebp
ret
push esi
call fcn.0065cda0
push dword [ebp - 0x48]
call fcn.0065cda0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.006fffda
mov esp, ebp
pop ebp
ret