Function at 0x7d8560
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
cmp dword [esp + 0x2c], 0
js 0x7d8a60
mov ebp, ecx
movzx eax, word [edx + 2]
mov esi, edx
xor edx, edx
mov dword [esp + 0x10], eax
test eax, eax
mov eax, 0x8a
mov ecx, 7
cmove ecx, eax
mov dword [esp + 4], ecx
setne dl
add edx, 3
mov dword [esp], edx
mov edx, esi
mov edi, 0xffffffff
xor eax, eax
xor ecx, ecx
mov dword [esp + 0xc], esi
jmp 0x7d85c1
mov edx, dword [esp + 0xc]
mov ebx, eax
inc eax
cmp ebx, dword [esp + 0x2c]
je 0x7d8a60
mov ebx, dword [esp + 0x10]
movzx edx, word [edx + eax*4 + 6]
mov dword [esp + 8], ecx
lea esi, [ecx + 1]
mov ecx, esi
cmp esi, dword [esp + 4]
mov dword [esp + 0x10], edx
jge 0x7d85e1
cmp ebx, edx
je 0x7d85b0
cmp ecx, dword [esp]
mov dword [esp], ebx
mov dword [esp + 0x14], eax
jl 0x7d86df
test ebx, ebx
je 0x7d8717
cmp ebx, edi
je 0x7d880f
movzx edx, word [ebp + ebx*4 + 0xa7e]
mov ecx, dword [ebp + 0x16bc]
mov eax, 0x10
movzx edi, word [ebp + ebx*4 + 0xa7c]
mov ebx, edi
shl ebx, cl
sub eax, edx
or bx, word [ebp + 0x16b8]
cmp ecx, eax
jle 0x7d87f9
mov word [ebp + 0x16b8], bx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
lea esi, [ecx + 1]
mov dword [ebp + 0x14], esi
mov byte [eax + ecx], bl
movzx eax, byte [ebp + 0x16b9]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
lea ebx, [esi + 1]
mov dword [ebp + 0x14], ebx
mov byte [ecx + esi], al
mov eax, dword [ebp + 0x16bc]
mov cl, 0x10
sub cl, al
shr edi, cl
lea ecx, [edx + eax]
add ecx, 0xfffffff0
mov ebx, edi
jmp 0x7d87fb
mov word [ebp + 0x16b8], ax
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov ebx, ebp
lea ebp, [esi + 1]
mov dword [ebx + 0x14], ebp
mov byte [ecx + esi], al
movzx eax, byte [ebx + 0x16b9]
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 0x14]
lea ebp, [esi + 1]
mov dword [ebx + 0x14], ebp
mov ebp, ebx
mov ebx, dword [esp]
mov byte [ecx + esi], al
mov eax, dword [ebp + 0x16bc]
mov cl, 0x10
sub cl, al
shr edi, cl
lea ecx, [edx + eax]
add ecx, 0xfffffff0
mov eax, edi
mov word [ebp + 0x16b8], ax
mov dword [ebp + 0x16bc], ecx
mov ecx, dword [esp + 4]
dec ecx
je 0x7d8a16
mov dword [esp + 4], ecx
movzx edx, word [ebp + ebx*4 + 0xa7e]
mov ecx, dword [ebp + 0x16bc]
mov esi, 0x10
movzx edi, word [ebp + ebx*4 + 0xa7c]
mov eax, edi
shl eax, cl
sub esi, edx
or ax, word [ebp + 0x16b8]
cmp ecx, esi
jg 0x7d8680
add ecx, edx
jmp 0x7d86c7
mov ecx, dword [ebp + 0x16bc]
movzx ebx, word [ebp + 0x16b8]
cmp dword [esp + 8], 9
jg 0x7d8792
movzx edx, word [ebp + 0xac2]
movzx edi, word [ebp + 0xac0]
mov eax, edi
shl eax, cl
or ebx, eax
mov eax, 0x10
sub eax, edx
cmp ecx, eax
jle 0x7d8909
mov word [ebp + 0x16b8], bx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
lea esi, [ecx + 1]
mov dword [ebp + 0x14], esi
mov byte [eax + ecx], bl
movzx eax, byte [ebp + 0x16b9]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
lea ebx, [esi + 1]
mov dword [ebp + 0x14], ebx
mov byte [ecx + esi], al
mov eax, dword [ebp + 0x16bc]
mov cl, 0x10
sub cl, al
shr edi, cl
add eax, edx
add eax, 0xfffffff0
mov ebx, edi
jmp 0x7d890d
movzx edx, word [ebp + 0xac6]
movzx edi, word [ebp + 0xac4]
mov eax, edi
shl eax, cl
or ebx, eax
mov eax, 0x10
sub eax, edx
cmp ecx, eax
jle 0x7d897b
mov word [ebp + 0x16b8], bx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
lea esi, [ecx + 1]
mov dword [ebp + 0x14], esi
mov byte [eax + ecx], bl
movzx eax, byte [ebp + 0x16b9]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
lea ebx, [esi + 1]
mov dword [ebp + 0x14], ebx
mov byte [ecx + esi], al
mov eax, dword [ebp + 0x16bc]
mov cl, 0x10
sub cl, al
shr edi, cl
add eax, edx
add eax, 0xfffffff0
mov ebx, edi
jmp 0x7d897f
add ecx, edx
mov word [ebp + 0x16b8], bx
mov dword [ebp + 0x16bc], ecx
mov ecx, dword [esp + 8]
mov ebx, dword [esp]
mov dword [esp + 4], ecx
movzx esi, word [ebp + 0xabe]
mov ecx, dword [ebp + 0x16bc]
mov eax, 0x10
movzx edi, word [ebp + 0xabc]
mov edx, edi
shl edx, cl
sub eax, esi
or dx, word [ebp + 0x16b8]
cmp ecx, eax
jle 0x7d8884
mov word [ebp + 0x16b8], dx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov dword [esp], esi
lea esi, [ecx + 1]
mov dword [ebp + 0x14], esi
mov byte [eax + ecx], dl
movzx eax, byte [ebp + 0x16b9]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
lea esi, [edx + 1]
mov dword [ebp + 0x14], esi
mov byte [ecx + edx], al
mov eax, dword [ebp + 0x16bc]
mov cl, 0x10
sub cl, al
shr edi, cl
mov ecx, dword [esp]
add eax, ecx
add eax, 0xfffffff0
mov edx, edi
jmp 0x7d8888
mov eax, ecx
add eax, esi
mov word [ebp + 0x16b8], dx
mov dword [ebp + 0x16bc], eax
mov edx, dword [esp + 4]
add edx, 0xfffd
cmp eax, 0xf
jl 0x7d88f4
movzx edi, dx
mov ecx, eax
shl edx, cl
or dx, word [ebp + 0x16b8]
mov word [ebp + 0x16b8], dx
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov eax, edx
lea edx, [ecx + 1]
mov dword [ebp + 0x14], edx
mov byte [esi + ecx], al
movzx eax, byte [ebp + 0x16b9]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
lea esi, [edx + 1]
mov dword [ebp + 0x14], esi
mov byte [ecx + edx], al
mov eax, dword [ebp + 0x16bc]
mov cl, 0x10
sub cl, al
shr edi, cl
add eax, 0xfffffff2
jmp 0x7d8a09
mov ecx, eax
shl edx, cl
or dx, word [ebp + 0x16b8]
add eax, 2
mov edi, edx
jmp 0x7d8a09
mov eax, ecx
add eax, edx
mov word [ebp + 0x16b8], bx
mov dword [ebp + 0x16bc], eax
mov ebx, dword [esp + 8]
add ebx, 0xfffe
cmp eax, 0xe
jl 0x7d89e6
movzx edi, bx
mov ecx, eax
shl ebx, cl
or bx, word [ebp + 0x16b8]
mov word [ebp + 0x16b8], bx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
lea edx, [ecx + 1]
mov dword [ebp + 0x14], edx
mov byte [eax + ecx], bl
movzx eax, byte [ebp + 0x16b9]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
lea esi, [edx + 1]
mov dword [ebp + 0x14], esi
mov byte [ecx + edx], al
mov eax, dword [ebp + 0x16bc]
mov cl, 0x10
sub cl, al
shr edi, cl
add eax, 0xfffffff3
jmp 0x7d8a06
mov eax, ecx
add eax, edx
mov word [ebp + 0x16b8], bx
mov dword [ebp + 0x16bc], eax
mov ebx, dword [esp + 8]
add ebx, 0xfff6
cmp eax, 0xa
jl 0x7d89f6
movzx edi, bx
mov ecx, eax
shl ebx, cl
or bx, word [ebp + 0x16b8]
mov word [ebp + 0x16b8], bx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
lea edx, [ecx + 1]
mov dword [ebp + 0x14], edx
mov byte [eax + ecx], bl
movzx eax, byte [ebp + 0x16b9]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
lea esi, [edx + 1]
mov dword [ebp + 0x14], esi
mov byte [ecx + edx], al
mov eax, dword [ebp + 0x16bc]
mov cl, 0x10
sub cl, al
shr edi, cl
add eax, 0xfffffff7
jmp 0x7d8a06
mov ecx, eax
shl ebx, cl
or bx, word [ebp + 0x16b8]
add eax, 3
jmp 0x7d8a04
mov ecx, eax
shl ebx, cl
or bx, word [ebp + 0x16b8]
add eax, 7
mov edi, ebx
mov ebx, dword [esp]
mov word [ebp + 0x16b8], di
mov dword [ebp + 0x16bc], eax
xor ecx, ecx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x7d8a3a
xor edx, edx
cmp ebx, eax
sete dl
mov eax, 4
sub eax, edx
mov dword [esp], eax
xor edx, 7
mov dword [esp + 4], edx
jmp 0x7d8a49
mov dword [esp + 4], 0x8a
mov dword [esp], 3
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov edi, ebx
mov ebx, eax
inc eax
cmp ebx, dword [esp + 0x2c]
jne 0x7d85c1
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret