Function at 0x100825b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
imul ecx, dword [ebp + 0x18], 3
mov edx, 0x200010
shl edx, cl
mov eax, dword [ebp + 0xc]
and edx, dword [eax]
imul ecx, dword [ebp + 0x18], 3
mov eax, 0x10
shl eax, cl
cmp edx, eax
jne 0x100829a3
imul ecx, dword [ebp + 0x18], 3
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
shr eax, cl
push eax
call fcn.1007ec70
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx*4 + 0x1c]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x68], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x68]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
sub eax, dword [ecx]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
shr eax, 0x10
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x68]
mov ecx, dword [edx]
cmp eax, dword [ecx]
jae 0x100827b0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x68]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
cmp eax, dword [ecx]
jae 0x10082679
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x68]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [eax]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x68]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x68]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x68]
mov eax, dword [eax + 8]
mov dword [edx], eax
jmp 0x100826c0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x68]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [eax]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x68]
mov edx, dword [ecx]
cmp dword [edx + 4], 0
jne 0x100826a0
mov dword [ebp - 0x14], 1
jmp 0x100826a7
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x68]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x68]
mov eax, dword [eax + 0xc]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
jne 0x10082772
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
movzx ecx, byte [eax + 1]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
movzx ecx, byte [eax]
cmp ecx, 0xff
jne 0x10082749
cmp dword [ebp - 0xc], 0x8f
jbe 0x1008271e
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, 0xff00
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov dword [edx + 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
add ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], ecx
jmp 0x10082747
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
add ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], ecx
mov eax, dword [ebp - 0xc]
shl eax, 9
mov ecx, dword [ebp - 4]
add eax, dword [ecx]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov dword [eax + 8], 7
jmp 0x10082772
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
add edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp - 0xc]
shl ecx, 8
mov edx, dword [ebp - 4]
add ecx, dword [edx]
mov eax, dword [ebp - 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
shl eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
shl eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0x8000
jb 0x100826c0
jmp 0x10082942
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x68]
mov edx, dword [ecx]
mov eax, dword [edx]
shl eax, 0x10
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
sub edx, eax
mov eax, dword [ebp - 4]
mov dword [eax], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
and edx, 0x8000
jne 0x10082934
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x68]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
cmp ecx, dword [edx]
jae 0x10082826
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x68]
mov ecx, dword [eax]
cmp dword [ecx + 4], 0
jne 0x10082804
mov dword [ebp - 0x18], 1
jmp 0x1008280b
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x68]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x68]
mov edx, dword [edx + 0xc]
mov dword [ecx], edx
jmp 0x10082847
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x68]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x68]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x68]
mov eax, dword [eax + 8]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
jne 0x100828f9
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
movzx ecx, byte [eax + 1]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
movzx ecx, byte [eax]
cmp ecx, 0xff
jne 0x100828d0
cmp dword [ebp - 0x10], 0x8f
jbe 0x100828a5
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, 0xff00
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov dword [edx + 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
add ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], ecx
jmp 0x100828ce
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
add ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], ecx
mov eax, dword [ebp - 0x10]
shl eax, 9
mov ecx, dword [ebp - 4]
add eax, dword [ecx]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov dword [eax + 8], 7
jmp 0x100828f9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
add edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp - 0x10]
shl ecx, 8
mov edx, dword [ebp - 4]
add ecx, dword [edx]
mov eax, dword [ebp - 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
shl eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
shl eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0x8000
jb 0x10082847
jmp 0x10082942
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x68]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov dword [ebp - 8], eax
imul ecx, dword [ebp + 0x18], 0
mov edx, dword [ebp + 0x10]
cmp dword [edx + ecx*4], 0
jge 0x10082958
mov dword [ebp - 0x1c], 1
jmp 0x1008295f
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x1c]
je 0x1008296f
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x20], ecx
jmp 0x10082977
mov edx, dword [ebp + 0x14]
neg edx
mov dword [ebp - 0x20], edx
imul eax, dword [ebp + 0x18], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + eax*4]
add edx, dword [ebp - 0x20]
imul eax, dword [ebp + 0x18], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx + eax*4], edx
imul ecx, dword [ebp + 0x18], 3
mov edx, 0x100000
shl edx, cl
mov eax, dword [ebp + 0xc]
or edx, dword [eax]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret