Function at 0x1008c260
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
push esi
push edi
lea edi, [ebp - 0x148]
mov ecx, 0x52
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 + 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x80], 0
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
movzx ecx, byte [eax]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x74]
add edx, 1
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
movzx ecx, byte [eax]
shl ecx, 8
or ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x74]
add edx, 1
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
movzx ecx, byte [eax]
shl ecx, 0x10
or ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x74]
add edx, 1
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
movzx ecx, byte [eax]
shl ecx, 0x18
or ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x74]
add edx, 1
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
movzx ecx, byte [eax]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x74]
add edx, 1
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
movzx ecx, byte [eax]
shl ecx, 8
or ecx, dword [ebp - 0x18]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x74]
add edx, 1
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
movzx ecx, byte [eax]
shl ecx, 0x10
or ecx, dword [ebp - 0x18]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x74]
add edx, 1
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
movzx ecx, byte [eax]
shl ecx, 0x18
or ecx, dword [ebp - 0x18]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x74]
add edx, 1
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0xc]
and eax, 0xff
mov ecx, dword [ebp - 0x58]
mov byte [ecx], al
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0xc]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x58]
mov byte [ecx], al
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0xc]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [ebp - 0x58]
mov byte [ecx], al
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0xc]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x58]
mov byte [ecx], al
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x18]
and eax, 0xff
mov ecx, dword [ebp - 0x58]
mov byte [ecx], al
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x18]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x58]
mov byte [ecx], al
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x18]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [ebp - 0x58]
mov byte [ecx], al
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x18]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x58]
mov byte [ecx], al
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x3c]
sub ecx, 1
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x148], 0
je 0x1008c57b
cmp dword [ebp - 0x30], 0
jne 0x1008c543
push 1
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.1008c6e0
add esp, 0xc
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
and eax, 0xff
mov ecx, dword [ebp - 0x58]
mov byte [ecx], al
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x24]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x58]
mov byte [ecx], al
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x24]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [ebp - 0x58]
mov byte [ecx], al
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x24]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x58]
mov byte [ecx], al
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
and eax, 0xff
mov ecx, dword [ebp - 0x58]
mov byte [ecx], al
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x24]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x58]
mov byte [ecx], al
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x24]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [ebp - 0x58]
mov byte [ecx], al
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x24]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x58]
mov byte [ecx], al
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x80]
add eax, 1
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
mov edx, dword [ebp - 0x30]
movzx eax, byte [ebp + edx - 0x4c]
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 - 0x30]
add eax, 1
and eax, 7
mov dword [ebp - 0x30], eax
jmp 0x1008c42b
cmp dword [ebp - 0x80], 0
je 0x1008c659
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0xc]
and eax, 0xff
mov ecx, dword [ebp - 0x74]
mov byte [ecx], al
mov edx, dword [ebp - 0x74]
add edx, 1
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0xc]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x74]
mov byte [ecx], al
mov edx, dword [ebp - 0x74]
add edx, 1
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0xc]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [ebp - 0x74]
mov byte [ecx], al
mov edx, dword [ebp - 0x74]
add edx, 1
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0xc]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x74]
mov byte [ecx], al
mov edx, dword [ebp - 0x74]
add edx, 1
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x18]
and eax, 0xff
mov ecx, dword [ebp - 0x74]
mov byte [ecx], al
mov edx, dword [ebp - 0x74]
add edx, 1
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x18]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x74]
mov byte [ecx], al
mov edx, dword [ebp - 0x74]
add edx, 1
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x18]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [ebp - 0x74]
mov byte [ecx], al
mov edx, dword [ebp - 0x74]
add edx, 1
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x18]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x74]
mov byte [ecx], al
mov edx, dword [ebp - 0x74]
add edx, 1
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
push edx
mov ecx, ebp
push eax
lea edx, [0x1008c6b0]
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, 0x148
cmp ebp, esp
call fcn.101354d4
mov esp, ebp
pop ebp
ret