Function at 0x30475e20
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 0x30475e35
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x30475e2e
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 0x30475eeb
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 0x304b8714]
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 + 0x304b8614]
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 + 0x304b8614]
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 + 0x304b8714]
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 0x30475f66
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 0x304b8714]
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 + 0x304b8714]
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 + 0x304b8614]
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 + 0x304b8614]
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 + 0x304b8614]
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 + 0x304b8714]
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 + 0x304b8614]
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 + 0x304b8714]
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 + 0x304b8614]
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 + 0x304b8614]
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 + 0x304b8714]
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 + 0x304b8714]
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 + 0x304b8814]
mov edx, dword [ebp - 0x14]
xor eax, dword [edx*4 + 0x304b8c14]
mov edx, dword [ebp - 0x18]
xor eax, dword [edx*4 + 0x304b9014]
mov edx, dword [ebp - 0x1c]
xor eax, dword [edx*4 + 0x304b9414]
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