Function at 0x100967b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
push esi
push edi
lea edi, [ebp - 0x13c]
mov ecx, 0x4f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x1019a984]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x74], 0
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
movzx ecx, byte [eax]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x68]
add edx, 1
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
movzx ecx, byte [eax]
shl ecx, 8
or ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x68]
add edx, 1
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
movzx ecx, byte [eax]
shl ecx, 0x10
or ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x68]
add edx, 1
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
movzx ecx, byte [eax]
shl ecx, 0x18
or ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x68]
add edx, 1
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
movzx ecx, byte [eax]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x68]
add edx, 1
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
movzx ecx, byte [eax]
shl ecx, 8
or ecx, dword [ebp - 0x18]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x68]
add edx, 1
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
movzx ecx, byte [eax]
shl ecx, 0x10
or ecx, dword [ebp - 0x18]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x68]
add edx, 1
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
movzx ecx, byte [eax]
shl ecx, 0x18
or ecx, dword [ebp - 0x18]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x68]
add edx, 1
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0xc]
and eax, 0xff
mov ecx, dword [ebp - 0x4c]
mov byte [ecx], al
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0xc]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x4c]
mov byte [ecx], al
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0xc]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [ebp - 0x4c]
mov byte [ecx], al
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0xc]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x4c]
mov byte [ecx], al
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x18]
and eax, 0xff
mov ecx, dword [ebp - 0x4c]
mov byte [ecx], al
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x18]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x4c]
mov byte [ecx], al
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x18]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [ebp - 0x4c]
mov byte [ecx], al
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x18]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x4c]
mov byte [ecx], al
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x30]
sub ecx, 1
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x13c], 0
je 0x10096ad1
cmp dword [ebp - 0x24], 0
jne 0x10096a99
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x5c]
push eax
call fcn.1008cf80
add esp, 0x10
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0xc]
and eax, 0xff
mov ecx, dword [ebp - 0x4c]
mov byte [ecx], al
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0xc]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x4c]
mov byte [ecx], al
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0xc]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [ebp - 0x4c]
mov byte [ecx], al
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0xc]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x4c]
mov byte [ecx], al
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x18]
and eax, 0xff
mov ecx, dword [ebp - 0x4c]
mov byte [ecx], al
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x18]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x4c]
mov byte [ecx], al
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x18]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [ebp - 0x4c]
mov byte [ecx], al
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x18]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x4c]
mov byte [ecx], al
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x74]
add eax, 1
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
mov edx, dword [ebp - 0x24]
movzx eax, byte [ebp + edx - 0x40]
xor ecx, eax
mov edx, dword [ebp + 0xc]
mov byte [edx], cl
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov eax, dword [ebp - 0x24]
add eax, 1
and eax, 7
mov dword [ebp - 0x24], eax
jmp 0x1009697b
cmp dword [ebp - 0x74], 0
je 0x10096ba3
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xc]
and eax, 0xff
mov ecx, dword [ebp - 0x68]
mov byte [ecx], al
mov edx, dword [ebp - 0x68]
add edx, 1
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0xc]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x68]
mov byte [ecx], al
mov edx, dword [ebp - 0x68]
add edx, 1
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0xc]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [ebp - 0x68]
mov byte [ecx], al
mov edx, dword [ebp - 0x68]
add edx, 1
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0xc]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x68]
mov byte [ecx], al
mov edx, dword [ebp - 0x68]
add edx, 1
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x18]
and eax, 0xff
mov ecx, dword [ebp - 0x68]
mov byte [ecx], al
mov edx, dword [ebp - 0x68]
add edx, 1
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x18]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x68]
mov byte [ecx], al
mov edx, dword [ebp - 0x68]
add edx, 1
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x18]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [ebp - 0x68]
mov byte [ecx], al
mov edx, dword [ebp - 0x68]
add edx, 1
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x18]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x68]
mov byte [ecx], al
mov edx, dword [ebp - 0x68]
add edx, 1
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
push edx
mov ecx, ebp
push eax
lea edx, [0x10096bf4]
call fcn.101354f7
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10135c7b
add esp, 0x13c
cmp ebp, esp
call fcn.101354d4
mov esp, ebp
pop ebp
ret