Function at 0x6ea920
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xfc
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0x104]
mov ecx, dword [esp + 0x100]
push ebx
mov ebx, dword [esp + 0x118]
push ebp
mov dword [esp + 0x10], eax
xor ebp, ebp
cmp dword [esp + 0x118], 0x1c
mov eax, dword [esp + 0x114]
push edi
mov edi, dword [esp + 0x128]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
jae 0x6ea98c
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.006f7ca4
add esp, 0xfc
ret
push esi
mov esi, dword [esp + 0x128]
mov edx, 0x20
cmp esi, edx
cmova esi, edx
lea edx, [esp + 0x94]
push edx
push eax
push ecx
call fcn.006e4ff0
add esp, 0xc
test eax, eax
js 0x6eaba4
lea eax, [esp + 0x24]
mov byte [esp + 0x1f], 4
push eax
mov dword [esp + 0x24], 0x1000000
call fcn.006e6510
push 1
lea eax, [esp + 0x27]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.006e6560
push 0x38
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.006e6560
add esp, 0x1c
test edi, edi
je 0x6eaa53
push 0x40
push 0
push edi
call fcn.006f87a0
movdqu xmm0, xmmword [esp + 0xa0]
mov eax, dword [esp + 0xb8]
add esp, 0xc
movdqu xmmword [edi], xmm0
movq xmm0, qword [esp + 0xa4]
movq qword [edi + 0x10], xmm0
movdqu xmm0, xmmword [esp + 0xb0]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0xc8]
movdqu xmmword [edi + 0x20], xmm0
movq xmm0, qword [esp + 0xc0]
movq qword [edi + 0x30], xmm0
mov dword [edi + 0x38], eax
mov ecx, dword [esp + 0x18]
push 0
mov eax, dword [ecx + 0x18]
movdqu xmm0, xmmword [ecx]
mov dword [esp + 0xb0], eax
mov eax, dword [ecx + 0x38]
mov dword [esp + 0xcc], eax
lea eax, [esp + 0xf0]
movdqu xmmword [esp + 0x98], xmm0
push eax
movq xmm0, qword [ecx + 0x10]
lea eax, [esp + 0x9c]
movq qword [esp + 0xac], xmm0
movdqu xmm0, xmmword [ecx + 0x20]
push eax
push dword [esp + 0x20]
movdqu xmmword [esp + 0xc0], xmm0
movq xmm0, qword [ecx + 0x30]
push dword [esp + 0x20]
movq qword [esp + 0xd4], xmm0
call fcn.006e4ca0
add esp, 0x14
test eax, eax
je 0x6eaba4
push 0x1c
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.006e6560
push 4
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.006e6560
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0xe8]
push eax
call fcn.006e6440
add esp, 0x20
xor edx, edx
test esi, esi
je 0x6eab9f
cmp esi, 0x20
jb 0x6eab81
lea ecx, [ebx - 1]
lea eax, [esp + esi + 0xcb]
add ecx, esi
cmp ebx, eax
ja 0x6eab30
lea eax, [esp + 0xcc]
cmp ecx, eax
jae 0x6eab81
mov eax, esi
lea edi, [esp + 0xcc]
and eax, 0x1f
lea ebp, [esp + 0xdc]
mov ecx, esi
sub edi, ebx
sub ecx, eax
mov eax, ebx
sub ebp, ebx
lea ecx, [ecx]
movdqu xmm0, xmmword [eax]
add edx, 0x20
lea eax, [eax + 0x20]
movdqu xmm1, xmmword [edi + eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x20], xmm1
movdqu xmm0, xmmword [eax - 0x10]
movdqu xmm1, xmmword [eax + ebp - 0x20]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp edx, ecx
jb 0x6eab50
cmp edx, esi
jae 0x6eab9f
lea edi, [esp + 0xcc]
sub edi, ebx
lea ecx, [ebx + edx]
sub esi, edx
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec esi
jne 0x6eab93
mov ebp, 1
mov ecx, dword [esp + 0x108]
mov eax, ebp
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.006f7ca4
add esp, 0xfc
ret