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

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x1f0
mov rbx, rdx
mov rdi, rcx
mov ecx, 0x101
lea rdx, [rsp + 0x40]
mov r15, r8
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14000103a
mov eax, 0xffffd8f0
add rsp, 0x1f0
pop r15
pop rdi
pop rbx
ret
movzx eax, word [rsp + 0x40]
cmp al, 1
jne 0x140001386
shr ax, 8
cmp al, 1
jne 0x140001386
mov qword [rsp + 0x218], rsi
xor r8d, r8d
mov esi, 2
mov edx, esi
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x38], rax
cmp rax, 0xffffffffffffffff
jne 0x140001091
mov eax, 0xffffd8f2
mov rsi, qword [rsp + 0x218]
add rsp, 0x1f0
pop r15
pop rdi
pop rbx
ret
lea r9, [rsp + 0x228]
mov dword [rsp + 0x228], 0x3e8
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1006
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400010cb
mov eax, 0xffffd8f3
jmp 0x14000107d
mov qword [rsp + 0x210], rbp
mov rcx, rdi
mov qword [rsp + 0x220], r12
mov qword [rsp + 0x1e8], r13
mov qword [rsp + 0x1e0], r14
call qword [sym.imp.WS2_32.dll_inet_addr]
mov rcx, rbx
mov word [0x14000e840], si
mov dword [0x14000e844], eax
call qword [0x14000ea20]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htons]
mov word [0x14000e842], ax
movsx ecx, byte [r15]
movsx ebx, byte [r15 + 1]
call sub.ntdll.dll_toupper
sub al, 0x30
mov ecx, ebx
movzx esi, al
call sub.ntdll.dll_toupper
movsx ecx, byte [r15 + 2]
sub al, 0x30
movsx ebx, byte [r15 + 3]
movzx r14d, al
call sub.ntdll.dll_toupper
sub al, 0x30
mov ecx, ebx
movzx r12d, al
call sub.ntdll.dll_toupper
movsx ecx, byte [r15 + 4]
sub al, 0x30
movsx ebx, byte [r15 + 5]
movzx r13d, al
call sub.ntdll.dll_toupper
sub al, 0x30
mov ecx, ebx
movzx edi, al
call sub.ntdll.dll_toupper
movsx ecx, byte [r15 + 6]
sub al, 0x30
movsx ebx, byte [r15 + 7]
movzx ebp, al
call sub.ntdll.dll_toupper
sub al, 0x30
mov ecx, ebx
movzx r15d, al
call sub.ntdll.dll_toupper
sub al, 0x30
movzx r9d, al
cmp sil, 9
lea eax, [rsi - 7]
movzx ecx, al
lea eax, [r14 - 7]
cmovbe ecx, esi
movzx r8d, cl
shl r8d, 4
movzx ecx, al
cmp r14b, 9
cmovbe ecx, r14d
movzx eax, cl
add r8d, eax
lea eax, [rdi - 7]
shl r8d, 0x18
movzx ecx, al
cmp dil, 9
lea eax, [rbp - 7]
cmovbe ecx, edi
movzx edx, cl
shl edx, 4
movzx ecx, al
cmp bpl, 9
cmovbe ecx, ebp
movzx eax, cl
add edx, eax
lea eax, [r12 - 7]
shl edx, 8
or r8d, edx
movzx ecx, al
cmp r12b, 9
cmovbe ecx, r12d
movzx edx, cl
shl edx, 4
lea eax, [r13 - 7]
movzx ecx, al
cmp r13b, 9
cmovbe ecx, r13d
movzx eax, cl
add edx, eax
lea eax, [r15 - 7]
shl edx, 0x10
or r8d, edx
movzx ecx, al
lea eax, [r9 - 7]
cmp r15b, 9
cmovbe ecx, r15d
movzx edx, cl
shl edx, 4
movzx ecx, al
cmp r9b, 9
cmovbe ecx, r9d
movzx eax, cl
add edx, eax
or r8d, edx
mov dword [0x14000e020], r8d
call fcn.1400071c0
mov rbx, qword [rsp + 0x38]
lea rsi, [0x14000e840]
xorps xmm0, xmm0
mov dword [0x14000e024], eax
xor eax, eax
mov dword [rsp + 0x28], setsockopt
xor edi, edi
mov qword [0x14000e880], rax
xor r9d, r9d
mov qword [0x14000e888], rax
mov r8d, setsockopt
mov dword [0x14000e890], eax
lea rdx, [0x14000e020]
mov dword [0x14000e028], edi
mov rcx, rbx
mov dword [0x14000e02c], 0xaf3c2828
movups xmmword [0x14000e850], xmm0
mov qword [rsp + 0x20], rsi
movups xmmword [0x14000e860], xmm0
movups xmmword [0x14000e870], xmm0
call qword [sym.imp.WS2_32.dll_sendto]
mov r14, qword [rsp + 0x1e0]
mov r13, qword [rsp + 0x1e8]
mov r12, qword [rsp + 0x220]
mov rbp, qword [rsp + 0x210]
cmp eax, 0xffffffff
jne 0x140001305
mov eax, 0xffffd8f4
jmp 0x14000107d
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], setsockopt
mov qword [rsp + 0x28], rax
lea rdx, [0x14000e430]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
mov r8d, 0x400
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x140001344
mov eax, 0xffffd8f5
jmp 0x14000107d
mov eax, dword [0x14000e02c]
cmp dword [0x14000e43c], eax
je 0x14000135e
mov edi, 0xffffd8f6
mov eax, edi
jmp 0x14000107d
mov eax, dword [0x14000e028]
cmp dword [0x14000e438], eax
je 0x140001378
mov edi, 0xffffd8f7
mov eax, edi
jmp 0x14000107d
mov qword [section..data], rbx
mov eax, edi
jmp 0x14000107d
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xffffd8f1
add rsp, 0x1f0
pop r15
pop rdi
pop rbx
ret