Function at 0x698c90
Capabilities:
Encode data using xor
Encrypt data using twofish

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ce3ad
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x772a40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
mov esi, dword [ebp + 0xc]
push esi
call dword [eax + 0x14]
cmp esi, 0x10
ja 0x698cd2
mov ebx, 2
jmp 0x698ce0
mov eax, 0x18
cmp eax, esi
sbb ebx, ebx
neg ebx
add ebx, 3
lea eax, [ebx + ebx]
push eax
lea ecx, [ebp - 0x28]
call fcn.00697fa0
push esi
push dword [ebp + 8]
mov esi, dword [ebp - 0x20]
lea eax, [ebx + ebx]
push eax
push esi
push 0
mov dword [ebp - 4], 0
call fcn.00694d80
add esp, 0x14
lea eax, [esi + 4]
xor edx, edx
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edx
push ebx
push esi
push edx
call fcn.00699030
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
mov ecx, eax
shr ecx, 8
movzx ecx, cl
push ebx
mov esi, dword [edx*4 + 0x71e8b0]
push dword [ebp + 8]
xor esi, dword [ecx*4 + 0x71e4b0]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor esi, dword [ecx*4 + str.9g]
xor esi, dword [eax*4 + 0x71e0b0]
mov eax, dword [ebp + 0xc]
inc eax
push eax
call fcn.00699030
mov ecx, eax
add esp, 0x18
shr ecx, 0x10
movzx edx, cl
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x71e8b0]
xor edx, dword [ecx*4 + 0x71e4b0]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + str.9g]
xor edx, dword [eax*4 + 0x71e0b0]
mov eax, dword [edi + 0xbc]
mov edi, dword [ebp + 0xc]
rol edx, 8
lea ecx, [edx + esi]
mov dword [eax + edi*4], ecx
lea ecx, [esi + edx*2]
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x20]
rol ecx, 9
mov eax, dword [edi + 0xbc]
mov dword [eax + edx*4 + 4], ecx
add edx, 2
mov dword [ebp + 0xc], edx
cmp edx, 0x28
jb 0x698d14
lea eax, [ebx + ebx]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00697fa0
mov edi, dword [ebp - 0x14]
xor esi, esi
add edi, 0xfffffff8
lea edi, [edi + ebx*8]
mov eax, dword [ebp - 0x20]
push dword [eax + esi*8]
mov eax, dword [ebp + 8]
push dword [eax + esi*8]
call fcn.00698a00
inc esi
mov dword [edi], eax
add esp, 8
lea edi, [edi - 8]
cmp esi, ebx
jb 0x698de6
xor esi, esi
mov edi, 0x800
nop dword [eax + eax]
mov eax, esi
mov ecx, ebx
shl eax, 8
or eax, esi
shl eax, 8
or eax, esi
shl eax, 8
or eax, esi
sub ecx, 2
je 0x698ed0
sub ecx, 1
je 0x698e85
sub ecx, 1
jne 0x698f61
mov ecx, eax
shr ecx, 0x18
movzx edx, byte [ecx + 0x71dfb0]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x71deb0]
xor edx, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx eax, al
movzx ecx, byte [ecx + 0x71deb0]
xor edx, ecx
movzx eax, byte [eax + 0x71dfb0]
shl edx, 8
xor edx, eax
mov eax, dword [ebp - 0x14]
xor edx, dword [eax + 0x18]
mov eax, edx
mov ecx, eax
shr ecx, 0x18
movzx edx, byte [ecx + 0x71deb0]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x71deb0]
xor edx, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx eax, al
movzx ecx, byte [ecx + 0x71dfb0]
xor edx, ecx
movzx eax, byte [eax + 0x71dfb0]
shl edx, 8
xor edx, eax
mov eax, dword [ebp - 0x14]
xor edx, dword [eax + 0x10]
mov eax, edx
mov ecx, eax
shr ecx, 0x18
movzx edx, byte [ecx + 0x71dfb0]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x71deb0]
xor edx, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
movzx eax, al
shl edx, 8
movzx ecx, byte [ecx + 0x71dfb0]
movzx eax, byte [eax + 0x71deb0]
xor edx, ecx
shl edx, 8
xor edx, eax
mov eax, dword [ebp - 0x14]
xor edx, dword [eax + 8]
mov eax, edx
mov ecx, edx
shr ecx, 0x10
shr eax, 0x18
movzx ecx, cl
movzx eax, byte [eax + 0x71dfb0]
movzx ecx, byte [ecx + 0x71dfb0]
shl eax, 8
xor eax, ecx
mov ecx, edx
shr ecx, 8
movzx ecx, cl
shl eax, 8
movzx ecx, byte [ecx + 0x71deb0]
xor eax, ecx
movzx ecx, dl
shl eax, 8
movzx ecx, byte [ecx + 0x71deb0]
xor eax, ecx
mov ecx, dword [ebp - 0x14]
xor eax, dword [ecx]
mov edx, dword [ebp - 0x10]
inc esi
movzx ecx, al
mov edx, dword [edx + 0x10cc]
mov ecx, dword [ecx*4 + 0x71e0b0]
mov dword [edx + edi - 0x800], ecx
mov ecx, eax
mov edx, dword [ebp - 0x10]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx + 0x10cc]
mov ecx, dword [ecx*4 + 0x71e4b0]
mov dword [edx + edi - 0x400], ecx
mov ecx, eax
mov edx, dword [ebp - 0x10]
shr ecx, 0x10
movzx ecx, cl
shr eax, 0x18
mov edx, dword [edx + 0x10cc]
mov ecx, dword [ecx*4 + 0x71e8b0]
mov dword [edi + edx], ecx
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax*4 + str.9g]
mov ecx, dword [ecx + 0x10cc]
mov dword [ecx + edi + 0x400], eax
add edi, 4
cmp edi, 0xc00
jb 0x698e10
mov edx, dword [ebp - 0x14]
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edi, edx
rep stosd dword es:[edi], eax
push edx
mov byte [ebp - 4], 1
call fcn.00616fa0
mov edx, dword [ebp - 0x20]
xor eax, eax
mov ecx, dword [ebp - 0x24]
mov edi, edx
rep stosd dword es:[edi], eax
push edx
mov dword [ebp - 4], 2
call fcn.00616fa0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc