Function at 0x100de3b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, edx
xor ecx, ecx
mov dword [esp + 0x14], ebx
xor ebp, ebp
push edi
mov eax, dword [esi + 0x20]
sub eax, 0x20
mov dword [esi + 0x5c], 0
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [esi + 0x58], eax
mov word [esi + 0x56], 0
mov dword [esi + 0x30], 0
mov dword [eax + 8], eax
xor eax, eax
mov word [esi + 0x54], ax
cmp cx, word [esi + 0x80]
jge 0x100de4d0
xor edx, edx
nop
mov eax, dword [esi + 0x8c]
mov ecx, esi
mov dword [esi + 0x64], 0
mov dword [esi + 0x60], 0
push ebx
movzx eax, word [eax + ebp*2]
push eax
call fcn.100de620
add esp, 8
test al, al
jne 0x100de5f6
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 4]
mov edx, dword [esi + 0x48]
movzx eax, word [eax + ebp*2]
mov dword [esp + 0x14], eax
lea eax, [edi - 1]
test edx, eax
jne 0x100de46a
cmp edx, dword [esi + 0x4c]
jl 0x100de46a
cmp edx, dword [esi + 0x50]
jg 0x100de46a
mov ecx, dword [esi + 0x60]
test ecx, ecx
je 0x100de46a
mov eax, dword [esi + 0x58]
mov cl, byte [ecx + 0xc]
xor cl, byte [eax + 0xc]
test cl, 8
jne 0x100de46a
add dword [esi + 0x28], 0xfffffffc
mov ebx, dword [esi + 0x58]
mov eax, dword [esi + 0x28]
cmp eax, dword [ebx + 8]
je 0x100de486
test byte [ebx + 0xc], 8
je 0x100de486
neg edi
and edi, edx
sub edx, edi
cmp edx, dword [esi + 8]
jmp 0x100de494
lea eax, [edi - 1]
neg edi
add eax, edx
and eax, edi
sub eax, edx
cmp eax, dword [esi + 8]
setge dl
mov ecx, esi
call fcn.100df550
test al, al
jne 0x100de5f6
mov eax, dword [esi + 0x60]
test eax, eax
je 0x100de4b0
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x14]
inc ebp
mov ebx, dword [esp + 0x18]
inc eax
movzx edx, ax
movsx eax, word [esi + 0x80]
cmp ebp, eax
jl 0x100de400
movzx eax, word [esi + 0x54]
mov ecx, dword [esi + 0x5c]
movzx ebp, ax
cmp ax, 1
jbe 0x100de600
test ecx, ecx
je 0x100de600
nop dword [eax + eax]
mov edi, dword [ecx + 0x10]
lea edx, [ecx + 4]
mov dword [esp + 0x18], edx
cmp bp, 1
jbe 0x100de508
mov eax, dword [ecx + 8]
lea eax, [eax + edi*4]
jmp 0x100de50a
xor eax, eax
mov dword [edx], eax
test byte [ecx + 0xc], 8
mov ebx, dword [ecx + 0x14]
mov edx, ebx
je 0x100de51c
dec ebx
add ebx, edi
jmp 0x100de52c
sub edx, edi
lea eax, [edi*4 - 4]
inc edx
add dword [ecx + 8], eax
mov dword [ecx + 0x14], edx
mov eax, dword [esi + 0x30]
mov edi, dword [esi + 0x20]
lea ecx, [eax - 1]
shl eax, 2
sub edi, eax
test ecx, ecx
js 0x100de55d
nop
cmp edx, dword [edi + ecx*4]
jge 0x100de54c
sub ecx, 1
jns 0x100de540
jmp 0x100de55d
jle 0x100de57d
nop
mov eax, dword [edi + ecx*4]
mov dword [edi + ecx*4], edx
sub ecx, 1
mov edx, eax
jns 0x100de550
add dword [esi + 0x24], 0xfffffffc
mov eax, dword [esi + 0x24]
cmp eax, dword [esi + 0x28]
jbe 0x100de5ef
inc dword [esi + 0x30]
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x20]
shl eax, 2
sub ecx, eax
mov dword [ecx], edx
mov eax, dword [esi + 0x30]
lea edx, [ebx + 1]
mov edi, dword [esi + 0x20]
lea ecx, [eax - 1]
shl eax, 2
sub edi, eax
test ecx, ecx
js 0x100de5ad
cmp edx, dword [edi + ecx*4]
jge 0x100de59e
sub ecx, 1
jns 0x100de592
jmp 0x100de5ad
jle 0x100de5c9
mov eax, dword [edi + ecx*4]
mov dword [edi + ecx*4], edx
sub ecx, 1
mov edx, eax
jns 0x100de5a0
add dword [esi + 0x24], 0xfffffffc
mov eax, dword [esi + 0x24]
cmp eax, dword [esi + 0x28]
jbe 0x100de5ef
inc dword [esi + 0x30]
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x20]
shl eax, 2
sub ecx, eax
mov dword [ecx], edx
mov ecx, dword [esp + 0x18]
add ebp, 0xffff
mov ecx, dword [ecx]
test bp, bp
jne 0x100de4f0
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x24]
setae al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x2c], 0x62
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x24]
pop edi
mov dword [esi + 0x5c], 0
setae al
pop esi
pop ebp
pop ebx
add esp, 0xc
ret