Function at 0x13f7c90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], eax
xor edx, edx
push ebx
push esi
mov eax, dword [eax]
xor ebx, ebx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], edi
mov esi, dword [eax]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], ecx
test esi, esi
jle 0x13f7e98
jmp 0x13f7cd0
mov esi, dword [ebp + 8]
cmp ebx, dword [esi + 4]
jg 0x13f7e4f
mov edi, dword [ecx]
mov ecx, dword [ebp + 0xc]
cmp byte [edi], 0x98
jne 0x13f7e52
cmp dword [edi + 0x18], ecx
jne 0x13f7e52
mov ecx, dword [ebp - 0x24]
mov edx, edi
call fcn.013d0230
mov ecx, eax
test ecx, ecx
jne 0x13f7d09
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x2c]
cmp dword [esi], 0
mov eax, dword [esi + 4]
mov dword [ebp - 0x18], eax
je 0x13f7d55
cmp ebx, eax
jge 0x13f7d55
mov eax, dword [esi + 8]
lea edx, [ebx*4]
mov eax, dword [edx + eax]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x10]
mov edx, dword [ebp - 0xc]
cmp edx, dword [eax + 8]
lea edx, [ebx*4]
jne 0x13f7d41
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [esi + 0x28]
mov esi, dword [esi + 0x2c]
add esi, edx
movzx eax, byte [eax + ebx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
jmp 0x13f7d64
or eax, 0xffffffff
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], eax
mov esi, ecx
mov esi, dword [esi]
cdq
cmp dword [edi + 0x20], eax
jne 0x13f7e15
cmp dword [edi + 0x24], edx
jne 0x13f7e15
mov edi, dword [ecx]
mov dl, byte [edi]
test dl, dl
je 0x13f7da6
mov al, dl
sub edi, esi
movzx ecx, byte [esi]
mov dl, al
movzx eax, al
mov al, byte [eax + 0xdce5b0]
cmp al, byte [ecx + 0xdce5b0]
jne 0x13f7da6
mov al, byte [edi + esi + 1]
inc esi
mov dl, al
test al, al
jne 0x13f7d85
movzx eax, byte [esi]
movzx ecx, byte [eax + 0xdce5b0]
movzx eax, dl
movzx eax, byte [eax + 0xdce5b0]
sub eax, ecx
jne 0x13f7e0d
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ecx + 0xc]
xor eax, dword [ebp - 0x14]
cmp ebx, dword [ebp + 0x14]
jle 0x13f7ddd
mov edi, dword [ebp - 8]
cmp eax, edi
je 0x13f7de2
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, eax
mov dword [ebp - 8], edi
mov esi, dword [ebp - 4]
add ecx, 0x14
inc esi
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0xc], 0
mov dword [ebp - 4], esi
jge 0x13f7e26
push dword [ebp + 0xc]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
push esi
call fcn.013f7c00
add esp, 8
test eax, eax
je 0x13f7e33
jmp 0x13f7e23
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
jmp 0x13f7e1b
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp + 8]
cmp ebx, dword [ebp + 0x14]
jge 0x13f7e4b
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
inc ebx
cmp esi, dword [ebp - 0x1c]
jl 0x13f7cd0
mov edi, dword [ebp - 8]
mov ecx, dword [ebp + 0x18]
xor eax, eax
test edi, edi
setne al
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, eax
jne 0x13f7dd4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 4]
xor eax, eax
test edx, edx
mov edx, dword [ebp + 0x18]
setne al
mov dword [edx], eax
cmp edi, dword [ebp - 0x1c]
jge 0x13f7e3f
cmp byte [esi + 0x18], 0
je 0x13f7dd4
cmp ebx, dword [esi + 4]
jne 0x13f7dd4
mov edx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 0x10]
push edi
call fcn.013f7c00
add esp, 8
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
jmp 0x13f7e58