Function at 0x10010ee5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
movsx edx, word [esi + 8]
mov ecx, dword [esi]
test edx, edx
je 0x10010f3e
mov ah, byte [ebp + 0x10]
or ah, 1
add ecx, 0x28
mov al, byte [ecx - 0x21]
dec edx
xor al, byte [ebp + 0x10]
mov dword [ecx - 0x1c], edi
mov dword [ecx], edi
mov dword [ecx - 0x18], edi
mov dword [ecx - 0x14], edi
mov dword [ecx - 0x10], edi
mov dword [ecx - 0xc], edi
mov dword [ecx - 8], edi
mov dword [ecx - 4], edi
test ah, al
jne 0x10010f34
inc dword [ebp - 4]
add ecx, 0x1cc
test edx, edx
jne 0x10010f0f
xor eax, eax
inc eax
cmp dword [ebp + 8], edi
je 0x10010fa3
cmp dword [ebp + 8], 2
jne 0x10010f80
cmp word [ebx + 0xbc], ax
jne 0x10010f80
mov esi, dword [ebp - 4]
mov ecx, 0x10013084
push 8
pop edx
mov eax, ecx
dec edx
sub ecx, 0x10
cmp eax, 0x10013004
je 0x10010f71
cmp esi, dword [ecx]
jl 0x10010f60
mov ax, word [ebx + edx*2 + 0xac]
mov esi, dword [ebp - 8]
mov word [ebx + 0x66], ax
movzx eax, word [ebx + 0x66]
test ax, ax
je 0x10010f9d
push dword [ebp + 0x10]
movsx edx, word [esi + 8]
mov ecx, dword [esi]
push eax
call fcn.10010863
movzx eax, ax
jmp 0x10010f9f
mov eax, edi
mov word [ebx + 0x68], ax
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
mov dword [ebp - 4], edx
test eax, eax
je 0x10011026
mov cl, byte [ebp + 0xc]
dec eax
mov dword [ebp - 0xc], eax
cmp cl, 0xff
je 0x10010fc1
cmp cl, byte [edx + 7]
jne 0x1001101c
push dword [ebp + 0x10]
movzx eax, word [ebx + 0x68]
mov edx, dword [esi]
mov ecx, dword [ebp - 4]
push eax
movzx eax, word [esi + 8]
push eax
call fcn.10010abe
mov edx, dword [ebp - 4]
movzx ecx, byte [edx + 6]
imul ecx, ecx, 0x1cc
add ecx, dword [esi]
add dword [ecx + 0x28], eax
inc dword [ecx + 0xc]
movzx eax, byte [edx]
add dword [ecx + 0x10], eax
movzx eax, byte [edx + 1]
add dword [ecx + 0x14], eax
movzx eax, byte [edx + 2]
add dword [ecx + 0x18], eax
movzx eax, byte [edx + 3]
add dword [ecx + 0x1c], eax
movzx eax, byte [edx + 4]
add dword [ecx + 0x20], eax
movzx eax, byte [edx + 5]
add dword [ecx + 0x24], eax
mov eax, dword [ebp - 0xc]
mov cl, byte [ebp + 0xc]
add edx, 8
mov dword [ebp - 4], edx
test eax, eax
jne 0x10010fb3
mov eax, dword [ebp - 8]
mov esi, dword [esi]
movsx eax, word [eax + 8]
jmp 0x10011109
mov cl, byte [esi + 7]
dec eax
mov dword [ebp - 8], eax
test cl, 1
jne 0x10011103
cmp dword [esi + 0xc], 0
je 0x10011103
add edi, dword [esi + 0x28]
test cl, 2
je 0x10011103
mov ecx, dword [esi + 0xc]
xor edx, edx
mov eax, dword [esi + 0x10]
sar ecx, 1
add eax, ecx
div dword [esi + 0xc]
xor edx, edx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x14]
add eax, ecx
div dword [esi + 0xc]
xor edx, edx
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x18]
add eax, ecx
div dword [esi + 0xc]
xor edx, edx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x1c]
add eax, ecx
div dword [esi + 0xc]
xor edx, edx
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x20]
add eax, ecx
div dword [esi + 0xc]
xor edx, edx
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x24]
add eax, ecx
div dword [esi + 0xc]
mov dword [esi + 0x24], eax
mov cl, byte [esi + 0x10]
cmp byte [esi], cl
jne 0x100110dc
mov al, byte [esi + 1]
cmp al, byte [esi + 0x14]
jne 0x100110dc
mov al, byte [esi + 2]
cmp al, byte [esi + 0x18]
jne 0x100110dc
mov al, byte [esi + 3]
cmp al, byte [esi + 0x1c]
jne 0x100110dc
mov al, byte [esi + 4]
cmp al, byte [esi + 0x20]
jne 0x100110dc
mov al, byte [esi + 5]
cmp al, byte [esi + 0x24]
je 0x10011100
mov al, byte [esi + 0x14]
or byte [esi + 7], 4
mov byte [esi + 1], al
mov al, byte [esi + 0x18]
mov byte [esi + 2], al
mov al, byte [esi + 0x1c]
mov byte [esi + 3], al
mov al, byte [esi + 0x20]
mov byte [esi + 4], al
mov al, byte [esi + 0x24]
mov byte [esi], cl
mov byte [esi + 5], al
mov eax, dword [ebp - 8]
add esi, 0x1cc
test eax, eax
jne 0x10011034
mov ax, word [ebx + 0x418]
mov esi, dword [ebx + 0x414]
inc ax
movzx ecx, ax
mov word [ebx + 0x418], ax
test esi, esi
je 0x10011167
movsx eax, cx
movsx ecx, word [ebx + 0x41a]
imul eax, eax, 0x64
push 0x64
cdq
idiv ecx
pop ecx
cmp eax, ecx
jg 0x10011147
mov ecx, eax
push ecx
push 1
push dword [ebx + 0x410]
mov ecx, esi
call dword [0x1001411c]
call esi
test eax, eax
je 0x10011167
push 1
push ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc