Function at 0x10018580
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
call 0x1001858c
pop eax
mov edi, ecx
mov cl, 0x81
mov byte [esp + 0x28], 0x81
mov byte [esp + 0x34], 0x81
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x5c]
add eax, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x44], eax
mov ebx, eax
mov byte [esp + 0x15], al
mov al, byte [esp + 0xe]
mov byte [esp + 0xf], ah
mov dword [esp + 0x10], ebx
mov ebx, eax
mov al, ah
mov dword [esp], eax
jmp 0x1001861c
xorps xmm0, xmm0
xor ebp, ebp
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x10], 0
mov dword [esp], 0
movsd qword [esp + 0x28], xmm0
push edx
push edi
call fcn.10037430
add esp, 8
test al, al
mov edx, ebp
mov ecx, esi
jne 0x100188a8
cmp cl, 0x80
je 0x100185e0
movzx eax, cl
cmp eax, 0x81
je 0x10018650
cmp bl, byte [esp + 0x10]
jae 0x10018650
mov eax, dword [esp]
mov byte [esp + 0x28], cl
mov ebp, edx
mov esi, ecx
mov byte [esp + 0x29], al
movzx eax, bl
inc bl
mov byte [esp + 0x32], bl
movzx edx, byte [esp + eax + 0x28]
jmp 0x10018606
mov esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x24]
je 0x100188b2
movzx edx, byte [esi]
movzx eax, dl
test dl, dl
js 0x1001866b
inc esi
jmp 0x100186ca
movzx ebx, byte [esi + 1]
and eax, 0x1f
and ebx, 0x3f
cmp dl, 0xdf
jbe 0x100186c2
movzx ecx, byte [esi + 2]
shl ebx, 6
and ecx, 0x3f
or ecx, ebx
cmp dl, 0xf0
jb 0x1001876b
movzx ebx, byte [esi + 3]
and eax, 7
shl ecx, 6
shl eax, 0x12
and ebx, 0x3f
or ebx, ecx
or ebx, eax
cmp ebx, 0x110000
je 0x100188b2
add esi, 4
mov al, 2
cmp ebx, 0x27
mov dword [esp + 0x1c], esi
jbe 0x100186db
jmp 0x10018784
shl eax, 6
add esi, 2
or eax, ebx
mov ebx, eax
mov al, 2
cmp ebx, 0x27
mov dword [esp + 0x1c], esi
ja 0x10018784
mov edx, dword [ebx*4 + 0x100188b8]
mov al, 0x5c
xor ebp, ebp
xor ecx, ecx
mov dword [esp], 0
mov dword [esp + 0x10], eax
mov al, 2
mov ah, 0x30
add edx, dword [esp + 0x20]
jmp edx
cmp byte [esp + 0x10], 0x81
je 0x100188b2
movzx esi, cx
mov word [esp + 0x16], cx
mov ecx, dword [esp + 0x10]
mov edx, ebp
mov byte [esp + 0xf], ah
mov dword [esp + 0x18], ebp
shld edx, ebx, 0x10
shl ebx, 0x10
or esi, ebx
mov ebx, dword [esp]
mov ah, byte [esp + 0xf]
mov dword [esp + 0x2e], edx
mov dword [esp + 0x2a], esi
mov byte [esp + 0x32], bl
mov byte [esp + 0xe], bl
mov byte [esp + 0x33], al
shld edx, esi, 0x10
jmp 0x100185b9
shl eax, 0xc
add esi, 3
or ecx, eax
mov ebx, ecx
mov al, 2
cmp ebx, 0x27
mov dword [esp + 0x1c], esi
jbe 0x100186db
cmp ebx, 0x5c
jne 0x100187a3
mov dl, 0x5c
mov ah, 0x5c
xor ebp, ebp
xor ebx, ebx
xor ecx, ecx
mov dword [esp], 0
mov dword [esp + 0x10], edx
jmp 0x1001871d
cmp ebx, 0x2ff
jbe 0x100187b8
push ebx
call fcn.10038740
add esp, 4
test al, al
jne 0x100187e8
push ebx
call fcn.10039ae0
add esp, 4
test al, al
je 0x100187e8
mov edx, dword [esp + 0x18]
movzx esi, word [esp + 0x16]
movzx eax, byte [esp + 0x15]
mov cl, 0x80
shld edx, ebx, 0x10
shl ebx, 0x10
or esi, ebx
movzx ebx, byte [esp + 0xe]
jmp 0x1001874a
mov eax, ebx
mov byte [esp + 6], 0
mov word [esp + 4], 0
or eax, 1
bsr eax, eax
xor eax, 0x1c
shr eax, 2
lea ecx, [eax - 2]
mov dword [esp], ecx
mov ecx, ebx
shr ecx, 0x14
movzx ecx, byte [ecx + str.0123456789abcdefassertion_failed:_len___mem::size_of::_c::sockaddr_in___C:Userslucak.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrary_std_src_sys_common_net.rsQ]
mov byte [esp + 7], cl
mov ecx, ebx
shr ecx, 0x10
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefassertion_failed:_len___mem::size_of::_c::sockaddr_in___C:Userslucak.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrary_std_src_sys_common_net.rsQ]
mov byte [esp + 8], cl
mov ecx, ebx
shr ecx, 0xc
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefassertion_failed:_len___mem::size_of::_c::sockaddr_in___C:Userslucak.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrary_std_src_sys_common_net.rsQ]
mov byte [esp + 9], cl
mov ecx, ebx
shr ecx, 8
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefassertion_failed:_len___mem::size_of::_c::sockaddr_in___C:Userslucak.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrary_std_src_sys_common_net.rsQ]
mov byte [esp + 0xa], cl
mov ecx, ebx
and ebx, 0xf
shr ecx, 4
and ecx, 0xf
movzx ecx, byte [ecx + str.0123456789abcdefassertion_failed:_len___mem::size_of::_c::sockaddr_in___C:Userslucak.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrary_std_src_sys_common_net.rsQ]
mov byte [esp + 0xb], cl
movzx ecx, byte [ebx + str.0123456789abcdefassertion_failed:_len___mem::size_of::_c::sockaddr_in___C:Userslucak.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrary_std_src_sys_common_net.rsQ]
mov byte [esp + 0xc], cl
mov byte [esp + 0xd], 0x7d
mov word [esp + eax + 2], 0x755c
mov byte [esp + eax + 4], 0x7b
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 6]
mov ebp, dword [esp + 0xa]
mov dword [esp + 0x10], eax
mov ah, byte [esp + 5]
mov ebx, ecx
mov al, 0xa
shrd ebx, ebp, 0x10
shr ebp, 0x10
jmp 0x1001871d
mov al, 1
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x100188aa