Function at 0x47bfe0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0
js 0x47c580
mov eax, dword [ebp - 0x2c]
movzx ecx, word [eax + 2]
xor eax, eax
mov dword [ebp - 0x28], ecx
test ecx, ecx
sete al
mov edx, 0x8a
mov ecx, 7
cmove ecx, edx
mov edx, 4
sub edx, eax
mov dword [ebp - 0x14], edx
xor edi, edi
dec edi
xor edx, edx
xor ebx, ebx
jmp 0x47c0d0
mov ebx, dword [ebp - 0x20]
movzx edx, word [edi + ebx*4 + 0xace]
mov esi, 0x10
sub esi, edx
movzx ebx, word [edi + ebx*4 + 0xacc]
mov dword [ebp - 0x18], ebx
shl ebx, cl
or bx, word [edi + 0x1708]
mov word [edi + 0x1708], bx
cmp ecx, esi
jg 0x47c075
add ecx, edx
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x170c], ecx
dec eax
je 0x47c260
jmp 0x47c030
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi + 8]
mov dword [ebp - 0x14], ecx
mov esi, dword [edi + 0x14]
lea ecx, [esi + 1]
mov dword [edi + 0x14], ecx
mov ecx, dword [ebp - 0x14]
mov byte [ecx + esi], bl
mov cl, byte [edi + 0x1709]
mov byte [ebp - 0x14], cl
mov esi, dword [edi + 8]
mov ebx, dword [edi + 0x14]
lea ecx, [ebx + 1]
mov dword [edi + 0x14], ecx
mov cl, byte [ebp - 0x14]
mov byte [esi + ebx], cl
mov ebx, dword [edi + 0x170c]
mov cl, 0x10
sub cl, bl
mov esi, dword [ebp - 0x18]
shr esi, cl
mov word [edi + 0x1708], si
lea ecx, [edx + ebx]
add ecx, 0xfffffff0
jmp 0x47c066
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], edx
movzx edx, word [eax + edx*4 + 6]
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 1]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], esi
cmp esi, edx
sete dl
cmp eax, ecx
jge 0x47c3a9
test dl, dl
je 0x47c110
mov edx, dword [ebp - 0x24]
lea esi, [edx + 1]
mov ebx, eax
cmp edx, dword [ebp + 8]
mov edx, esi
jne 0x47c0d0
jmp 0x47c580
cmp eax, dword [ebp - 0x14]
jge 0x47c123
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi + 0x170c]
jmp 0x47c030
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x47c19a
mov esi, dword [ebp - 0x18]
cmp esi, 9
jg 0x47c29c
mov edx, dword [ebp - 0x10]
movzx ebx, word [edx + 0xb12]
mov ecx, dword [edx + 0x170c]
mov edi, 0x10
movzx eax, word [edx + 0xb10]
mov dword [ebp - 0x1c], eax
shl eax, cl
mov dword [ebp - 0x14], ebx
sub edi, ebx
or ax, word [edx + 0x1708]
cmp ecx, edi
jg 0x47c3c5
mov ebx, ecx
add ebx, dword [ebp - 0x14]
mov dword [edx + 0x170c], ebx
add esi, 0xfffe
cmp ebx, 0xe
jge 0x47c510
mov ecx, ebx
shl esi, cl
or eax, esi
mov word [edx + 0x1708], ax
add ebx, 3
jmp 0x47c24f
cmp ecx, edi
je 0x47c588
mov edi, dword [ebp - 0x10]
movzx esi, word [edi + ecx*4 + 0xace]
mov eax, dword [edi + 0x170c]
mov edx, 0x10
sub edx, esi
movzx ebx, word [edi + ecx*4 + 0xacc]
mov dword [ebp - 0x14], ebx
mov ecx, eax
shl ebx, cl
or bx, word [edi + 0x1708]
mov word [edi + 0x1708], bx
cmp eax, edx
jg 0x47c40d
mov ecx, eax
add eax, esi
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov dword [edi + 0x170c], eax
movzx ebx, word [edi + 0xb0e]
mov edx, 0x10
movzx eax, word [edi + 0xb0c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
shl eax, cl
mov dword [ebp - 0x14], ebx
sub edx, ebx
or ax, word [edi + 0x1708]
cmp ecx, edx
jg 0x47c35e
mov ebx, dword [ebp - 0x18]
add ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x170c], ebx
add esi, 0xfffd
cmp ebx, 0xf
jge 0x47c455
mov ecx, ebx
shl esi, cl
or eax, esi
mov word [edx + 0x1708], ax
add ebx, 2
mov dword [edx + 0x170c], ebx
nop word cs:[eax + eax]
xor eax, eax
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x47c285
xor ecx, ecx
mov edi, dword [ebp - 0x20]
cmp edi, edx
sete cl
mov edx, 4
sub edx, ecx
mov dword [ebp - 0x14], edx
xor ecx, 7
jmp 0x47c0fb
mov ecx, 0x8a
mov dword [ebp - 0x14], 3
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
jmp 0x47c0fe
mov edi, dword [ebp - 0x10]
movzx ebx, word [edi + 0xb16]
mov ecx, dword [edi + 0x170c]
mov edx, 0x10
movzx eax, word [edi + 0xb14]
mov dword [ebp - 0x1c], eax
shl eax, cl
mov dword [ebp - 0x14], ebx
sub edx, ebx
or ax, word [edi + 0x1708]
cmp ecx, edx
jg 0x47c4c5
mov ebx, ecx
add ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x170c], ebx
add esi, 0xfff6
cmp ebx, 0xa
jl 0x47c3b0
movzx edi, si
mov ecx, ebx
shl esi, cl
or eax, esi
mov ecx, dword [ebp - 0x10]
mov word [ecx + 0x1708], ax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
lea esi, [edx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x1709]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
lea esi, [edx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax + 0x170c]
mov cl, 0x10
sub cl, bl
shr edi, cl
mov eax, dword [ebp - 0x10]
mov word [eax + 0x1708], di
mov edx, dword [ebp - 0x10]
add ebx, 0xfffffff7
jmp 0x47c24f
mov edx, dword [ebp - 0x10]
mov word [edx + 0x1708], ax
mov ebx, dword [edx + 8]
mov edi, dword [edx + 0x14]
lea ecx, [edi + 1]
mov dword [edx + 0x14], ecx
mov byte [ebx + edi], al
mov bl, byte [edx + 0x1709]
mov ecx, dword [edx + 8]
mov edi, dword [edx + 0x14]
lea eax, [edi + 1]
mov dword [edx + 0x14], eax
mov byte [ecx + edi], bl
mov eax, dword [edx + 0x170c]
mov cl, 0x10
sub cl, al
mov edx, dword [ebp - 0x14]
lea ebx, [edx + eax]
add ebx, 0xfffffff0
mov eax, dword [ebp - 0x1c]
shr eax, cl
jmp 0x47c227
xor edx, edx
jmp 0x47c0f7
mov ecx, ebx
shl esi, cl
or eax, esi
mov word [edx + 0x1708], ax
add ebx, 7
jmp 0x47c24f
mov word [edx + 0x1708], ax
mov ebx, dword [edx + 8]
mov edi, dword [edx + 0x14]
lea ecx, [edi + 1]
mov dword [edx + 0x14], ecx
mov byte [ebx + edi], al
mov bl, byte [edx + 0x1709]
mov ecx, dword [edx + 8]
mov edi, dword [edx + 0x14]
lea eax, [edi + 1]
mov dword [edx + 0x14], eax
mov byte [ecx + edi], bl
mov eax, dword [edx + 0x170c]
mov cl, 0x10
sub cl, al
mov edi, dword [ebp - 0x14]
lea ebx, [edi + eax]
add ebx, 0xfffffff0
mov eax, dword [ebp - 0x1c]
shr eax, cl
jmp 0x47c170
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 8]
mov edx, dword [edi + 0x14]
lea ecx, [edx + 1]
mov dword [edi + 0x14], ecx
mov byte [eax + edx], bl
mov al, byte [edi + 0x1709]
mov edx, dword [edi + 8]
mov ebx, dword [edi + 0x14]
lea ecx, [ebx + 1]
mov dword [edi + 0x14], ecx
mov byte [edx + ebx], al
mov ebx, dword [edi + 0x170c]
mov cl, 0x10
sub cl, bl
mov eax, dword [ebp - 0x14]
shr eax, cl
mov word [edi + 0x1708], ax
lea eax, [esi + ebx]
add eax, 0xfffffff0
jmp 0x47c1e6
movzx edi, si
mov ecx, ebx
shl esi, cl
or eax, esi
mov ecx, dword [ebp - 0x10]
mov word [ecx + 0x1708], ax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
lea esi, [edx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x1709]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
lea esi, [edx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax + 0x170c]
mov cl, 0x10
sub cl, bl
shr edi, cl
mov eax, dword [ebp - 0x10]
mov word [eax + 0x1708], di
mov edx, dword [ebp - 0x10]
add ebx, 0xfffffff2
jmp 0x47c24f
mov edx, dword [ebp - 0x10]
mov word [edx + 0x1708], ax
mov ebx, dword [edx + 8]
mov edi, dword [edx + 0x14]
lea ecx, [edi + 1]
mov dword [edx + 0x14], ecx
mov byte [ebx + edi], al
mov bl, byte [edx + 0x1709]
mov ecx, dword [edx + 8]
mov edi, dword [edx + 0x14]
lea eax, [edi + 1]
mov dword [edx + 0x14], eax
mov byte [ecx + edi], bl
mov eax, dword [edx + 0x170c]
mov cl, 0x10
sub cl, al
mov edi, dword [ebp - 0x14]
lea ebx, [edi + eax]
add ebx, 0xfffffff0
mov eax, dword [ebp - 0x1c]
shr eax, cl
jmp 0x47c2d9
movzx edi, si
mov ecx, ebx
shl esi, cl
or eax, esi
mov ecx, dword [ebp - 0x10]
mov word [ecx + 0x1708], ax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
lea esi, [edx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x1709]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
lea esi, [edx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax + 0x170c]
mov cl, 0x10
sub cl, bl
shr edi, cl
mov eax, dword [ebp - 0x10]
mov word [eax + 0x1708], di
mov edx, dword [ebp - 0x10]
add ebx, 0xfffffff3
jmp 0x47c24f
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi + 0x170c]
mov dword [ebp - 0x18], ecx
mov esi, eax
jmp 0x47c1f2