Function at 0x1000dd85
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
mov edx, dword [0x1005b020]
push esi
push edi
mov edi, ecx
mov eax, dword [edx + 0x170c]
mov dword [ebp - 0x28], eax
mov eax, dword [edx + 0x1710]
mov dword [ebp - 0x10], eax
mov al, byte [ebx + 0x14]
mov dword [ebp - 0x1c], edi
test byte [edx + 0x1439], al
je 0x1000e095
mov eax, dword [ebx + 0x10]
and eax, 0xffffff
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0xc]
lea ecx, [eax + eax]
imul eax, eax, 9
push ecx
mov dword [ebp - 0x40], ecx
mov ecx, edi
sub eax, 6
push eax
call fcn.10011121
mov eax, dword [edi + 0x28]
push 2
pop esi
mov dword [ebp - 0x20], eax
lea ecx, [eax + 1]
mov dword [ebp - 0x3c], ecx
cmp dword [ebx + 0xc], esi
jle 0x1000de2c
movzx ecx, ax
mov eax, dword [edi + 0x30]
lea edx, [ecx + esi*2]
mov word [eax], cx
lea ecx, [edx - 2]
mov eax, dword [edi + 0x30]
mov word [eax + 2], cx
mov eax, dword [edi + 0x30]
mov word [eax + 4], dx
add dword [edi + 0x30], 6
inc esi
mov eax, dword [ebp - 0x20]
cmp esi, dword [ebx + 0xc]
jl 0x1000de02
mov esi, dword [ebx + 0xc]
mov eax, esi
shl eax, 3
call fcn.1001ec40
movss xmm4, dword [0x100433a4]
lea eax, [esi - 1]
xor edx, edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov ecx, esp
mov dword [ebp - 0xc], edx
test esi, esi
jle 0x1000df0f
mov edi, dword [ebp - 0xc]
mov edx, eax
mov eax, dword [ebx + 8]
shl edx, 3
mov dword [ebp - 0x14], edx
movss xmm1, dword [eax + edi*8]
lea esi, [eax + 4]
subss xmm1, dword [edx + eax]
mov dword [ebp - 0xc], esi
mov esi, edi
shl esi, 3
movaps xmm0, xmm1
movss dword [ebp - 0x2c], xmm1
movss xmm2, dword [esi + eax + 4]
subss xmm2, dword [edx + eax + 4]
mulss xmm0, xmm1
movaps xmm3, xmm2
movss dword [ebp - 0x34], xmm2
mulss xmm3, xmm2
addss xmm3, xmm0
comiss xmm3, dword [0x100433a0]
jbe 0x1000dedc
cvtps2pd xmm0, xmm3
call fcn.1002d250
movss xmm4, dword [0x100433a4]
mov ecx, esp
movss xmm1, dword [ebp - 0x2c]
movaps xmm3, xmm4
movss xmm2, dword [ebp - 0x34]
mov eax, dword [ebx + 8]
mov edx, dword [ebp - 0x14]
cvtsd2ss xmm0, xmm0
divss xmm3, xmm0
jmp 0x1000dedf
movaps xmm3, xmm4
mulss xmm1, xmm3
inc edi
mulss xmm2, xmm3
xorps xmm1, xmmword [0x10044220]
movss dword [edx + ecx + 4], xmm1
movss dword [edx + ecx], xmm2
mov edx, esi
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x14], edx
cmp edi, esi
jl 0x1000de67
mov edi, dword [ebp - 0x1c]
jmp 0x1000df18
mov eax, dword [ebx + 8]
lea edx, [eax + 4]
mov dword [ebp - 0xc], edx
test esi, esi
jle 0x1000e08d
movss xmm5, dword [0x10043510]
mov edx, ecx
mov esi, dword [ebp - 0xc]
sub edx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], edx
mov edi, dword [ebp - 4]
movss xmm2, dword [edx + esi]
addss xmm2, dword [ecx + eax*8 + 4]
movss xmm3, dword [ecx + edi*8]
addss xmm3, dword [ecx + eax*8]
mov edi, dword [ebp - 0x1c]
mulss xmm2, xmm5
mulss xmm3, xmm5
movaps xmm1, xmm2
mulss xmm1, xmm2
movaps xmm0, xmm3
mulss xmm0, xmm3
addss xmm1, xmm0
comiss xmm1, dword [0x10043f18]
jbe 0x1000df91
movaps xmm0, xmm4
divss xmm0, xmm1
movss xmm1, dword [0x10043f88]
minss xmm1, xmm0
movaps xmm0, xmm1
mulss xmm2, xmm1
mulss xmm3, xmm0
movss xmm0, dword [esi - 4]
mov ecx, dword [edi + 0x2c]
mov edx, dword [ebp - 0x28]
mulss xmm3, xmm5
mulss xmm2, xmm5
subss xmm0, xmm3
movss dword [ebp - 0x30], xmm0
movss xmm0, dword [esi]
mov eax, dword [ebp - 0x30]
subss xmm0, xmm2
mov dword [ecx], eax
movss dword [ebp - 0x2c], xmm0
mov eax, dword [ebp - 0x2c]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebx + 0x10]
mov dword [eax + 0x10], ecx
movss xmm0, dword [esi - 4]
addss xmm2, dword [esi]
mov ecx, dword [edi + 0x2c]
addss xmm0, xmm3
movss dword [ebp - 0x14], xmm2
movss dword [ebp - 0x18], xmm0
mov eax, dword [ebp - 0x18]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], ecx
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x24], ecx
mov eax, dword [ebp - 0x20]
add dword [edi + 0x2c], 0x28
movzx ecx, ax
mov eax, dword [ebp - 4]
lea esi, [ecx + eax*2]
mov eax, dword [edi + 0x30]
mov word [eax], si
mov eax, dword [ebp - 8]
lea ecx, [ecx + eax*2]
mov eax, dword [edi + 0x30]
mov word [eax + 2], cx
mov eax, dword [ebp - 0x3c]
movzx edx, ax
mov eax, dword [ebp - 8]
lea ecx, [edx + eax*2]
mov eax, dword [edi + 0x30]
mov word [eax + 4], cx
mov eax, dword [edi + 0x30]
mov word [eax + 6], cx
mov eax, dword [ebp - 4]
lea ecx, [edx + eax*2]
mov eax, dword [edi + 0x30]
mov edx, dword [ebp - 0x34]
mov word [eax + 8], cx
mov eax, dword [edi + 0x30]
mov ecx, dword [ebp - 4]
mov word [eax + 0xa], si
mov eax, ecx
add dword [edi + 0x30], 0xc
inc ecx
mov esi, dword [ebp - 0xc]
add esi, 8
mov dword [ebp - 4], ecx
cmp ecx, dword [ebx + 0xc]
mov ecx, esp
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esi
jl 0x1000df35
mov eax, dword [ebp - 0x40]
jmp 0x1000e11e
mov esi, dword [ebx + 0xc]
push esi
lea eax, [esi - 2]
imul eax, eax, 3
push eax
call fcn.10011121
test esi, esi
jle 0x1000e0dd
mov edx, dword [ebx + 8]
mov ecx, dword [edi + 0x2c]
mov eax, dword [edx]
lea edx, [edx + 8]
mov dword [ecx], eax
mov eax, dword [edx - 4]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebx + 0x10]
mov dword [eax + 0x10], ecx
add dword [edi + 0x2c], 0x14
sub esi, 1
jne 0x1000e0ac
mov eax, dword [ebx + 0xc]
push 2
pop esi
cmp eax, esi
jle 0x1000e11e
mov ecx, dword [edi + 0x30]
mov ax, word [edi + 0x28]
movzx edx, si
mov word [ecx], ax
mov cx, word [edi + 0x28]
mov eax, dword [edi + 0x30]
dec cx
add cx, dx
mov word [eax + 2], cx
mov eax, dword [edi + 0x30]
mov cx, word [edi + 0x28]
add cx, dx
mov word [eax + 4], cx
add dword [edi + 0x30], 6
inc esi
mov eax, dword [ebx + 0xc]
cmp esi, eax
jl 0x1000e0e7
movzx eax, ax
add dword [edi + 0x28], eax
lea esp, [ebp - 0x48]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10