Function at 0x1017ad80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10254be4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0
jmp 0x1017ada2
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 8
jge 0x1017adca
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
shl edx, 1
mov dword [ebp - 0x20], edx
je 0x1017adbe
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x18]
mov dl, byte [ebp - 0x20]
mov byte [ebp + ecx - 0x14], dl
jmp 0x1017ad99
lea eax, [ebp - 0x14]
push eax
call fcn.1017b1c0
add esp, 4
test eax, eax
je 0x1017ade1
xor eax, eax
jmp 0x1017b1b1
mov ecx, 1
imul edx, ecx, 0
add edx, 0x1026cc88
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 0xc]
mov cl, byte [eax]
mov byte [ebp - 0x30], cl
cmp byte [ebp - 0x30], 0x5f
je 0x1017ae05
jmp 0x1017af17
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
test eax, eax
je 0x1017ae8c
push 1
push 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.1017b2d0
add esp, 0x10
test eax, eax
je 0x1017ae2e
xor eax, eax
jmp 0x1017b1b1
mov dword [ebp - 0x18], 0
jmp 0x1017ae40
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 8
jge 0x1017ae70
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
shl edx, 1
mov dword [ebp - 0x20], edx
je 0x1017ae5c
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x18]
movzx edx, byte [ebp + ecx - 0x14]
xor edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x14], dl
jmp 0x1017ae37
lea ecx, [ebp - 0x14]
push ecx
call fcn.1017b1c0
add esp, 4
test eax, eax
je 0x1017ae87
xor eax, eax
jmp 0x1017b1b1
jmp 0x1017ae05
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 4
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 0x18], ecx
js 0x1017aefc
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x18]
movzx eax, byte [edx]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1017aeda
mov dword [ebp - 0x20], 0x2e
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x18]
mov dl, byte [ebp - 0x20]
mov byte [ecx], dl
mov eax, dword [ebp - 0x24]
shl eax, 6
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + 0x10269800]
or eax, edx
mov dword [ebp - 0x24], eax
jmp 0x1017aeb6
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 4
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], 4
jmp 0x1017af25
mov dword [ebp - 0x24], 0x19
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
sub eax, 1
mov dword [ebp - 0x18], eax
js 0x1017af78
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x18]
movzx edx, byte [ecx]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
jne 0x1017af56
mov dword [ebp - 0x20], 0x2e
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
mov cl, byte [ebp - 0x20]
mov byte [eax], cl
mov edx, dword [ebp - 0x2c]
shl edx, 6
mov eax, dword [ebp - 0x20]
movzx ecx, byte [eax + 0x10269800]
or edx, ecx
mov dword [ebp - 0x2c], edx
jmp 0x1017af32
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0x1026cc80
call fcn.1017b2d0
add esp, 0x10
test eax, eax
je 0x1017afa5
xor eax, eax
jmp 0x1017b1b1
mov eax, 1
imul ecx, eax, 0
movzx edx, byte [ebp + ecx - 0xc]
shl edx, 8
mov eax, 1
shl eax, 0
movzx ecx, byte [ebp + eax - 0xc]
or edx, ecx
shl edx, 8
mov eax, 1
shl eax, 1
movzx ecx, byte [ebp + eax - 0xc]
or edx, ecx
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x18]
and edx, 0x3f
mov eax, 1
imul ecx, eax, 3
mov eax, dword [ebp - 0x1c]
mov dl, byte [edx + 0x10253298]
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x18]
sar eax, 6
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
and ecx, 0x3f
mov edx, 1
shl edx, 1
mov eax, dword [ebp - 0x1c]
mov cl, byte [ecx + 0x10253298]
mov byte [eax + edx], cl
mov edx, dword [ebp - 0x18]
sar edx, 6
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
and eax, 0x3f
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 0x1c]
mov al, byte [eax + 0x10253298]
mov byte [edx + ecx], al
mov ecx, dword [ebp - 0x18]
sar ecx, 6
mov dword [ebp - 0x18], ecx
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dl, byte [edx + 0x10253298]
mov byte [ecx + eax], dl
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x1c], eax
mov ecx, 1
imul edx, ecx, 3
movzx eax, byte [ebp + edx - 0xc]
shl eax, 8
mov ecx, 1
shl ecx, 2
movzx edx, byte [ebp + ecx - 0xc]
or eax, edx
shl eax, 8
mov ecx, 1
imul edx, ecx, 5
movzx ecx, byte [ebp + edx - 0xc]
or eax, ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
and edx, 0x3f
mov eax, 1
imul ecx, eax, 3
mov eax, dword [ebp - 0x1c]
mov dl, byte [edx + 0x10253298]
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x18]
sar eax, 6
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
and ecx, 0x3f
mov edx, 1
shl edx, 1
mov eax, dword [ebp - 0x1c]
mov cl, byte [ecx + 0x10253298]
mov byte [eax + edx], cl
mov edx, dword [ebp - 0x18]
sar edx, 6
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
and eax, 0x3f
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 0x1c]
mov al, byte [eax + 0x10253298]
mov byte [edx + ecx], al
mov ecx, dword [ebp - 0x18]
sar ecx, 6
mov dword [ebp - 0x18], ecx
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dl, byte [edx + 0x10253298]
mov byte [ecx + eax], dl
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x1c], eax
mov ecx, 1
imul edx, ecx, 6
movzx eax, byte [ebp + edx - 0xc]
shl eax, 8
mov ecx, 1
imul edx, ecx, 7
movzx ecx, byte [ebp + edx - 0xc]
or eax, ecx
shl eax, 2
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
and edx, 0x3f
mov eax, 1
shl eax, 1
mov ecx, dword [ebp - 0x1c]
mov dl, byte [edx + 0x10253298]
mov byte [ecx + eax], dl
mov eax, dword [ebp - 0x18]
sar eax, 6
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
and ecx, 0x3f
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 0x1c]
mov cl, byte [ecx + 0x10253298]
mov byte [eax + edx], cl
mov edx, dword [ebp - 0x18]
sar edx, 6
mov dword [ebp - 0x18], edx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov al, byte [eax + 0x10253298]
mov byte [edx + ecx], al
mov ecx, 1
imul edx, ecx, 3
mov eax, dword [ebp - 0x1c]
mov byte [eax + edx], 0
mov eax, 0x1026cc88
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101949b1
mov esp, ebp
pop ebp
ret