Function at 0x47afdc
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x47b016
mov edx, dword [ebp - 8]
cmp byte [edx], 0
jne 0x47b016
mov eax, dword [ebp - 8]
mov eax, dword [eax + 1]
cmp eax, 0x80
je 0x47b020
cmp eax, 0xc0
je 0x47b020
cmp eax, 0x100
je 0x47b020
mov eax, 0xfffffffe
jmp 0x47b2bf
test ebx, ebx
je 0x47b04d
mov al, byte [ebx]
cmp al, 1
je 0x47b032
cmp al, 2
je 0x47b032
cmp al, 3
jne 0x47b04d
mov edx, dword [ebx + 0x11]
cmp edx, 0x80
je 0x47b057
cmp edx, 0xc0
je 0x47b057
cmp edx, 0x100
je 0x47b057
mov eax, 0xfffffffb
jmp 0x47b2bf
mov eax, dword [ebp + 0xc]
cdq
idiv dword [ebx + 0x11]
mov dword [ebp - 0x10], eax
mov al, byte [ebx]
dec al
je 0x47b074
dec al
je 0x47b171
jmp 0x47b2b2
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x47b2b9
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebx + 0x11]
test eax, eax
jns 0x47b095
add eax, 0x1f
sar eax, 5
dec eax
test eax, eax
jl 0x47b0e7
inc eax
mov dword [ebp - 0x18], eax
xor edx, edx
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov esi, ecx
mov ecx, dword [ebx + 0x11]
test ecx, ecx
jns 0x47b0ba
add ecx, 7
sar ecx, 3
imul ecx, dword [ebp - 0xc]
mov edi, edx
shl edi, 2
add ecx, edi
add ecx, eax
mov edi, dword [ebp + 0x10]
mov cl, byte [edi + ecx]
and cl, 0xff
mov byte [esi], cl
inc eax
add esi, 8
cmp eax, 4
jne 0x47b0b0
inc edx
inc dword [ebp - 0x1c]
dec dword [ebp - 0x18]
jne 0x47b0a9
mov eax, dword [ebx + 0x11]
push eax
mov eax, dword [ebp - 8]
add eax, 0x4a
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 1]
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.00479c28
mov eax, dword [ebx + 0x11]
test eax, eax
jns 0x47b10d
add eax, 0x1f
sar eax, 5
dec eax
test eax, eax
jl 0x47b160
inc eax
mov dword [ebp - 0x18], eax
xor edx, edx
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x20], eax
xor eax, eax
mov ecx, dword [ebp - 0x20]
mov esi, ecx
mov ecx, dword [ebx + 0x11]
test ecx, ecx
jns 0x47b132
add ecx, 7
sar ecx, 3
imul ecx, dword [ebp - 0xc]
mov edi, edx
shl edi, 2
add ecx, edi
add ecx, eax
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx]
push ecx
mov cl, byte [esi]
pop edi
mov byte [edi], cl
inc eax
add esi, 8
cmp eax, 4
jne 0x47b128
inc edx
inc dword [ebp - 0x20]
dec dword [ebp - 0x18]
jne 0x47b121
inc dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x47b08b
jmp 0x47b2b9
mov eax, dword [ebx + 0x11]
test eax, eax
jns 0x47b17b
add eax, 0x1f
sar eax, 5
dec eax
test eax, eax
jl 0x47b1b8
inc eax
mov dword [ebp - 0x14], eax
xor edx, edx
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x24], eax
xor eax, eax
mov ecx, dword [ebp - 0x24]
mov esi, ecx
mov ecx, edx
shl ecx, 2
add ecx, eax
mov cl, byte [ebx + ecx + 1]
and cl, 0xff
mov byte [esi], cl
inc eax
add esi, 8
cmp eax, 4
jne 0x47b196
inc edx
inc dword [ebp - 0x24]
dec dword [ebp - 0x14]
jne 0x47b18f
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x47b2b9
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebx + 0x11]
test eax, eax
jns 0x47b1d9
add eax, 0x1f
sar eax, 5
dec eax
test eax, eax
jl 0x47b22b
inc eax
mov dword [ebp - 0x18], eax
xor edx, edx
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x28], eax
xor eax, eax
mov ecx, dword [ebp - 0x28]
mov esi, ecx
mov ecx, dword [ebx + 0x11]
test ecx, ecx
jns 0x47b1fe
add ecx, 7
sar ecx, 3
imul ecx, dword [ebp - 0xc]
mov edi, edx
shl edi, 2
add ecx, edi
add ecx, eax
mov edi, dword [ebp + 0x10]
mov cl, byte [edi + ecx]
and cl, 0xff
xor byte [esi], cl
inc eax
add esi, 8
cmp eax, 4
jne 0x47b1f4
inc edx
inc dword [ebp - 0x28]
dec dword [ebp - 0x18]
jne 0x47b1ed
mov eax, dword [ebx + 0x11]
push eax
mov eax, dword [ebp - 8]
add eax, 0x4a
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 1]
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.00479c28
mov eax, dword [ebx + 0x11]
test eax, eax
jns 0x47b251
add eax, 0x1f
sar eax, 5
dec eax
test eax, eax
jl 0x47b2a4
inc eax
mov dword [ebp - 0x18], eax
xor edx, edx
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov ecx, dword [ebp - 0x2c]
mov esi, ecx
mov ecx, dword [ebx + 0x11]
test ecx, ecx
jns 0x47b276
add ecx, 7
sar ecx, 3
imul ecx, dword [ebp - 0xc]
mov edi, edx
shl edi, 2
add ecx, edi
add ecx, eax
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx]
push ecx
mov cl, byte [esi]
pop edi
mov byte [edi], cl
inc eax
add esi, 8
cmp eax, 4
jne 0x47b26c
inc edx
inc dword [ebp - 0x2c]
dec dword [ebp - 0x18]
jne 0x47b265
inc dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x47b1cf
jmp 0x47b2b9
mov eax, 0xfffffffb
jmp 0x47b2bf
mov eax, dword [ebx + 0x11]
imul dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc