Function at 0x463cf0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x1c
mov edx, dword [ecx + 0x1b0c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
imul eax, ebx
cmp byte [ecx + 0x20], 0x20
push edi
jne 0x463eea
cmp byte [ecx + 0x1b14], 0
lea eax, [edx + eax*4]
mov dl, byte [ecx + 0x22]
mov bl, byte [ecx + 0x2c]
mov dh, byte [ecx + 0x2b]
mov byte [ebp + 0xf], dl
mov dl, byte [ecx + 0x12]
mov byte [ebp - 1], dl
mov dl, byte [ecx + 0x2a]
mov byte [ebp - 2], bl
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov byte [ebp - 3], dl
mov byte [ebp - 4], dh
je 0x463dc8
movzx ecx, byte [ebp - 2]
mov eax, dword [ebp + 8]
movzx edi, dl
movzx esi, dh
xor edx, edx
cmp byte [ebp + 0xf], dl
mov dword [ebp + 8], ecx
sete dl
mov dword [ebp - 0xc], esi
xor ecx, ecx
cmp byte [ebp - 1], cl
sete cl
cmp ecx, edx
je 0x463d85
mov edx, 0x18
mov ecx, edx
sub ecx, edi
mov edi, ecx
mov ecx, edx
sub ecx, esi
sub edx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp + 8], edx
test ebx, ebx
je 0x46401a
mov esi, dword [ebp - 8]
dec ebx
lea esi, [esi + 4]
mov dword [ebp + 0x10], ebx
lea eax, [eax + 3]
mov ebx, dword [esi - 4]
mov ecx, edi
mov edx, ebx
shr edx, cl
mov ecx, dword [ebp - 0xc]
mov byte [eax - 3], dl
mov edx, ebx
shr edx, cl
mov ecx, dword [ebp + 8]
shr ebx, cl
mov byte [eax - 1], bl
mov ebx, dword [ebp + 0x10]
mov byte [eax - 2], dl
test ebx, ebx
jne 0x463d90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 8]
xor edx, edx
cmp byte [ebp + 0xf], dl
movzx esi, word [ecx + 0x26]
sete dl
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], edx
xor edx, edx
cmp byte [ebp - 1], dl
sete dl
mov dword [ebp - 8], edx
movzx edx, byte [ebp - 3]
mov dword [ebp + 8], edx
movzx edx, byte [ebp - 4]
mov dword [ebp + 0xc], edx
movzx edx, byte [ebp - 2]
mov dword [ebp - 0x10], edx
movzx edx, word [ecx + 0x24]
movzx ecx, word [ecx + 0x28]
mov dword [ebp + 0x10], edx
mov dword [ebp - 0x14], ecx
test ebx, ebx
je 0x46401a
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x18]
je 0x463e86
nop dword [eax + eax]
mov esi, dword [eax]
lea edi, [edi + 3]
mov ecx, dword [ebp + 8]
add eax, 4
mov dword [ebp - 8], eax
bswap esi
mov eax, esi
shr eax, cl
and eax, edx
mov ecx, dword [ebp + 0xc]
imul eax, eax, 0xff
xor edx, edx
div dword [ebp + 0x10]
xor edx, edx
mov byte [edi - 3], al
mov eax, esi
shr eax, cl
and eax, dword [ebp - 0xc]
imul eax, eax, 0xff
mov ecx, dword [ebp - 0x10]
shr esi, cl
and esi, dword [ebp - 0x14]
div dword [ebp - 0xc]
xor edx, edx
mov byte [edi - 2], al
imul eax, esi, 0xff
div dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
mov byte [edi - 1], al
mov eax, dword [ebp - 8]
sub ebx, 1
jne 0x463e20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [eax]
lea edi, [edi + 3]
mov ecx, dword [ebp + 8]
add eax, 4
mov dword [ebp - 8], eax
mov eax, esi
shr eax, cl
and eax, edx
mov ecx, dword [ebp + 0xc]
imul eax, eax, 0xff
xor edx, edx
div dword [ebp + 0x10]
xor edx, edx
mov byte [edi - 3], al
mov eax, esi
shr eax, cl
and eax, dword [ebp - 0xc]
imul eax, eax, 0xff
mov ecx, dword [ebp - 0x10]
shr esi, cl
and esi, dword [ebp - 0x14]
div dword [ebp - 0xc]
xor edx, edx
mov byte [edi - 2], al
imul eax, esi, 0xff
div dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
mov byte [edi - 1], al
mov eax, dword [ebp - 8]
sub ebx, 1
jne 0x463e86
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 8]
lea edx, [edx + eax*2]
xor eax, eax
cmp byte [ecx + 0x22], al
sete al
mov dword [ebp - 0x1c], eax
xor eax, eax
cmp byte [ecx + 0x12], al
sete al
mov dword [ebp - 0x18], eax
mov al, byte [ecx + 0x2a]
mov byte [ebp + 0x13], al
mov al, byte [ecx + 0x2b]
mov byte [ebp + 0xb], al
mov al, byte [ecx + 0x2c]
mov byte [ebp + 0xf], al
movzx eax, word [ecx + 0x24]
mov dword [ebp - 0x14], eax
movzx eax, word [ecx + 0x26]
mov dword [ebp - 0x10], eax
movzx eax, word [ecx + 0x28]
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x46401a
movzx eax, byte [ebp + 0xb]
movzx ecx, byte [ebp + 0x13]
mov dword [ebp + 8], eax
movzx eax, byte [ebp + 0xf]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], ecx
cmp eax, dword [ebp - 0x1c]
je 0x463fc0
movzx ecx, word [edx]
lea edi, [edi + 3]
mov ah, cl
add edx, 2
mov al, ch
mov dword [ebp + 0x10], edx
mov ecx, dword [ebp - 8]
xor edx, edx
movzx esi, ax
mov eax, esi
shr eax, cl
and eax, dword [ebp - 0x14]
imul eax, eax, 0xff
mov ecx, dword [ebp + 8]
div dword [ebp - 0x14]
xor edx, edx
mov byte [edi - 3], al
mov eax, esi
shr eax, cl
and eax, dword [ebp - 0x10]
imul eax, eax, 0xff
mov ecx, dword [ebp + 0xc]
shr esi, cl
and esi, dword [ebp - 0xc]
div dword [ebp - 0x10]
xor edx, edx
mov byte [edi - 2], al
imul eax, esi, 0xff
div dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
mov byte [edi - 1], al
sub ebx, 1
jne 0x463f52
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
movzx esi, word [edx]
lea edi, [edi + 3]
mov eax, esi
add edx, 2
shr eax, cl
and eax, dword [ebp - 0x14]
imul eax, eax, 0xff
mov dword [ebp + 0x10], edx
xor edx, edx
mov ecx, dword [ebp + 8]
div dword [ebp - 0x14]
xor edx, edx
mov byte [edi - 3], al
mov eax, esi
shr eax, cl
and eax, dword [ebp - 0x10]
imul eax, eax, 0xff
mov ecx, dword [ebp + 0xc]
shr esi, cl
and esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
div dword [ebp - 0x10]
xor edx, edx
mov byte [edi - 2], al
imul eax, esi, 0xff
div dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
mov byte [edi - 1], al
sub ebx, 1
jne 0x463fc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc