Function at 0x100b3060
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, edx
mov dword [esp + 0x4c], ebx
mov ebp, dword [esi + 0x10]
cmp ebp, 3
jae 0x100b3094
inc dword [esi + 4]
inc dword [esi + 0x14]
inc dword [esi]
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jne 0x100b308b
call fcn.100b4040
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret
mov ecx, dword [esi]
push edi
mov edi, ebx
mov dword [esp + 0x38], 2
mov dword [esp + 0x3c], edi
movzx edx, byte [ecx]
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
mov dword [esp + 0x28], 0
movzx eax, byte [ecx + 1]
mov dword [esp + 0x24], 0
xor edx, dword [esi + eax*4 + 0x60]
mov eax, dword [esi + 0x24]
movzx ecx, dx
lea ecx, [eax + ecx*4]
mov eax, dword [ecx]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 4]
mov dword [ecx], eax
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 4]
mov eax, dword [esi + 0x30]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x34], edx
mov ebx, dword [esp + 0x34]
mov edx, dword [esi]
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x18], edx
lea ecx, [ebx + ecx*8]
lea ebx, [ecx + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x40]
sub ebx, dword [esp + 0x1c]
test eax, eax
je 0x100b322f
mov ecx, dword [esp + 0x44]
dec eax
mov dword [esp + 0x48], eax
cmp ebx, ecx
jae 0x100b322b
cmp dword [esp + 0x30], ebx
sbb eax, eax
sub edx, ebx
and eax, ecx
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x34]
sub eax, ebx
add eax, dword [esp + 0x30]
lea ecx, [ecx + eax*8]
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [esp + 0x2c], ecx
cmp dword [esp + 0x28], edx
mov edx, dword [esp + 0x10]
cmovb eax, dword [esp + 0x28]
mov ecx, dword [ecx]
mov dword [esp + 0x4c], ecx
mov cl, byte [eax + edx]
mov edx, dword [esp + 0x18]
cmp cl, byte [eax + edx]
mov edx, dword [esp + 0x10]
jne 0x100b31da
inc eax
cmp eax, ebp
je 0x100b31b9
mov cl, byte [eax + edx]
mov edx, dword [esp + 0x18]
cmp cl, byte [eax + edx]
mov edx, dword [esp + 0x10]
jne 0x100b31b9
inc eax
cmp eax, ebp
je 0x100b31b9
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
sub edi, ecx
lea edx, [eax + ecx]
mov cl, byte [edi + edx]
cmp cl, byte [edx]
jne 0x100b31b1
inc eax
inc edx
cmp eax, ebp
jne 0x100b31a4
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x38], eax
jae 0x100b31da
mov dword [edi], eax
lea ecx, [ebx - 1]
mov dword [edi + 4], ecx
add edi, 8
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edi
cmp eax, ebp
je 0x100b3267
mov cl, byte [eax + edx]
mov edx, dword [esp + 0x18]
cmp cl, byte [eax + edx]
mov ecx, dword [esp + 0x1c]
jae 0x100b3201
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov dword [ebx], ecx
mov ecx, dword [esp + 0x2c]
add ecx, 4
mov dword [esp + 0x14], ecx
jmp 0x100b3213
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x28], eax
mov dword [ebx], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x20], ecx
mov eax, dword [ecx]
mov ebx, dword [esp + 0x40]
sub ebx, eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x100b3124
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov dword [ecx], 0
mov dword [ebx], 0
sub edi, dword [esp + 0x50]
inc dword [esi + 4]
inc dword [esi + 0x14]
inc dword [esi]
mov ecx, dword [esi + 4]
sar edi, 2
cmp ecx, dword [esi + 8]
jne 0x100b325d
mov ecx, esi
call fcn.100b4040
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x2c]
mov dword [ebx], eax
mov ebx, dword [esp + 0x20]
mov eax, dword [ecx + 4]
mov dword [ebx], eax
jmp 0x100b323f