Function at 0x180012bb0
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x1800b7160]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov rdi, rcx
mov r13d, r9d
xor ecx, ecx
mov r12d, r8d
mov dword [rsp + 0x4c], ecx
mov rsi, rdx
test byte [0x1800b78f1], 1
jne 0x18003ce4c
lea rbx, [rdi + 0x26c]
and byte [rbx + 3], 0xbf
test rsi, rsi
je 0x180012c38
movups xmm0, xmmword [rsi]
movups xmmword [rdi + 0x2c], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x3c], xmm1
movups xmm0, xmmword [rsi + 0x20]
movups xmmword [rdi + 0x4c], xmm0
movups xmm1, xmmword [rsi + 0x30]
movups xmmword [rdi + 0x5c], xmm1
cmp word [rdi + 0x2e], 0
jne 0x180012c38
mov eax, 0x3500
mov word [rdi + 0x2e], ax
test byte [0x1800b85c0], 4
lea r14, [rdi + 0x2c]
jne 0x18003ce71
cmp qword [rdi + 0x260], 0
mov r15, qword [rdi + 0x220]
jne 0x18003cf6e
mov rax, qword [rdi + 0x260]
movzx r12d, r15w
sub r12w, bx
test rax, rax
jne 0x18003cfda
xor al, al
mov byte [rdi + 0x253], al
mov rax, qword [section..data]
test dword [rax + 0x1c], 0x1000000
jne 0x18003cfea
movzx eax, word [rbx]
rol ax, 8
mov word [rbx], ax
movzx eax, word [rbx + 4]
rol ax, 8
mov word [rbx + 4], ax
movzx eax, word [rbx + 6]
rol ax, 8
mov word [rbx + 6], ax
movzx eax, word [rbx + 8]
rol ax, 8
mov word [rbx + 8], ax
movzx eax, word [rbx + 0xa]
rol ax, 8
mov word [rbx + 0xa], ax
cmp byte [rdi + 0x24c], 0
jne 0x18003d008
movzx eax, word [r14]
mov r15d, ecx
mov dword [rbp - 0x50], ecx
cmp ax, 0x17
je 0x180013027
cmp ax, 2
jne 0x18003d113
mov eax, dword [r14 + 4]
mov esi, ecx
and eax, 0xf0
cmp al, 0xe0
sete sil
mov rcx, rdi
call fcn.180013110
test rax, rax
je 0x18003d11a
test byte [0x1800b78f1], 4
jne 0x18003d13a
test esi, esi
jne 0x180012f4f
movups xmm2, xmmword [r14]
movups xmm0, xmmword [r14 + 0x10]
movups xmm1, xmmword [r14 + 0x20]
movaps xmmword [rbp - 0x30], xmm0
movups xmm0, xmmword [r14 + 0x30]
movd eax, xmm2
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x40], xmm2
movaps xmmword [rbp - 0x20], xmm1
cmp ax, 2
jne 0x18001303c
mov rax, qword [rbp - 0x40]
xor r8d, r8d
mov edx, dword [rdi + 0x200]
mov ecx, r8d
shr rax, 0x20
mov r9d, 1
cmp al, 0x7f
cmove ecx, r9d
test edx, edx
je 0x180012da5
mov dword [rbp - 0x2c], eax
mov eax, 0x17
mov word [rbp - 0x40], ax
mov qword [rbp - 0x38], r8
mov dword [rbp - 0x30], 0xffff0000
mov dword [rbp - 0x28], r8d
mov dword [rbp - 0x20], 0x1c
mov r15d, r9d
mov dword [rsp + 0x74], r8d
xorps xmm0, xmm0
mov qword [rbp - 0x6c], r8
lea rax, [rbp - 0x40]
mov qword [rsp + 0x68], rax
mov dword [rbp - 0x64], r8d
movdqu xmmword [rbp - 0x7c], xmm0
test edx, edx
je 0x180013011
mov dword [rsp + 0x70], 0x1c
movzx eax, r12w
mov dword [rbp - 0x60], eax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x58], rbx
mov dword [rbp - 0x80], r9d
test r13d, r13d
je 0x180012e48
cmp dword [0x1800b7a58], 0
je 0x180012e48
test ecx, ecx
jne 0x180012e48
test byte [0x1800b78f1], 4
jne 0x18003d28f
mov qword [rbp + 0x30], r8
xorps xmm0, xmm0
mov dword [rbp + 0x1c], 0x33
lea rax, [rbp + 0x10]
mov qword [rbp - 0x70], rax
movdqu xmmword [rbp + 0x20], xmm0
test r15d, r15d
je 0x18001305c
mov dword [rbp - 0x78], 0x20
mov qword [rbp + 0x10], 0x1c
mov dword [rbp + 0x18], r8d
mov dword [rbp + 0x24], r13d
mov rcx, qword [rdi + 0xb8]
lea r9, [rbp - 0x50]
mov qword [rsp + 0x28], r8
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_WSASendMsg]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1800130d0
xor esi, esi
movzx eax, word [rbx]
rol ax, 8
mov word [rbx], ax
movzx eax, word [rbx + 4]
rol ax, 8
mov word [rbx + 4], ax
movzx eax, word [rbx + 6]
rol ax, 8
mov word [rbx + 6], ax
movzx eax, word [rbx + 8]
rol ax, 8
mov word [rbx + 8], ax
movzx eax, word [rbx + 0xa]
rol ax, 8
cmp dword [rsp + 0x4c], 0
mov word [rbx + 0xa], ax
jne 0x18003d2e9
mov r15d, 0x48
lea rcx, [rbp - 0x40]
mov r8d, r15d
xor edx, edx
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
cmp dword [0x1800b7984], 0
je 0x1800130c6
cmp dword [0x1800b7980], 0
jne 0x18003d2f5
lea rcx, [0x1800b7998]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
nop dword [rax + rax]
mov r8, qword [0x1800b79a0]
test r8, r8
jne 0x18003d350
lea rcx, [0x1800b7998]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
nop dword [rax + rax]
mov eax, esi
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.18002d5c0
mov rbx, qword [rsp + 0x190]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test r13d, r13d
je 0x180012f78
movzx edx, word [r14]
mov r9d, r13d
mov r8d, dword [rdi + 0x200]
mov rcx, qword [rdi + 0xb8]
call sym.DNSAPI.dll_Socket_SetMulticastInterface
mov esi, eax
test eax, eax
jne 0x180012e7c
movzx edx, word [r14]
xor r9d, r9d
mov rax, qword [rdi + 0xb8]
mov ecx, 0x29
mov r8d, dword [rdi + 0x200]
mov esi, r9d
mov dword [rsp + 0x58], edx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x44], r9d
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x48], r8d
mov dword [rbp - 0x48], 1
test byte [0x1800b78f0], 8
jne 0x18003d163
mov dword [rsp + 0x40], eax
cmp edx, 2
je 0x18001307b
mov edx, ecx
mov dword [rsp + 0x20], 4
mov rcx, rax
lea r9, [rbp - 0x48]
mov r8d, 0xa
call qword [sym.imp.WS2_32.dll_setsockopt]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x18003d1a9
cmp dword [rsp + 0x48], 0
jne 0x180013087
test esi, esi
je 0x180012d2e
jmp 0x180012e7c
mov dword [rsp + 0x70], 0x10
test r15d, r15d
je 0x180012dce
jmp 0x180012dd6
cmp byte [r14 + 8], 0xff
jne 0x18003d113
mov esi, 1
jmp 0x180012d08
cmp word [rbp - 0x38], 0
je 0x18003d21f
xor r8d, r8d
mov ecx, r8d
lea r9d, [r8 + 1]
mov edx, dword [rdi + 0x200]
jmp 0x180012da8
mov dword [rbp - 0x78], 0x28
mov qword [rbp + 0x10], 0x28
mov dword [rbp + 0x18], 0x29
mov dword [rbp + 0x30], r13d
jmp 0x180012e48
test r8d, r8d
cmove ecx, r9d
jmp 0x180012fcd
mov rcx, qword [rsp + 0x60]
lea r9, [rbp - 0x48]
xor edx, edx
mov dword [rsp + 0x20], 4
lea r8d, [rdx + 0xa]
call qword [sym.imp.WS2_32.dll_setsockopt]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x18003d1e3
mov eax, dword [rsp + 0x44]
test esi, esi
je 0x180012d2e
mov esi, eax
jmp 0x180013004
call fcn.18002c9e0
jmp 0x180012ee2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
mov esi, eax
test byte [0x1800b78f1], 1
jne 0x18003d2ab
mov rax, qword [section..data]
test dword [rax + 0x1c], 0x40000000
je 0x180012e7c
jmp 0x18003d2c5
mov r9d, dword [rdi + 0xb8]
mov r8, rdi
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rsi
call fcn.18008b7d4
xor ecx, ecx
jmp 0x180012bf9
test rdi, rdi
je 0x180012c49
mov ecx, 0x84
call fcn.180017d38
mov ecx, 0x1fe
mov qword [rbp - 0x50], rax
call fcn.180017d38
mov ecx, 0xff
mov r15, rax
call fcn.180017d38
mov rdx, rax
mov qword [rsp + 0x50], rax
mov rax, qword [rbp - 0x50]
test rax, rax
je 0x18003cf4d
test r15, r15
je 0x18003cf4d
test rdx, rdx
je 0x18003cf4d
mov ecx, dword [rdi + 0x210]
lea r9, [rdi + 0x278]
mov dword [rsp + 0x20], ecx
lea r8, [rsp + 0x40]
mov rcx, rdx
call fcn.180001510
test eax, eax
je 0x18003cf49
mov r8, qword [rsp + 0x50]
mov r9d, eax
mov dword [rsp + 0x28], 0xff
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], r15
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
nop dword [rax + rax]
test eax, eax
je 0x18003cf49
test r14, r14
je 0x18003cf22
mov rcx, qword [rbp - 0x50]
mov rdx, r14
call fcn.18006f3c4
test byte [0x1800b85c0], 4
mov rax, qword [rbp - 0x50]
je 0x18003cf4d
movzx r9d, word [rsp + 0x40]
lea rdx, [0x18009eeb8]
mov r8, r15
mov qword [rsp + 0x20], rax
call fcn.18005af5c
mov rax, qword [rbp - 0x50]
mov rcx, rax
call sym.DNSAPI.dll_DnsApiFree
mov rcx, r15
call sym.DNSAPI.dll_DnsApiFree
mov rcx, qword [rsp + 0x50]
call sym.DNSAPI.dll_DnsApiFree
xor ecx, ecx
jmp 0x180012c49
test dword [rdi + 0x254], 0x1000000
jne 0x180012c5e
test r12d, r12d
jne 0x18003cfbd
cmp dword [0x1800b7a1c], r12d
jne 0x18003cf95
cmp byte [rdi + 0x24e], r12b
je 0x18003cfbd
movzx eax, byte [rdi + 0x26e]
and al, 0x78
cmp al, 0x28
je 0x18003cfbd
test rsi, rsi
je 0x180012c5e
mov rcx, rsi
call fcn.180058654
xor ecx, ecx
test eax, eax
je 0x180012c5e
mov r15, qword [rdi + 0x260]
mov eax, 0xffff
add word [rbx + 0xa], ax
mov dword [rsp + 0x4c], 1
jmp 0x180012c5e
cmp r15, rax
je 0x180012c76
mov al, 1
jmp 0x180012c78
mov rdx, rdi
mov word [rdi + 0x26a], r12w
lea rcx, str.Sending_packet
call fcn.18006fa34
xor ecx, ecx
jmp 0x180012c92
movzx ecx, r12w
lea rsi, [rdi + 0x26a]
call qword [sym.imp.WS2_32.dll_htons]
nop dword [rax + rax]
mov word [rsi], ax
add r12w, 2
je 0x180012e7a
mov rcx, qword [rdi + 0xb8]
xor r9d, r9d
movzx r8d, r12w
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
nop dword [rax + rax]
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x18003d066
sub r12w, ax
cdqe
add rsi, rax
test r12w, r12w
jne 0x18003d02d
jmp 0x180012e7a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
mov esi, eax
cmp eax, 0x274a
jne 0x18003d0a3
mov rcx, qword [section..data]
test dword [rcx + 0x1c], 0x40000000
je 0x180012e7c
test byte [0x1800b78f3], 0x40
je 0x180012e7c
mov ecx, 0x32
jmp 0x18003d0d0
cmp eax, 0x2736
jne 0x18003d0ec
mov rax, qword [section..data]
test dword [rax + 0x1c], 0x40000000
je 0x180012e7c
test byte [0x1800b78f3], 0x40
je 0x180012e7c
mov ecx, 0x33
mov r8d, dword [rdi + 0xb8]
lea rdx, [0x18009f1f8]
mov r9, rdi
call fcn.1800883c8
nop
jmp 0x180012e7c
test byte [0x1800b78f3], 0x40
je 0x180012e7c
mov ecx, 0x34
lea rdx, [0x18009f1f8]
mov r8d, eax
call fcn.1800876bc
nop
jmp 0x180012e7c
mov esi, ecx
jmp 0x180012d08
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jne 0x180012e7c
mov esi, 0x273b
jmp 0x180012e7c
mov eax, dword [rdi + 0x18]
lea rdx, [0x18009f1f8]
mov r9d, dword [rdi + 0x10]
mov ecx, 0x35
mov r8d, dword [rdi + 0x200]
mov dword [rsp + 0x20], eax
call fcn.180087cfc
nop
jmp 0x180012d26
mov dword [rsp + 0x30], r8d
mov r9d, edx
mov dword [rsp + 0x28], 1
lea rdx, [0x18009f218]
mov r8d, eax
mov dword [rsp + 0x20], 1
mov ecx, 0x1c
call fcn.18008bf24
mov rax, qword [rsp + 0x60]
xor r9d, r9d
mov edx, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov r8d, dword [rsp + 0x48]
jmp 0x180012fc0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
mov esi, eax
test byte [0x1800b78f3], 0x40
je 0x180012ff9
mov r8d, dword [rsp + 0x40]
lea rdx, [0x18009f218]
mov ecx, 0x1d
mov r9d, eax
call fcn.180087020
nop
jmp 0x180012ff9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x44], eax
test byte [0x1800b78f3], 0x40
je 0x1800130b7
mov r8d, dword [rsp + 0x40]
lea rdx, [0x18009f218]
mov ecx, 0x1e
mov r9d, eax
call fcn.180087020
nop
jmp 0x1800130b3
mov eax, dword [rbp - 0x38]
shr eax, 0x10
test ax, ax
jne 0x180013047
cmp word [rbp - 0x34], ax
jne 0x180013047
mov eax, dword [rbp - 0x34]
shr eax, 0x10
test ax, ax
jne 0x180013047
cmp word [rbp - 0x30], ax
jne 0x180013047
mov eax, dword [rbp - 0x30]
shr eax, 0x10
test ax, ax
jne 0x180013047
cmp word [rbp - 0x2c], ax
jne 0x180013047
mov eax, dword [rbp - 0x2c]
mov ecx, pe_nt_image_headers64
shr eax, 0x10
cmp ax, cx
jne 0x180013047
mov r9d, 1
xor r8d, r8d
mov ecx, r9d
jmp 0x180013051
mov ecx, 0x36
lea rdx, [0x18009f1f8]
mov r8d, r13d
call fcn.1800876bc
xor r8d, r8d
jmp 0x180012e0d
mov ecx, 0x39
lea rdx, [0x18009f1f8]
mov r8d, eax
call fcn.1800876bc
nop
jmp 0x1800130eb
mov rdx, r14
lea rcx, str.sendto___failed_sockaddr
call fcn.18006f70c
mov rdx, rdi
lea rcx, str.sendto___failed_message
call fcn.18006fa34
nop
jmp 0x180012e7c
inc ax
mov word [rbx + 0xa], ax
jmp 0x180012ec1
movups xmm0, xmmword [0x1800a1be8]
cmp byte [rdi + 0x24c], 0
lea rdx, [rbp - 0x40]
mov rcx, qword [0x1800b7970]
setne al
mov word [rbp - 0x40], r15w
add al, 9
mov dword [rbp - 0x14], 0x20000
mov byte [rbp - 0x3c], al
mov eax, dword [rdi + 0x30]
movups xmmword [rbp - 0x28], xmm0
mov dword [rbp - 4], eax
movsd xmm0, qword [rbx]
mov eax, dword [rbx + 8]
mov dword [rbp - 8], eax
mov dword [rbp], esi
movsd qword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_EtwLogTraceEvent]
nop dword [rax + rax]
nop
jmp 0x180012eef
mov ecx, dword [rdi + 0xac]
mov rdx, r14
call fcn.1800592f4
nop
jmp 0x180012f12