Function at 0xde4df4
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
mov eax, 0x1041870
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
call fcn.00f4f878
mov dword [ebp - 0xc], 1
mov word [ebp - 0x18], 8
mov edx, dword [ebp + 0xc]
cmp dword [edx + 8], 0
je 0xde4e2e
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x14]
cdq
idiv dword [ecx + 8]
mov ebx, eax
jmp 0xde4e30
xor ebx, ebx
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
cmp eax, 8
jne 0xde4e6d
cmp dword [edx + 0x10], 0x10
jg 0xde4e6d
lea edx, [ebx + 1]
sar edx, 1
jns 0xde4e51
adc edx, 0
add edx, 3
test edx, edx
jns 0xde4e5b
add edx, 3
sar edx, 2
shl edx, 2
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], 4
jmp 0xde4e9d
cmp eax, 0x20
jne 0xde4e97
mov ecx, dword [edx + 4]
shl ecx, 3
lea ecx, [ecx + ecx*2]
add ecx, 0x1f
test ecx, ecx
jns 0xde4e85
add ecx, 0x1f
sar ecx, 5
shl ecx, 2
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], 0x18
jmp 0xde4e9d
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x64], 0x28
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 4]
mov dword [ebp - 0x60], edx
mov edx, dword [eax + 8]
mov dword [ebp - 0x5c], edx
mov word [ebp - 0x58], 1
mov cx, word [ebp - 0x2c]
mov word [ebp - 0x56], cx
xor ecx, ecx
mov dword [ebp - 0x54], ecx
imul edx, dword [ebp - 0x30]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], 0xb12
mov dword [ebp - 0x48], 0xb12
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x64]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
push eax
push esi
call fcn.00de4d34
add esp, 8
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0xc], 0x20
je 0xde4f72
mov edx, dword [eax + 0x10]
shl edx, 2
push edx
call fcn.00f4def0
pop ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x1c]
xor esi, esi
jmp 0xde4f46
mov ecx, dword [edx]
and ecx, 0xff
mov byte [eax], cl
inc eax
mov ecx, dword [edx]
shr ecx, 8
and ecx, 0xff
mov byte [eax], cl
inc eax
mov ecx, dword [edx]
shr ecx, 0x10
and ecx, 0xff
mov byte [eax], cl
inc eax
mov byte [eax], 0
inc eax
inc esi
add edx, 4
mov ecx, dword [ebp + 0xc]
cmp esi, dword [ecx + 0x10]
jl 0xde4f17
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x10]
shl edx, 2
push edx
mov eax, dword [ebp - 0x38]
push eax
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x24]
add esp, 0xc
mov eax, dword [ebp - 0x38]
push eax
call fcn.00f4dd2c
pop ecx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0xc], 1
jne 0xde4fbd
cmp dword [eax + 0x18], 1
je 0xde4fbd
mov word [ebp - 0x18], 0x14
push 1
lea edx, [ebp + 0xc]
push edx
lea ecx, [ebp - 4]
push ecx
call fcn.00de2104
add esp, 0xc
lea eax, [ebp - 4]
push eax
inc dword [ebp - 0xc]
lea edx, [ebp + 0xc]
push edx
call fcn.00de0c38
add esp, 8
dec dword [ebp - 0xc]
push 2
lea ecx, [ebp - 4]
push ecx
call fcn.00de0bf8
add esp, 8
cmp dword [ebp - 0x2c], 1
je 0xde4fc9
cmp dword [ebp - 0x2c], 8
jne 0xde5039
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0xde5015
push ebx
mov edi, esi
mov eax, dword [ebp + 0xc]
cmp edi, dword [eax + 8]
jl 0xde4fed
push edi
push 0x104030e
call fcn.00de1384
add esp, 8
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x20], 0
je 0xde5001
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x20]
mov edx, dword [eax + edi*4]
jmp 0xde5003
xor edx, edx
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
dec esi
test esi, esi
jge 0xde4fd4
mov al, 1
lea edx, [ebp + 0xc]
push eax
dec dword [ebp - 0xc]
push 2
push edx
call fcn.00de0bf8
add esp, 8
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0xde5197
mov ebx, dword [ebp - 0x30]
push ebx
call fcn.00f4def0
pop ecx
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x18], 8
push ebx
push 0
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00f4f330
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + 8]
dec esi
test esi, esi
jl 0xde516e
cmp dword [ebp - 0x2c], 4
jne 0xde50dd
mov ebx, esi
mov eax, dword [ebp + 0xc]
cmp ebx, dword [eax + 8]
jl 0xde5088
push ebx
push 0x1040317
call fcn.00de1384
add esp, 8
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x20], 0
je 0xde509c
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x20]
mov edx, dword [eax + ebx*4]
jmp 0xde509e
xor edx, edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx + 4]
sar edi, 1
jns 0xde50ae
adc edi, 0
add edi, eax
cmp edi, eax
jbe 0xde50cb
mov cl, byte [edx]
mov bl, byte [edx + 1]
shl ecx, 4
and bl, 0xf
or cl, bl
add edx, 2
mov byte [eax], cl
inc eax
cmp edi, eax
ja 0xde50b4
mov ecx, dword [ebp + 0xc]
test byte [ecx + 4], 1
je 0xde5151
mov dl, byte [edx]
shl edx, 4
mov byte [eax], dl
jmp 0xde5151
mov ebx, esi
mov eax, dword [ebp + 0xc]
cmp ebx, dword [eax + 8]
jl 0xde50f5
push ebx
push 0x1040320
call fcn.00de1384
add esp, 8
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x20], 0
je 0xde5109
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0x20]
mov edx, dword [ecx + ebx*4]
jmp 0xde510b
xor edx, edx
mov word [ebp - 0x18], 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
shl ecx, 2
add ecx, edx
mov eax, dword [ebp - 0x3c]
cmp ecx, edx
jbe 0xde5151
mov ebx, dword [edx]
and ebx, 0xff
mov byte [eax], bl
inc eax
mov ebx, dword [edx]
shr ebx, 8
and ebx, 0xff
mov byte [eax], bl
inc eax
mov ebx, dword [edx]
add edx, 4
shr ebx, 0x10
and ebx, 0xff
mov byte [eax], bl
inc eax
cmp ecx, edx
ja 0xde5123
mov eax, dword [ebp - 0x30]
push eax
mov edx, dword [ebp - 0x3c]
push edx
mov ecx, dword [ebp - 0x34]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
add esp, 0xc
dec esi
test esi, esi
jge 0xde506a
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00f4dd2c
pop ecx
mov al, 1
push eax
lea edx, [ebp + 0xc]
dec dword [ebp - 0xc]
push 2
push edx
call fcn.00de0bf8
add esp, 8
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret