Function at 0x100113fe
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], ebx
movsx edx, word [esi + 8]
mov ecx, dword [esi]
mov dword [ebp - 8], edi
test edx, edx
je 0x1001145a
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 0x10011450
inc dword [ebp - 8]
add ecx, 0x1cc
test edx, edx
jne 0x1001142b
xor eax, eax
inc eax
cmp dword [ebp + 8], edi
je 0x100114bf
cmp dword [ebp + 8], 2
jne 0x1001149c
cmp word [ebx + 0xbc], ax
jne 0x1001149c
mov esi, dword [ebp - 8]
mov ecx, 0x10014084
push 8
pop edx
mov eax, ecx
dec edx
sub ecx, 0x10
cmp eax, 0x10014004
je 0x1001148d
cmp esi, dword [ecx]
jl 0x1001147c
mov ax, word [ebx + edx*2 + 0xac]
mov esi, dword [ebp - 0xc]
mov word [ebx + 0x66], ax
movzx eax, word [ebx + 0x66]
test ax, ax
je 0x100114b9
push dword [ebp + 0x10]
movsx edx, word [esi + 8]
mov ecx, dword [esi]
push eax
call fcn.1001de45
movzx eax, ax
jmp 0x100114bb
mov eax, edi
mov word [ebx + 0x68], ax
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
mov dword [ebp - 8], edx
test eax, eax
je 0x10011542
mov cl, byte [ebp + 0xc]
dec eax
mov dword [ebp - 0x10], eax
cmp cl, 0xff
je 0x100114dd
cmp cl, byte [edx + 7]
jne 0x10011538
push dword [ebp + 0x10]
movzx eax, word [ebx + 0x68]
mov edx, dword [esi]
mov ecx, dword [ebp - 8]
push eax
movzx eax, word [esi + 8]
push eax
call fcn.10010fd6
mov edx, dword [ebp - 8]
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 - 0x10]
mov cl, byte [ebp + 0xc]
add edx, 8
mov dword [ebp - 8], edx
test eax, eax
jne 0x100114cf
mov eax, dword [ebp - 0xc]
mov esi, dword [esi]
movsx eax, word [eax + 8]
test eax, eax
je 0x1001162d
mov ebx, eax
mov al, byte [esi + 7]
dec ebx
test al, 1
jne 0x1001161c
cmp dword [esi + 0xc], 0
je 0x1001161c
add edi, dword [esi + 0x28]
test al, 2
je 0x1001161c
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 0x100115f8
mov al, byte [esi + 1]
cmp al, byte [esi + 0x14]
jne 0x100115f8
mov al, byte [esi + 2]
cmp al, byte [esi + 0x18]
jne 0x100115f8
mov al, byte [esi + 3]
cmp al, byte [esi + 0x1c]
jne 0x100115f8
mov al, byte [esi + 4]
cmp al, byte [esi + 0x20]
jne 0x100115f8
mov al, byte [esi + 5]
cmp al, byte [esi + 0x24]
je 0x1001161c
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
add esi, 0x1cc
test ebx, ebx
jne 0x10011555
mov ebx, dword [ebp - 0x14]
mov ax, word [ebx + 0x418]
mov esi, dword [ebx + 0x414]
inc ax
movzx ecx, ax
mov word [ebx + 0x418], ax
test esi, esi
je 0x10011683
movsx eax, cx
movsx ecx, word [ebx + 0x41a]
imul eax, eax, 0x64
push 0x64
cdq
idiv ecx
pop ecx
cmp eax, ecx
jg 0x10011663
mov ecx, eax
push ecx
push 1
push dword [ebx + 0x410]
mov ecx, esi
call dword [0x1001511c]
call esi
test eax, eax
je 0x10011683
push 1
push ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc