joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140069ba0
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140304470]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, qword [rbp + 0x210]
mov rax, r8
mov qword [rsp + 0x30], rax
movzx r13d, dl
mov qword [rsp + 0x50], r9
mov r12, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140069c11
lea rdi, [0x1402b2d00]
mov dword [rsp + 0x30], 0x2719
mov qword [rsp + 0x38], rdi
xor eax, eax
mov byte [rsp + 0x34], 1
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x140069d92
mov qword [rsp + 0x2a8], r14
mov qword [rsp + 0x2a0], r15
movzx r15d, r13b
and r15b, 0x10
cmp byte [rbp + 0x208], 0
je 0x140069c5f
test r15b, r15b
je 0x140069c5f
xor r14d, r14d
lea rdi, [0x1402b2d00]
mov dword [rsp + 0x30], r14d
xor eax, eax
mov byte [rsp + 0x34], r14b
mov qword [rsp + 0x38], rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x140069d82
mov r8, r9
mov qword [rsp + 0x2e8], rsi
mov rdx, rax
mov qword [rsp + 0x20], rbx
call fcn.140069a80
test eax, eax
jg 0x140069d78
lea rdi, [0x1402b2d00]
xor r14d, r14d
movabs rcx, 0x8fafd21e25c5e09b
test r15b, r15b
je 0x140069ca0
test eax, eax
je 0x140069db0
test r13b, 1
jne 0x140069e01
mov eax, dword [rbx]
cmp eax, 0x2733
je 0x140069cbe
cmp eax, 0x4d5
jne 0x140069e01
mov rax, qword [rbx + 8]
cmp qword [rax + 8], rcx
jne 0x140069e01
xor ecx, ecx
mov qword [rbp - 0x78], r12
mov dword [rbp - 0x80], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [r12 + 1]
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea rdx, [rbp - 0x80]
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x60], rdi
setne byte [rsp + 0x5c]
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbx], xmm0
test esi, esi
jne 0x140069d36
mov dword [rsp + 0x68], r14d
mov byte [rsp + 0x6c], r14b
mov qword [rsp + 0x70], rdi
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rbx], xmm0
jmp 0x140069d59
jle 0x140069d51
mov dword [rsp + 0x40], r14d
mov byte [rsp + 0x44], r14b
mov qword [rsp + 0x48], rdi
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
jmp 0x140069d59
test esi, esi
js 0x140069e01
mov r8, qword [rsp + 0x50]
mov rcx, r12
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rbx
call fcn.140069a80
test eax, eax
jle 0x140069c89
mov eax, eax
mov rsi, qword [rsp + 0x2e8]
mov r14, qword [rsp + 0x2a8]
mov r15, qword [rsp + 0x2a0]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140219010
add rsp, 0x2b0
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
mov rax, qword [0x1403044e0]
lea rdi, [0x1403044d8]
mov dword [rsp + 0x40], 2
cmp rax, rcx
je 0x140069dee
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x140069dee
mov rax, qword [0x1403044d8]
mov edx, 2
mov rcx, rdi
call qword [rax + 0x30]
jmp 0x140069df0
mov al, 1
mov byte [rsp + 0x44], al
mov qword [rsp + 0x48], rdi
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
xor eax, eax
jmp 0x140069d7a
Function at 0x140069f80
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x198]
sub rsp, 0x298
mov rax, qword [0x140304470]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rbx, qword [rbp + 0x200]
mov rax, r9
mov qword [rsp + 0x30], rax
mov r13, r8
movzx r12d, dl
mov r15, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140069ff1
lea rdi, [0x1402b2d00]
mov dword [rsp + 0x30], 0x2719
mov qword [rsp + 0x38], rdi
xor eax, eax
mov byte [rsp + 0x34], 1
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x14006a14c
cmp byte [rbp + 0x1f8], 0
mov qword [rsp + 0x290], r14
je 0x14006a030
test r12b, 0x10
je 0x14006a030
xor r14d, r14d
lea rdi, [0x1402b2d00]
mov dword [rsp + 0x30], r14d
xor eax, eax
mov byte [rsp + 0x34], r14b
mov qword [rsp + 0x38], rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x14006a144
mov r8, rax
mov qword [rsp + 0x2d8], rsi
mov rdx, r13
mov qword [rsp + 0x20], rbx
call fcn.140023f40
test eax, eax
jns 0x14006a13a
and r12b, 1
lea rdi, [0x1402b2d00]
xor r14d, r14d
movabs rcx, 0x8fafd21e25c5e09b
test r12b, r12b
jne 0x14006a16c
mov eax, dword [rbx]
cmp eax, 0x2733
je 0x14006a085
cmp eax, 0x4d5
jne 0x14006a16c
mov rax, qword [rbx + 8]
cmp qword [rax + 8], rcx
jne 0x14006a16c
xor ecx, ecx
mov qword [rsp + 0x78], r15
mov dword [rsp + 0x70], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [r15 + 1]
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rdi
setne byte [rsp + 0x44]
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
test esi, esi
jne 0x14006a0fe
mov dword [rsp + 0x50], r14d
mov byte [rsp + 0x54], r14b
mov qword [rsp + 0x58], rdi
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbx], xmm0
jmp 0x14006a11d
jle 0x14006a119
mov dword [rsp + 0x60], r14d
mov byte [rsp + 0x64], r14b
mov qword [rsp + 0x68], rdi
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbx], xmm0
jmp 0x14006a11d
test esi, esi
js 0x14006a16c
mov r8, qword [rsp + 0x30]
mov rdx, r13
mov rcx, r15
mov qword [rsp + 0x20], rbx
call fcn.140023f40
test eax, eax
js 0x14006a05e
mov eax, eax
mov rsi, qword [rsp + 0x2d8]
mov r14, qword [rsp + 0x290]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140219010
add rsp, 0x298
pop r15
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
xor eax, eax
jmp 0x14006a13c
Function at 0x14006a170
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov esi, ecx
mov rbp, r9
xor ecx, ecx
mov ebx, r8d
mov edi, edx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r9d, r9d
mov dword [rsp + 0x28], 1
mov r8d, ebx
mov dword [rsp + 0x20], 0
mov edx, edi
mov ecx, esi
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
lea rdi, [0x1402b2d00]
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
cmp rbx, 0xffffffffffffffff
jne 0x14006a1ea
mov rax, rbx
jmp 0x14006a232
cmp esi, 0x17
jne 0x14006a214
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], 0
lea edx, [rsi + 0x12]
mov dword [rsp + 0x20], 4
lea r8d, [rsi + 4]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x30], 0
mov rax, rbx
mov byte [rsp + 0x34], 0
mov qword [rsp + 0x38], rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14006a250
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rdx + 8]
mov rbx, r9
mov rdi, r8
mov rsi, rcx
test rax, rax
je 0x14006a37d
cmp dword [rax + 8], 0
je 0x14006a37d
test r8, r8
je 0x14006a28a
cmp byte [r8], 0
jne 0x14006a28c
xor edi, edi
test rbx, rbx
je 0x14006a297
cmp byte [r9], 0
jne 0x14006a299
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r9, qword [rsp + 0x68]
mov rdx, rbx
mov r8, qword [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov edx, eax
cmp eax, 0x273f
jg 0x14006a312
je 0x14006a308
test eax, eax
je 0x14006a2f9
sub edx, 8
je 0x14006a2ef
sub edx, 0x271e
je 0x14006a2e5
cmp edx, 0x16
jne 0x14006a32c
mov dword [rsp + 0x20], 0x273c
jmp 0x14006a365
mov dword [rsp + 0x20], 0x2726
jmp 0x14006a365
mov dword [rsp + 0x20], reloc.WS2_32.dll_ntohl
jmp 0x14006a365
mov dword [rsp + 0x20], 0
mov byte [rsp + 0x24], 0
jmp 0x14006a36a
mov dword [rsp + 0x20], 0x273f
jmp 0x14006a365
sub edx, 0x277d
je 0x14006a35d
sub edx, 0x37c
je 0x14006a353
sub edx, 1
je 0x14006a349
cmp edx, 1
je 0x14006a33f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x20], eax
setne byte [rsp + 0x24]
jmp 0x14006a36a
mov dword [rsp + 0x20], 0x2afb
jmp 0x14006a365
mov dword [rsp + 0x20], 0x2afa
jmp 0x14006a365
mov dword [rsp + 0x20], 0x2af9
jmp 0x14006a365
mov dword [rsp + 0x20], 0x277d
mov byte [rsp + 0x24], 1
lea rax, [0x1402b2d00]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
jmp 0x14006a39b
lea rax, [0x1402b2d00]
mov dword [rsp + 0x20], 0x3e3
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x24], 1
movups xmm0, xmmword [rsp + 0x20]
mov rax, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x40]
movups xmmword [rsi], xmm0
movups xmmword [rax], xmm0
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14006a3c0
Capabilities:
Set socket configuration

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, qword [rcx]
cmp rdi, 0xffffffffffffffff
je 0x14006a436
xor ecx, ecx
mov qword [rsp + 0x38], rbx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
mov rbx, qword [rsp + 0x38]
je 0x14006a436
cmp eax, 0x2733
je 0x14006a404
cmp eax, 0x4d5
jne 0x14006a436
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x20
pop rdi
ret
Function at 0x14006aa10
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, qword [rcx]
mov qword [rsp + 0x38], rsi
mov rsi, rcx
cmp rdi, 0xffffffffffffffff
je 0x14006aa88
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
je 0x14006aa88
cmp eax, 0x2733
je 0x14006aa56
cmp eax, 0x4d5
jne 0x14006aa88
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdi, qword [rsi + 8]
mov rsi, qword [rsp + 0x38]
cmp rdi, 0xffffffffffffffff
je 0x14006aaf4
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
je 0x14006aaf4
cmp eax, 0x2733
je 0x14006aac2
cmp eax, 0x4d5
jne 0x14006aaf4
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14006ae50
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp edx, 2
jne 0x14006ae8f
mov qword [rsp + 0x20], rbx
lea rbx, [rcx + 0x58]
mov rcx, rbx
call fcn.14006aa10
mov rcx, rbx
mov qword [rbx + 8], 0xffffffffffffffff
mov qword [rbx], 0xffffffffffffffff
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
jmp fcn.14006a440
add rsp, 0x28
ret
Function at 0x14006b9a0
Capabilities:
Send data
Send data on socket

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 8]
mov r10, r9
mov r11, r8
mov rdi, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x78], 0
je 0x14006b9da
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rcx + 8]
xor r8d, r8d
add rsp, 0x40
pop rdi
jmp fcn.1400693c0
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x14006ba02
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rdi + 8]
mov r8d, 0x2719
add rsp, 0x40
pop rdi
jmp fcn.1400693c0
xor eax, eax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x78]
mov dword [rsp + 0x78], eax
mov r8d, r10d
mov eax, dword [rsp + 0x70]
mov rdx, r11
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x80]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
mov rbx, qword [rsp + 0x50]
je 0x14006ba81
cmp eax, 0x3e5
je 0x14006ba81
mov r9d, dword [rsp + 0x78]
mov r8d, eax
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.1400693c0
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.140069320
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rcx + 8]
mov r10, r9
mov r11, r8
mov rbx, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x78], 0
je 0x14006bada
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rcx + 8]
xor r8d, r8d
add rsp, 0x40
pop rbx
jmp fcn.1400693c0
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x14006bb02
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rbx + 8]
mov r8d, 0x2719
add rsp, 0x40
pop rbx
jmp fcn.1400693c0
mov eax, dword [rsp + 0x70]
lea r9, [rsp + 0x78]
xor edx, edx
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x50]
mov dword [rsp + 0x78], edx
mov r8d, r10d
mov qword [rsp + 0x58], rsi
mov rdx, r11
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x80]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x14006bb5b
mov eax, 0x2746
jmp 0x14006bb68
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
mov rsi, qword [rsp + 0x58]
je 0x14006bb97
cmp eax, 0x3e5
je 0x14006bb97
mov r9d, dword [rsp + 0x78]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.1400693c0
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.140069320
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
Function at 0x14006ee60
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rdi, rdx
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rdx, [rdi + 0x10]
mov ecx, 0x58
call fcn.1400227f0
xor edx, edx
lea rcx, [0x14005b920]
mov qword [rax + 0x20], rdx
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
movups xmm0, xmmword [rdi + 0x10]
movups xmmword [rax + 0x48], xmm0
mov rcx, qword [rsi + 0x10]
lock inc dword [rcx + 0x30]
mov rdx, rax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400235c0
Function at 0x14007ab30
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
xor ebp, ebp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
mov rdi, rcx
mov rcx, qword [rcx]
mov qword [rsp + 0x30], r14
cmp qword [rdi + 8], 0xffffffffffffffff
je 0x14007ac26
xor eax, eax
lock cmpxchg qword [rcx + 0x38], rbp
je 0x14007ab76
mov rdx, qword [rdi + 8]
mov rcx, rax
call fcn.140024410
mov r14, qword [rdi + 8]
lea rsi, [0x1402b2d00]
cmp r14, 0xffffffffffffffff
je 0x14007ac2d
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], rsi
setne byte [rsp + 0x24]
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
test ebx, ebx
je 0x14007ac2d
cmp eax, 0x2733
je 0x14007abd1
cmp eax, 0x4d5
jne 0x14007ac46
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], ebp
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [rdi + 0x10], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], rsi
setne byte [rsp + 0x24]
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
test ebx, ebx
jne 0x14007ac46
jmp 0x14007ac2d
lea rsi, [0x1402b2d00]
mov dword [rsp + 0x20], ebp
mov byte [rsp + 0x24], bpl
mov qword [rsp + 0x28], rsi
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov r14, qword [rsp + 0x30]
mov rsi, 0xffffffffffffffff
mov qword [rdi + 8], rsi
mov byte [rdi + 0x10], 0
mov rbx, qword [rdi + 0x20]
mov qword [rdi + 0x18], rbp
mov qword [rdi + 0x20], rbp
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x60]
test rbx, rbx
je 0x14007ac9c
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14007ac9c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x14007ac9c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
cmp dword [rsp + 0x20], 0
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
jne 0x14007acb2
add rsp, 0x48
ret
lea rdx, str.close
lea rcx, [rsp + 0x20]
call fcn.1400226b0
int3
Function at 0x14007c950
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, qword [rcx + 8]
mov rdi, rdx
cmp rbx, 0xffffffffffffffff
jne 0x14007c97d
mov dword [rsp + 0x30], 0x2719
lea rax, [0x1402b2d00]
mov byte [rsp + 0x34], 1
jmp 0x14007c9da
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r9, rdi
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 8
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
test eax, eax
lea rax, [0x1402b2d00]
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
test ebx, ebx
jne 0x14007c9ea
mov dword [rsp + 0x30], ebx
mov byte [rsp + 0x34], bl
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
cmp dword [rsp + 0x30], 0
jne 0x14007c9fc
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
lea rdx, str.set_option
lea rcx, [rsp + 0x30]
call fcn.1400226b0
int3

Function at 0x14007ca10
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, qword [rcx + 8]
mov rdi, rdx
cmp rbx, 0xffffffffffffffff
jne 0x14007ca3d
mov dword [rsp + 0x30], 0x2719
lea rax, [0x1402b2d00]
mov byte [rsp + 0x34], 1
jmp 0x14007ca98
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, 6
mov dword [rsp + 0x20], 4
mov r9, rdi
mov rcx, rbx
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
test eax, eax
lea rax, [0x1402b2d00]
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
test ebx, ebx
jne 0x14007caa8
mov dword [rsp + 0x30], ebx
mov byte [rsp + 0x34], bl
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
cmp dword [rsp + 0x30], 0
jne 0x14007caba
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
lea rdx, str.set_option
lea rcx, [rsp + 0x30]
call fcn.1400226b0
int3
Function at 0x140081100
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0xc0
mov r9, rdx
cmp byte [rcx + 0x18], 0
je 0x14008115c
movups xmm0, xmmword [rdx + 0x10]
movups xmmword [rsp + 0x20], xmm0
movups xmm1, xmmword [rdx]
movups xmmword [rsp + 0x30], xmm1
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rdx + 0x20]
movups xmmword [rsp + 0x50], xmm1
add rdx, 8
lea r8, [rsp + 0x20]
mov rcx, qword [r9]
call fcn.140053d60
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x1400812a1
cmp byte [rbx + 8], 0
je 0x1400811d1
movups xmm2, xmmword [rdx]
movups xmmword [rsp + 0x20], xmm2
movups xmm0, xmmword [rdx + 0x10]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rdx + 0x20]
movups xmmword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm2
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm1
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x28]
movq rcx, xmm2
call fcn.140053d60
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret
mov rax, qword [rbx]
mov rdi, qword [rax + 0x28]
movups xmm0, xmmword [rdx]
movups xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rdx + 0x10]
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rsp + 0x20], xmm0
mov ecx, dword [0x140312328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140081232
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140081232
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140081232
mov qword [rcx + 0x10], 0
movzx ecx, byte [rax]
cmp cl, 0x10
jb 0x14008122a
mov byte [rax + 0x40], cl
jmp 0x140081240
mov rcx, rax
call fcn.140219624
mov ecx, 0x41
call fcn.1402192c8
mov byte [rax + 0x40], reloc.WS2_32.dll_recv
lea rcx, [0x140053750]
mov qword [rax], rcx
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rax + 8], xmm0
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rax + 0x18], xmm0
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rax + 0x28], xmm0
mov qword [rsp + 0xe0], rax
lea rdx, [rsp + 0xe0]
mov rcx, rbx
call rdi
nop
mov rcx, qword [rsp + 0xe0]
test rcx, rcx
je 0x140081290
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret
lea rcx, [rsp + 0x20]
call fcn.140023da0
nop
lea rcx, [rsp + 0x20]
call fcn.140038d10
int3