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

Disassembly:
push rbx
push rdi
push r13
sub rsp, 0x210
mov rax, qword [0x1408c1a40]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x101
lea rdx, [rsp + 0x40]
mov r13, r8
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140073225
mov eax, 0xffffdcd8
jmp 0x14007353a
movzx eax, word [rsp + 0x40]
cmp al, 1
jne 0x140073524
shr ax, 8
cmp al, 1
jne 0x140073524
mov qword [rsp + 0x248], rbp
xor ecx, ecx
mov qword [rsp + 0x208], rsi
mov qword [rsp + 0x200], r12
mov qword [rsp + 0x1f8], r14
mov qword [rsp + 0x1f0], r15
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, eax
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 qword [sym.imp.WS2_32.dll_socket]
mov rcx, rbx
mov qword [0x1408c2fb8], rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov rcx, rdi
mov word [0x1408c2f50], si
mov dword [0x1408c2f54], eax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htons]
mov word [0x1408c2f52], ax
movsx ecx, byte [r13]
movsx ebx, byte [r13 + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
sub al, 0x30
mov ecx, ebx
movzx r14d, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
movsx ecx, byte [r13 + 2]
sub al, 0x30
movsx ebx, byte [r13 + 3]
movzx r12d, 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 [r13 + 4]
sub al, 0x30
movsx ebx, byte [r13 + 5]
movzx esi, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
sub al, 0x30
mov ecx, ebx
movzx ebp, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
movsx ecx, byte [r13 + 6]
sub al, 0x30
movsx ebx, byte [r13 + 7]
movzx r15d, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
sub al, 0x30
mov ecx, ebx
movzx r13d, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
sub al, 0x30
movzx r9d, al
cmp dil, 9
lea eax, [rdi - 7]
movzx ecx, al
lea eax, [rsi - 7]
cmovbe ecx, edi
movzx r8d, cl
shl r8d, 4
movzx ecx, al
cmp sil, 9
cmovbe ecx, esi
movzx eax, cl
add r8d, eax
lea eax, [r14 - 7]
shl r8d, 0x10
cmp r14b, 9
movzx ecx, al
lea eax, [r12 - 7]
cmovbe ecx, r14d
movzx edx, cl
shl edx, 4
movzx ecx, al
cmp r12b, 9
cmovbe ecx, r12d
movzx eax, cl
add edx, eax
lea eax, [rbp - 7]
shl edx, 0x18
or r8d, edx
movzx ecx, al
cmp bpl, 9
lea eax, [r15 - 7]
cmovbe ecx, ebp
movzx edx, cl
shl edx, 4
movzx ecx, al
cmp r15b, 9
cmovbe ecx, r15d
movzx eax, cl
add edx, eax
lea eax, [r13 - 7]
shl edx, 8
or r8d, edx
movzx ecx, al
lea eax, [r9 - 7]
cmp r13b, 9
cmovbe ecx, r13d
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 [0x1408c2730], r8d
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov rcx, qword [0x1408c2fb8]
lea rdi, [0x1408c2f50]
xorps xmm0, xmm0
mov dword [0x1408c2734], eax
xor eax, eax
mov dword [rsp + 0x28], socket
xor ebx, ebx
mov qword [0x1408c2f90], rax
xor r9d, r9d
mov qword [0x1408c2f98], rax
mov r8d, recvfrom
mov dword [0x1408c2fa0], eax
lea rdx, [0x1408c2730]
mov dword [0x1408c2738], ebx
mov dword [0x1408c273c], 0xaf3c2828
movups xmmword [0x1408c2f60], xmm0
mov qword [rsp + 0x20], rdi
movups xmmword [0x1408c2f70], xmm0
movups xmmword [0x1408c2f80], xmm0
call qword [sym.imp.WS2_32.dll_sendto]
mov ecx, reloc.WS2_32.dll_sendto
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x1408c2fb8]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x1408c2b40]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
mov r8d, 0x400
mov dword [rsp + 0x30], socket
call qword [sym.imp.WS2_32.dll_recvfrom]
mov r15, qword [rsp + 0x1f0]
mov r14, qword [rsp + 0x1f8]
mov r12, qword [rsp + 0x200]
mov rsi, qword [rsp + 0x208]
mov rbp, qword [rsp + 0x248]
test eax, eax
jns 0x1400734f5
mov eax, 0xffffdcdb
jmp 0x14007353a
mov eax, dword [0x1408c273c]
cmp dword [0x1408c2b4c], eax
je 0x14007350c
mov ebx, 0xffffdcdc
mov eax, ebx
jmp 0x14007353a
mov ecx, dword [0x1408c2738]
mov eax, 0xffffdcdd
cmp dword [0x1408c2b48], ecx
cmovne ebx, eax
mov eax, ebx
jmp 0x14007353a
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xffffdcd9
mov qword [0x1408c2fb8], 0xffffffffffffffff
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.1400a3ff0
add rsp, 0x210
pop r13
pop rdi
pop rbx
ret