Function at 0x690494
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffff57c
push ebx
push esi
push edi
mov dword [ebp - 0x40c], eax
lea edi, [ebp - 0x10fe]
xor eax, eax
mov dword [ebp - 0x1a58], eax
push ebp
call fcn.006900cc
pop ecx
push ebp
call fcn.0068e000
pop ecx
push ebp
call fcn.0068e914
pop ecx
push ebp
call fcn.0068fbe4
pop ecx
xor eax, eax
mov dword [ebp - 0x1a80], eax
mov bx, 2
xor esi, esi
mov eax, dword [ebp - 0x40c]
cmp dword [eax + 0x190], 3
jg 0x690500
push ebp
call fcn.00690198
pop ecx
jmp 0x690803
cmp word [ebp - 0x1a5a], 0
je 0x6907d1
cmp word [ebp - 0x1a5a], 3
jb 0x6905a7
movzx eax, word [edi]
add eax, 3
mov edx, dword [ebp - 0x40c]
mov edx, dword [edx + 0xb54]
movzx eax, byte [edx + eax - 1]
mov dx, word [ebp - 0x1a6c]
shl edx, 5
xor ax, dx
and ax, 0x7fff
mov word [ebp - 0x1a6c], ax
movzx eax, word [ebp - 0x1a6c]
mov edx, dword [ebp - 0x40c]
mov edx, dword [edx + 0xb5c]
mov ax, word [edx + eax*2]
mov dx, word [edi]
and dx, 0x7fff
movzx edx, dx
mov ecx, dword [ebp - 0x40c]
mov ecx, dword [ecx + 0xb58]
mov word [ecx + edx*2], ax
movzx eax, word [ebp - 0x1a6c]
mov edx, dword [ebp - 0x40c]
mov edx, dword [edx + 0xb5c]
mov si, word [edx + eax*2]
mov edx, dword [ebp - 0x40c]
mov edx, dword [edx + 0xb5c]
mov cx, word [edi]
mov word [edx + eax*2], cx
mov word [ebp - 0x1a6e], bx
mov ax, word [ebp - 0x1a5e]
mov word [ebp - 0x1a7a], ax
mov bx, 2
test si, si
je 0x69061c
mov ax, word [ebp - 0x1a6e]
cmp ax, word [ebp - 0x1a62]
jae 0x69061c
movzx eax, word [edi]
movzx edx, si
sub eax, edx
cmp eax, 0x7efa
jg 0x69061c
push ebp
mov eax, esi
call fcn.0068fdb4
pop ecx
mov ebx, eax
cmp bx, word [ebp - 0x1a5a]
jbe 0x6905ff
mov bx, word [ebp - 0x1a5a]
cmp bx, 3
jne 0x69061c
movzx eax, word [edi]
movzx edx, word [ebp - 0x1a5e]
sub eax, edx
cmp eax, 0x1000
jle 0x69061c
mov bx, 2
cmp word [ebp - 0x1a6e], 3
jb 0x690727
cmp bx, word [ebp - 0x1a6e]
ja 0x690727
push ebp
movzx eax, word [edi]
dec eax
movzx edx, word [ebp - 0x1a7a]
sub eax, edx
movzx edx, word [ebp - 0x1a6e]
sub edx, 3
call fcn.0068e95c
pop ecx
mov dx, word [ebp - 0x1a6e]
dec edx
sub word [ebp - 0x1a5a], dx
sub word [ebp - 0x1a6e], 2
inc word [edi]
movzx edx, word [edi]
add edx, 3
mov ecx, dword [ebp - 0x40c]
mov ecx, dword [ecx + 0xb54]
movzx edx, byte [ecx + edx - 1]
mov cx, word [ebp - 0x1a6c]
shl ecx, 5
xor dx, cx
and dx, 0x7fff
mov word [ebp - 0x1a6c], dx
movzx edx, word [ebp - 0x1a6c]
mov ecx, dword [ebp - 0x40c]
mov ecx, dword [ecx + 0xb5c]
mov dx, word [ecx + edx*2]
mov cx, word [edi]
and cx, 0x7fff
movzx ecx, cx
mov ebx, dword [ebp - 0x40c]
mov ebx, dword [ebx + 0xb58]
mov word [ebx + ecx*2], dx
movzx edx, word [ebp - 0x1a6c]
mov ecx, dword [ebp - 0x40c]
mov ecx, dword [ecx + 0xb5c]
mov bx, word [edi]
mov word [ecx + edx*2], bx
dec word [ebp - 0x1a6e]
cmp word [ebp - 0x1a6e], 0
jne 0x69066c
xor edx, edx
mov dword [ebp - 0x1a80], edx
mov bx, 2
inc word [edi]
test al, al
je 0x690783
push ebp
xor eax, eax
call fcn.0069005c
pop ecx
movzx eax, word [edi]
mov dword [ebp - 0x1104], eax
jmp 0x690783
cmp dword [ebp - 0x1a80], 0
je 0x69076f
push ebp
movzx eax, word [edi]
mov edx, dword [ebp - 0x40c]
mov edx, dword [edx + 0xb54]
movzx edx, byte [edx + eax - 1]
xor eax, eax
call fcn.0068e95c
pop ecx
test al, al
je 0x690763
push ebp
xor eax, eax
call fcn.0069005c
pop ecx
movzx eax, word [edi]
mov dword [ebp - 0x1104], eax
inc word [edi]
dec word [ebp - 0x1a5a]
jmp 0x690783
mov dword [ebp - 0x1a80], 1
inc word [edi]
dec word [ebp - 0x1a5a]
mov eax, dword [ebp - 0x40c]
mov eax, dword [eax + 0x224]
movzx edx, word [edi]
cmp eax, edx
jl 0x6907a1
movzx edx, word [ebp - 0x1a5a]
cmp eax, edx
jge 0x6907a5
xor eax, eax
jmp 0x6907a7
mov al, 1
mov edx, 0x690814
call fcn.00685c70
cmp word [ebp - 0x1a5a], 0x106
jae 0x6907c3
push ebp
call fcn.0068fa0c
pop ecx
cmp word [ebp - 0x1a5a], 0
jne 0x69050e
cmp dword [ebp - 0x1a80], 0
je 0x6907f7
push ebp
movzx eax, word [edi]
mov edx, dword [ebp - 0x40c]
mov edx, dword [edx + 0xb54]
movzx edx, byte [edx + eax - 1]
xor eax, eax
call fcn.0068e95c
pop ecx
push ebp
mov eax, 1
call fcn.0069005c
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret