Function at 0x5da7f1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [esp + 0xc], edx
mov dword [esp], ecx
cmp dword [esp + 0x2c], 0
js 0x5dace3
mov eax, dword [esp + 0xc]
movzx ebp, word [eax + 2]
xor eax, eax
test bp, bp
sete al
mov esi, 0x8a
mov ecx, 7
cmove ecx, esi
mov edx, 4
sub edx, eax
xor edi, edi
dec edi
xor eax, eax
xor esi, esi
mov ebx, ebp
mov ebp, dword [esp + 0xc]
movzx ebp, word [ebp + eax*4 + 6]
mov dword [esp + 4], esi
inc esi
cmp esi, ecx
jge 0x5da851
cmp ebx, ebp
je 0x5dacd4
mov dword [esp + 0x10], eax
cmp esi, edx
mov dword [esp + 0x14], ebp
mov dword [esp + 8], ebx
jge 0x5da914
mov eax, dword [esp]
mov ecx, dword [eax + 0x16bc]
movzx edx, word [eax + ebx*4 + 0xa7e]
mov ebp, 0x10
sub ebp, edx
movzx edi, word [eax + ebx*4 + 0xa7c]
mov ebx, edi
shl ebx, cl
or bx, word [eax + 0x16b8]
mov word [eax + 0x16b8], bx
cmp ecx, ebp
jle 0x5da8fc
mov ecx, dword [eax + 8]
mov dword [esp + 4], ecx
mov ebp, dword [eax + 0x14]
lea eax, [ebp + 1]
mov ecx, dword [esp]
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 4]
mov byte [eax + ebp], bl
mov eax, dword [esp]
mov al, byte [eax + 0x16b9]
mov byte [esp + 4], al
mov ecx, dword [esp]
mov ecx, dword [ecx + 8]
mov ebx, dword [esp]
mov ebx, dword [ebx + 0x14]
lea ebp, [ebx + 1]
mov eax, dword [esp]
mov dword [eax + 0x14], ebp
mov al, byte [esp + 4]
mov byte [ecx + ebx], al
mov eax, dword [esp]
mov ebx, dword [eax + 0x16bc]
mov cl, 0x10
sub cl, bl
shr edi, cl
mov word [eax + 0x16b8], di
lea ecx, [edx + ebx]
add ecx, 0xfffffff0
jmp 0x5da8fe
add ecx, edx
mov dword [eax + 0x16bc], ecx
dec esi
mov ebx, dword [esp + 8]
jne 0x5da86e
jmp 0x5daca6
test ebx, ebx
mov eax, dword [esp]
je 0x5da932
cmp ebx, edi
jne 0x5da9b1
mov ecx, dword [eax + 0x16bc]
mov dword [esp + 4], esi
jmp 0x5daaa7
cmp dword [esp + 4], 9
jg 0x5daa29
movzx edx, word [eax + 0xac2]
mov ecx, dword [eax + 0x16bc]
mov esi, eax
mov eax, 0x10
movzx edi, word [esi + 0xac0]
mov ebx, edi
shl ebx, cl
sub eax, edx
or bx, word [esi + 0x16b8]
cmp ecx, eax
jle 0x5dab95
mov word [esi + 0x16b8], bx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea ebp, [ecx + 1]
mov dword [esi + 0x14], ebp
mov byte [eax + ecx], bl
mov al, byte [esi + 0x16b9]
mov ecx, dword [esi + 8]
mov ebx, dword [esi + 0x14]
lea ebp, [ebx + 1]
mov dword [esi + 0x14], ebp
mov byte [ecx + ebx], al
mov ebx, dword [esi + 0x16bc]
mov cl, 0x10
sub cl, bl
shr edi, cl
lea ecx, [edx + ebx]
add ecx, 0xfffffff0
mov ebx, edi
jmp 0x5dab97
movzx esi, word [eax + ebx*4 + 0xa7e]
mov ecx, dword [eax + 0x16bc]
mov edx, eax
mov eax, 0x10
sub eax, esi
movzx edi, word [edx + ebx*4 + 0xa7c]
mov ebx, edi
shl ebx, cl
or bx, word [edx + 0x16b8]
mov word [edx + 0x16b8], bx
cmp ecx, eax
jle 0x5daa9d
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0x14]
lea ebp, [ecx + 1]
mov dword [edx + 0x14], ebp
mov byte [eax + ecx], bl
mov al, byte [edx + 0x16b9]
mov ecx, dword [edx + 8]
mov ebx, dword [edx + 0x14]
lea ebp, [ebx + 1]
mov dword [edx + 0x14], ebp
mov byte [ecx + ebx], al
mov ebx, dword [edx + 0x16bc]
mov cl, 0x10
sub cl, bl
shr edi, cl
mov word [edx + 0x16b8], di
lea ecx, [esi + ebx]
add ecx, 0xfffffff0
jmp 0x5daa9f
movzx edx, word [eax + 0xac6]
mov ecx, dword [eax + 0x16bc]
mov esi, eax
mov eax, 0x10
movzx edi, word [esi + 0xac4]
mov ebx, edi
shl ebx, cl
sub eax, edx
or bx, word [esi + 0x16b8]
cmp ecx, eax
jle 0x5dac18
mov word [esi + 0x16b8], bx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea ebp, [ecx + 1]
mov dword [esi + 0x14], ebp
mov byte [eax + ecx], bl
mov al, byte [esi + 0x16b9]
mov ecx, dword [esi + 8]
mov ebx, dword [esi + 0x14]
lea ebp, [ebx + 1]
mov dword [esi + 0x14], ebp
mov byte [ecx + ebx], al
mov ebx, dword [esi + 0x16bc]
mov cl, 0x10
sub cl, bl
shr edi, cl
lea ecx, [edx + ebx]
add ecx, 0xfffffff0
mov ebx, edi
jmp 0x5dac1a
add ecx, esi
mov eax, edx
mov dword [edx + 0x16bc], ecx
movzx edx, word [eax + 0xabe]
mov esi, eax
mov eax, 0x10
movzx edi, word [esi + 0xabc]
mov ebx, edi
shl ebx, cl
sub eax, edx
or bx, word [esi + 0x16b8]
cmp ecx, eax
jle 0x5dab0e
mov word [esi + 0x16b8], bx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
lea ebp, [ecx + 1]
mov dword [esi + 0x14], ebp
mov byte [eax + ecx], bl
mov al, byte [esi + 0x16b9]
mov ecx, dword [esi + 8]
mov ebx, dword [esi + 0x14]
lea ebp, [ebx + 1]
mov dword [esi + 0x14], ebp
mov byte [ecx + ebx], al
mov ebx, dword [esi + 0x16bc]
mov cl, 0x10
sub cl, bl
shr edi, cl
lea ecx, [edx + ebx]
add ecx, 0xfffffff0
mov ebx, edi
jmp 0x5dab10
add ecx, edx
mov eax, dword [esp + 4]
add eax, 0xfffd
movzx edx, ax
mov eax, edx
shl eax, cl
mov dword [esi + 0x16bc], ecx
or ebx, eax
mov word [esi + 0x16b8], bx
cmp ecx, 0xf
jl 0x5dab8d
mov eax, dword [esp]
mov eax, dword [eax + 8]
mov ecx, dword [esp]
mov ecx, dword [ecx + 0x14]
lea esi, [ecx + 1]
mov edi, dword [esp]
mov dword [edi + 0x14], esi
mov byte [eax + ecx], bl
mov eax, dword [esp]
mov al, byte [eax + 0x16b9]
mov ecx, dword [esp]
mov ecx, dword [ecx + 8]
mov esi, dword [esp]
mov esi, dword [esi + 0x14]
lea edi, [esi + 1]
mov ebx, dword [esp]
mov dword [ebx + 0x14], edi
mov byte [ecx + esi], al
mov esi, dword [esp]
mov eax, dword [esi + 0x16bc]
mov cl, 0x10
sub cl, al
shr edx, cl
mov ecx, eax
mov word [esi + 0x16b8], dx
add ecx, 0xfffffff2
jmp 0x5dac9c
add ecx, 2
jmp 0x5dac9c
add ecx, edx
mov eax, dword [esp + 4]
add eax, 0xfffe
movzx edx, ax
mov eax, edx
shl eax, cl
mov dword [esi + 0x16bc], ecx
or ebx, eax
mov word [esi + 0x16b8], bx
cmp ecx, 0xe
jl 0x5dac94
mov eax, dword [esp]
mov eax, dword [eax + 8]
mov ecx, dword [esp]
mov ecx, dword [ecx + 0x14]
lea esi, [ecx + 1]
mov edi, dword [esp]
mov dword [edi + 0x14], esi
mov byte [eax + ecx], bl
mov eax, dword [esp]
mov al, byte [eax + 0x16b9]
mov ecx, dword [esp]
mov ecx, dword [ecx + 8]
mov esi, dword [esp]
mov esi, dword [esi + 0x14]
lea edi, [esi + 1]
mov ebx, dword [esp]
mov dword [ebx + 0x14], edi
mov byte [ecx + esi], al
mov esi, dword [esp]
mov eax, dword [esi + 0x16bc]
mov cl, 0x10
sub cl, al
shr edx, cl
mov ecx, eax
mov word [esi + 0x16b8], dx
add ecx, 0xfffffff3
jmp 0x5dac9c
add ecx, edx
mov eax, dword [esp + 4]
add eax, 0xfff6
movzx edx, ax
mov eax, edx
shl eax, cl
mov dword [esi + 0x16bc], ecx
or ebx, eax
mov word [esi + 0x16b8], bx
cmp ecx, 0xa
jl 0x5dac99
mov eax, dword [esp]
mov eax, dword [eax + 8]
mov ecx, dword [esp]
mov ecx, dword [ecx + 0x14]
lea esi, [ecx + 1]
mov edi, dword [esp]
mov dword [edi + 0x14], esi
mov byte [eax + ecx], bl
mov eax, dword [esp]
mov al, byte [eax + 0x16b9]
mov ecx, dword [esp]
mov ecx, dword [ecx + 8]
mov esi, dword [esp]
mov esi, dword [esi + 0x14]
lea edi, [esi + 1]
mov ebx, dword [esp]
mov dword [ebx + 0x14], edi
mov byte [ecx + esi], al
mov esi, dword [esp]
mov eax, dword [esi + 0x16bc]
mov cl, 0x10
sub cl, al
shr edx, cl
mov ecx, eax
mov word [esi + 0x16b8], dx
add ecx, 0xfffffff7
jmp 0x5dac9c
add ecx, 3
jmp 0x5dac9c
add ecx, 7
mov ebx, dword [esp + 8]
mov dword [esi + 0x16bc], ecx
xor esi, esi
mov ebp, dword [esp + 0x14]
test bp, bp
mov eax, dword [esp + 0x10]
je 0x5dacc8
xor ecx, ecx
cmp ebx, ebp
sete cl
mov edx, 4
sub edx, ecx
xor ecx, 7
jmp 0x5dacd2
mov ecx, 0x8a
mov edx, 3
mov edi, ebx
lea ebx, [eax + 1]
cmp eax, dword [esp + 0x2c]
mov eax, ebx
jne 0x5da835
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret