Function at 0x101182f1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov eax, ecx
push esi
push edi
mov dword [ebp - 0x44], eax
lea edi, [eax + 8]
lea ebx, [eax + 4]
push edi
lea eax, [ebp - 8]
push ebx
push eax
call fcn.100ac1cf
mov esi, dword [ebp - 8]
add esp, 0xc
mov eax, dword [esi + 4]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x10118336
mov edi, dword [ebp + 8]
lea ecx, [ebp - 8]
push esi
and dword [edi], 0
call fcn.1007db3d
mov eax, edi
jmp 0x1011875f
mov ecx, dword [ebx]
mov eax, dword [esi + 0x10]
and dword [ebp - 0x28], 0
mov dword [ebp - 0x30], eax
add eax, eax
lea ebx, [ecx + 7]
mov dword [ebp - 0x40], eax
shr ebx, 3
dec ebx
mov eax, ebx
mov dword [ebp - 0x10], ebx
shl eax, 3
sub ecx, eax
mov eax, dword [edi]
and eax, 0x7fffffff
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0x14]
test ecx, ecx
cmovne eax, dword [edi]
xor edx, edx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x34], edx
test eax, eax
je 0x1011875a
mov edi, dword [ebp - 0x30]
mov esi, edi
mov eax, dword [ebp - 0x14]
sub eax, edi
sub esi, dword [ebp - 0x40]
mov dword [ebp - 0x48], esi
lea esi, [ebx + edi]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x40], esi
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0x44]
cmp byte [ebx + 1], 0
mov ebx, dword [ebp - 0x10]
je 0x101183d0
mov edx, dword [ebp + 0xc]
cmp byte [edx], 0
jne 0x10118320
movzx eax, word [ecx*2 + 0x102af2bc]
mov ecx, dword [ebp + 0x10]
lea eax, [ecx + eax*8]
mov ecx, edx
push eax
call fcn.10117bfe
xor dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x34]
cmp dword [ebp - 0x28], 0
je 0x101183ed
lea eax, [edx - 1]
mov ecx, esi
push eax
push edx
call fcn.100ad2ec
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x14]
jmp 0x10118742
cmp edx, 1
jbe 0x101185cd
mov edi, dword [ebp - 0x48]
mov cl, byte [ecx*2 + 0x102af2c4]
and dword [ebp - 0x3c], 0
movzx edx, byte [edi + eax]
shl edx, cl
lea ecx, [eax + 1]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x38], ecx
add ecx, edi
movzx edi, byte [eax]
mov dword [ebp - 0x2c], ecx
movzx eax, word [edx*2 + 0x102af2dc]
mov cl, byte [edx*2 + 0x102af2d4]
mov dword [ebp - 8], eax
mov eax, edi
shr eax, cl
mov ecx, edx
and dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
movzx eax, word [ecx*2 + 0x102af2cc]
and eax, edx
or dword [ebp - 8], eax
test ebx, ebx
jle 0x1011851a
mov ebx, dword [ebp - 0x2c]
mov cl, byte [ecx*2 + 0x102af2c4]
shl edx, 8
shl edi, 8
movzx eax, byte [ebx]
shl eax, cl
mov ecx, dword [ebp - 0x38]
or edx, eax
inc ebx
mov dword [ebp - 0xc], edx
push 7
mov dword [ebp - 0x2c], ebx
movzx eax, byte [ecx]
or edi, eax
mov eax, dword [ebp - 8]
inc ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x38], ecx
xor bl, bl
pop ecx
mov byte [ebp - 1], bl
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0
jne 0x10118320
mov edx, dword [ebp + 0x10]
lea eax, [edx + eax*8]
push eax
call fcn.10117bfe
mov ecx, dword [ebp - 0x1c]
mov ebx, eax
mov dl, bl
shl dl, cl
or byte [ebp - 1], dl
mov edx, dword [ebp + 0x14]
movzx ecx, word [edx*2 + 0x102af2d4]
add ecx, dword [ebp - 0x1c]
movzx eax, word [edx*2 + 0x102af2f4]
movzx edx, word [edx*2 + 0x102af2ec]
shr edi, cl
mov ecx, dword [ebp - 0x1c]
and edi, eax
mov eax, dword [ebp - 0xc]
shr eax, cl
mov ecx, dword [ebp + 0x14]
and edx, eax
or edi, edx
movzx eax, word [ecx*2 + 0x102af2e4]
and eax, dword [ebp - 8]
add eax, eax
or eax, edi
mov edi, dword [ebp - 0x20]
or eax, ebx
sub dword [ebp - 0x1c], 1
mov dword [ebp - 8], eax
jns 0x1011848c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x14]
mov bl, byte [ebp - 1]
mov byte [edx + eax], bl
inc edx
cmp edx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0xc]
jl 0x10118451
and dword [ebp - 0x1c], 0
shl edx, 8
mov dword [ebp - 0xc], edx
xor dl, dl
shl edi, 8
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x20], edi
mov byte [ebp - 1], dl
jle 0x10118736
mov dword [ebp - 0x2c], 7
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0
jne 0x10118320
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
lea eax, [edx + eax*8]
push eax
call fcn.10117bfe
mov ecx, dword [ebp - 0x2c]
mov ebx, eax
mov dl, bl
shl dl, cl
or byte [ebp - 1], dl
mov edx, dword [ebp + 0x14]
push 7
movzx ecx, word [edx*2 + 0x102af2d4]
sub ecx, dword [ebp - 0x1c]
movzx eax, word [edx*2 + 0x102af2f4]
add ecx, 7
mov edx, dword [ebp - 0xc]
shr edi, cl
and edi, eax
pop ecx
sub ecx, dword [ebp - 0x1c]
shr edx, cl
mov ecx, dword [ebp + 0x14]
movzx eax, word [ecx*2 + 0x102af2ec]
and edx, eax
movzx eax, word [ecx*2 + 0x102af2e4]
and eax, dword [ebp - 8]
or edi, edx
add eax, eax
or edi, eax
mov eax, dword [ebp - 0x1c]
or edi, ebx
inc eax
dec dword [ebp - 0x2c]
mov dword [ebp - 8], edi
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x24]
jl 0x10118540
jmp 0x10118733
and edx, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x38], edx
je 0x101185e3
movzx edi, byte [eax]
lea edx, [eax + 1]
mov dword [ebp - 0x20], edx
jmp 0x101185e8
mov edx, dword [ebp - 0x20]
xor edi, edi
movzx eax, word [ecx*2 + 0x102af2dc]
mov cl, byte [ecx*2 + 0x102af2d4]
and dword [ebp - 0x3c], 0
mov dword [ebp - 8], eax
mov eax, edi
shr eax, cl
and dword [ebp - 8], eax
test ebx, ebx
jle 0x101186ab
cmp dword [ebp - 0x38], 0
je 0x1011861f
movzx eax, byte [edx]
shl edi, 8
or edi, eax
inc edx
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 8]
xor bl, bl
mov byte [ebp - 1], bl
mov dword [ebp - 0x2c], 7
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0
jne 0x10118320
mov edx, dword [ebp + 0x10]
lea eax, [edx + eax*8]
push eax
call fcn.10117bfe
mov ecx, dword [ebp - 0x2c]
mov ebx, eax
mov dl, bl
shl dl, cl
or byte [ebp - 1], dl
mov edx, dword [ebp + 0x14]
movzx ecx, word [edx*2 + 0x102af2d4]
mov edx, edi
add ecx, dword [ebp - 0x2c]
shr edx, cl
mov ecx, dword [ebp + 0x14]
movzx eax, word [ecx*2 + 0x102af2f4]
and edx, eax
movzx eax, word [ecx*2 + 0x102af2e4]
and eax, dword [ebp - 8]
add eax, eax
or eax, edx
or eax, ebx
sub dword [ebp - 0x2c], 1
mov dword [ebp - 8], eax
jns 0x1011862e
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x14]
mov bl, byte [ebp - 1]
mov byte [eax + edx], bl
inc eax
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jl 0x1011860d
jmp 0x101186ae
mov ecx, dword [ebp + 0x14]
and dword [ebp - 0x2c], 0
xor dl, dl
shl edi, 8
cmp dword [ebp - 0x24], 0
mov byte [ebp - 1], dl
jle 0x10118736
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], 7
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0
jne 0x10118320
mov edx, dword [ebp + 0x10]
lea eax, [edx + eax*8]
push eax
call fcn.10117bfe
mov ecx, dword [ebp - 0x20]
mov ebx, eax
mov dl, bl
shl dl, cl
or byte [ebp - 1], dl
mov edx, dword [ebp + 0x14]
movzx ecx, word [edx*2 + 0x102af2d4]
mov edx, edi
sub ecx, dword [ebp - 0x2c]
add ecx, 7
shr edx, cl
mov ecx, dword [ebp + 0x14]
movzx eax, word [ecx*2 + 0x102af2f4]
and edx, eax
movzx eax, word [ecx*2 + 0x102af2e4]
and eax, dword [ebp - 8]
add eax, eax
or eax, edx
mov edx, dword [ebp - 0x2c]
or eax, ebx
inc edx
dec dword [ebp - 0x20]
mov dword [ebp - 8], eax
mov dword [ebp - 0x2c], edx
cmp edx, dword [ebp - 0x24]
jl 0x101186ca
mov dl, byte [ebp - 1]
mov edi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x18]
mov byte [edi + eax], dl
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
add eax, edi
add dword [ebp - 0x14], edi
inc edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], edx
cmp edx, dword [ebp - 0x4c]
jb 0x10118396
mov eax, dword [ebp + 8]
mov dword [eax], esi
pop edi
pop esi
pop ebx
leave
ret 0x10