Function at 0x1800182cb
Capabilities:
Encrypt data using rc4 prga
Get socket status

Disassembly:
push rbp
sub rsp, 0x2d0
lea rbp, [rsp + 0x30]
mov qword [rsp], rax
mov rax, 0x2cc
mov dword [rsp + rax], 0xcccccccc
sub rax, 4
cmp rax, 4
jg 0x1800182e3
mov rax, qword [rsp]
mov dword [rsp], 0xcccccccc
mov dword [rsp + 4], 0xcccccccc
mov qword [rbp + 0x78], rsi
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x2b0], rcx
mov dword [rbp + 0x2b8], edx
mov rax, qword [0x1800f4ae8]
xor rax, rbp
mov qword [rbp + 0x298], rax
mov byte [rbp + 0x18], 0
mov dword [rbp + 0x88], 0
mov dword [rbp + 0x1c], 0
mov eax, dword [rbp + 0x1c]
mov edx, dword [rbp + 0x88]
cmp eax, edx
jae 0x18001837c
lea rax, [rbp + 0x90]
mov edx, dword [rbp + 0x1c]
imul rdx, rdx, 8
add rax, rdx
mov rax, qword [rax]
mov rdx, qword [rbp + 0x2b0]
cmp rax, rdx
je 0x18001837c
mov eax, 1
add eax, dword [rbp + 0x1c]
mov dword [rbp + 0x1c], eax
jmp 0x180018342
mov eax, dword [rbp + 0x1c]
mov edx, dword [rbp + 0x88]
cmp eax, edx
jne 0x1800183c0
mov eax, dword [rbp + 0x88]
cmp eax, 0x40
jae 0x1800183c0
mov rax, qword [rbp + 0x2b0]
lea rdx, [rbp + 0x90]
mov ecx, dword [rbp + 0x1c]
imul rcx, rcx, 8
add rdx, rcx
mov qword [rdx], rax
mov eax, 1
add eax, dword [rbp + 0x88]
mov dword [rbp + 0x88], eax
mov eax, 0
test eax, eax
jne 0x18001833b
mov eax, dword [rbp + 0x2b8]
cmp eax, 0xffffffff
jne 0x180018520
mov eax, 0
cmp eax, 1
je 0x1800186af
mov dword [rbp + 8], 0x7fffffff
mov dword [rbp + 0xc], 0
mov eax, dword [rbp + 0x2b0]
inc eax
mov edx, 0
lea rcx, [rbp + 0x88]
mov ebx, 0
lea rsi, [rbp + 8]
mov qword [rsp + 0x20], rsi
mov rsi, qword [sym.imp.WS2_32.dll_select]
mov qword [rbp + 0x50], rcx
mov ecx, eax
mov rax, qword [rbp + 0x50]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0x24], eax
mov byte [rbp + 0x18], 1
mov eax, dword [rbp + 0x24]
mov dword [rbp + 0x28], eax
movzx eax, byte [rbp + 0x18]
test eax, eax
jne 0x180018457
lea rax, [0x180101fc4]
mov rcx, rax
call fcn.180064a90
mov eax, dword [rbp + 0x28]
test eax, eax
jge 0x1800184be
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov dword [rbp + 0x30], eax
mov eax, dword [rbp + 0x30]
mov dword [rbp + 0x38], eax
mov eax, dword [rbp + 0x38]
cmp eax, 0x2734
je 0x1800183dc
mov eax, 0xffffffff
mov dword [rbp + 0x3c], eax
lea rax, reloc.WS2_32.dll_bind
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov rax, qword [rbp + 0x298]
xor rax, rbp
mov rcx, rax
call fcn.1800612f0
mov eax, dword [rbp + 0x3c]
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
lea rsp, [rbp + 0x2a0]
pop rbp
ret
movzx eax, byte [rbp + 0x18]
test eax, eax
jne 0x1800184d5
lea rax, [0x180101fc4]
mov rcx, rax
call fcn.180064a90
mov eax, dword [rbp + 0x28]
test eax, eax
jle 0x1800183dc
mov eax, 1
mov dword [rbp + 0x40], eax
lea rax, reloc.WS2_32.dll_bind
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov rax, qword [rbp + 0x298]
xor rax, rbp
mov rcx, rax
call fcn.1800612f0
mov eax, dword [rbp + 0x40]
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
lea rsp, [rbp + 0x2a0]
pop rbp
ret
mov eax, dword [rbp + 0x2b8]
mov edx, 0x3e8
mov dword [rbp + 0x58], edx
cdq
mov ecx, dword [rbp + 0x58]
idiv ecx
mov dword [rbp + 8], eax
mov eax, dword [rbp + 0x2b8]
mov edx, 0x3e8
mov dword [rbp + 0x60], edx
cdq
mov ecx, dword [rbp + 0x60]
idiv ecx
imul eax, edx, 0x3e8
mov dword [rbp + 0xc], eax
mov eax, dword [rbp + 0x2b0]
inc eax
mov edx, 0
lea rcx, [rbp + 0x88]
mov ebx, 0
lea rsi, [rbp + 8]
mov qword [rsp + 0x20], rsi
mov rsi, qword [sym.imp.WS2_32.dll_select]
mov qword [rbp + 0x68], rcx
mov ecx, eax
mov rax, qword [rbp + 0x68]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0x20], eax
mov byte [rbp + 0x18], 1
mov eax, dword [rbp + 0x20]
mov dword [rbp + 0x28], eax
movzx eax, byte [rbp + 0x18]
test eax, eax
jne 0x1800185b3
lea rax, [0x180101fc4]
mov rcx, rax
call fcn.180064a90
mov eax, dword [rbp + 0x28]
test eax, eax
jge 0x18001865a
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov dword [rbp + 0x2c], eax
mov eax, dword [rbp + 0x2c]
mov dword [rbp + 0x34], eax
mov eax, dword [rbp + 0x34]
cmp eax, 0x2734
jne 0x18001861a
mov eax, 0
mov dword [rbp + 0x44], eax
lea rax, reloc.WS2_32.dll_bind
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov rax, qword [rbp + 0x298]
xor rax, rbp
mov rcx, rax
call fcn.1800612f0
mov eax, dword [rbp + 0x44]
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
lea rsp, [rbp + 0x2a0]
pop rbp
ret
mov eax, 0xffffffff
mov dword [rbp + 0x48], eax
lea rax, reloc.WS2_32.dll_bind
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov rax, qword [rbp + 0x298]
xor rax, rbp
mov rcx, rax
call fcn.1800612f0
mov eax, dword [rbp + 0x48]
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
lea rsp, [rbp + 0x2a0]
pop rbp
ret
movzx eax, byte [rbp + 0x18]
test eax, eax
jne 0x180018671
lea rax, [0x180101fc4]
mov rcx, rax
call fcn.180064a90
mov eax, dword [rbp + 0x28]
mov dword [rbp + 0x4c], eax
lea rax, reloc.WS2_32.dll_bind
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov rax, qword [rbp + 0x298]
xor rax, rbp
mov rcx, rax
call fcn.1800612f0
mov eax, dword [rbp + 0x4c]
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
lea rsp, [rbp + 0x2a0]
pop rbp
ret
lea rax, reloc.WS2_32.dll_bind
mov rdx, rax
mov rcx, rbp
call fcn.180061140
mov rax, qword [rbp + 0x298]
xor rax, rbp
mov rcx, rax
call fcn.1800612f0
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
lea rsp, [rbp + 0x2a0]
pop rbp
ret