Function at 0x140007540
Capabilities:
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x210
mov rax, qword [0x140450200]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
cmp qword [0x140450840], 0
mov r15, r8
mov rdi, rdx
mov rbx, rcx
jne 0x140007881
mov ecx, 0x101
lea rdx, [rsp + 0x40]
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x140007881
movzx eax, word [rsp + 0x40]
cmp al, 1
jne 0x140007873
shr ax, 8
cmp al, 1
jne 0x140007873
mov qword [rsp + 0x248], rbp
xor ecx, ecx
mov qword [rsp + 0x208], rsi
mov qword [rsp + 0x200], r12
mov qword [rsp + 0x1f8], r13
mov qword [rsp + 0x1f0], r14
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov esi, 2
xor r8d, r8d
mov edx, esi
mov ecx, esi
call sub.WS2_32.dll_socket
mov rcx, rbx
mov qword [0x1404507a8], rax
call sub.WS2_32.dll_inet_addr
mov rcx, rdi
mov dword [0x140450834], eax
mov word [0x140450830], si
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ecx, eax
call sub.WS2_32.dll_htons
mov word [0x140450832], ax
movsx ecx, byte [r15]
movsx ebx, byte [r15 + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
sub al, 0x30
mov ecx, ebx
movzx esi, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
movsx ecx, byte [r15 + 2]
sub al, 0x30
movsx ebx, byte [r15 + 3]
movzx r14d, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
sub al, 0x30
mov ecx, ebx
movzx r12d, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
movsx ecx, byte [r15 + 4]
sub al, 0x30
movsx ebx, byte [r15 + 5]
movzx r13d, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
sub al, 0x30
mov ecx, ebx
movzx edi, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
movsx ecx, byte [r15 + 6]
sub al, 0x30
movsx ebx, byte [r15 + 7]
movzx ebp, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
sub al, 0x30
mov ecx, ebx
movzx r15d, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.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
cmp dil, 9
movzx ecx, al
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
lea eax, [r13 - 7]
cmovbe ecx, r12d
movzx edx, cl
shl edx, 4
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 [0x140450760], r8d
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov rcx, qword [0x1404507a8]
lea rdi, [0x140450830]
xorps xmm0, xmm0
mov dword [0x140450764], eax
xor ebx, ebx
mov dword [rsp + 0x28], socket
xor eax, eax
mov dword [0x140450768], ebx
xor r9d, r9d
mov dword [0x14045076c], 0xaf3c2828
lea rdx, [0x140450760]
mov qword [0x140450828], rax
lea r8d, [rbx + 0x10]
mov qword [rsp + 0x20], rdi
movups xmmword [0x1404507f8], xmm0
movups xmmword [0x140450808], xmm0
movups xmmword [0x140450818], xmm0
call sub.WS2_32.dll_sendto
lea ecx, [rbx + 0x14]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x1404507a8]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x1404507b0]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
mov r8d, 0x400
mov dword [rsp + 0x30], socket
call sub.WS2_32.dll_recvfrom
mov r14, qword [rsp + 0x1f0]
mov r13, qword [rsp + 0x1f8]
mov r12, qword [rsp + 0x200]
mov rsi, qword [rsp + 0x208]
mov rbp, qword [rsp + 0x248]
test eax, eax
jns 0x140007852
mov rcx, qword [0x1404507a8]
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
jmp 0x140007881
mov ecx, dword [0x14045076c]
cmp dword [0x1404507bc], ecx
jne 0x140007881
mov ecx, dword [0x140450768]
cmp dword [0x1404507b8], ecx
sete bl
mov eax, ebx
jmp 0x140007883
call sub.WS2_32.dll_WSACleanup
xor ebx, ebx
mov qword [0x1404507a8], rbx
xor eax, eax
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.1400cb540
add rsp, 0x210
pop r15
pop rdi
pop rbx
ret