Function at 0x613ab0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
and edx, 0x7f
cmp edx, 7
ja case.0x613ac8.5
jmp dword [edx*4 + 0x613acf]
mov dl, byte [ebp + 0x10]
dec dl
jne case.0x613ac8.5
mov ecx, dword [ebp + 0xc]
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.005dd1ac
jmp case.0x613ac8.5
mov dl, byte [ebp + 0x10]
dec dl
jne case.0x613ac8.5
mov ebx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
dec esi
test esi, esi
jl case.0x613ac8.5
inc esi
movzx edx, word [eax]
shr edx, 8
mov byte [ebx + 2], dl
movzx edx, word [eax + 2]
shr edx, 8
mov byte [ebx + 1], dl
movzx edx, word [eax + 4]
shr edx, 8
mov byte [ebx], dl
add ebx, 3
add eax, 6
dec esi
jne 0x613b27
jmp case.0x613ac8.5
mov dl, byte [ebp + 0x10]
dec dl
jne case.0x613ac8.5
mov ebx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
dec esi
test esi, esi
jl case.0x613ac8.5
inc esi
mov dl, byte [eax]
and dl, 0xff
mov byte [ebx + 2], dl
mov dl, byte [eax + 2]
and dl, 0xff
mov byte [ebx + 1], dl
mov dl, byte [eax + 4]
and dl, 0xff
mov byte [ebx], dl
add ebx, 3
add eax, 6
dec esi
jne 0x613b6c
jmp case.0x613ac8.5
mov dl, byte [ebp + 0x10]
dec dl
je 0x613c85
dec dl
je 0x613bb0
sub dl, 2
je 0x613be8
dec dl
je 0x613c27
jmp case.0x613ac8.5
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov esi, dword [ebp + 0xc]
dec esi
test esi, esi
jl case.0x613ac8.5
inc esi
mov al, byte [ebx + 2]
shl eax, 0x10
mov ax, word [ebx]
push eax
call fcn.00613a28
mov edx, dword [ebp - 8]
mov dword [edx], eax
add ebx, 3
add dword [ebp - 8], 4
dec esi
jne 0x613bc5
jmp case.0x613ac8.5
mov ebx, eax
mov edi, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
dec esi
test esi, esi
jl case.0x613ac8.5
inc esi
mov al, byte [ebx + 2]
shl eax, 0x10
mov ax, word [ebx]
push eax
lea eax, [ebp - 0x10]
call fcn.006326a4
mov ax, word [ebp - 0x10]
mov word [edi], ax
mov al, byte [ebp - 0xe]
mov byte [edi + 2], al
add ebx, 3
add edi, 3
dec esi
jne 0x613bfa
jmp case.0x613ac8.5
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov esi, dword [ebp + 0xc]
dec esi
test esi, esi
jl case.0x613ac8.5
inc esi
mov ecx, ebx
xor eax, eax
mov al, byte [ecx + 2]
mov edx, dword [0x98aa24]
imul dword [edx]
xor edx, edx
mov dl, byte [ecx + 1]
mov edi, dword [0x98a82c]
imul edx, dword [edi]
add eax, edx
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [0x989cf8]
imul edx, dword [ecx]
add eax, edx
mov ecx, 0x64
cdq
idiv ecx
mov edx, dword [ebp - 0xc]
mov byte [edx], al
add ebx, 3
inc dword [ebp - 0xc]
dec esi
jne 0x613c3c
jmp case.0x613ac8.5
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + ecx*2]
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00408a24
jmp case.0x613ac8.5
mov dl, byte [ebp + 0x10]
dec dl
jne case.0x613ac8.5
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
dec esi
test esi, esi
jl case.0x613ac8.5
inc esi
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.006139d0
mov ax, word [ebp - 0x10]
mov word [ebx], ax
mov al, byte [ebp - 0xe]
mov byte [ebx + 2], al
add ebx, 3
add dword [ebp - 8], 4
dec esi
jne 0x613cb8
jmp case.0x613ac8.5
mov dl, byte [ebp + 0x10]
dec dl
jne case.0x613ac8.5
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
dec esi
test esi, esi
jl case.0x613ac8.5
inc esi
mov eax, dword [ebp - 8]
mov dl, 0xff
sub dl, byte [eax]
mov byte [eax], dl
mov dl, 0xff
sub dl, byte [eax + 1]
mov byte [eax + 1], dl
mov dl, 0xff
sub dl, byte [eax + 2]
mov byte [eax + 2], dl
mov dl, 0xff
sub dl, byte [eax + 3]
mov byte [eax + 3], dl
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.006139d0
mov ax, word [ebp - 0x10]
mov word [ebx], ax
mov al, byte [ebp - 0xe]
mov byte [ebx + 2], al
add ebx, 3
add dword [ebp - 8], 4
add dword [ebp - 8], 2
dec esi
jne 0x613cff
jmp case.0x613ac8.5
mov dl, byte [ebp + 0x10]
dec dl
jne case.0x613ac8.5
mov edi, eax
mov ebx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
dec esi
test esi, esi
jl case.0x613ac8.5
inc esi
mov al, byte [edi + 2]
shl eax, 0x10
mov ax, word [edi]
push eax
lea eax, [ebp - 0x10]
call fcn.00632a5c
mov ax, word [ebp - 0x10]
mov word [ebx], ax
mov al, byte [ebp - 0xe]
mov byte [ebx + 2], al
add edi, 3
add ebx, 3
dec esi
jne 0x613d5f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc