Function at 0x100b2268
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax]
mov edx, dword [ebp + 8]
cmp dword [edx + 4], ecx
jae 0x100b22b0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
xor ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
mov dword [eax], edx
jmp 0x100b22d2
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
jne 0x100b247d
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x20], 0
jne 0x100b2463
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 8]
and ecx, 7
test ecx, ecx
jne 0x100b23bd
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
cmp dword [eax + 0x40], 0
jl 0x100b233e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [edx + 0x3c]
cmp edx, dword [ecx + 0x40]
jl 0x100b233e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 8]
or edx, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [ecx + 8], edx
mov dword [ebp - 0x1c], 0xffffffff
jmp 0x100b23b5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x1c]
sub ecx, 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
cmp dword [edx + 0x1c], 0
jge 0x100b2375
push 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.1003c4cc
add esp, 8
mov dword [ebp - 0x20], eax
jmp 0x100b23af
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x3c]
add ecx, 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov dword [eax + 0x3c], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x18]
xor ecx, ecx
mov cl, byte [eax]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x18]
add ecx, 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edx
jmp 0x100b23c4
mov dword [ebp - 0x24], 0xffffffff
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x100b23e1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], 1
mov dword [ebp - 0x18], 0xff
mov edx, dword [ebp + 8]
mov al, byte [edx + 0x1c]
mov byte [ebp - 0x14], al
mov ecx, dword [ebp + 8]
mov dl, byte [ebp - 0x18]
mov byte [ecx + 0x1c], dl
mov eax, dword [ebp - 0x14]
and eax, 0xff
cmp eax, 0xff
jne 0x100b2445
cmp dword [ebp - 0x18], 0x8f
jle 0x100b2427
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
add edx, 0xff00
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 8
jmp 0x100b2443
mov edx, dword [ebp - 0x18]
shl edx, 9
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add ecx, edx
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 8], 7
jmp 0x100b2461
mov ecx, dword [ebp - 0x18]
shl ecx, 8
mov edx, dword [ebp + 8]
mov eax, dword [edx]
add eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov dword [edx + 8], 8
jmp 0x100b247d
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add ecx, 0xff00
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 8], 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shl edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
shl edx, 1
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
sub edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
and edx, 0x8000
test edx, edx
je 0x100b22d2
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret