Function at 0x267af
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [0x27894], 2
push ebx
push esi
push edi
jne 0x267d6
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00026c34
jmp 0x26c2d
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push 1
pop ecx
cmp edi, ecx
jbe 0x267fe
lea edx, [eax + 4]
cmp esi, dword [edx]
je 0x267f7
inc ecx
add edx, 4
cmp ecx, edi
jb 0x267e9
jmp 0x267fe
mov edx, dword [eax]
mov dword [eax + ecx*4], edx
mov dword [eax], esi
mov ecx, dword [eax]
cmp esi, ecx
jne 0x26947
cmp edi, 1
jbe 0x26c2d
dec edi
lea ebx, [eax + 4]
mov dword [ebp + 0x10], edi
mov eax, dword [ebx]
mov dword [ebp + 0x14], eax
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
shr edx, 7
push edi
push esi
push 8
mov esi, edx
pop edx
mov edi, dword [ecx]
xor dword [eax], edi
mov edi, dword [ecx + 4]
xor dword [eax + 4], edi
mov edi, dword [ecx + edx]
xor dword [eax + edx], edi
mov edi, dword [ecx + edx + 4]
xor dword [eax + edx + 4], edi
add ecx, edx
add eax, edx
add ecx, edx
add eax, edx
mov edi, dword [ecx]
xor dword [eax], edi
mov edi, dword [ecx + 4]
xor dword [eax + 4], edi
mov edi, dword [ecx + edx]
xor dword [eax + edx], edi
mov edi, dword [ecx + edx + 4]
xor dword [eax + edx + 4], edi
add ecx, edx
add eax, edx
add ecx, edx
add eax, edx
mov edi, dword [ecx]
xor dword [eax], edi
mov edi, dword [ecx + 4]
xor dword [eax + 4], edi
mov edi, dword [ecx + edx]
xor dword [eax + edx], edi
mov edi, dword [ecx + edx + 4]
xor dword [eax + edx + 4], edi
add ecx, edx
add eax, edx
add ecx, edx
add eax, edx
mov edi, dword [ecx]
xor dword [eax], edi
mov edi, dword [ecx + 4]
xor dword [eax + 4], edi
mov edi, dword [ecx + edx]
xor dword [eax + edx], edi
mov edi, dword [ecx + edx + 4]
add ecx, edx
xor dword [eax + edx + 4], edi
add eax, edx
add ecx, edx
add eax, edx
mov edi, dword [ecx]
xor dword [eax], edi
mov edi, dword [ecx + 4]
xor dword [eax + 4], edi
mov edi, dword [ecx + edx]
xor dword [eax + edx], edi
mov edi, dword [ecx + edx + 4]
add ecx, edx
xor dword [eax + edx + 4], edi
add eax, edx
add ecx, edx
add eax, edx
mov edi, dword [ecx]
xor dword [eax], edi
mov edi, dword [ecx + 4]
xor dword [eax + 4], edi
mov edi, dword [ecx + edx]
xor dword [eax + edx], edi
mov edi, dword [ecx + edx + 4]
add ecx, edx
xor dword [eax + edx + 4], edi
add eax, edx
add ecx, edx
add eax, edx
mov edi, dword [ecx]
xor dword [eax], edi
mov edi, dword [ecx + 4]
xor dword [eax + 4], edi
mov edi, dword [ecx + edx]
add ecx, edx
add eax, edx
xor dword [eax], edi
mov edi, dword [ecx + 4]
xor dword [eax + 4], edi
mov edi, dword [ecx + edx]
xor dword [eax + edx], edi
mov edi, dword [ecx + edx + 4]
add ecx, edx
xor dword [eax + edx + 4], edi
add eax, edx
add ecx, edx
add eax, edx
mov edi, dword [ecx]
xor dword [eax], edi
mov edi, dword [ecx + 4]
xor dword [eax + 4], edi
add ecx, edx
add eax, edx
dec esi
jne 0x26830
pop esi
pop edi
add ebx, 4
dec dword [ebp + 0x10]
jne 0x26818
jmp 0x26c2d
mov eax, dword [eax + 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
shr edx, 7
push edi
push esi
push 8
mov esi, edx
pop edx
mov edi, dword [ecx]
xor edi, dword [ebx]
mov dword [eax], edi
mov edi, dword [ecx + 4]
xor edi, dword [ebx + 4]
mov dword [eax + 4], edi
mov edi, dword [ecx + edx]
xor edi, dword [ebx + edx]
mov dword [eax + edx], edi
mov edi, dword [ecx + edx + 4]
xor edi, dword [ebx + edx + 4]
add ecx, edx
add ebx, edx
mov dword [eax + edx + 4], edi
add eax, edx
add ecx, edx
add ebx, edx
add eax, edx
mov edi, dword [ecx]
xor edi, dword [ebx]
mov dword [eax], edi
mov edi, dword [ecx + 4]
xor edi, dword [ebx + 4]
mov dword [eax + 4], edi
mov edi, dword [ecx + edx]
xor edi, dword [ebx + edx]
mov dword [eax + edx], edi
mov edi, dword [ecx + edx + 4]
xor edi, dword [ebx + edx + 4]
add ecx, edx
add ebx, edx
mov dword [eax + edx + 4], edi
add eax, edx
add ecx, edx
add ebx, edx
add eax, edx
mov edi, dword [ecx]
xor edi, dword [ebx]
mov dword [eax], edi
mov edi, dword [ecx + 4]
xor edi, dword [ebx + 4]
mov dword [eax + 4], edi
mov edi, dword [ecx + edx]
xor edi, dword [ebx + edx]
mov dword [eax + edx], edi
mov edi, dword [ecx + edx + 4]
xor edi, dword [ebx + edx + 4]
add ecx, edx
add ebx, edx
mov dword [eax + edx + 4], edi
add eax, edx
add ecx, edx
add ebx, edx
add eax, edx
mov edi, dword [ecx]
xor edi, dword [ebx]
mov dword [eax], edi
mov edi, dword [ecx + 4]
xor edi, dword [ebx + 4]
mov dword [eax + 4], edi
mov edi, dword [ecx + edx]
xor edi, dword [ebx + edx]
mov dword [eax + edx], edi
mov edi, dword [ecx + edx + 4]
xor edi, dword [ebx + edx + 4]
add ecx, edx
add ebx, edx
mov dword [eax + edx + 4], edi
add eax, edx
add ecx, edx
add ebx, edx
add eax, edx
mov edi, dword [ecx]
xor edi, dword [ebx]
mov dword [eax], edi
mov edi, dword [ecx + 4]
xor edi, dword [ebx + 4]
mov dword [eax + 4], edi
mov edi, dword [ecx + edx]
xor edi, dword [ebx + edx]
mov dword [eax + edx], edi
mov edi, dword [ecx + edx + 4]
xor edi, dword [ebx + edx + 4]
add ecx, edx
add ebx, edx
mov dword [eax + edx + 4], edi
add eax, edx
add ecx, edx
add ebx, edx
add eax, edx
mov edi, dword [ecx]
xor edi, dword [ebx]
mov dword [eax], edi
mov edi, dword [ecx + 4]
xor edi, dword [ebx + 4]
mov dword [eax + 4], edi
mov edi, dword [ecx + edx]
xor edi, dword [ebx + edx]
mov dword [eax + edx], edi
mov edi, dword [ecx + edx + 4]
xor edi, dword [ebx + edx + 4]
add ecx, edx
add ebx, edx
mov dword [eax + edx + 4], edi
add eax, edx
add ecx, edx
add ebx, edx
add eax, edx
mov edi, dword [ecx]
xor edi, dword [ebx]
mov dword [eax], edi
mov edi, dword [ecx + 4]
xor edi, dword [ebx + 4]
mov dword [eax + 4], edi
mov edi, dword [ecx + edx]
xor edi, dword [ebx + edx]
add ecx, edx
add ebx, edx
add eax, edx
mov dword [eax], edi
mov edi, dword [ecx + 4]
xor edi, dword [ebx + 4]
mov dword [eax + 4], edi
mov edi, dword [ecx + edx]
xor edi, dword [ebx + edx]
mov dword [eax + edx], edi
mov edi, dword [ecx + edx + 4]
xor edi, dword [ebx + edx + 4]
add ecx, edx
add ebx, edx
mov dword [eax + edx + 4], edi
add eax, edx
add ecx, edx
add ebx, edx
add eax, edx
mov edi, dword [ecx]
xor edi, dword [ebx]
mov dword [eax], edi
mov edi, dword [ecx + 4]
xor edi, dword [ebx + 4]
mov dword [eax + 4], edi
add ecx, edx
add ebx, edx
add eax, edx
dec esi
jne 0x26966
pop esi
pop edi
mov eax, dword [ebp + 0x14]
cmp eax, 2
jbe 0x26c2d
mov ecx, dword [ebp + 0x10]
add eax, 0xfffffffe
mov dword [ebp + 0x10], eax
lea ebx, [ecx + 8]
mov eax, dword [ebx]
mov dword [ebp + 0x14], eax
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
shr edx, 7
push edi
push esi
push 8
mov esi, edx
pop edx
mov edi, dword [ecx]
xor dword [eax], edi
mov edi, dword [ecx + 4]
xor dword [eax + 4], edi
mov edi, dword [ecx + edx]
xor dword [eax + edx], edi
mov edi, dword [ecx + edx + 4]
xor dword [eax + edx + 4], edi
add ecx, edx
add eax, edx
add ecx, edx
add eax, edx
mov edi, dword [ecx]
xor dword [eax], edi
mov edi, dword [ecx + 4]
xor dword [eax + 4], edi
mov edi, dword [ecx + edx]
xor dword [eax + edx], edi
mov edi, dword [ecx + edx + 4]
xor dword [eax + edx + 4], edi
add ecx, edx
add eax, edx
add ecx, edx
add eax, edx
mov edi, dword [ecx]
xor dword [eax], edi
mov edi, dword [ecx + 4]
xor dword [eax + 4], edi
mov edi, dword [ecx + edx]
xor dword [eax + edx], edi
mov edi, dword [ecx + edx + 4]
xor dword [eax + edx + 4], edi
add ecx, edx
add eax, edx
add ecx, edx
add eax, edx
mov edi, dword [ecx]
xor dword [eax], edi
mov edi, dword [ecx + 4]
xor dword [eax + 4], edi
mov edi, dword [ecx + edx]
xor dword [eax + edx], edi
mov edi, dword [ecx + edx + 4]
add ecx, edx
xor dword [eax + edx + 4], edi
add eax, edx
add ecx, edx
add eax, edx
mov edi, dword [ecx]
xor dword [eax], edi
mov edi, dword [ecx + 4]
xor dword [eax + 4], edi
mov edi, dword [ecx + edx]
xor dword [eax + edx], edi
mov edi, dword [ecx + edx + 4]
add ecx, edx
xor dword [eax + edx + 4], edi
add eax, edx
add ecx, edx
add eax, edx
mov edi, dword [ecx]
xor dword [eax], edi
mov edi, dword [ecx + 4]
xor dword [eax + 4], edi
mov edi, dword [ecx + edx]
xor dword [eax + edx], edi
mov edi, dword [ecx + edx + 4]
add ecx, edx
xor dword [eax + edx + 4], edi
add eax, edx
add ecx, edx
add eax, edx
mov edi, dword [ecx]
xor dword [eax], edi
mov edi, dword [ecx + 4]
xor dword [eax + 4], edi
mov edi, dword [ecx + edx]
add ecx, edx
add eax, edx
xor dword [eax], edi
mov edi, dword [ecx + 4]
xor dword [eax + 4], edi
mov edi, dword [ecx + edx]
xor dword [eax + edx], edi
mov edi, dword [ecx + edx + 4]
add ecx, edx
xor dword [eax + edx + 4], edi
add eax, edx
add ecx, edx
add eax, edx
mov edi, dword [ecx]
xor dword [eax], edi
mov edi, dword [ecx + 4]
xor dword [eax + 4], edi
add ecx, edx
add eax, edx
dec esi
jne 0x26b1b
pop esi
pop edi
add ebx, 4
dec dword [ebp + 0x10]
jne 0x26b03
pop edi
pop esi
pop ebx
leave
ret 0x14