Function at 0x10026680
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov eax, dword [esi + 0x88]
mov dword [esi + 0x78], 2
test eax, eax
je 0x10026984
cmp dword [esi], 0
jne 0x10026984
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0x54]
xor edx, edx
mov dl, byte [eax + ecx + 2]
and ecx, 0xffff
mov eax, edx
mov edx, dword [esi + 0x74]
and edx, 0x3ff
and eax, 0x7fff
shl edx, 5
xor eax, edx
mov edx, dword [esi + 0x64]
mov dword [esi + 0x74], eax
mov eax, dword [edx + eax*4]
mov edx, dword [esi + 0x60]
test eax, eax
mov dword [edx + ecx*4], eax
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x64]
mov ebx, dword [esi + 0x7c]
mov dword [edx + ecx*4], ebx
je 0x10026847
mov ecx, dword [esi + 0x7c]
mov edx, ecx
sub edx, eax
cmp edx, 0xffff
ja 0x10026847
mov ebp, eax
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x54]
add eax, ecx
cmp ecx, 0xffff
jbe 0x10026730
add ecx, 0xffff0001
mov dword [esp + 0x18], ecx
jmp 0x10026738
mov dword [esp + 0x18], 0
mov cl, byte [edi + eax - 1]
lea edx, [eax + 0xfff2]
mov byte [esp + 0x20], cl
mov cl, byte [edi + eax]
mov byte [esp + 0x13], cl
mov ecx, dword [esi + 0x94]
cmp edi, ecx
jb 0x1002675c
shr dword [esp + 0x14], 2
mov ecx, dword [esi + 0x54]
mov bl, byte [esp + 0x13]
add ecx, ebp
cmp byte [ecx + edi], bl
jne 0x10026818
mov bl, byte [esp + 0x20]
cmp byte [ecx + edi - 1], bl
jne 0x10026818
mov bl, byte [ecx]
cmp bl, byte [eax]
jne 0x10026818
mov bl, byte [ecx + 1]
inc ecx
cmp bl, byte [eax + 1]
jne 0x10026818
add eax, 2
inc ecx
mov bl, byte [eax + 1]
inc eax
inc ecx
cmp bl, byte [ecx]
jne 0x100267e3
mov bl, byte [eax + 1]
inc eax
inc ecx
cmp bl, byte [ecx]
jne 0x100267e3
mov bl, byte [eax + 1]
inc eax
inc ecx
cmp bl, byte [ecx]
jne 0x100267e3
mov bl, byte [eax + 1]
inc eax
inc ecx
cmp bl, byte [ecx]
jne 0x100267e3
mov bl, byte [eax + 1]
inc eax
inc ecx
cmp bl, byte [ecx]
jne 0x100267e3
mov bl, byte [eax + 1]
inc eax
inc ecx
cmp bl, byte [ecx]
jne 0x100267e3
mov bl, byte [eax + 1]
inc eax
inc ecx
cmp bl, byte [ecx]
jne 0x100267e3
mov bl, byte [eax + 1]
inc eax
inc ecx
cmp bl, byte [ecx]
jne 0x100267e3
cmp eax, edx
jb 0x10026797
mov ecx, eax
lea eax, [edx - 0xfff2]
sub ecx, edx
add ecx, 0xfff2
cmp ecx, edi
jle 0x10026818
mov ebx, dword [esi + 0x98]
mov dword [esi + 0x80], ebp
cmp ecx, ebx
mov edi, ecx
jge 0x1002683b
mov bl, byte [ecx + eax - 1]
mov cl, byte [ecx + eax]
mov byte [esp + 0x20], bl
mov byte [esp + 0x13], cl
mov ecx, dword [esi + 0x60]
and ebp, 0xffff
mov ebp, dword [ecx + ebp*4]
mov ecx, dword [esp + 0x18]
cmp ebp, ecx
jbe 0x1002683b
mov ecx, dword [esp + 0x14]
dec ecx
mov dword [esp + 0x14], ecx
jne 0x1002675c
mov eax, dword [esi + 0x88]
cmp edi, eax
jbe 0x10026847
mov edi, eax
cmp edi, 3
push esi
jb 0x10026901
mov eax, dword [esi + 0x7c]
mov ebp, dword [esi + 0x80]
lea edx, [edi - 3]
sub eax, ebp
push edx
push eax
call fcn.10025bb0
mov ecx, dword [esi + 0x88]
mov ebp, eax
mov eax, dword [esi + 0x90]
add esp, 0xc
sub ecx, edi
cmp edi, eax
mov dword [esi + 0x88], ecx
ja 0x100268d1
dec edi
mov ecx, dword [esi + 0x7c]
xor eax, eax
inc ecx
mov ebx, dword [esi + 0x60]
mov dword [esi + 0x7c], ecx
mov edx, ecx
mov ecx, dword [esi + 0x54]
mov al, byte [edx + ecx + 2]
and edx, 0xffff
mov ecx, eax
mov eax, dword [esi + 0x74]
and eax, 0x3ff
and ecx, 0x7fff
shl eax, 5
xor ecx, eax
mov eax, dword [esi + 0x64]
mov dword [esi + 0x74], ecx
dec edi
mov ecx, dword [eax + ecx*4]
mov dword [ebx + edx*4], ecx
mov edx, dword [esi + 0x74]
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x7c]
mov dword [eax + edx*4], ecx
jne 0x10026884
jmp 0x10026926
mov eax, dword [esi + 0x7c]
mov edx, dword [esi + 0x54]
add eax, edi
xor ecx, ecx
add edx, eax
mov dword [esi + 0x7c], eax
xor eax, eax
xor edi, edi
mov cl, byte [edx]
mov dword [esi + 0x74], ecx
mov al, byte [edx + 1]
and ecx, 0x3ff
and eax, 0x7fff
shl ecx, 5
xor eax, ecx
mov dword [esi + 0x74], eax
jmp 0x10026929
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x7c]
xor eax, eax
mov al, byte [ecx + edx]
push eax
push 0
call fcn.10025bb0
mov ecx, dword [esi + 0x88]
add esp, 0xc
dec ecx
mov ebp, eax
mov dword [esi + 0x88], ecx
inc dword [esi + 0x7c]
test ebp, ebp
je 0x10026957
mov ecx, dword [esi + 0x6c]
test ecx, ecx
jl 0x1002693d
mov edx, dword [esi + 0x54]
mov eax, ecx
add eax, edx
jmp 0x1002693f
xor eax, eax
mov edx, dword [esi + 0x7c]
push esi
sub edx, ecx
push 0
push edx
push eax
call fcn.10025790
mov eax, dword [esi + 0x7c]
add esp, 0x10
mov dword [esi + 0x6c], eax
cmp dword [esi + 0x88], 0xfff6
jae 0x10026976
mov eax, dword [esi + 0x84]
test eax, eax
jne 0x10026976
push esi
call fcn.10026550
add esp, 4
mov eax, dword [esi + 0x88]
test eax, eax
jne 0x100266a2
mov ecx, dword [esi + 0x6c]
test ecx, ecx
jl 0x10026992
mov eax, dword [esi + 0x54]
add eax, ecx
jmp 0x10026994
xor eax, eax
mov edx, dword [esi + 0x7c]
push esi
sub edx, ecx
push 1
push edx
push eax
call fcn.10025790
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret