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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
push esi
push edi
mov ebx, 0x596860
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
lea edx, [ebx + 0x100]
lea eax, [ebp - 0x210]
call fcn.005576d8
mov eax, 0x100
lea edx, [ebp - 0x210]
lea esi, [ebp - 0x110]
movzx ecx, byte [edx]
movzx ecx, byte [ebx + ecx + 0x100]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x557a85
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x110]
call fcn.005576d8
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x18]
and edx, 0xff
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x14]
and ecx, 0xff
xor eax, eax
lea esi, [ebp - 0x110]
mov dword [ebp - 4], esi
mov esi, eax
add esi, esi
mov edi, dword [ebp + 8]
mov edi, dword [edi - 0x20]
lea esi, [edi + esi*4]
push esi
mov esi, dword [ebp - 4]
movzx esi, byte [esi]
movzx esi, byte [ebx + esi]
xor esi, ecx
movzx esi, byte [ebx + esi]
xor esi, edx
mov esi, dword [esi*4 + 0x596a60]
pop edi
mov dword [edi], esi
inc eax
inc dword [ebp - 4]
cmp eax, 0x100
jne 0x557ad1
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
shr ecx, 8
mov edx, ebx
lea eax, [ebp - 0x210]
call fcn.005576d8
mov eax, 0x100
lea edx, [ebp - 0x210]
lea esi, [ebp - 0x110]
movzx ecx, byte [edx]
movzx ecx, byte [ebx + ecx + 0x100]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x557b2d
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
shr ecx, 8
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x110]
call fcn.005576d8
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x18]
shr edx, 8
and edx, 0xff
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x14]
shr ecx, 8
and ecx, 0xff
xor eax, eax
lea esi, [ebp - 0x110]
mov dword [ebp - 8], esi
mov esi, eax
add esi, esi
mov edi, dword [ebp + 8]
mov edi, dword [edi - 0x20]
lea esi, [edi + esi*4 + 4]
push esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi]
movzx esi, byte [ebx + esi + 0x100]
xor esi, ecx
movzx esi, byte [ebx + esi]
xor esi, edx
mov esi, dword [esi*4 + 0x596e60]
pop edi
mov dword [edi], esi
inc eax
inc dword [ebp - 8]
cmp eax, 0x100
jne 0x557b82
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
shr ecx, 0x10
mov edx, ebx
lea eax, [ebp - 0x210]
call fcn.005576d8
mov eax, 0x100
lea edx, [ebp - 0x210]
lea esi, [ebp - 0x110]
movzx ecx, byte [edx]
movzx ecx, byte [ebx + ecx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x557be3
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
shr ecx, 0x10
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x110]
call fcn.005576d8
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x18]
shr edx, 0x10
and edx, 0xff
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x14]
shr ecx, 0x10
and ecx, 0xff
xor eax, eax
lea esi, [ebp - 0x110]
mov dword [ebp - 0xc], esi
mov esi, eax
add esi, esi
mov edi, dword [ebp + 8]
mov edi, dword [edi - 0x20]
lea esi, [edi + esi*4 + 0x800]
push esi
mov esi, dword [ebp - 0xc]
movzx esi, byte [esi]
movzx esi, byte [ebx + esi]
xor esi, ecx
movzx esi, byte [ebx + esi + 0x100]
xor esi, edx
mov esi, dword [esi*4 + 0x597260]
pop edi
mov dword [edi], esi
inc eax
inc dword [ebp - 0xc]
cmp eax, 0x100
jne 0x557c34
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
shr ecx, 0x18
lea edx, [ebx + 0x100]
lea eax, [ebp - 0x210]
call fcn.005576d8
mov eax, 0x100
lea edx, [ebp - 0x210]
lea esi, [ebp - 0x110]
movzx ecx, byte [edx]
movzx ecx, byte [ebx + ecx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x557c9c
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
shr ecx, 0x18
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x110]
call fcn.005576d8
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x18]
shr edx, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x14]
shr ecx, 0x18
xor eax, eax
lea esi, [ebp - 0x110]
mov dword [ebp - 0x10], esi
mov esi, eax
add esi, esi
mov edi, dword [ebp + 8]
mov edi, dword [edi - 0x20]
lea esi, [edi + esi*4 + 0x804]
push esi
mov esi, dword [ebp - 0x10]
movzx esi, byte [esi]
movzx esi, byte [ebx + esi + 0x100]
xor esi, ecx
movzx esi, byte [ebx + esi + 0x100]
xor esi, edx
mov esi, dword [esi*4 + str.9g]
pop edi
mov dword [edi], esi
inc eax
inc dword [ebp - 0x10]
cmp eax, 0x100
jne 0x557ce1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret