Function at 0x100b3ead
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov edi, dword [ebp + 8]
add eax, edi
cmp dword [ecx], 0
mov dword [ebp - 0x40], eax
lea eax, [edx + esi]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], eax
jne 0x100b3f12
push ecx
mov eax, esp
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100b3ef0
inc dword [eax + 0x28]
sub esp, 0x10
lea esi, [ebp - 0x48]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ecx + 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.100b40a6
jmp 0x100b4088
cmp dword [ecx], 1
jne 0x100b408b
lea eax, [ecx + 4]
mov esi, eax
mov dword [ebp - 0x28], eax
lea edi, [ebp - 0x38]
lea eax, [ebp - 0x48]
push eax
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1001579d
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x38]
jle 0x100b406e
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x34]
jle 0x100b406e
xor esi, esi
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.1009a074
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x34]
push esi
push esi
push 0x108
push ecx
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0x38]
push ecx
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.10094dde
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 4], eax
lea ecx, [edi + 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
cmp eax, dword [ebp - 0x2c]
jge 0x100b4040
sub eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [edx]
mov ecx, edx
mov esi, dword [edx + 0x18]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
sub ecx, dword [edi + 8]
mov edx, dword [ebx]
imul ecx, esi
mov esi, dword [ebx + 0x18]
add eax, ecx
mov ecx, ebx
mov dword [ebp - 0x14], eax
call dword [edx + 4]
imul esi, dword [ebp + 0xc]
add eax, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov ecx, eax
mov edx, dword [eax]
mov esi, dword [eax + 0x18]
call dword [edx + 4]
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [ebp - 0x34]
imul ecx, esi
add edx, ecx
mov ecx, dword [ebp - 0x38]
mov esi, ecx
mov dword [ebp - 0x18], edx
cmp ecx, dword [ebp - 0x30]
jge 0x100b402a
mov ebx, dword [ebp - 0x10]
sub ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov eax, esi
sub eax, dword [edi + 4]
xor edx, edx
movzx eax, byte [eax + ecx]
movzx ecx, byte [ebx + esi]
imul eax, ecx
mov ecx, 0xff
div ecx
mov edx, dword [ebp - 0x18]
mov ecx, esi
sub ecx, dword [ebp - 0x38]
inc esi
mov byte [ecx + edx], al
cmp esi, dword [ebp - 0x30]
jl 0x100b3ff7
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
inc eax
inc dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 0x2c]
jl 0x100b3f9d
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
lea esi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 8]
cmp dword [ecx], esi
je 0x100b405a
lea eax, [ebp - 8]
push eax
call fcn.100b3e8a
test esi, esi
je 0x100b4088
sub dword [esi + 0x28], 1
jne 0x100b4088
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
jmp 0x100b4088
mov edi, dword [ebp - 4]
xor esi, esi
push esi
lea ecx, [edi + 0x14]
mov dword [edi], esi
call fcn.1009ebd9
lea edi, [edi + 4]
lea esi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x100b409d
sub dword [ebx + 0x28], 1
jne 0x100b409d
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc