Function at 0x1400012a0
Capabilities:
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Set socket configuration
Terminate process

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x870]
sub rsp, 0x970
mov rax, qword [0x140039040]
xor rax, rsp
mov qword [rbp + 0x860], rax
mov rdi, r8
mov rsi, rdx
mov r12, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], r8
xor r13d, r13d
mov ecx, 0x202
lea rdx, [rbp - 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14000131d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.Failed._Error_Code_:__d
call fcn.140001080
lea ecx, [r13 + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov edx, 2
mov ecx, edx
lea r8d, [rdx + 0xf]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp eax, 0xffffffff
jne 0x140001415
lea rdx, str._ERROR_Failed_to_create_UDP_socket_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002cd0
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x14000138e
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rsi]
jb 0x140001389
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001d82
mov rcx, r8
call fcn.1400129e4
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], sendto
mov byte [rsi], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x1400013d7
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400013d2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001d89
mov rcx, r8
call fcn.1400129e4
mov eax, 1
mov byte [rdi], 0
mov qword [rdi + 0x18], sendto
mov qword [rdi + 0x10], r13
mov rcx, qword [rbp + 0x860]
xor rcx, rsp
call fcn.140012980
mov rbx, qword [rsp + 0x9c8]
add rsp, 0x970
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], 2
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x14000143e
mov rdx, qword [rdi]
mov rcx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x14000144b
mov rcx, qword [rsi]
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x58]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x14000134d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x180], xmm0
mov qword [rbp + 0x190], rax
mov dword [rbp + 0x198], eax
mov byte [rbp + 0x19c], al
lea rdx, [0x140039098]
mov r14, 0xffffffffffffffff
mov r8, r14
inc r8
cmp byte [rdx + r8], al
jne 0x140001492
lea rcx, [rbp + 0x180]
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [r12 + 0xa8]
test al, al
je 0x1400014e7
mov byte [rbp + 0x199], al
movzx eax, byte [r12 + 0xa9]
mov byte [rbp + 0x19a], al
movzx eax, byte [r12 + 0xaa]
mov byte [rbp + 0x19b], al
movzx eax, byte [r12 + 0xab]
mov byte [rbp + 0x19c], al
mov dword [rbp - 0x60], 1
movsxd r15, ebx
lea r8, [rbp - 0x60]
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov rax, qword [rcx + 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 0x1e]
lea rdx, [rbp + 0x180]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, r14d
jne 0x14000156a
lea rdx, str._ERROR_Sending_packet_failed:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002cd0
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edx, dword [rax]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x1400316ec]
call fcn.140002cd0
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov r8d, 0x5c0
lea rcx, [rbp + 0x2a0]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8d, 0x5c0
lea rdx, [rbp + 0x2a0]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 1
jl 0x14000134d
mov rax, r13
nop dword [rax + rax]
cmp byte [rbp + rax + 0x2a0], 0xff
jne 0x14000134d
inc rax
cmp rax, 3
jl 0x1400015c0
cmp byte [rbp + 0x2a4], 0x41
jne 0x1400016b0
movzx eax, byte [rbp + 0x2a5]
mov byte [rsp + 0x30], al
movzx eax, byte [rbp + 0x2a6]
mov byte [rsp + 0x31], al
movzx eax, byte [rbp + 0x2a7]
mov byte [rsp + 0x32], al
movzx eax, byte [rbp + 0x2a8]
mov byte [rsp + 0x33], al
mov eax, dword [rsp + 0x30]
mov dword [r12 + 0xa8], eax
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x14000165d
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x140001658
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001d82
mov rcx, r8
call fcn.1400129e4
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], sendto
mov byte [rsi], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x1400016a6
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400016a1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001d89
mov rcx, r8
call fcn.1400129e4
mov eax, 0xfffffffc
jmp 0x1400013dc
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x70], sendto
mov byte [rsp + 0x78], 0
mov dword [rbp - 0x68], r13d
mov byte [rbp + 0x1a0], 0
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x1a1]
call sub.VCRUNTIME140.dll_memset
mov ebx, 5
mov rax, r13
movzx ecx, byte [rbp + rax + 0x2a5]
inc ebx
test cl, cl
je 0x140001710
add byte [rbp + rax + 0x1a0], cl
inc rax
cmp rax, 0x80
jl 0x1400016f0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
lea rax, [rbp + 0x1a0]
mov r8, r14
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140001730
lea rdx, [rbp + 0x1a0]
lea rcx, [rsp + 0x38]
call fcn.140002f30
mov dword [rsp + 0x58], ebx
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x78]
call fcn.140002c20
mov ebx, dword [rsp + 0x58]
mov dword [rbp - 0x68], ebx
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x1400017a2
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000179d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001b8e
call fcn.1400129e4
lea rcx, [r12 + 8]
lea rax, [rsp + 0x78]
cmp rcx, rax
je 0x140001803
lea r9, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
cmova r9, qword [rsp + 0x78]
mov rax, qword [rcx + 0x18]
mov r15, qword [rbp - 0x78]
cmp r15, rax
ja 0x1400017f8
mov r12, rcx
cmp rax, 0xf
jbe 0x1400017da
mov r12, qword [rcx]
mov qword [rcx + 0x10], r15
mov r8, r15
mov rdx, r9
mov rcx, r12
call sub.VCRUNTIME140.dll_memmove
mov byte [r12 + r15], 0
mov r12, qword [rsp + 0x30]
jmp 0x140001803
mov rdx, r15
call fcn.1400030c0
mov ebx, dword [rbp - 0x68]
mov byte [rbp + 0x1a0], 0
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x1a1]
call sub.VCRUNTIME140.dll_memset
movsxd rax, ebx
mov rcx, r13
lea rdx, [rbp + 0x1a0]
sub rax, rdx
lea r8, [rbp + 0x2a0]
add r8, rax
nop dword [rax + rax]
lea rax, [rbp + 0x1a0]
add rax, rcx
movzx edx, byte [rax + r8]
inc ebx
test dl, dl
je 0x140001863
add byte [rax], dl
inc rcx
cmp rcx, 0x80
jl 0x140001840
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
lea rax, [rbp + 0x1a0]
mov r8, r14
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140001880
lea rdx, [rbp + 0x1a0]
lea rcx, [rsp + 0x38]
call fcn.140002f30
mov dword [rsp + 0x58], ebx
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x78]
call fcn.140002c20
mov ebx, dword [rsp + 0x58]
mov dword [rbp - 0x68], ebx
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x1400018f2
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400018ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001b8e
call fcn.1400129e4
lea rcx, [r12 + 0x28]
lea rax, [rsp + 0x78]
cmp rcx, rax
je 0x140001953
lea r9, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
cmova r9, qword [rsp + 0x78]
mov rax, qword [rcx + 0x18]
mov r15, qword [rbp - 0x78]
cmp r15, rax
ja 0x140001948
mov r12, rcx
cmp rax, 0xf
jbe 0x14000192a
mov r12, qword [rcx]
mov qword [rcx + 0x10], r15
mov r8, r15
mov rdx, r9
mov rcx, r12
call sub.VCRUNTIME140.dll_memmove
mov byte [r12 + r15], 0
mov r12, qword [rsp + 0x30]
jmp 0x140001953
mov rdx, r15
call fcn.1400030c0
mov ebx, dword [rbp - 0x68]
mov byte [rbp + 0x1a0], 0
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x1a1]
call sub.VCRUNTIME140.dll_memset
movsxd rax, ebx
mov rcx, r13
lea rdx, [rbp + 0x1a0]
sub rax, rdx
lea r8, [rbp + 0x2a0]
add r8, rax
nop dword [rax + rax]
lea rax, [rbp + 0x1a0]
add rax, rcx
movzx edx, byte [rax + r8]
inc ebx
test dl, dl
je 0x1400019b3
add byte [rax], dl
inc rcx
cmp rcx, 0x80
jl 0x140001990
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
lea rax, [rbp + 0x1a0]
mov r8, r14
nop
inc r8
cmp byte [rax + r8], 0
jne 0x1400019d0
lea rdx, [rbp + 0x1a0]
lea rcx, [rsp + 0x38]
call fcn.140002f30
mov dword [rsp + 0x58], ebx
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x78]
call fcn.140002c20
mov ebx, dword [rsp + 0x58]
mov dword [rbp - 0x68], ebx
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x140001a42
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a3d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001b8e
call fcn.1400129e4
lea rcx, [r12 + 0x48]
lea rax, [rsp + 0x78]
cmp rcx, rax
je 0x140001aa3
lea r9, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
cmova r9, qword [rsp + 0x78]
mov rax, qword [rcx + 0x18]
mov r15, qword [rbp - 0x78]
cmp r15, rax
ja 0x140001a98
mov r12, rcx
cmp rax, 0xf
jbe 0x140001a7a
mov r12, qword [rcx]
mov qword [rcx + 0x10], r15
mov r8, r15
mov rdx, r9
mov rcx, r12
call sub.VCRUNTIME140.dll_memmove
mov byte [r12 + r15], 0
mov r12, qword [rsp + 0x30]
jmp 0x140001aa3
mov rdx, r15
call fcn.1400030c0
mov ebx, dword [rbp - 0x68]
mov byte [rbp + 0x1a0], 0
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x1a1]
call sub.VCRUNTIME140.dll_memset
movsxd rax, ebx
mov rcx, r13
lea rdx, [rbp + 0x1a0]
sub rax, rdx
lea r8, [rbp + 0x2a0]
add r8, rax
nop dword [rax + rax]
lea rax, [rbp + 0x1a0]
add rax, rcx
movzx edx, byte [r8 + rax]
inc ebx
test dl, dl
je 0x140001b03
add byte [rax], dl
inc rcx
cmp rcx, 0x80
jl 0x140001ae0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
lea rax, [rbp + 0x1a0]
nop dword [rax + rax]
inc r14
cmp byte [rax + r14], 0
jne 0x140001b20
mov r8, r14
lea rdx, [rbp + 0x1a0]
lea rcx, [rsp + 0x38]
call fcn.140002f30
mov dword [rsp + 0x58], ebx
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x78]
call fcn.140002c20
mov r13d, dword [rsp + 0x58]
mov dword [rbp - 0x68], r13d
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x140001b9a
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b95
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b95
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400129e4
lea rcx, [r12 + 0x68]
lea rax, [rsp + 0x78]
mov r14, qword [rbp - 0x70]
cmp rcx, rax
je 0x140001bfe
lea r9, [rsp + 0x78]
cmp r14, 0xf
cmova r9, qword [rsp + 0x78]
mov rax, qword [rcx + 0x18]
mov rbx, qword [rbp - 0x78]
cmp rbx, rax
ja 0x140001bee
mov r15, rcx
cmp rax, 0xf
jbe 0x140001bd5
mov r15, qword [rcx]
mov qword [rcx + 0x10], rbx
mov r8, rbx
mov rdx, r9
mov rcx, r15
call sub.VCRUNTIME140.dll_memmove
mov byte [r15 + rbx], 0
jmp 0x140001bfe
mov rdx, rbx
call fcn.1400030c0
mov r13d, dword [rbp - 0x68]
mov r14, qword [rbp - 0x70]
movsxd rax, r13d
movzx ecx, word [rbp + rax + 0x2a0]
lea eax, [r13 + 1]
mov word [r12 + 0x88], cx
lea edx, [rax + 2]
cdqe
movsx ecx, byte [rbp + rax + 0x2a1]
mov dword [r12 + 0x8c], ecx
movsxd r9, edx
movsx eax, byte [rbp + r9 + 0x2a0]
mov dword [r12 + 0x90], eax
lea r8d, [rdx + 2]
movsxd rax, edx
movsx ecx, byte [rbp + rax + 0x2a1]
mov dword [r12 + 0x94], ecx
movsxd rax, r8d
movsx ecx, byte [rbp + rax + 0x2a0]
mov dword [r12 + 0x98], ecx
movsxd rax, r8d
movsx ecx, byte [rbp + rax + 0x2a1]
mov dword [r12 + 0x9c], ecx
lea eax, [r8 + 2]
movsxd rcx, eax
movsx eax, byte [rbp + rcx + 0x2a0]
mov dword [r12 + 0xa0], eax
movsx eax, byte [rbp + r9 + 0x2a5]
mov dword [r12 + 0xa4], eax
mov dword [r12], 1
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
cmp r14, 0xf
jbe 0x140001cf0
lea rdx, [r14 + 1]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001cea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001cea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400129e4
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x140001d26
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x140001d21
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001d82
mov rcx, r8
call fcn.1400129e4
xor ebx, ebx
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], sendto
mov byte [rsi], bl
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140001d6c
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140001d67
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001d89
mov rcx, r8
call fcn.1400129e4
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], sendto
mov byte [rdi], 0
xor eax, eax
jmp 0x1400013eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3