Function at 0x100d9f70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x68
push esi
mov esi, ecx
mov dword [ebp - 0x2c], 1
push edi
xorps xmm2, xmm2
mov dword [ebp - 8], esi
mov edi, edx
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x60], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 4], edi
movss xmm1, dword [eax]
mov eax, 0x100
comiss xmm1, xmm2
jbe 0x100da006
mov edx, dword [edi + 0x1c]
mov edi, dword [edi + 4]
cwde
movzx ecx, byte [edx + edi + 6]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edx + edi + 7]
movzx edx, byte [edx + edi + 5]
add cx, ax
movsx esi, cx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x1c]
movzx ecx, byte [eax + edi + 4]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movsx eax, dx
sub eax, esi
mov esi, dword [ebp - 8]
movd xmm0, eax
jmp 0x100da026
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 4]
xorps xmm1, xmmword [0x101ffbc0]
movzx ecx, byte [edx + eax + 0x12]
movzx eax, byte [edx + eax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
mov edx, dword [ebx + 8]
cvtdq2ps xmm0, xmm0
movzx edi, byte [edx + 0x14]
mov eax, edi
mov dword [esi + 0x1c], edi
movss xmm3, dword [0x101ff4b0]
divss xmm1, xmm0
movzx ecx, byte [edx + 0x15]
shr eax, 0x1f
mov dword [esi + 0x20], ecx
movd xmm0, edi
cvtdq2pd xmm0, xmm0
movss dword [ebp - 0xc], xmm1
movaps xmm1, xmm3
addsd xmm0, qword [eax*8 + 0x101ffb20]
mov eax, ecx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movd xmm0, ecx
movss dword [ebp - 0x54], xmm1
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x101ffb20]
mov eax, 1
cvtpd2ps xmm0, xmm0
divss xmm3, xmm0
movss dword [ebp - 0x58], xmm3
test edi, edi
jne 0x100da0a2
xorps xmm1, xmm1
jmp 0x100da0bf
movd xmm0, edi
sub eax, edi
cvtdq2ps xmm0, xmm0
movd xmm1, eax
mov eax, 1
cvtdq2ps xmm1, xmm1
addss xmm0, xmm0
divss xmm1, xmm0
movss dword [ebp - 0x1c], xmm1
test ecx, ecx
jne 0x100da0cd
xorps xmm1, xmm1
jmp 0x100da0e5
movd xmm0, ecx
sub eax, ecx
cvtdq2ps xmm0, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
addss xmm0, xmm0
divss xmm1, xmm0
xor ecx, ecx
movss dword [ebp - 0x24], xmm1
mov dword [ebp - 0x28], ecx
cmp dword [edx + 0xc], ecx
jle 0x100da48d
mov edi, dword [ebx + 0x10]
add edi, 8
mov dword [ebp - 0x18], ecx
xor eax, eax
cmp dword [edi + 4], 0
je 0x100da470
cmp word [edi - 4], 0
je 0x100da470
cmp word [edi - 2], 0
je 0x100da470
mov eax, dword [edx + 0x10]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [edx + 8]
test eax, eax
jne 0x100da13a
mov edx, dword [edx + 4]
add edx, ecx
jmp 0x100da13d
mov edx, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
call fcn.100d5200
movzx ecx, word [esi + 0x14]
add word [edi], cx
add word [edi + 2], cx
sub word [edi - 4], cx
sub word [edi - 2], cx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0x1c]
mov ecx, dword [edx + 4]
mov esi, dword [edx + 4]
movzx ecx, byte [eax + ecx + 0x23]
movzx eax, byte [eax + esi + 0x22]
mov esi, dword [ebp - 8]
shl eax, 8
add eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
cmp ecx, eax
mov eax, dword [edx + 4]
jge 0x100da1a4
lea edx, [eax + ecx*4]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x20]
mov eax, 0x100
cwde
movzx ecx, byte [edx]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edx + 1]
jmp 0x100da1c6
mov ecx, dword [ebp - 0x14]
mov edx, dword [edx + 0x20]
lea esi, [eax + ecx*4]
mov eax, 0x100
movzx ecx, byte [esi + edx - 4]
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [esi + edx - 3]
mov esi, dword [ebp - 8]
add cx, ax
mov edx, dword [ebp - 0x10]
movzx eax, cx
cwde
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101ffb20]
mov eax, dword [esi + 0x20]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0xc]
movss dword [ebp - 0x34], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101ffb20]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x64]
push eax
cvtpd2ps xmm0, xmm0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
mulss xmm0, dword [ebp - 0xc]
movss dword [ebp - 0x44], xmm0
call fcn.100d56a0
add esp, 0x10
test eax, eax
jne 0x100da252
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
jmp 0x100da2cc
xorps xmm0, xmm0
xorps xmm1, xmm1
cvtsi2ss xmm0, dword [ebp - 0x14]
sub esp, 8
mulss xmm0, dword [ebp - 0x34]
addss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x38], xmm0
fld qword [ebp - 0x38]
fstp qword [esp]
call fcn.101619a0
fstp qword [ebp - 0x38]
movsd xmm0, qword [ebp - 0x38]
xorps xmm1, xmm1
cvtsi2ss xmm1, dword [ebp - 0x3c]
cvtpd2ps xmm0, xmm0
mulss xmm1, dword [ebp - 0x44]
cvttss2si eax, xmm0
xorps xmm0, xmm0
subss xmm0, xmm1
mov dword [ebp - 0x14], eax
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x48], xmm0
fld qword [ebp - 0x48]
fstp qword [esp]
call fcn.101619a0
fstp qword [ebp - 0x48]
movsd xmm0, qword [ebp - 0x48]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
mov dword [ebp - 0x20], eax
mov ecx, dword [esi + 0x20]
mov eax, ecx
push dword [ebp - 0x10]
mov edx, dword [esi + 0x1c]
shr eax, 0x1f
sub esp, 0x10
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mov esi, dword [esi + 0x10]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
addsd xmm0, qword [eax*8 + 0x101ffb20]
mov eax, edx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0xc]
movss dword [esp + 4], xmm0
movd xmm0, edx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x101ffb20]
movzx eax, word [edi - 2]
sub eax, ecx
mov ecx, dword [ebp - 4]
inc eax
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0xc]
movss dword [esp], xmm0
push esi
push eax
movzx eax, word [edi - 4]
sub eax, edx
movzx edx, word [edi + 2]
imul edx, esi
inc eax
mov esi, dword [ebp - 8]
push eax
movzx eax, word [edi]
add edx, eax
add edx, dword [esi + 0x24]
call fcn.100d98b0
mov eax, dword [esi + 0x1c]
add esp, 0x20
cmp eax, 1
jbe 0x100da392
mov esi, dword [esi + 0x10]
movzx ecx, word [edi + 2]
movzx edx, word [edi - 4]
push eax
movzx eax, word [edi - 2]
imul ecx, esi
push esi
mov esi, dword [ebp - 8]
push eax
movzx eax, word [edi]
add ecx, eax
add ecx, dword [esi + 0x24]
call fcn.100d9aa0
add esp, 0xc
mov eax, dword [esi + 0x20]
cmp eax, 1
jbe 0x100da3c2
mov esi, dword [esi + 0x10]
movzx ecx, word [edi + 2]
movzx edx, word [edi - 4]
push eax
movzx eax, word [edi - 2]
imul ecx, esi
push esi
mov esi, dword [ebp - 8]
push eax
movzx eax, word [edi]
add ecx, eax
add ecx, dword [esi + 0x24]
call fcn.100d9cf0
add esp, 0xc
mov ecx, dword [ebp - 0x4c]
movzx eax, word [edi]
movd xmm0, dword [ebp - 0x50]
cvtdq2ps xmm0, xmm0
mov word [ecx], ax
movzx eax, word [edi + 2]
mov word [ecx + 2], ax
movzx eax, word [edi]
add ax, word [edi - 4]
mulss xmm0, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
mov word [ecx + 4], ax
movzx eax, word [edi - 2]
add ax, word [edi + 2]
movss dword [ecx + 0x10], xmm0
movd xmm0, dword [ebp - 0x14]
cvtdq2ps xmm0, xmm0
mov word [ecx + 6], ax
mulss xmm0, dword [ebp - 0x54]
addss xmm0, dword [ebp - 0x1c]
movss dword [ecx + 8], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x58]
addss xmm0, dword [ebp - 0x24]
movss dword [ecx + 0xc], xmm0
movzx eax, word [edi - 4]
add eax, dword [ebp - 0x14]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x54]
addss xmm0, dword [ebp - 0x1c]
movss dword [ecx + 0x14], xmm0
movzx eax, word [edi - 2]
add eax, edx
mov edx, dword [ebx + 8]
movd xmm0, eax
mov eax, dword [ebp - 0x18]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x58]
addss xmm0, dword [ebp - 0x24]
movss dword [ecx + 0x18], xmm0
mov ecx, dword [ebp - 0x28]
jmp 0x100da477
mov dword [ebp - 0x2c], 0
inc ecx
add eax, 0x1c
add edi, 0x10
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], eax
cmp ecx, dword [edx + 0xc]
jl 0x100da103
mov eax, dword [ebp - 0x5c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x60]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret