Function at 0x100c4e60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1868
call fcn.10068620
mov eax, dword [0x10188068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x185c], eax
lea eax, [ebp - 0x1850]
push eax
push 0x186a0
mov dword [ebp - 0x1858], ebx
mov dword [ebp - 0x1864], edi
mov dword [ebp - 0x1850], 0
mov dword [ebp - 0x1854], 0
call fcn.10108760
mov esi, eax
test esi, esi
jne 0x100c5345
movzx edx, word [edi + 4]
mov eax, dword [ebp - 0x1850]
mov edi, dword [ebp - 0x185c]
movzx ecx, dx
mov dword [ebp - 0x1840], eax
mov eax, ecx
and eax, 0xfffffffe
mov dword [ebp - 0x1808], 0x186a0
mov dword [ebp - 0x184c], edx
mov dword [ebp - 0x183c], ecx
cmp eax, ecx
je 0x100c4f06
mov esi, 0xfffffe0c
jmp 0x100c5345
test dx, dx
jne 0x100c4f15
mov esi, 0xfffffe0b
jmp 0x100c5345
movzx eax, word [ebx + 4]
lea ecx, [ebp - 0x1838]
push ecx
push edx
push eax
movzx eax, word [ebx]
push eax
call fcn.100c4d00
mov esi, eax
test esi, esi
jne 0x100c5345
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x1804]
push eax
movzx eax, word [ebx + 4]
push 0x200
push dword [ebp - 0x184c]
push eax
push dword [ebp - 0x1838]
call fcn.100c4db0
mov esi, eax
test esi, esi
jne 0x100c5345
xor ecx, ecx
mov dword [ebp - 0x1844], ecx
cmp ax, word [ebx + 2]
jae 0x100c502c
mov eax, dword [ebp - 0x1838]
movzx eax, ax
mov dword [ebp - 0x1848], eax
xor esi, esi
test eax, eax
je 0x100c5006
mov edx, dword [ebp - 0x183c]
mov ebx, edx
shr ebx, 1
mov ecx, dword [ebp + esi*4 - 0x804]
movzx eax, byte [ecx + edi]
movzx ecx, byte [edi + ecx + 1]
sub ecx, eax
imul eax, edx
imul ecx, dword [ebp + esi*4 - 0x1004]
add ecx, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv dword [ebp - 0x183c]
mov edx, dword [ebp - 0x183c]
cmp eax, 0xff
cmovg eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
mov eax, dword [ebp - 0x1840]
inc esi
mov byte [eax], cl
inc eax
mov dword [ebp - 0x1840], eax
cmp esi, dword [ebp - 0x1848]
jb 0x100c4fa0
mov ebx, dword [ebp - 0x1858]
mov ecx, dword [ebp - 0x1844]
movzx eax, word [ebx]
inc ecx
add edi, eax
mov dword [ebp - 0x1844], ecx
movzx eax, word [ebx + 2]
cmp ecx, eax
mov eax, dword [ebp - 0x1848]
jb 0x100c4f90
mov edi, dword [ebp - 0x1808]
jmp 0x100c5031
mov edi, 0x186a0
push 0x18
push ebx
lea eax, [ebp - 0x181c]
push eax
call fcn.101087d0
mov esi, eax
test esi, esi
jne 0x100c5345
mov eax, dword [ebp - 0x1838]
mov word [ebp - 0x181c], ax
mov eax, dword [ebp - 0x184c]
mov word [ebp - 0x1818], ax
mov dword [ebp - 0x1808], edi
lea eax, [ebp - 0x1854]
push eax
push 0x186a0
call fcn.10108760
mov esi, eax
test esi, esi
jne 0x100c5345
mov eax, dword [ebp - 0x1854]
mov edi, 0x186a0
mov dword [ebp - 0x1848], eax
mov eax, dword [ebp - 0x1864]
mov dword [ebp - 0x1820], edi
movzx edx, word [eax + 6]
mov eax, dword [ebp - 0x1850]
movzx ecx, dx
mov dword [ebp - 0x184c], eax
mov eax, ecx
and eax, 0xfffffffe
mov dword [ebp - 0x183c], edx
cmp eax, ecx
je 0x100c50ce
mov esi, 0xfffffe0c
jmp 0x100c5345
test dx, dx
jne 0x100c50dd
mov esi, 0xfffffe0b
jmp 0x100c5345
lea eax, [ebp - 0x1838]
push eax
push edx
push dword [ebp - 0x1816]
push dword [ebp - 0x181a]
call fcn.100c4d00
mov esi, eax
test esi, esi
jne 0x100c5345
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x1804]
push eax
push 0x200
push dword [ebp - 0x183c]
push dword [ebp - 0x1816]
push dword [ebp - 0x1838]
call fcn.100c4db0
mov esi, eax
test esi, esi
jne 0x100c5345
mov eax, dword [ebp - 0x1838]
xor ebx, ebx
movzx eax, ax
mov dword [ebp - 0x1840], ebx
test eax, eax
je 0x100c524a
movzx ecx, word [ebp - 0x181c]
nop dword [eax + eax]
lea edx, [ebx*4]
mov dword [ebp - 0x1844], 0
mov eax, dword [ebp + edx - 0x804]
mov esi, ecx
imul esi, eax
lea edi, [eax + 1]
imul edi, ecx
add esi, dword [ebp - 0x184c]
add edi, dword [ebp - 0x184c]
test ecx, ecx
je 0x100c522c
mov eax, dword [ebp + edx - 0x1004]
mov ecx, dword [ebp - 0x183c]
mov dword [ebp - 0x1868], eax
movzx eax, cx
shr eax, 1
mov ebx, eax
mov cl, byte [esi]
lea edi, [edi + 1]
mov al, byte [edi - 1]
inc esi
movzx edx, al
movzx ecx, cl
sub edx, ecx
mov dword [ebp - 0x1860], esi
imul edx, dword [ebp - 0x1868]
mov esi, dword [ebp - 0x183c]
movzx eax, si
imul eax, ecx
movzx ecx, si
add edx, ebx
mov esi, dword [ebp - 0x1860]
add eax, edx
cdq
idiv ecx
mov ecx, 0xff
cmp eax, 0xff
cmovg eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
mov eax, dword [ebp - 0x1848]
mov byte [eax], cl
inc eax
movzx ecx, word [ebp - 0x181c]
mov dword [ebp - 0x1848], eax
mov eax, dword [ebp - 0x1844]
inc eax
mov dword [ebp - 0x1844], eax
cmp eax, ecx
jb 0x100c51b1
mov ebx, dword [ebp - 0x1840]
mov edx, dword [ebp - 0x1838]
inc ebx
movzx eax, dx
mov dword [ebp - 0x1840], ebx
cmp ebx, eax
jb 0x100c5160
mov edi, dword [ebp - 0x1820]
push 0x18
lea eax, [ebp - 0x181c]
push eax
lea eax, [ebp - 0x1834]
push eax
call fcn.101087d0
mov ebx, dword [ebp - 0x1858]
mov esi, eax
test esi, esi
jne 0x100c5345
mov eax, dword [ebp - 0x1838]
mov word [ebp - 0x1832], ax
mov eax, dword [ebp - 0x183c]
mov word [ebp - 0x182e], ax
mov dword [ebp - 0x1820], edi
movzx ecx, word [ebp - 0x1834]
movzx eax, word [ebp - 0x1832]
imul ecx, eax
cmp dword [ebx + 0x14], ecx
jae 0x100c52af
mov esi, 0xffffff34
jmp 0x100c5345
push ecx
push dword [ebp - 0x1854]
push dword [ebp - 0x185c]
call fcn.101087d0
mov esi, eax
test esi, esi
jne 0x100c5345
mov edi, dword [ebp - 0x1864]
lea eax, [ebp - 0x1834]
push 0x18
push eax
push edi
call fcn.101087d0
mov esi, eax
test esi, esi
jne 0x100c5345
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x14], eax
mov eax, 0x1f4
cmp word [edi + 6], ax
jne 0x100c5345
movzx eax, word [ebx + 6]
mov edx, 0x181
cmp ax, dx
jne 0x100c5345
mov ecx, 0xb4
cmp word [ebx + 2], cx
je 0x100c531c
cmp ax, dx
jne 0x100c5345
cmp word [ebx + 2], 0x5a
jne 0x100c5345
movzx ecx, word [edi + 2]
movzx edx, word [edi]
push edx
lea eax, [ecx - 2]
imul eax, edx
add eax, dword [ebp - 0x185c]
push eax
lea eax, [ecx - 1]
imul eax, edx
add eax, dword [ebp - 0x185c]
push eax
call fcn.101087d0
mov esi, eax
mov eax, dword [ebp - 0x1850]
test eax, eax
je 0x100c5355
push eax
call fcn.10108830
mov eax, dword [ebp - 0x1854]
test eax, eax
je 0x100c5365
push eax
call fcn.10108830
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10029ae5
mov esp, ebp
pop ebp
ret 0xc