joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006e400
Capabilities:
Resolve dns

Disassembly:
push rbx
push rsi
sub rsp, 0x4f8
mov rax, qword [0x1403b8550]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rbx, r8
mov dword [rsp + 0x40], 0x80
mov rsi, rdx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x14006e4ea
movzx eax, word [rsp + 0x50]
mov qword [rsp + 0x4f0], rdi
mov edi, dword [rsp + 0x40]
cmp ax, 2
je 0x14006e45f
cmp ax, 0x17
jne 0x14006e46f
movzx ecx, word [rsp + 0x52]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rbx], eax
xor edx, edx
lea rcx, [rsp + 0xd0]
mov r8d, 0x401
call fcn.14026fa90
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0xd0]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, edi
lea rcx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getnameinfo]
mov rdi, qword [rsp + 0x4f0]
test eax, eax
jne 0x14006e4ea
lea rax, [rsp + 0xd0]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14006e4d0
lea rdx, [rsp + 0xd0]
mov rcx, rsi
call fcn.140011a50
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.140250db0
add rsp, 0x4f8
pop rsi
pop rbx
ret
mov rcx, qword [rcx + 8]
jmp 0x14006e400

Function at 0x140073030
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rbx, rdx
mov r8, qword [rcx + 0x28]
mov rsi, rcx
mov rdx, qword [rcx + 0x20]
mov rcx, qword [rcx + 8]
call fcn.14006de20
test rax, rax
jg 0x140073075
mov rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rsi + 8]
mov eax, 0x7fffffff
cmp rdi, rax
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x20], rcx
cmova rdi, rax
xor r9d, r9d
mov dword [rsp + 0x40], r9d
nop word [rax + rax]
mov r8d, edi
mov rdx, rbx
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x1400730ce
call fcn.140285d54
cmp dword [rax], 4
jne 0x1400730ce
mov r9d, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x20]
jmp 0x1400730a0
mov rsi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140079d80
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], rdx
mov rdi, qword [rcx + 0x400]
mov r14, qword [rdx]
add rcx, 0x408
call fcn.14022f004
test eax, eax
jne 0x140079f38
mov rcx, rdi
call fcn.140107df0
mov rdi, rax
lea rcx, [rbp + 0x408]
call fcn.14022f028
test eax, eax
jne 0x140079f40
test rdi, rdi
je 0x140079eeb
mov dword [rsp + 0x60], 1
lea r8, [rsp + 0x60]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor edx, edx
mov ecx, r14d
call fcn.14014b8a0
mov r15, rax
xor r9d, r9d
lea edx, [r9 + 0x66]
lea r8d, [r9 + 1]
mov rcx, rax
call fcn.140151230
mov r8, r15
mov rdx, r15
mov rcx, rdi
call fcn.140108630
lea r9, [rbp + 8]
cmp qword [r9 + 0x18], 0x10
jb 0x140079e4a
mov r9, qword [r9]
xor r8d, r8d
lea edx, [r8 + 0x37]
mov rcx, rdi
call fcn.140107090
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140079f50
cmp al, 1
jne 0x140079e9f
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x66]
mov rcx, r15
call fcn.140151230
mov dword [rsp + 0x60], 0
lea r8, [rsp + 0x60]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov qword [rbx + 8], rdi
mov al, 1
jmp 0x140079f17
mov rcx, rdi
call fcn.140108990
lea rcx, [rbp + 0x408]
call fcn.14022f004
test eax, eax
jne 0x140079f48
mov rcx, rdi
call fcn.140107500
nop
lea rcx, [rbp + 0x408]
call fcn.14022f028
test eax, eax
jne 0x140079f30
mov dword [rsp + 0x60], eax
lea r8, [rsp + 0x60]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140079f15
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140079f15
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx], 0xffffffffffffffff
xor al, al
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov ecx, eax
call fcn.14022e220
nop
mov ecx, eax
call fcn.14022e220
nop
mov ecx, eax
call fcn.14022e220
nop
mov ecx, eax
call fcn.14022e220
int3
Function at 0x14007a380
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x58
mov rax, qword [0x1403b8550]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov qword [rsp + 0x30], rcx
cmp qword [rcx + 0x20], 0x10
lea rsi, [rcx + 8]
mov rbp, rdx
mov byte [rsp + 0x20], 0
mov edi, 2
mov r15d, ebx
mov rdx, rsi
jb 0x14007a3c4
mov rdx, qword [rsi]
lea r8, [rsp + 0x38]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14007a3e0
mov r15d, reloc.WS2_32.dll_recv
jmp 0x14007a404
cmp qword [rsi + 0x18], 0x10
jb 0x14007a3ea
mov rsi, qword [rsi]
lea r8, [rsp + 0x24]
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14007a409
mov r15d, 4
mov edi, 7
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
lea edx, [r9 + 0x55]
call fcn.14014a8f0
mov r12, rax
test rax, rax
je 0x14007a4f2
mov qword [rsp + 0xa0], r13
mov rcx, rax
mov qword [rsp + 0x50], r14
xor r13b, r13b
xor r14b, r14b
call fcn.14014bf00
mov dword [rsp + 0x28], eax
test eax, eax
jle 0x14007a4e5
nop
test r14b, r14b
jne 0x14007a4e0
mov edx, ebx
mov rcx, r12
call fcn.14014c160
mov rsi, rax
cmp dword [rax], edi
jne 0x14007a4ca
mov rcx, qword [rax + 8]
call fcn.140073100
mov rcx, qword [rsi + 8]
mov rbp, rax
call fcn.140108a50
movsxd r8, eax
cmp edi, 2
je 0x14007a4b9
cmp edi, 7
jne 0x14007a4ca
mov r8, r15
lea rcx, [rsp + 0x38]
mov rdx, rbp
call fcn.14026fc30
test eax, eax
je 0x14007a4b4
mov r8, r15
lea rcx, [rsp + 0x24]
mov rdx, rbp
call fcn.14026fc30
test eax, eax
jne 0x14007a4ca
mov r13b, 1
jmp 0x14007a4ca
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
call fcn.14007a520
movzx r14d, al
inc ebx
cmp ebx, dword [rsp + 0x28]
jl 0x14007a450
test r14b, r14b
jne 0x14007a4e0
test r13b, r13b
je 0x14007a4e5
mov byte [rsp + 0x20], 1
mov r13, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x50]
mov rcx, r12
call fcn.14014c400
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140250db0
add rsp, 0x58
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400935f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
movups xmm0, xmmword [rdx + 0x10]
movups xmmword [rsp + 0x38], xmm0
movups xmm1, xmmword [rcx]
movups xmmword [rsp + 0x48], xmm1
movups xmm0, xmmword [rcx + 0x10]
movups xmmword [rsp + 0x58], xmm0
lea rdi, [rdx + 8]
mov rsi, qword [rdx]
mov rbx, qword [rdi]
mov ecx, dword [0x1403caaf0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140093646
cmp qword [rax], rbx
je 0x1400936c9
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140093634
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x58]
mov ecx, reloc.WS2_32.dll_WSASetLastError
call fcn.140034dd0
nop
xor edx, edx
mov qword [rax + 0x20], rdx
lea rcx, [0x140095a70]
mov qword [rax + 0x28], rcx
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov dword [rax + 0x30], edx
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rax + 0x38], xmm0
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rax + 0x48], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rax + 0x58], xmm1
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
mov r8, rax
mov rdx, rdi
mov rcx, rsi
call fcn.140037050
nop
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
cmp qword [rax + 8], 0
je 0x140093646
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.140095b10
nop
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140095b10
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x48
lea rdi, [rcx + 0x20]
lea rsi, [rcx + 0x18]
mov rbp, qword [rcx + 0x10]
mov rbx, qword [rsi]
mov ecx, dword [0x1403caaf0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140095b55
cmp qword [rax], rbx
je 0x140095bb4
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140095b47
mov qword [rsp + 0x20], rdi
mov rdx, rdi
mov ecx, 0x50
call fcn.140034dd0
nop
xor edx, edx
mov qword [rax + 0x20], rdx
lea rcx, [0x140095c10]
mov qword [rax + 0x28], rcx
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov dword [rax + 0x30], edx
movups xmm0, xmmword [rdi]
movups xmmword [rax + 0x38], xmm0
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
mov r8, rax
mov rdx, rsi
mov rcx, rbp
call fcn.140037050
nop
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp qword [rax + 8], 0
je 0x140095b55
mov rdx, rdi
mov rcx, rdi
call fcn.140095c70
nop
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400a0450
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push r14
push r15
sub rsp, 0x48
xor r15d, r15d
mov rbx, r9
mov r14, rdx
mov rbp, rcx
cmp rcx, 0xffffffffffffffff
je 0x1400a05ac
mov qword [rsp + 0x80], rdi
test r8b, r8b
je 0x1400a04b6
movzx eax, byte [rdx]
test al, 8
je 0x1400a04b6
or al, 8
mov dword [rsp + 0x70], r15d
mov byte [rdx], al
lea r9, [rsp + 0x70]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400a04b6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov edi, eax
test eax, eax
jne 0x1400a04d6
mov r8, qword [rbx + 8]
mov rcx, rbx
call fcn.140095fe0
jmp 0x1400a0577
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x40], r12
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r12, [0x14035ccc8]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], r12
movabs rdx, 0x8fafd21e25c5e09b
test eax, eax
lea rsi, [rbx + 8]
setne byte [rsp + 0x34]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
mov ecx, dword [rbx]
cmp ecx, 0x2733
jne 0x1400a0526
mov rax, qword [rsi]
cmp qword [rax + 8], rdx
je 0x1400a0537
cmp ecx, 0x4d5
jne 0x1400a056d
mov rax, qword [rsi]
cmp qword [rax + 8], rdx
jne 0x1400a056d
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], r15d
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r14], 0xfc
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov edi, eax
test eax, eax
jne 0x1400a058c
mov r8, qword [rsi]
mov rcx, rbx
call fcn.140095fe0
mov rsi, qword [rsp + 0x78]
mov r12, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x80]
add rsp, 0x48
pop r15
pop r14
pop rbp
pop rbx
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], r12
setne byte [rsp + 0x34]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x1400a056d
mov eax, r15d
add rsp, 0x48
pop r15
pop r14
pop rbp
pop rbx
ret

Function at 0x1400a05c0
Capabilities:
Connect socket

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, r9
cmp rcx, 0xffffffffffffffff
jne 0x1400a05f9
lea rax, [0x14035ccc8]
mov dword [rsp + 0x20], 0x2719
mov qword [rsp + 0x28], rax
mov eax, ecx
mov byte [rsp + 0x24], 1
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [r9], xmm0
add rsp, 0x30
pop rbx
ret
mov qword [rsp + 0x40], rdi
call qword [sym.imp.WS2_32.dll_connect]
mov edi, eax
test eax, eax
jne 0x1400a0623
mov r8, qword [rbx + 8]
mov rcx, rbx
call fcn.140095fe0
mov eax, edi
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
test eax, eax
lea rax, [0x14035ccc8]
mov qword [rsp + 0x28], rax
setne byte [rsp + 0x24]
movups xmm0, xmmword [rsp + 0x20]
mov eax, edi
mov rdi, qword [rsp + 0x40]
movups xmmword [rbx], xmm0
add rsp, 0x30
pop rbx
ret
Function at 0x1400a0660
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rbx, rdx
lea rdi, [0x14035ccc8]
mov edx, dword [rdx]
sub edx, 0x79
je 0x1400a06b0
sub edx, 0x450
je 0x1400a06a7
sub edx, 6
je 0x1400a069e
cmp edx, 1
jne 0x1400a06c6
mov dword [rbp - 0x10], 0x2751
jmp 0x1400a06b7
mov dword [rbp - 0x10], 0x2743
jmp 0x1400a06b7
mov dword [rbp - 0x10], 0x274d
jmp 0x1400a06b7
mov dword [rbp - 0x10], 0x274c
mov byte [rbp - 0xc], 1
mov qword [rbp - 8], rdi
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rbx], xmm0
cmp byte [rbx + 4], 0
jne 0x1400a0734
cmp rcx, 0xffffffffffffffff
jne 0x1400a06df
mov dword [rbp - 0x10], 0x2719
mov byte [rbp - 0xc], 1
jmp 0x1400a0729
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov edx, 0xffff
mov r8d, 0x7010
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1400a071a
mov r8, qword [rbx + 8]
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
jmp fcn.140095fe0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rbp - 0x10], eax
setne byte [rbp - 0xc]
mov qword [rbp - 8], rdi
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rbx], xmm0
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret

Function at 0x1400a0750
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
sub rsp, 0x50
xor eax, eax
lea r9, [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rsp + 0x80]
test eax, eax
mov dword [rsp + 0x40], eax
lea rax, [0x14035ccc8]
setne byte [rsp + 0x44]
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
mov edx, dword [rcx]
cmp edx, 0x40
jne 0x1400a07c3
mov dword [rsp + 0x40], 0x2746
jmp 0x1400a07d3
cmp edx, 0x4d2
jne 0x1400a07e7
mov dword [rsp + 0x40], 0x274d
mov byte [rsp + 0x44], 1
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
jmp 0x1400a07f7
cmp edx, 0x2738
je 0x1400a0806
cmp edx, 0xea
je 0x1400a0806
test ebx, ebx
je 0x1400a0806
mov eax, 0xffffffff
add rsp, 0x50
pop rbx
ret
mov r8, qword [rcx + 8]
call fcn.140095fe0
mov eax, dword [rsp + 0x78]
add rsp, 0x50
pop rbx
ret
Function at 0x1400a0820
Capabilities:
Get socket status

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x1403b8550]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, qword [rsp + 0x2d0]
mov r12, r9
mov r15, r8
movzx r14d, dl
mov rbp, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1400a0885
lea rax, [0x14035ccc8]
mov dword [rsp + 0x30], 0x2719
mov qword [rsp + 0x38], rax
xor eax, eax
mov byte [rsp + 0x34], 1
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x1400a0a09
mov qword [rsp + 0x2a8], rsi
movzx esi, r14b
and sil, 0x10
cmp byte [rsp + 0x2c8], 0
je 0x1400a08b7
test sil, sil
je 0x1400a08b7
mov r8, qword [rbx + 8]
mov rcx, rbx
call fcn.140095fe0
xor eax, eax
jmp 0x1400a0a01
mov qword [rsp + 0x260], r13
movabs r13, 0x8fafd21e25c5e09b
mov qword [rsp + 0x268], rdi
mov r8, r12
mov qword [rsp + 0x20], rbx
mov rdx, r15
mov rcx, rbp
call fcn.1400a0750
test sil, sil
je 0x1400a08f1
test eax, eax
je 0x1400a0971
test eax, eax
jns 0x1400a09ef
test r14b, 1
jne 0x1400a09eb
mov ecx, dword [rbx]
lea rdi, [rbx + 8]
cmp ecx, 0x2733
jne 0x1400a091a
mov rax, qword [rdi]
cmp qword [rax + 8], r13
je 0x1400a0933
cmp ecx, 0x4d5
jne 0x1400a09eb
mov rax, qword [rdi]
cmp qword [rax + 8], r13
jne 0x1400a09eb
lea ecx, [rbp + 1]
mov qword [rsp + 0x48], rbp
xor r9d, r9d
mov dword [rsp + 0x40], 1
xor r8d, r8d
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x1400a09c6
mov r8, qword [rdi]
mov rcx, rbx
call fcn.140095fe0
jmp 0x1400a08d1
mov rax, qword [0x1403b9118]
lea rdi, [0x1403b9110]
mov dword [rsp + 0x30], 2
cmp rax, r13
je 0x1400a09af
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x1400a09af
mov rax, qword [0x1403b9110]
mov edx, 2
mov rcx, rdi
call qword [rax + 0x30]
jmp 0x1400a09b1
mov al, 1
mov byte [rsp + 0x34], al
xor eax, eax
mov qword [rsp + 0x38], rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x1400a09f1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
test eax, eax
lea rax, [0x14035ccc8]
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
xor eax, eax
jmp 0x1400a09f1
cdqe
mov rdi, qword [rsp + 0x268]
mov r13, qword [rsp + 0x260]
mov rsi, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140250db0
add rsp, 0x270
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
Function at 0x1400a0b50
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rbx, r9
mov dword [rsp + 0x28], 1
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov esi, ecx
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400a0bcf
mov r8, qword [rbx + 8]
mov rcx, rbx
call fcn.140095fe0
cmp esi, 0x17
jne 0x1400a0bbc
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0
lea edx, [rsi + 0x12]
mov dword [rsp + 0x20], 4
lea r8d, [rsi + 4]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rsi, qword [rsp + 0x68]
test eax, eax
mov dword [rsp + 0x38], eax
lea rax, [0x14035ccc8]
mov qword [rsp + 0x40], rax
setne byte [rsp + 0x3c]
movups xmm0, xmmword [rsp + 0x38]
mov rax, 0xffffffffffffffff
movups xmmword [rbx], xmm0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x1400a0db0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [rdx + 8]
mov rbx, r9
mov rdi, r8
mov rsi, rcx
test rax, rax
je 0x1400a0efb
cmp dword [rax + 8], 0
je 0x1400a0efb
test r8, r8
je 0x1400a0df2
cmp byte [r8], 0
jne 0x1400a0df4
xor edi, edi
test rbx, rbx
je 0x1400a0dff
cmp byte [r9], 0
jne 0x1400a0e01
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r9, qword [rbp + 0x38]
mov rdx, rbx
mov r8, qword [rbp + 0x30]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov edx, eax
cmp eax, 0x273f
jg 0x1400a0e8a
je 0x1400a0e81
test eax, eax
je 0x1400a0e62
sub edx, 8
je 0x1400a0e56
sub edx, 0x271e
je 0x1400a0e4a
cmp edx, 0x16
jne 0x1400a0ea4
mov dword [rbp - 0x10], 0x273c
jmp 0x1400a0ee6
mov dword [rbp - 0x10], 0x2726
jmp 0x1400a0ee6
mov dword [rbp - 0x10], reloc.WS2_32.dll_ntohl
jmp 0x1400a0ee6
lea rax, [0x14035ccc8]
mov dword [rbp - 0x10], 0
mov qword [rbp - 8], rax
mov byte [rbp - 0xc], 0
movaps xmm0, xmmword [rbp - 0x10]
jmp 0x1400a0f15
mov dword [rbp - 0x10], 0x273f
jmp 0x1400a0ee6
sub edx, 0x277d
je 0x1400a0edf
sub edx, 0x37c
je 0x1400a0ed6
sub edx, 1
je 0x1400a0ecd
cmp edx, 1
je 0x1400a0ec4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x10], eax
test eax, eax
lea rax, [0x14035ccc8]
setne byte [rbp - 0xc]
mov qword [rbp - 8], rax
movaps xmm0, xmmword [rbp - 0x10]
jmp 0x1400a0f15
mov dword [rbp - 0x10], 0x2afb
jmp 0x1400a0ee6
mov dword [rbp - 0x10], 0x2afa
jmp 0x1400a0ee6
mov dword [rbp - 0x10], 0x2af9
jmp 0x1400a0ee6
mov dword [rbp - 0x10], 0x277d
lea rax, [0x14035ccc8]
mov byte [rbp - 0xc], 1
mov qword [rbp - 8], rax
movaps xmm0, xmmword [rbp - 0x10]
jmp 0x1400a0f15
lea rax, [0x14035ccc8]
mov dword [rbp - 0x10], 0x3e3
mov qword [rbp - 8], rax
mov byte [rbp - 0xc], 1
movups xmm0, xmmword [rbp - 0x10]
mov rax, qword [rbp + 0x40]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
movups xmmword [rsi], xmm0
movups xmmword [rax], xmm0
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rbp
ret
Function at 0x1400a1770
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx]
lea rbx, [0x14035ccc8]
mov rsi, rcx
cmp rdi, 0xffffffffffffffff
je 0x1400a1820
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x1400a1820
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], rbx
setne byte [rsp + 0x24]
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
cmp eax, 0x2733
je 0x1400a17d2
cmp eax, 0x4d5
jne 0x1400a181b
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x1400a1820
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
test eax, eax
mov qword [rsp + 0x28], rbx
setne byte [rsp + 0x24]
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsi + 8]
cmp rdi, 0xffffffffffffffff
je 0x1400a18ba
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jne 0x1400a1878
mov rax, qword [rbx + 8]
movabs rcx, 0x8fafd21e25c5e09b
cmp rax, rcx
je 0x1400a18ba
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x1400a18ba
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp qword [rax + 0x30]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1400a188c
cmp eax, 0x4d5
jne 0x1400a18ba
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x1400a18ba
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400a18d0
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x58
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x68]
xor eax, eax
mov byte [rsp + 0x60], 0
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x40], 1
lea r8d, [rax + 1]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x58
ret
Function at 0x1400a1cb0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
sub rsp, 0x28
cmp edx, 2
jne 0x1400a1cef
mov qword [rsp + 0x20], rbx
lea rbx, [rcx + 0x58]
mov rcx, rbx
call fcn.1400a1770
mov rcx, rbx
mov qword [rbx + 8], 0xffffffffffffffff
mov qword [rbx], 0xffffffffffffffff
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
jmp fcn.1400a0fb0
add rsp, 0x28
ret