Function at 0x101c8f30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x104d5404]
xor eax, ebp
mov dword [ebp - 4], eax
push 2
mov eax, dword [ebp + 8]
push eax
call fcn.101c8860
add esp, 8
mov dword [ebp - 0x14], eax
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + edx]
shl ecx, 8
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 0x14]
movzx edx, byte [eax + edx]
add ecx, edx
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
shr eax, 0xa
and eax, 0x1f
sub eax, 0xf
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 8
xor edx, edx
jne 0x101c8f93
mov eax, dword [ebp - 0x24]
push eax
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor edx, edx
jne 0x101c8f86
cmp dword [ebp - 0x1c], 0xfffffff1
jne 0x101c906e
mov eax, dword [ebp - 0x18]
and eax, 0x3ff
jne 0x101c8fe7
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + edx]
and ecx, 0x80
mov edx, 1
imul eax, edx, 7
mov byte [ebp + eax - 0xc], cl
jmp 0x101c9069
mov ecx, 1
imul edx, ecx, 7
mov byte [ebp + edx - 0xc], 0x3f
mov eax, dword [ebp - 0x18]
shr eax, 6
and eax, 0xf
movzx ecx, al
add ecx, 0x10
mov edx, 1
imul eax, edx, 6
mov byte [ebp + eax - 0xc], cl
mov ecx, dword [ebp - 0x18]
shl ecx, 2
and ecx, 0xff
mov edx, 1
imul eax, edx, 5
mov byte [ebp + eax - 0xc], cl
lea ecx, [ebp - 0xc]
push ecx
call fcn.101abb20
add esp, 4
movsd xmm0, qword [ebp - 0xc]
subsd xmm0, qword [0x103b14e0]
movsd qword [ebp - 0x30], xmm0
mov edx, dword [ebp - 0x18]
and edx, 0x8000
je 0x101c9061
movsd xmm0, qword [ebp - 0x30]
xorps xmm0, xmmword [0x103b1600]
movsd qword [ebp - 0x30], xmm0
fld qword [ebp - 0x30]
jmp 0x101c91c6
jmp 0x101c91b7
cmp dword [ebp - 0x1c], 0x10
jne 0x101c90e6
mov eax, dword [ebp - 0x18]
and eax, 0x3ff
jne 0x101c90b1
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + edx]
and ecx, 0x80
add ecx, 0x7f
mov edx, 1
imul eax, edx, 7
mov byte [ebp + eax - 0xc], cl
mov ecx, 1
imul edx, ecx, 6
mov byte [ebp + edx - 0xc], 0xf0
jmp 0x101c90e1
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + ecx]
and eax, 0x80
add eax, 0x7f
mov ecx, 1
imul edx, ecx, 7
mov byte [ebp + edx - 0xc], al
mov eax, 1
imul ecx, eax, 6
mov byte [ebp + ecx - 0xc], 0xf8
jmp 0x101c91b7
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + eax]
and edx, 0x80
je 0x101c9106
mov dword [ebp - 0x20], closesocket
jmp 0x101c910d
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x3ff
shl ecx, 0x14
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + eax]
and edx, 3
shl edx, 0x12
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x10], edx
mov eax, 1
shl eax, 0
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + eax]
and edx, 0xff
shl edx, 0xa
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
shr eax, 0x18
and eax, 0xff
mov ecx, 1
imul edx, ecx, 7
mov byte [ebp + edx - 0xc], al
mov eax, dword [ebp - 0x10]
shr eax, 0x10
and eax, 0xff
mov ecx, 1
imul edx, ecx, 6
mov byte [ebp + edx - 0xc], al
mov eax, dword [ebp - 0x10]
shr eax, 8
and eax, 0xff
mov ecx, 1
imul edx, ecx, 5
mov byte [ebp + edx - 0xc], al
mov eax, dword [ebp - 0x10]
and eax, 0xff
mov ecx, 1
shl ecx, 2
mov byte [ebp + ecx - 0xc], al
lea edx, [ebp - 0xc]
push edx
call fcn.101abb20
add esp, 4
fld qword [ebp - 0xc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10353876
mov esp, ebp
pop ebp
ret