Function at 0x100d61d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, ecx
mov dword [ebp - 8], edx
lea ecx, [edx - 1]
mov dword [ebp - 4], eax
push ebx
mov dword [ebp - 0x24], ecx
mov ebx, eax
sar ecx, 1
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], ecx
push esi
push edi
cmp eax, ecx
jge 0x100d6399
nop dword [eax]
mov esi, dword [ebp + 0x14]
lea ecx, [ebx + ebx]
mov edi, dword [ebp + 0x10]
add esi, 2
add esi, ecx
mov dword [ebp - 0x1c], ecx
mov edx, dword [edi + 8]
mov ecx, dword [edi + 4]
lea eax, [esi - 1]
dec edx
and eax, edx
and edx, esi
cmp byte [0x1029e239], 0
mov ebx, dword [ecx + eax*4]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0xc], eax
je 0x100d623d
mov al, byte [eax + 0xc]
cmp al, byte [ebx + 0xc]
jne 0x100d62fe
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
call fcn.100a7130
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov ecx, dword [ecx]
call fcn.100a7130
movss xmm2, dword [esi]
movss xmm1, dword [esi + 8]
movss xmm0, dword [eax]
subss xmm0, dword [ebx + 0x1810]
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [ebx + 0x1814]
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, dword [ebx + 0x1818]
mov eax, dword [ebp - 0xc]
subss xmm2, dword [eax + 0x1810]
subss xmm1, dword [eax + 0x1818]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [esi + 4]
subss xmm0, dword [eax + 0x1814]
mulss xmm2, xmm2
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm0, xmm2
addss xmm0, xmm1
call fcn.1003cac0
movss xmm1, dword [ebp - 0x10]
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [ebp - 0x14]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm1, xmm0
movss xmm0, dword [ebp - 0x18]
mulss xmm0, xmm0
addss xmm0, xmm1
call fcn.1003cac0
comiss xmm0, dword [ebp - 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
seta al
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [edi + 8]
inc ebx
mov edx, dword [edi + 4]
dec ecx
movzx eax, al
xor eax, 1
add ebx, eax
push 0x1800
lea eax, [ebx + esi]
and eax, ecx
mov edi, dword [edx + eax*4]
mov eax, dword [ebp - 4]
add eax, esi
and eax, ecx
mov esi, dword [edx + eax*4]
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
movzx eax, byte [edi + 0xc]
mov byte [esi + 0xc], al
lea eax, [edi + 0x10]
push eax
lea eax, [esi + 0x10]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [edi + 0x1810]
add esp, 0xc
mov ecx, dword [ebp - 0x20]
mov dword [esi + 0x1810], eax
mov eax, dword [edi + 0x1814]
mov dword [esi + 0x1814], eax
mov eax, dword [edi + 0x1818]
mov dword [esi + 0x1818], eax
movzx eax, byte [edi + 0x181c]
mov byte [esi + 0x181c], al
mov eax, ebx
mov dword [ebp - 4], eax
cmp ebx, ecx
jl 0x100d6200
mov edx, dword [ebp - 8]
cmp ebx, ecx
jne 0x100d642b
test dl, 1
jne 0x100d642b
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
dec eax
add eax, dword [ebp + 0x14]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 4]
dec edx
and eax, edx
push 0x1800
mov edi, dword [ecx + eax*4]
mov eax, dword [ebp - 4]
add eax, dword [ebp + 0x14]
and eax, edx
mov esi, dword [ecx + eax*4]
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
movzx eax, byte [edi + 0xc]
mov byte [esi + 0xc], al
lea eax, [edi + 0x10]
push eax
lea eax, [esi + 0x10]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [edi + 0x1810]
add esp, 0xc
mov dword [esi + 0x1810], eax
mov eax, dword [edi + 0x1814]
mov dword [esi + 0x1814], eax
mov eax, dword [edi + 0x1818]
mov dword [esi + 0x1818], eax
movzx eax, byte [edi + 0x181c]
mov byte [esi + 0x181c], al
mov eax, dword [ebp - 0x24]
push dword [ebp + 0x14]
mov edx, dword [ebp - 0x28]
mov ecx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100d6790
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret