Function at 0x4d3fe0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x28], edx
cmp dword [ebp + 8], 0
js 0x4d40da
mov esi, ecx
mov eax, dword [ebp - 0x28]
movzx eax, word [eax + 2]
xor edx, edx
mov dword [ebp - 0x24], eax
test eax, eax
mov eax, 0x8a
mov ecx, 7
cmove ecx, eax
mov dword [ebp - 0x14], ecx
setne dl
add edx, 3
mov dword [ebp - 0x18], edx
xor edi, edi
dec edi
xor edx, edx
xor ebx, ebx
mov dword [ebp - 0x10], esi
jmp 0x4d417c
mov dword [ebp - 0x1c], eax
movzx edi, word [esi + 0xb0e]
mov eax, 0x10
movzx edx, word [esi + 0xb0c]
mov dword [ebp - 0x18], edx
mov ecx, ebx
shl edx, cl
mov dword [ebp - 0x14], edi
sub eax, edi
or dx, word [esi + 0x1708]
cmp ebx, eax
jg 0x4d4060
add ebx, dword [ebp - 0x14]
jmp 0x4d40b5
mov word [esi + 0x1708], dx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [eax + ecx], dl
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 esi, dword [ebp - 0x10]
mov byte [ecx + edx], al
mov eax, dword [esi + 0x170c]
mov cl, 0x10
sub cl, al
mov edx, dword [ebp - 0x14]
lea ebx, [edx + eax]
add ebx, 0xfffffff0
mov edx, dword [ebp - 0x18]
shr edx, cl
mov dword [esi + 0x170c], ebx
mov eax, dword [ebp - 0x1c]
add eax, 0xfffd
cmp ebx, 0xf
jge 0x4d40e2
mov ecx, ebx
shl eax, cl
or edx, eax
mov word [esi + 0x1708], dx
add ebx, 2
jmp 0x4d413e
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
movzx edi, ax
mov ecx, ebx
shl eax, cl
or edx, eax
mov word [esi + 0x1708], dx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [eax + ecx], dl
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 esi, dword [ebp - 0x10]
mov byte [ecx + edx], al
mov ebx, dword [esi + 0x170c]
mov cl, 0x10
sub cl, bl
shr edi, cl
mov word [esi + 0x1708], di
add ebx, 0xfffffff2
mov edx, dword [ebp - 0x20]
mov dword [esi + 0x170c], ebx
xor ebx, ebx
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4d41b3
xor ecx, ecx
cmp edx, eax
sete cl
mov eax, 4
sub eax, ecx
mov dword [ebp - 0x18], eax
xor ecx, 7
mov dword [ebp - 0x14], ecx
mov edi, edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
lea eax, [edx + 1]
cmp edx, ecx
mov edx, eax
je 0x4d40da
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
movzx eax, word [eax + edx*4 + 6]
mov edx, ebx
mov ebx, dword [ebp - 0x1c]
inc ebx
cmp ebx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
jge 0x4d419f
cmp edx, eax
je 0x4d4169
cmp ebx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
jge 0x4d4257
mov ecx, dword [esi + 0x170c]
jmp 0x4d421f
mov dword [ebp - 0x14], 0x8a
mov dword [ebp - 0x18], 3
jmp 0x4d4167
mov eax, dword [esi + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [esi + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x14]
mov byte [eax + ecx], bl
mov al, byte [esi + 0x1709]
mov byte [ebp - 0x14], al
mov ecx, dword [esi + 8]
mov ebx, dword [esi + 0x14]
lea eax, [ebx + 1]
mov dword [esi + 0x14], eax
mov al, byte [ebp - 0x14]
mov byte [ecx + ebx], al
mov eax, dword [esi + 0x170c]
mov cl, 0x10
sub cl, al
shr edx, cl
mov word [esi + 0x1708], dx
lea ecx, [edi + eax]
add ecx, 0xfffffff0
mov dword [esi + 0x170c], ecx
mov ebx, dword [ebp - 0x1c]
dec ebx
mov edx, dword [ebp - 0x20]
je 0x4d4147
mov dword [ebp - 0x1c], ebx
movzx edi, word [esi + edx*4 + 0xace]
mov eax, 0x10
sub eax, edi
movzx edx, word [esi + edx*4 + 0xacc]
mov ebx, edx
shl ebx, cl
or bx, word [esi + 0x1708]
mov word [esi + 0x1708], bx
cmp ecx, eax
jg 0x4d41c3
add ecx, edi
jmp 0x4d420c
mov eax, ebx
mov ebx, dword [esi + 0x170c]
test edx, edx
je 0x4d42f5
cmp edx, edi
je 0x4d402e
movzx ecx, word [esi + edx*4 + 0xace]
mov eax, esi
mov esi, 0x10
mov dword [ebp - 0x14], ecx
sub esi, ecx
movzx edi, word [eax + edx*4 + 0xacc]
mov edx, edi
mov ecx, ebx
shl edx, cl
or dx, word [eax + 0x1708]
mov word [eax + 0x1708], dx
cmp ebx, esi
jg 0x4d42a8
add ebx, dword [ebp - 0x14]
jmp 0x4d42e8
mov ebx, dword [eax + 8]
mov ecx, dword [eax + 0x14]
lea esi, [ecx + 1]
mov dword [eax + 0x14], esi
mov byte [ebx + ecx], dl
mov bl, byte [eax + 0x1709]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0x14]
lea esi, [edx + 1]
mov dword [eax + 0x14], esi
mov byte [ecx + edx], bl
mov edx, dword [eax + 0x170c]
mov cl, 0x10
sub cl, dl
shr edi, cl
mov word [eax + 0x1708], di
mov ecx, dword [ebp - 0x14]
lea ebx, [ecx + edx]
add ebx, 0xfffffff0
mov esi, eax
mov dword [eax + 0x170c], ebx
jmp 0x4d4031
movzx edx, word [esi + 0x1708]
cmp dword [ebp - 0x1c], 9
jle 0x4d4412
movzx edi, word [esi + 0xb16]
movzx eax, word [esi + 0xb14]
mov dword [ebp - 0x18], eax
mov ecx, ebx
shl eax, cl
or edx, eax
mov eax, 0x10
mov dword [ebp - 0x14], edi
sub eax, edi
cmp ebx, eax
jg 0x4d4330
add ebx, dword [ebp - 0x14]
jmp 0x4d4385
mov word [esi + 0x1708], dx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x10]
mov dl, byte [eax + 0x1709]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 0x14]
lea ebx, [esi + 1]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], ebx
mov byte [ecx + esi], dl
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0x170c]
mov cl, 0x10
sub cl, al
mov edx, dword [ebp - 0x14]
lea ebx, [edx + eax]
add ebx, 0xfffffff0
mov edx, dword [ebp - 0x18]
shr edx, cl
mov edi, edx
mov dword [esi + 0x170c], ebx
mov eax, dword [ebp - 0x1c]
add eax, 0xfff6
cmp ebx, 0xa
jge 0x4d43af
mov ecx, ebx
shl eax, cl
or edi, eax
mov word [esi + 0x1708], di
add ebx, 7
jmp 0x4d413e
movzx edx, ax
mov ecx, ebx
shl eax, cl
mov ebx, edi
or ebx, eax
mov word [esi + 0x1708], bx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x14], esi
mov byte [eax + ecx], bl
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x1709]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 0x14]
lea edi, [esi + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], edi
mov byte [ecx + esi], al
mov esi, dword [ebp - 0x10]
mov ebx, dword [esi + 0x170c]
mov cl, 0x10
sub cl, bl
shr edx, cl
mov word [esi + 0x1708], dx
add ebx, 0xfffffff7
jmp 0x4d413e
movzx edi, word [esi + 0xb12]
movzx eax, word [esi + 0xb10]
mov dword [ebp - 0x18], eax
mov ecx, ebx
shl eax, cl
or edx, eax
mov eax, 0x10
mov dword [ebp - 0x14], edi
sub eax, edi
cmp ebx, eax
jg 0x4d443c
add ebx, dword [ebp - 0x14]
jmp 0x4d4491
mov word [esi + 0x1708], dx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], esi
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x10]
mov dl, byte [eax + 0x1709]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 0x14]
lea ebx, [esi + 1]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], ebx
mov byte [ecx + esi], dl
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0x170c]
mov cl, 0x10
sub cl, al
mov edx, dword [ebp - 0x14]
lea ebx, [edx + eax]
add ebx, 0xfffffff0
mov edx, dword [ebp - 0x18]
shr edx, cl
mov edi, edx
mov dword [esi + 0x170c], ebx
mov eax, dword [ebp - 0x1c]
add eax, 0xfffe
cmp ebx, 0xe
jge 0x4d44bb
mov ecx, ebx
shl eax, cl
or edi, eax
mov word [esi + 0x1708], di
add ebx, 3
jmp 0x4d413e
movzx edx, ax
mov ecx, ebx
shl eax, cl
mov ebx, edi
or ebx, eax
mov word [esi + 0x1708], bx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea esi, [ecx + 1]
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x14], esi
mov byte [eax + ecx], bl
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 0x1709]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 0x14]
lea edi, [esi + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], edi
mov byte [ecx + esi], al
mov esi, dword [ebp - 0x10]
mov ebx, dword [esi + 0x170c]
mov cl, 0x10
sub cl, bl
shr edx, cl
mov word [esi + 0x1708], dx
add ebx, 0xfffffff3
jmp 0x4d413e