Function at 0x50f140
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa3e2
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x128], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x124], eax
mov word [edi], cx
cmp dword [eax + 0x14], 8
mov esi, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x128], 1
mov dword [ebp - 0x118], eax
jb 0x50f1c5
mov esi, dword [eax]
mov dword [ebp - 0x118], esi
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x11c], eax
test eax, eax
je 0x50f23f
push 0x100
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0056aed0
add esp, 0xc
mov ecx, str.__t_r_n_
mov edx, 0x100
movzx eax, word [ecx]
cmp ax, dx
jae 0x50f262
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x114], 1
cmp ecx, 0x5ed424
jne 0x50f1f2
mov eax, dword [ebp - 0x11c]
mov edi, esi
lea ecx, [esi + eax*2]
cmp esi, ecx
jae 0x50f239
nop
movzx eax, word [edi]
cmp ax, dx
jae 0x50f25c
cmp byte [ebp + eax - 0x114], 0
je 0x50f25c
add edi, 2
cmp edi, ecx
jb 0x50f220
mov edi, dword [ebp - 0x120]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret
sub edi, esi
sar edi, 1
jmp 0x50f2b1
mov eax, dword [ebp - 0x11c]
mov edi, dword [ebp - 0x118]
lea esi, [esi + eax*2]
cmp edi, esi
jae 0x50f2ae
nop word [eax + eax]
movzx edx, word [edi]
mov ecx, 6
mov eax, str.__t_r_n_
nop dword [eax]
cmp word [eax], dx
je 0x50f2a7
add eax, 2
sub ecx, 1
jne 0x50f290
sub edi, dword [ebp - 0x118]
sar edi, 1
jmp 0x50f2b1
add edi, 2
cmp edi, esi
jb 0x50f280
or edi, 0xffffffff
cmp edi, 0xffffffff
je 0x50f239
mov eax, dword [ebp - 0x124]
mov esi, eax
mov dword [ebp - 0x118], eax
cmp dword [eax + 0x14], 8
jb 0x50f2d2
mov esi, dword [eax]
mov dword [ebp - 0x118], esi
push 0x100
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], 0xffffffff
push 0
push eax
call fcn.0056aed0
add esp, 0xc
mov ecx, str.__t_r_n_
mov edx, 0x100
nop dword [eax]
movzx eax, word [ecx]
cmp ax, dx
jae 0x50f351
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x114], 1
cmp ecx, 0x5ed424
jne 0x50f300
mov eax, dword [ebp - 0x11c]
or ecx, 0xffffffff
dec eax
cmp eax, ecx
cmovb ecx, eax
lea ecx, [esi + ecx*2]
movzx eax, word [ecx]
cmp ax, dx
jae 0x50f34b
cmp byte [ebp + eax - 0x114], 0
je 0x50f34b
cmp ecx, esi
je 0x50f3a4
sub ecx, 2
jmp 0x50f330
sub ecx, esi
sar ecx, 1
jmp 0x50f3a7
mov eax, dword [ebp - 0x11c]
or ecx, 0xffffffff
dec eax
mov dword [ebp - 0x14], 0xffffffff
cmp eax, ecx
cmovb ecx, eax
lea ecx, [esi + ecx*2]
nop word [eax + eax]
movzx esi, word [ecx]
mov edx, 6
mov eax, str.__t_r_n_
nop dword [eax]
cmp word [eax], si
je 0x50f397
add eax, 2
sub edx, 1
jne 0x50f380
sub ecx, dword [ebp - 0x118]
sar ecx, 1
jmp 0x50f3a7
cmp ecx, dword [ebp - 0x118]
je 0x50f3a4
sub ecx, 2
jmp 0x50f370
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 7
mov word [ebp - 0x140], ax
cmp dword [ebp - 0x11c], edi
jb 0x50f48b
mov edx, dword [ebp - 0x124]
sub ecx, edi
lfence
inc ecx
mov eax, dword [edx + 0x10]
sub eax, edi
cmp eax, ecx
cmovb ecx, eax
cmp dword [edx + 0x14], 8
jb 0x50f3ee
mov edx, dword [edx]
push ecx
lea eax, [edx + edi*2]
push eax
lea ecx, [ebp - 0x140]
call fcn.00409db0
mov edi, dword [ebp - 0x120]
lea eax, [ebp - 0x140]
cmp edi, eax
je 0x50f45d
mov eax, dword [edi + 0x14]
mov dword [ebp - 4], 1
cmp eax, 8
jb 0x50f428
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.0040a5e0
movups xmm0, xmmword [ebp - 0x140]
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov ecx, 7
movups xmmword [edi], xmm0
mov word [ebp - 0x140], ax
movq xmm0, qword [ebp - 0x130]
movq qword [edi + 0x10], xmm0
jmp 0x50f463
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 4], 2
cmp ecx, 8
jb 0x50f23f
inc ecx
push ecx
push dword [ebp - 0x140]
lea ecx, [ebp - 0x140]
call fcn.0040a5e0
jmp 0x50f23f
call fcn.0047f6b0
int3