Function at 0x50b74c
Capabilities:
Encrypt data using twofish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
mov ebx, ecx
test ebx, ebx
js 0x50b761
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x50b75a
mov edx, esp
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0xff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
shr eax, 8
and eax, 0xff
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
shr eax, 0x18
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp dword [eax - 4], 0x20
jne 0x50b817
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 0x71c290]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0xc]
and edx, 0xff
xor eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x71c190]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0xc]
shr edx, 8
and edx, 0xff
xor eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 0x71c190]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0xc]
shr edx, 0x10
and edx, 0xff
xor eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax + 0x71c290]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0xc]
shr edx, 0x18
xor eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp dword [eax - 4], 0x18
jl 0x50b892
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 0x71c290]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
and edx, 0xff
xor eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x71c290]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
shr edx, 8
and edx, 0xff
xor eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 0x71c190]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
shr edx, 0x10
and edx, 0xff
xor eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax + 0x71c190]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
shr edx, 0x18
xor eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 0x71c190]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
and edx, 0xff
xor eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x71c290]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
shr edx, 8
and edx, 0xff
xor eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 0x71c190]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
shr edx, 0x10
and edx, 0xff
xor eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax + 0x71c290]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
shr edx, 0x18
xor eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 0x71c190]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
and edx, 0xff
xor eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x71c190]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
shr edx, 8
and edx, 0xff
xor eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 0x71c290]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
shr edx, 0x10
and edx, 0xff
xor eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax + 0x71c290]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
shr edx, 0x18
xor eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax*4 + 0x71c390]
mov edx, dword [ebp - 0x14]
xor eax, dword [edx*4 + 0x71c790]
mov edx, dword [ebp - 0x18]
xor eax, dword [edx*4 + 0x71cb90]
mov edx, dword [ebp - 0x1c]
xor eax, dword [edx*4 + 0x71cf90]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret