Function at 0x10109be0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
push ebx
push ebp
mov dword [esp + 0x20], ecx
xor ebx, ebx
lea ecx, [edx + edx]
mov dword [esp + 0x30], edx
cdq
mov ebp, eax
mov dword [esp + 0x1c], ecx
xor ebp, edx
mov byte [esp + 9], bl
push esi
sub ebp, edx
mov byte [esp + 0xe], bl
imul ecx, ebp
lea eax, [esp + 0x3c]
push edi
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], bl
call fcn.1010b57e
mov esi, dword [esp + 0x20]
mov edi, esi
test esi, esi
je 0x10109c38
mov eax, dword [esi - 4]
jmp 0x10109c3a
mov eax, ebx
add eax, esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test ebp, ebp
jle 0x10109ee5
cmp edi, esi
jb 0x10109e8a
cmp edi, eax
jae 0x10109e8a
lea eax, [esp + 0x44]
xor edx, edx
push eax
inc edx
lea ecx, [esp + 0x15]
call fcn.10109a2a
pop ecx
test al, al
je 0x10109ee7
mov al, byte [esp + 0x11]
test al, al
je 0x10109d05
mov edx, dword [esp + 0x14]
sub edx, edi
movzx ecx, al
movzx eax, dl
cmp ecx, edx
mov dword [esp + 0x40], eax
mov eax, ecx
mov ecx, dword [esp + 0x40]
cmovb ecx, eax
lea eax, [esp + 0x44]
xor edx, edx
mov dword [esp + 0x40], ecx
mov byte [esp + 0x11], cl
inc edx
push eax
lea ecx, [esp + 0x16]
call fcn.10109a2a
pop ecx
test al, al
je 0x10109ee7
mov eax, dword [esp + 0x40]
mov edx, ebx
movzx eax, al
mov dword [esp + 0x40], eax
test eax, eax
jle 0x10109cfc
mov bh, byte [esp + 0x12]
mov esi, eax
mov bl, bh
and bl, 0xf
shr bh, 4
test dl, 1
movzx ecx, bh
movzx eax, bl
cmovne ecx, eax
mov byte [edi], cl
inc edi
inc edx
cmp edx, esi
jl 0x10109cde
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov eax, dword [esp + 0x40]
add dword [esp + 0x18], eax
jmp 0x10109e7c
lea eax, [esp + 0x44]
xor edx, edx
push eax
inc edx
lea ecx, [esp + 0x15]
call fcn.10109a2a
pop ecx
test al, al
je 0x10109ee7
movzx eax, byte [esp + 0x11]
mov dword [esp + 0x40], eax
sub eax, ebx
je 0x10109e68
dec eax
je 0x10109e60
dec eax
je 0x10109dfb
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x40]
sub ecx, edi
cmp dword [esp + 0x40], ecx
movzx edx, cl
movzx eax, al
cmovb edx, eax
mov eax, ebx
movzx ecx, dl
mov dword [esp + 0x34], edx
mov byte [esp + 0x11], dl
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], ecx
test ecx, ecx
jle 0x10109dc3
and eax, 1
mov dword [esp + 0x2c], eax
jne 0x10109d91
lea eax, [esp + 0x44]
xor edx, edx
push eax
inc edx
lea ecx, [esp + 0x16]
call fcn.10109a2a
pop ecx
test al, al
je 0x10109ee7
mov al, byte [esp + 0x12]
mov dl, al
shr al, 4
and dl, 0xf
movzx ecx, al
cmp dword [esp + 0x2c], 0
movzx eax, dl
cmovne ecx, eax
mov eax, dword [esp + 0x40]
mov byte [edi], cl
inc edi
mov ecx, dword [esp + 0x30]
inc eax
mov dword [esp + 0x40], eax
cmp eax, ecx
jl 0x10109d6e
mov edx, dword [esp + 0x34]
add dword [esp + 0x18], ecx
and dl, 3
cmp dl, 1
je 0x10109dd8
cmp dl, 2
jne 0x10109e7c
lea eax, [esp + 0x44]
mov byte [esp + 0x40], bl
xor edx, edx
lea ecx, [esp + 0x40]
push eax
inc edx
call fcn.10109a2a
pop ecx
test al, al
je 0x10109ee7
jmp 0x10109e7c
lea eax, [esp + 0x44]
mov byte [esp + 0x40], bl
xor edx, edx
mov byte [esp + 0x13], bl
push eax
inc edx
lea ecx, [esp + 0x44]
call fcn.10109a2a
pop ecx
test al, al
je 0x10109ee7
lea eax, [esp + 0x44]
xor edx, edx
push eax
inc edx
lea ecx, [esp + 0x17]
call fcn.10109a2a
pop ecx
test al, al
je 0x10109ee7
movzx eax, byte [esp + 0x40]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add ecx, eax
movzx eax, byte [esp + 0x13]
add edi, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
imul edi, dword [esp + 0x24]
add edi, esi
add edi, ecx
jmp 0x10109e7c
mov eax, dword [esp + 0x14]
mov edi, eax
jmp 0x10109e80
mov edi, dword [esp + 0x1c]
inc edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
imul edi, dword [esp + 0x24]
add edi, esi
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x1c], ebp
jl 0x10109c4c
test ebp, ebp
jle 0x10109ee5
mov edi, esi
mov esi, dword [esp + 0x24]
mov al, 1
mov edx, ebx
mov byte [esp + 0x40], al
test esi, esi
jle 0x10109ed4
mov ebx, dword [esp + 0x28]
test al, al
je 0x10109eb7
mov cl, byte [edi + edx]
mov eax, edx
shl cl, 4
sar eax, 1
mov byte [eax + ebx], cl
jmp 0x10109ec1
mov al, byte [edi + edx]
mov ecx, edx
sar ecx, 1
or byte [ecx + ebx], al
cmp byte [esp + 0x40], 0
sete al
inc edx
mov byte [esp + 0x40], al
cmp edx, esi
jl 0x10109ea4
xor ebx, ebx
mov eax, dword [esp + 0x38]
add edi, esi
add dword [esp + 0x28], eax
dec ebp
jne 0x10109e94
mov esi, dword [esp + 0x20]
mov bl, 1
test esi, esi
je 0x10109ef5
add esi, 0xfffffff8
push esi
call fcn.101dad34
pop ecx
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x2c
ret