Function at 0x14004f2c9
Capabilities:
Create thread
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
test r8, r8
je 0x14004f647
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x58]
sub rsp, 0x158
mov rax, qword [0x140177698]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov qword [r11 + 8], rbx
xor sil, sil
xor ebx, ebx
mov byte [rsp + 0x36], 0
mov r15, r9
mov dword [rsp + 0x30], 0x80
mov rdi, r8
mov qword [r11 - 0x38], r13
mov r14, rdx
mov r12, rcx
nop word [rax + rax]
movzx eax, word [rdi]
lea rcx, [rsp + 0x34]
xor edx, edx
mov word [rsp + 0x34], ax
lea r8d, [rdx + 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
mov byte [rbp + rbx - 0x40], al
lea rdi, [rdi + 3]
inc rbx
cmp rbx, 6
jl 0x14004f320
movzx eax, word [rbp - 0x3c]
mov r13d, 2
mov ecx, dword [rbp - 0x40]
mov word [rbp - 0x26], ax
mov word [rbp - 0x20], ax
mov word [rbp - 0x1a], ax
mov word [rbp - 0x14], ax
mov word [rbp - 0xe], ax
mov word [rbp - 8], ax
mov word [rbp - 2], ax
mov word [rbp + 4], ax
mov word [rbp + 0xa], ax
mov word [rbp + 0x10], ax
mov word [rbp + 0x16], ax
mov word [rbp + 0x1c], ax
mov word [rbp + 0x22], ax
mov word [rbp + 0x28], ax
mov word [rbp + 0x2e], ax
mov word [rbp + 0x34], ax
mov dword [rbp - 0x30], 0xffffffff
mov word [rbp - 0x2c], 0xffff
mov dword [rbp - 0x2a], ecx
mov dword [rbp - 0x24], ecx
mov dword [rbp - 0x1e], ecx
mov dword [rbp - 0x18], ecx
mov dword [rbp - 0x12], ecx
mov dword [rbp - 0xc], ecx
mov dword [rbp - 6], ecx
mov dword [rbp], ecx
mov dword [rbp + 6], ecx
mov dword [rbp + 0xc], ecx
mov dword [rbp + 0x12], ecx
mov dword [rbp + 0x18], ecx
mov dword [rbp + 0x1e], ecx
mov dword [rbp + 0x24], ecx
mov dword [rbp + 0x2a], ecx
mov dword [rbp + 0x30], ecx
test r15, r15
je 0x14004f49a
lea rax, [rsp + 0x30]
xor r8d, r8d
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, r13d
mov rcx, r15
call qword [sym.imp.WS2_32.dll_WSAStringToAddressA]
test eax, eax
jne 0x14004f428
lea ecx, [rax + 9]
call qword [sym.imp.WS2_32.dll_htons]
xor ecx, ecx
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov word [rsp + 0x42], ax
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [rsp + 0x44], eax
je 0x14004f49a
mov sil, 1
jmp 0x14004f49a
xor r8d, r8d
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rcx, r15
lea edx, [r8 + 0x17]
call qword [sym.imp.WS2_32.dll_WSAStringToAddressA]
test eax, eax
jne 0x14004f49a
lea ecx, [rax + 9]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x42], ax
test r14, r14
je 0x14004f469
mov eax, dword [r14 + 0x84]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x48]
sub rax, qword [0x140156890]
mov dword [rsp + 0x30], 0x1c
jne 0x14004f48b
mov rax, qword [rsp + 0x50]
sub rax, qword [0x140156898]
test rax, rax
movzx esi, sil
mov ecx, 1
cmovne esi, ecx
cmp dword [rbp + 0xb0], r13d
jge 0x14004f564
test sil, sil
je 0x14004f564
movzx ecx, word [rsp + 0x40]
mov r8d, sendto
mov edi, dword [rsp + 0x30]
mov edx, r13d
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004f564
xor r9d, r9d
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0x40]
mov rcx, rbx
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 0x66]
call qword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
cmp eax, 0x66
je 0x14004f518
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, esi
lea rdx, str.SendWakeupPacket_error:_sent__d_bytes:__d_n
mov r9d, eax
xor ecx, ecx
call fcn.140051100
xor r9d, r9d
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0x40]
mov rcx, rbx
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 0x66]
call qword [sym.imp.WS2_32.dll_sendto]
mov edi, eax
cmp eax, 0x66
je 0x14004f55b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.SendWakeupPacket_error:_sent__d_bytes:__d_n
mov r9d, eax
xor ecx, ecx
call fcn.140051100
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 0x90
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14004f61b
mov qword [rax], r12
xor eax, eax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov word [rbx + 8], r13w
mov edx, dword [0x14014fad4]
lea ecx, [rax + 9]
mov dword [rbx + 0xc], edx
call qword [sym.imp.WS2_32.dll_htons]
mov dword [rbx + 0x18], reloc.WS2_32.dll_recv
lea rcx, [0x14004b8f0]
mov word [rbx + 0xa], ax
mov r8, rbx
movaps xmm0, xmmword [rbp - 0x30]
xor edx, edx
movups xmmword [rbx + 0x1c], xmm0
movaps xmm1, xmmword [rbp - 0x20]
movups xmmword [rbx + 0x2c], xmm1
movaps xmm0, xmmword [rbp - 0x10]
movups xmmword [rbx + 0x3c], xmm0
movaps xmm1, xmmword [rbp]
movups xmmword [rbx + 0x4c], xmm1
movaps xmm0, xmmword [rbp + 0x10]
movups xmmword [rbx + 0x5c], xmm0
movaps xmm1, xmmword [rbp + 0x20]
movups xmmword [rbx + 0x6c], xmm1
mov eax, dword [rbp + 0x30]
mov dword [rbx + 0x7c], eax
movzx eax, word [rbp + 0x34]
mov word [rbx + 0x80], ax
mov dword [rbx + 0x84], WSAGetLastError
mov dword [rbx + 0x88], sendto
mov dword [rbx + 0x8c], 0x64
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthread]
mov rbx, qword [rsp + 0x190]
mov r13, qword [rsp + 0x150]
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14006a270
add rsp, 0x158
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret