Function at 0xff8763
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x64
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov word [ebp - 0xa], 0
jmp 0xff878f
mov eax, dword [ebp - 0x34]
mov word [eax], 0
add dword [ebp - 0x34], 2
add word [ebp - 0xa], 1
cmp word [ebp - 0xa], 0x27
jle 0xff877e
mov word [ebp - 0xa], 0
jmp 0xff87bf
movsx eax, word [ebp - 0xa]
add eax, eax
add eax, dword [ebp + 0x20]
mov word [eax], 0xffff
movsx eax, word [ebp - 0xa]
add eax, eax
add eax, dword [ebp + 0x1c]
mov word [eax], 0xffff
add word [ebp - 0xa], 1
cmp word [ebp - 0xa], 3
jle 0xff879e
mov word [ebp - 0xc], 0
jmp 0xff8989
movsx eax, word [ebp - 0xc]
add eax, eax
add eax, dword [ebp + 8]
movzx eax, word [eax]
mov word [ebp - 0xa], ax
movsx eax, word [ebp - 0xa]
add eax, eax
add eax, dword [ebp + 0xc]
movzx eax, word [eax]
mov word [ebp - 0x3a], ax
movzx eax, word [ebp - 0xa]
sar ax, 2
mov word [ebp - 0x3c], ax
movzx eax, word [ebp - 0xa]
and eax, 3
mov word [ebp - 0x3e], ax
cmp word [ebp - 0x3a], 0
jle 0xff883f
movsx eax, word [ebp - 0xa]
add eax, eax
add eax, dword [ebp + 0x10]
movsx edx, word [ebp - 0xa]
add edx, edx
add edx, dword [ebp + 0x10]
movzx edx, word [edx]
add dx, 0x1fff
mov word [eax], dx
movsx eax, word [ebp - 0xc]
mov word [ebp + eax*2 - 0x54], 0x7fff
mov word [ebp - 0xe], 0
jmp 0xff886d
movsx eax, word [ebp - 0xa]
add eax, eax
add eax, dword [ebp + 0x10]
movsx edx, word [ebp - 0xa]
add edx, edx
add edx, dword [ebp + 0x10]
movzx edx, word [edx]
sub dx, 0x1fff
mov word [eax], dx
movsx eax, word [ebp - 0xc]
mov word [ebp + eax*2 - 0x54], 0x8000
mov word [ebp - 0xe], 1
movsx eax, word [ebp - 0x3e]
add eax, eax
add eax, dword [ebp + 0x20]
movzx eax, word [eax]
test ax, ax
jns 0xff88a3
movsx eax, word [ebp - 0x3e]
add eax, eax
add eax, dword [ebp + 0x20]
movzx edx, word [ebp - 0x3c]
mov word [eax], dx
movsx eax, word [ebp - 0x3e]
add eax, eax
add eax, dword [ebp + 0x1c]
movzx edx, word [ebp - 0xe]
mov word [eax], dx
jmp 0xff8984
movsx eax, word [ebp - 0x3e]
add eax, eax
add eax, dword [ebp + 0x1c]
movzx eax, word [eax]
xor ax, word [ebp - 0xe]
cwde
and eax, 1
test eax, eax
jne 0xff8922
movsx eax, word [ebp - 0x3e]
add eax, eax
add eax, dword [ebp + 0x20]
movzx eax, word [eax]
cmp ax, word [ebp - 0x3c]
jg 0xff88e5
movsx eax, word [ebp - 0x3e]
add eax, 4
add eax, eax
add eax, dword [ebp + 0x20]
movzx edx, word [ebp - 0x3c]
mov word [eax], dx
jmp 0xff8984
movsx eax, word [ebp - 0x3e]
add eax, 4
add eax, eax
add eax, dword [ebp + 0x20]
movsx edx, word [ebp - 0x3e]
add edx, edx
add edx, dword [ebp + 0x20]
movzx edx, word [edx]
mov word [eax], dx
movsx eax, word [ebp - 0x3e]
add eax, eax
add eax, dword [ebp + 0x20]
movzx edx, word [ebp - 0x3c]
mov word [eax], dx
movsx eax, word [ebp - 0x3e]
add eax, eax
add eax, dword [ebp + 0x1c]
movzx edx, word [ebp - 0xe]
mov word [eax], dx
jmp 0xff8984
movsx eax, word [ebp - 0x3e]
add eax, eax
add eax, dword [ebp + 0x20]
movzx eax, word [eax]
cmp ax, word [ebp - 0x3c]
jg 0xff8971
movsx eax, word [ebp - 0x3e]
add eax, 4
add eax, eax
add eax, dword [ebp + 0x20]
movsx edx, word [ebp - 0x3e]
add edx, edx
add edx, dword [ebp + 0x20]
movzx edx, word [edx]
mov word [eax], dx
movsx eax, word [ebp - 0x3e]
add eax, eax
add eax, dword [ebp + 0x20]
movzx edx, word [ebp - 0x3c]
mov word [eax], dx
movsx eax, word [ebp - 0x3e]
add eax, eax
add eax, dword [ebp + 0x1c]
movzx edx, word [ebp - 0xe]
mov word [eax], dx
jmp 0xff8984
movsx eax, word [ebp - 0x3e]
add eax, 4
add eax, eax
add eax, dword [ebp + 0x20]
movzx edx, word [ebp - 0x3c]
mov word [eax], dx
add word [ebp - 0xc], 1
cmp word [ebp - 0xc], 7
jle 0xff87d1
mov eax, dword [ebp - 0x38]
movzx eax, word [eax]
cwde
add eax, eax
neg eax
add eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
add dword [ebp - 0x38], 2
mov eax, dword [ebp - 0x38]
movzx eax, word [eax]
cwde
add eax, eax
neg eax
add eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
add dword [ebp - 0x38], 2
mov eax, dword [ebp - 0x38]
movzx eax, word [eax]
cwde
add eax, eax
neg eax
add eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
add dword [ebp - 0x38], 2
mov eax, dword [ebp - 0x38]
movzx eax, word [eax]
cwde
add eax, eax
neg eax
add eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
add dword [ebp - 0x38], 2
mov eax, dword [ebp - 0x38]
movzx eax, word [eax]
cwde
add eax, eax
neg eax
add eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
add dword [ebp - 0x38], 2
mov eax, dword [ebp - 0x38]
movzx eax, word [eax]
cwde
add eax, eax
neg eax
add eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
add dword [ebp - 0x38], 2
mov eax, dword [ebp - 0x38]
movzx eax, word [eax]
cwde
add eax, eax
neg eax
add eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
add dword [ebp - 0x38], 2
mov eax, dword [ebp - 0x38]
movzx eax, word [eax]
cwde
add eax, eax
neg eax
add eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov word [ebp - 0xa], 0
jmp 0xff8be7
mov dword [ebp - 0x44], 0
movzx eax, word [ebp - 0x54]
movsx edx, ax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
cwde
add dword [ebp - 0x14], 2
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.00ff86e0
mov dword [ebp - 0x44], eax
movzx eax, word [ebp - 0x52]
movsx edx, ax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cwde
add dword [ebp - 0x18], 2
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.00ff86e0
mov dword [ebp - 0x44], eax
movzx eax, word [ebp - 0x50]
movsx edx, ax
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
cwde
add dword [ebp - 0x1c], 2
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.00ff86e0
mov dword [ebp - 0x44], eax
movzx eax, word [ebp - 0x4e]
movsx edx, ax
mov eax, dword [ebp - 0x20]
movzx eax, word [eax]
cwde
add dword [ebp - 0x20], 2
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.00ff86e0
mov dword [ebp - 0x44], eax
movzx eax, word [ebp - 0x4c]
movsx edx, ax
mov eax, dword [ebp - 0x24]
movzx eax, word [eax]
cwde
add dword [ebp - 0x24], 2
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.00ff86e0
mov dword [ebp - 0x44], eax
movzx eax, word [ebp - 0x4a]
movsx edx, ax
mov eax, dword [ebp - 0x28]
movzx eax, word [eax]
cwde
add dword [ebp - 0x28], 2
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.00ff86e0
mov dword [ebp - 0x44], eax
movzx eax, word [ebp - 0x48]
movsx edx, ax
mov eax, dword [ebp - 0x2c]
movzx eax, word [eax]
cwde
add dword [ebp - 0x2c], 2
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.00ff86e0
mov dword [ebp - 0x44], eax
movzx eax, word [ebp - 0x46]
movsx edx, ax
mov eax, dword [ebp - 0x30]
movzx eax, word [eax]
cwde
add dword [ebp - 0x30], 2
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.00ff86e0
mov dword [ebp - 0x44], eax
movsx eax, word [ebp - 0xa]
add eax, eax
mov ebx, eax
add ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.00fe3a50
mov word [ebx], ax
add word [ebp - 0xa], 1
cmp word [ebp - 0xa], 0x27
jle 0xff8a43
add esp, 0x64
pop ebx
pop ebp
ret