Function at 0x47acf8
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 dword [ebp - 4], edx
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x47ad32
mov edx, dword [ebp - 4]
cmp byte [edx], 0
jne 0x47ad32
mov eax, dword [ebp - 4]
mov eax, dword [eax + 1]
cmp eax, 0x80
je 0x47ad3c
cmp eax, 0xc0
je 0x47ad3c
cmp eax, 0x100
je 0x47ad3c
mov eax, 0xfffffffe
jmp 0x47afd3
test ebx, ebx
je 0x47ad69
mov al, byte [ebx]
cmp al, 1
je 0x47ad4e
cmp al, 2
je 0x47ad4e
cmp al, 3
jne 0x47ad69
mov edx, dword [ebx + 0x11]
cmp edx, 0x80
je 0x47ad73
cmp edx, 0xc0
je 0x47ad73
cmp edx, 0x100
je 0x47ad73
mov eax, 0xfffffffb
jmp 0x47afd3
mov eax, dword [ebp + 0xc]
cdq
idiv dword [ebx + 0x11]
mov dword [ebp - 0x10], eax
mov al, byte [ebx]
dec al
je 0x47ad90
dec al
je 0x47ae89
jmp 0x47afc6
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x47afcd
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebx + 0x11]
test eax, eax
jns 0x47adb1
add eax, 0x1f
sar eax, 5
dec eax
test eax, eax
jl 0x47ae03
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 0x47add6
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]
mov cl, byte [edi + ecx]
and cl, 0xff
mov byte [esi], cl
inc eax
add esi, 8
cmp eax, 4
jne 0x47adcc
inc edx
inc dword [ebp - 0x1c]
dec dword [ebp - 0x18]
jne 0x47adc5
mov eax, dword [ebp - 4]
add eax, 0x4a
push eax
mov ecx, dword [ebx + 0x11]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 1]
lea eax, [ebp - 0x4c]
call fcn.004797a0
mov eax, dword [ebx + 0x11]
test eax, eax
jns 0x47ae25
add eax, 0x1f
sar eax, 5
dec eax
test eax, eax
jl 0x47ae78
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 0x47ae4a
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 0x47ae40
inc edx
inc dword [ebp - 0x20]
dec dword [ebp - 0x18]
jne 0x47ae39
inc dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x47ada7
jmp 0x47afcd
mov eax, dword [ebx + 0x11]
test eax, eax
jns 0x47ae93
add eax, 0x1f
sar eax, 5
dec eax
test eax, eax
jl 0x47aed0
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 0x47aeae
inc edx
inc dword [ebp - 0x24]
dec dword [ebp - 0x14]
jne 0x47aea7
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x47afcd
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebx + 0x11]
test eax, eax
jns 0x47aef1
add eax, 0x1f
sar eax, 5
dec eax
test eax, eax
jl 0x47af43
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 0x47af16
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]
mov cl, byte [edi + ecx]
and cl, 0xff
xor byte [esi], cl
inc eax
add esi, 8
cmp eax, 4
jne 0x47af0c
inc edx
inc dword [ebp - 0x28]
dec dword [ebp - 0x18]
jne 0x47af05
mov eax, dword [ebp - 4]
add eax, 0x4a
push eax
mov ecx, dword [ebx + 0x11]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 1]
lea eax, [ebp - 0x4c]
call fcn.004797a0
mov eax, dword [ebx + 0x11]
test eax, eax
jns 0x47af65
add eax, 0x1f
sar eax, 5
dec eax
test eax, eax
jl 0x47afb8
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 0x47af8a
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 0x47af80
inc edx
inc dword [ebp - 0x2c]
dec dword [ebp - 0x18]
jne 0x47af79
inc dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x47aee7
jmp 0x47afcd
mov eax, 0xfffffffb
jmp 0x47afd3
mov eax, dword [ebx + 0x11]
imul dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8