Function at 0x10010f4e
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 0x10010fa7
mov ah, byte [ebp + 0x10]
or ah, 1
add ecx, 0x28
mov dword [ecx - 0x1c], edi
dec edx
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 al, byte [ecx - 0x21]
xor al, byte [ebp + 0x10]
mov dword [ecx - 8], edi
mov dword [ecx - 4], edi
test ah, al
jne 0x10010f9d
inc dword [ebp - 4]
add ecx, 0x1cc
test edx, edx
jne 0x10010f78
xor eax, eax
inc eax
cmp dword [ebp + 8], edi
je 0x1001100c
cmp dword [ebp + 8], 2
jne 0x10010fe9
cmp word [ebx + 0xbc], ax
jne 0x10010fe9
mov esi, dword [ebp - 4]
mov ecx, 0x10013084
push 8
pop edx
mov eax, ecx
dec edx
sub ecx, 0x10
cmp eax, 0x10013004
je 0x10010fda
cmp esi, dword [ecx]
jl 0x10010fc9
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 0x10011006
push dword [ebp + 0x10]
movsx edx, word [esi + 8]
mov ecx, dword [esi]
push eax
call fcn.100108cd
movzx eax, ax
jmp 0x10011008
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 0x1001108f
mov cl, byte [ebp + 0xc]
dec eax
mov dword [ebp - 0xc], eax
cmp cl, 0xff
je 0x1001102a
cmp cl, byte [edx + 7]
jne 0x10011085
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.10010b28
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 0x1001101c
mov eax, dword [ebp - 8]
mov esi, dword [esi]
movsx eax, word [eax + 8]
jmp 0x1001117e
mov cl, byte [esi + 7]
dec eax
mov dword [ebp - 8], eax
test cl, 1
jne 0x10011178
cmp dword [esi + 0xc], 0
je 0x10011178
add edi, dword [esi + 0x28]
test cl, 2
je 0x10011178
mov eax, dword [esi + 0xc]
xor edx, edx
sar eax, 1
add eax, dword [esi + 0x10]
div dword [esi + 0xc]
xor edx, edx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
sar eax, 1
add eax, dword [esi + 0x14]
div dword [esi + 0xc]
xor edx, edx
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
sar eax, 1
add eax, dword [esi + 0x18]
div dword [esi + 0xc]
xor edx, edx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0xc]
sar eax, 1
add eax, dword [esi + 0x1c]
div dword [esi + 0xc]
xor edx, edx
mov dword [esi + 0x1c], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x20]
sar ecx, 1
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 0x10011151
mov al, byte [esi + 1]
cmp al, byte [esi + 0x14]
jne 0x10011151
mov al, byte [esi + 2]
cmp al, byte [esi + 0x18]
jne 0x10011151
mov al, byte [esi + 3]
cmp al, byte [esi + 0x1c]
jne 0x10011151
mov al, byte [esi + 4]
cmp al, byte [esi + 0x20]
jne 0x10011151
mov al, byte [esi + 5]
cmp al, byte [esi + 0x24]
je 0x10011175
mov al, byte [esi + 0x14]
mov byte [esi + 1], al
mov al, byte [esi + 0x18]
mov byte [esi + 2], al
mov al, byte [esi + 0x1c]
mov byte [esi], cl
mov byte [esi + 3], al
mov al, byte [esi + 0x20]
or byte [esi + 7], 4
mov byte [esi + 4], al
mov al, byte [esi + 0x24]
mov byte [esi + 5], al
mov eax, dword [ebp - 8]
add esi, 0x1cc
test eax, eax
jne 0x1001109d
mov ax, word [ebx + 0x418]
mov esi, dword [ebx + 0x414]
inc ax
movzx ecx, ax
mov word [ebx + 0x418], ax
test esi, esi
je 0x100111dc
movsx eax, cx
movsx ecx, word [ebx + 0x41a]
imul eax, eax, 0x64
push 0x64
cdq
idiv ecx
pop ecx
cmp eax, ecx
jg 0x100111bc
mov ecx, eax
push ecx
push 1
push dword [ebx + 0x410]
mov ecx, esi
call dword [0x1001411c]
call esi
test eax, eax
je 0x100111dc
push 1
push ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc