Function at 0x14002d6e0
Capabilities:
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push rbp
lea rbp, [rsp - 0x960]
sub rsp, 0xa60
mov rax, qword [0x140084008]
xor rax, rsp
mov qword [rbp + 0x950], rax
mov ecx, 0x202
lea rdx, [rbp - 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14002d9a4
mov qword [rsp + 0xa70], rbx
lea edx, [rax + 1]
mov ebx, 2
mov qword [rsp + 0xa80], rdi
mov ecx, ebx
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_socket]
lea r9, [rsp + 0x58]
mov dword [rsp + 0x58], 0x3e8
mov rcx, rax
mov dword [rsp + 0x5c], 0x1388
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1005
mov rdi, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x58]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1006
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x5c]
mov dword [rsp + 0x20], 8
mov edx, 0xffff
mov r8d, 0x1005
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x5c]
mov dword [rsp + 0x20], 8
mov edx, 0xffff
mov r8d, 0x1006
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp rdi, 0xffffffffffffffff
je 0x14002d994
mov ecx, 0x5851
mov qword [rsp + 0xa78], rsi
mov word [rsp + 0x68], bx
call qword [sym.imp.WS2_32.dll_htons]
xor esi, esi
lea r8d, [rbx + 0xe]
lea rdx, [rsp + 0x68]
mov word [rsp + 0x6a], ax
mov rcx, rdi
mov dword [rsp + 0x6c], esi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14002d98c
lea edx, [rbx + 8]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14002d98c
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x68]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x800
mov rbx, rax
call fcn.14003dfd0
cmp rbx, 0xffffffffffffffff
je 0x14002d974
nop dword [rax + rax]
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x800
call fcn.14003dfd0
xor r9d, r9d
lea rdx, [rbp + 0x150]
mov r8d, 0x800
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
lea rax, [rbp + 0x150]
mov qword [rsp + 0x30], rsi
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], send
nop
inc r8
cmp byte [rax + r8], sil
jne 0x14002d8c0
lea rdx, [rbp + 0x150]
lea rcx, [rsp + 0x30]
call fcn.140001ae0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x78]
call fcn.14002d230
cmp qword [rbp - 0x70], 0x10
lea rdx, [rsp + 0x78]
mov r8d, dword [rbp - 0x78]
mov rcx, rbx
cmovae rdx, qword [rsp + 0x78]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
lea r8, [rsp + 0x60]
mov rcx, rdi
lea rdx, [rbp - 0x68]
call qword [sym.imp.WS2_32.dll_accept]
mov rdx, qword [rbp - 0x70]
mov rbx, rax
cmp rdx, 0x10
jb 0x14002d96a
mov rcx, qword [rsp + 0x78]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002d965
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002d9bc
call fcn.140038ea4
cmp rbx, 0xffffffffffffffff
jne 0x14002d870
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rsi, qword [rsp + 0xa78]
mov rbx, qword [rsp + 0xa70]
mov rdi, qword [rsp + 0xa80]
mov rcx, qword [rbp + 0x950]
xor rcx, rsp
call fcn.140038990
add rsp, 0xa60
pop rbp
ret
call fcn.14004279c
int3
sub rsp, 0x48
xor eax, eax
mov qword [rsp + 0x38], send
lea rdx, [0x140078efc]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
lea r8d, [rax + 2]
call fcn.140001ae0
lea rdx, [0x140084ca0]
lea rcx, [rsp + 0x20]
call fcn.14000cfb0
call fcn.1400218f0
call fcn.140027f30
call fcn.140019300
call fcn.1400197f0
call fcn.140032ab0
call fcn.140036c90
call fcn.140035be0
call fcn.140035110
call fcn.140034e70
call fcn.140036380
call fcn.14002fad0
call fcn.140031780
call fcn.14001bc50
call fcn.140018380
call fcn.14001ce40
call fcn.140030840
call fcn.14001e600
call fcn.140034ad0
call fcn.1400346e0
call fcn.1400324e0
call fcn.14001ace0
add rsp, 0x48
jmp 0x14002d6e0