Function at 0x5aa681
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x5aa6a8
push 0x22b
push str.srcciphers_twofish_twofish.c
push str.pt___NULL
call fcn.005accb1
add esp, 0xc
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x5aa6c6
push 0x22c
push str.srcciphers_twofish_twofish.c
push str.ct___NULL
call fcn.005accb1
add esp, 0xc
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x5aa6e4
push 0x22d
push str.srcciphers_twofish_twofish.c
push str.skey___NULL
call fcn.005accb1
add esp, 0xc
push 4
pop edi
push edi
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.00643300
push edi
lea eax, [ebx + 4]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00643300
push edi
lea eax, [ebx + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00643300
push edi
lea eax, [ebx + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00643300
mov eax, dword [esi + 0x1018]
lea edi, [esi + 0x1090]
xor eax, dword [ebp - 0xc]
add esp, 0x30
mov ebx, dword [esi + 0x1010]
mov edx, dword [esi + 0x1014]
xor ebx, dword [ebp - 0x14]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x101c]
xor eax, dword [ebp - 0x10]
xor edx, dword [ebp - 0x18]
mov dword [ebp + 0x10], eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], 8
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov edx, dword [esi + ecx*4 + 0xc00]
mov ecx, dword [ebp - 4]
xor edx, dword [esi + eax*4 + 0x800]
mov eax, ecx
shr eax, 0x18
xor edx, dword [esi + eax*4]
movzx eax, cl
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [esi + eax*4 + 0x400]
mov eax, ebx
mov ecx, dword [esi + ecx*4 + 0xc00]
shr eax, 0x10
movzx eax, al
xor ecx, dword [esi + eax*4 + 0x800]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [esi + eax*4 + 0x400]
movzx eax, bl
rol ebx, 1
xor ecx, dword [esi + eax*4]
mov eax, dword [ebp + 8]
add ecx, edx
rol eax, 1
mov dword [ebp + 8], eax
mov eax, dword [edi + 8]
add eax, ecx
xor dword [ebp + 8], eax
mov eax, dword [edi + 0xc]
add eax, ecx
add edx, eax
xor edx, dword [ebp + 0x10]
ror edx, 1
mov eax, edx
mov dword [ebp + 0x10], edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov edx, dword [esi + ecx*4 + 0xc00]
mov ecx, dword [ebp + 0x10]
xor edx, dword [esi + eax*4 + 0x800]
mov eax, ecx
shr eax, 0x18
xor edx, dword [esi + eax*4]
movzx eax, cl
xor edx, dword [esi + eax*4 + 0x400]
mov eax, dword [ebp + 8]
mov ecx, eax
shr eax, 0x10
movzx eax, al
shr ecx, 0x18
mov ecx, dword [esi + ecx*4 + 0xc00]
xor ecx, dword [esi + eax*4 + 0x800]
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
xor ecx, dword [esi + eax*4 + 0x400]
mov eax, dword [ebp + 8]
movzx eax, al
xor ecx, dword [esi + eax*4]
mov eax, dword [edi]
add ecx, edx
add eax, ecx
lea edi, [edi - 0x10]
xor ebx, eax
mov eax, dword [edi + 0x14]
add eax, ecx
add edx, eax
xor edx, dword [ebp - 4]
ror edx, 1
sub dword [ebp - 8], 1
mov dword [ebp - 4], edx
jne 0x5aa759
mov eax, dword [ebp + 0x10]
xor eax, dword [esi + 0x1004]
xor edx, dword [esi + 0x100c]
xor ebx, dword [esi + 0x1008]
mov edi, dword [ebp + 0xc]
push 4
mov dword [ebp + 0x10], eax
mov eax, dword [esi + 0x1000]
xor dword [ebp + 8], eax
lea eax, [ebp + 8]
pop esi
push esi
push eax
push edi
mov dword [ebp - 4], edx
call fcn.00643300
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push esi
push eax
lea eax, [edi + 4]
mov dword [ebp + 0xc], ecx
push eax
call fcn.00643300
push esi
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [edi + 8]
push eax
call fcn.00643300
mov ecx, dword [ebp - 4]
lea eax, [ebp + 0xc]
push esi
push eax
lea eax, [edi + 0xc]
mov dword [ebp + 0xc], ecx
push eax
call fcn.00643300
add esp, 0x30
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret