joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a35d0
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, [0x140339bc0]
mov edx, dword [rdx]
sub edx, 0x79
je 0x1400a3620
sub edx, 0x450
je 0x1400a3617
sub edx, 6
je 0x1400a360e
cmp edx, 1
jne 0x1400a3636
mov dword [rbp - 0x10], 0x2751
jmp 0x1400a3627
mov dword [rbp - 0x10], 0x2743
jmp 0x1400a3627
mov dword [rbp - 0x10], 0x274d
jmp 0x1400a3627
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 0x1400a36a4
cmp rcx, 0xffffffffffffffff
jne 0x1400a364f
mov dword [rbp - 0x10], 0x2719
mov byte [rbp - 0xc], 1
jmp 0x1400a3699
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 0x1400a368a
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.140099c10
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 0x1400a36c0
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, [0x140339bc0]
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 0x1400a3733
mov dword [rsp + 0x40], 0x2746
jmp 0x1400a3743
cmp edx, 0x4d2
jne 0x1400a3757
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 0x1400a3767
cmp edx, 0x2738
je 0x1400a3776
cmp edx, 0xea
je 0x1400a3776
test ebx, ebx
je 0x1400a3776
mov eax, 0xffffffff
add rsp, 0x50
pop rbx
ret
mov r8, qword [rcx + 8]
call fcn.140099c10
mov eax, dword [rsp + 0x78]
add rsp, 0x50
pop rbx
ret
Function at 0x1400a3790
Capabilities:
Get socket status

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x140391620]
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 0x1400a37f5
lea rax, [0x140339bc0]
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 0x1400a3979
mov qword [rsp + 0x2a8], rsi
movzx esi, r14b
and sil, 0x10
cmp byte [rsp + 0x2c8], 0
je 0x1400a3827
test sil, sil
je 0x1400a3827
mov r8, qword [rbx + 8]
mov rcx, rbx
call fcn.140099c10
xor eax, eax
jmp 0x1400a3971
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.1400a36c0
test sil, sil
je 0x1400a3861
test eax, eax
je 0x1400a38e1
test eax, eax
jns 0x1400a395f
test r14b, 1
jne 0x1400a395b
mov ecx, dword [rbx]
lea rdi, [rbx + 8]
cmp ecx, 0x2733
jne 0x1400a388a
mov rax, qword [rdi]
cmp qword [rax + 8], r13
je 0x1400a38a3
cmp ecx, 0x4d5
jne 0x1400a395b
mov rax, qword [rdi]
cmp qword [rax + 8], r13
jne 0x1400a395b
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 0x1400a3936
mov r8, qword [rdi]
mov rcx, rbx
call fcn.140099c10
jmp 0x1400a3841
mov rax, qword [0x1403922a8]
lea rdi, [0x1403922a0]
mov dword [rsp + 0x30], 2
cmp rax, r13
je 0x1400a391f
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x1400a391f
mov rax, qword [0x1403922a0]
mov edx, 2
mov rcx, rdi
call qword [rax + 0x30]
jmp 0x1400a3921
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 0x1400a3961
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
test eax, eax
lea rax, [0x140339bc0]
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
xor eax, eax
jmp 0x1400a3961
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.140255050
add rsp, 0x270
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
Function at 0x1400a3ac0
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 0x1400a3b3f
mov r8, qword [rbx + 8]
mov rcx, rbx
call fcn.140099c10
cmp esi, 0x17
jne 0x1400a3b2c
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, [0x140339bc0]
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 0x1400a3d20
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 0x1400a3e4d
cmp dword [rax + 8], 0
je 0x1400a3e4d
test r8, r8
je 0x1400a3d5a
cmp byte [r8], 0
jne 0x1400a3d5c
xor edi, edi
test rbx, rbx
je 0x1400a3d67
cmp byte [r9], 0
jne 0x1400a3d69
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 0x1400a3de2
je 0x1400a3dd8
test eax, eax
je 0x1400a3dc9
sub edx, 8
je 0x1400a3dbf
sub edx, 0x271e
je 0x1400a3db5
cmp edx, 0x16
jne 0x1400a3dfc
mov dword [rsp + 0x20], 0x273c
jmp 0x1400a3e35
mov dword [rsp + 0x20], 0x2726
jmp 0x1400a3e35
mov dword [rsp + 0x20], 0xe
jmp 0x1400a3e35
mov dword [rsp + 0x20], 0
mov byte [rsp + 0x24], 0
jmp 0x1400a3e3a
mov dword [rsp + 0x20], 0x273f
jmp 0x1400a3e35
sub edx, 0x277d
je 0x1400a3e2d
sub edx, 0x37c
je 0x1400a3e23
sub edx, 1
je 0x1400a3e19
cmp edx, 1
je 0x1400a3e0f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x20], eax
setne byte [rsp + 0x24]
jmp 0x1400a3e3a
mov dword [rsp + 0x20], 0x2afb
jmp 0x1400a3e35
mov dword [rsp + 0x20], 0x2afa
jmp 0x1400a3e35
mov dword [rsp + 0x20], 0x2af9
jmp 0x1400a3e35
mov dword [rsp + 0x20], 0x277d
mov byte [rsp + 0x24], 1
lea rax, [0x140339bc0]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
jmp 0x1400a3e6b
lea rax, [0x140339bc0]
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 0x1400a46c0
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, [0x140339bc0]
mov rsi, rcx
cmp rdi, 0xffffffffffffffff
je 0x1400a4770
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x1400a4770
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 0x1400a4722
cmp eax, 0x4d5
jne 0x1400a476b
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 0x1400a4770
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 0x1400a480a
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jne 0x1400a47c8
mov rax, qword [rbx + 8]
movabs rcx, 0x8fafd21e25c5e09b
cmp rax, rcx
je 0x1400a480a
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x1400a480a
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 0x1400a47dc
cmp eax, 0x4d5
jne 0x1400a480a
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 0x1400a480a
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 0x1400a4820
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 0x1400a4c10
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 0x1400a4c4f
mov qword [rsp + 0x20], rbx
lea rbx, [rcx + 0x58]
mov rcx, rbx
call fcn.1400a46c0
mov rcx, rbx
mov qword [rbx + 8], 0xffffffffffffffff
mov qword [rbx], 0xffffffffffffffff
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
jmp fcn.1400a3f00
add rsp, 0x28
ret
Function at 0x1400a5960
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov eax, r9d
mov rdi, r8
mov rbx, rdx
mov r15, rcx
cmp qword [r8], 0xffffffffffffffff
je 0x1400a59f5
mov dword [rsp + 0x20], 1
movabs rcx, 0x8fafd21e25c5e09b
lea rdi, [0x1403922a0]
mov rax, qword [0x1403922a8]
cmp rax, rcx
je 0x1400a59d2
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x1400a59d2
mov edx, 1
mov rcx, rdi
mov rax, qword [0x1403922a0]
call qword [rax + 0x30]
jmp 0x1400a59d4
mov al, 1
mov byte [rsp + 0x24], al
mov qword [rsp + 0x28], rdi
mov rax, qword [rsp + 0x80]
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rax], xmm0
movups xmmword [rbx], xmm0
jmp 0x1400a5b30
mov rbp, qword [rsp + 0x80]
mov r9, rbp
mov r8d, dword [rsp + 0x78]
mov esi, dword [rsp + 0x70]
mov edx, esi
mov ecx, eax
call fcn.1400a3ac0
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400a5a24
movups xmm0, xmmword [rbp]
jmp 0x1400a5b2d
mov rdx, qword [r15 + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdx + 0x28]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
jne 0x1400a5a53
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
test eax, eax
setne byte [rsp + 0x24]
jmp 0x1400a5a60
mov dword [rsp + 0x20], 0
mov byte [rsp + 0x24], 0
lea r15, [0x140339bc0]
mov qword [rsp + 0x28], r15
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbp], xmm0
mov rax, qword [rbp]
shr rax, 0x20
test al, al
je 0x1400a5add
movups xmmword [rbx], xmm0
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x1400a5b30
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1400a5aad
cmp eax, 0x4d5
jne 0x1400a5b30
mov dword [rsp + 0x60], 0
lea r8, [rsp + 0x60]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x1400a5b30
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1400a5b30
mov qword [rsp + 0x60], 0xffffffffffffffff
mov qword [rdi], r14
sub esi, 1
je 0x1400a5aff
cmp esi, 1
je 0x1400a5af9
mov byte [rdi + 8], 0
jmp 0x1400a5b03
mov byte [rdi + 8], 0x20
jmp 0x1400a5b03
mov byte [rdi + 8], 0x10
lea rcx, [rdi + 0x10]
movzx r8d, byte [rsp + 0x60]
call fcn.1400b5880
mov dword [rsp + 0x20], 0
mov byte [rsp + 0x24], 0
mov qword [rsp + 0x28], r15
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbp], xmm0
movups xmmword [rbx], xmm0
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1400a5b50
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 0x1400a5b8a
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rcx + 8]
xor r8d, r8d
add rsp, 0x40
pop rdi
jmp fcn.1400a3040
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x1400a5bb2
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rdi + 8]
mov r8d, 0x2719
add rsp, 0x40
pop rdi
jmp fcn.1400a3040
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 0x1400a5c31
cmp eax, 0x3e5
je 0x1400a5c31
mov r9d, dword [rsp + 0x78]
mov r8d, eax
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.1400a3040
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.1400a2fa0
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400a5c50
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 0x1400a5c8a
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rcx + 8]
xor r8d, r8d
add rsp, 0x40
pop rbx
jmp fcn.1400a3040
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x1400a5cb2
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rbx + 8]
mov r8d, 0x2719
add rsp, 0x40
pop rbx
jmp fcn.1400a3040
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 0x1400a5d0b
mov eax, 0x2746
jmp 0x1400a5d18
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
mov rsi, qword [rsp + 0x58]
je 0x1400a5d47
cmp eax, 0x3e5
je 0x1400a5d47
mov r9d, dword [rsp + 0x78]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.1400a3040
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.1400a2fa0
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
Function at 0x1400a8d60
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 [0x1403a2748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rdx, [rdi + 0x10]
mov ecx, 0x60
call fcn.140035580
xor edx, edx
lea rcx, [0x140094120]
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.140036580

Function at 0x1400b4030
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
lea rsi, [0x140339bc0]
mov rdi, rcx
mov dword [rsp + 0x20], ebp
mov rcx, qword [rcx]
mov byte [rsp + 0x24], bpl
mov qword [rsp + 0x28], rsi
cmp qword [rdi + 8], 0xffffffffffffffff
je 0x1400b411b
xor eax, eax
lock cmpxchg qword [rcx + 0x38], rbp
je 0x1400b4082
mov rdx, qword [rdi + 8]
mov rcx, rax
call fcn.1400a4c60
mov rbx, qword [rdi + 8]
cmp rbx, 0xffffffffffffffff
je 0x1400b4134
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x1400b4134
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
cmp eax, 0x2733
je 0x1400b40d0
cmp eax, 0x4d5
jne 0x1400b4134
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], ebp
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [rdi + 0x10], 0xfc
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jne 0x1400b4108
mov dword [rsp + 0x20], ebp
mov byte [rsp + 0x24], bpl
mov qword [rsp + 0x28], rsi
jmp 0x1400b4134
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x20], eax
setne byte [rsp + 0x24]
jmp 0x1400b4124
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 byte [rdi + 0x10], bpl
mov rsi, 0xffffffffffffffff
mov qword [rdi + 8], rsi
mov rbx, qword [rdi + 0x20]
mov qword [rdi + 0x18], rbp
mov qword [rdi + 0x20], rbp
test rbx, rbx
je 0x1400b417b
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400b417b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x1400b417b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
cmp byte [rsp + 0x24], bpl
jne 0x1400b4197
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
lea rdx, str.close
lea rcx, [rsp + 0x20]
call fcn.1400353b0
int3
Function at 0x1400b5d00
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x48
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
jne 0x1400b5d1d
mov dword [rsp + 0x30], 0x2719
mov byte [rsp + 0x34], 1
jmp 0x1400b5d64
mov r9, rdx
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1400b5d53
mov dword [rsp + 0x30], eax
mov byte [rsp + 0x34], al
lea rax, [0x140339bc0]
mov qword [rsp + 0x38], rax
jmp 0x1400b5d7b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
setne byte [rsp + 0x34]
lea rax, [0x140339bc0]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov rax, qword [rsp + 0x30]
shr rax, 0x20
test al, al
jne 0x1400b5d8d
add rsp, 0x48
ret
lea rdx, str.set_option
lea rcx, [rsp + 0x30]
call fcn.1400353b0
int3

Function at 0x1400b5da0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x48
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
jne 0x1400b5dbd
mov dword [rsp + 0x30], 0x2719
mov byte [rsp + 0x34], 1
jmp 0x1400b5e02
mov r9, rdx
mov dword [rsp + 0x20], 4
mov edx, 6
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1400b5df1
mov dword [rsp + 0x30], eax
mov byte [rsp + 0x34], al
lea rax, [0x140339bc0]
mov qword [rsp + 0x38], rax
jmp 0x1400b5e19
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
setne byte [rsp + 0x34]
lea rax, [0x140339bc0]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov rax, qword [rsp + 0x30]
shr rax, 0x20
test al, al
jne 0x1400b5e2b
add rsp, 0x48
ret
lea rdx, str.set_option
lea rcx, [rsp + 0x30]
call fcn.1400353b0
int3
Function at 0x1400b7f10
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 [rcx + 0x10]
movups xmmword [rsp + 0x38], xmm0
movups xmm1, xmmword [rdx]
movups xmmword [rsp + 0x48], xmm1
mov rax, qword [r8]
mov qword [rsp + 0x58], rax
lea rdi, [rcx + 8]
mov rsi, qword [rcx]
mov rbx, qword [rdi]
mov ecx, dword [0x1403a2748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400b7f65
cmp qword [rax], rbx
je 0x1400b7fea
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400b7f53
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
mov ecx, 0x68
call fcn.140035580
mov r8, rax
xor ecx, ecx
mov qword [rax + 0x20], rcx
lea rax, [0x1400bbe30]
mov qword [r8 + 0x28], rax
mov qword [r8], rcx
mov qword [r8 + 8], rcx
mov qword [r8 + 0x10], rcx
mov qword [r8 + 0x18], rcx
mov dword [r8 + 0x30], ecx
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [r8 + 0x38], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [r8 + 0x48], xmm1
mov rax, qword [rsp + 0x58]
mov qword [r8 + 0x58], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov rdx, rdi
mov rcx, rsi
call fcn.140037790
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 0x1400b7f65
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.1400be710
nop
nop
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x1400b8020
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 [rcx + 0x10]
movups xmmword [rsp + 0x38], xmm0
movups xmm1, xmmword [rdx]
movups xmmword [rsp + 0x48], xmm1
mov rax, qword [r8]
mov qword [rsp + 0x58], rax
lea rdi, [rcx + 8]
mov rsi, qword [rcx]
mov rbx, qword [rdi]
mov ecx, dword [0x1403a2748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400b8075
cmp qword [rax], rbx
je 0x1400b80fa
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400b8063
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
mov ecx, 0x68
call fcn.140035580
mov r8, rax
xor ecx, ecx
mov qword [rax + 0x20], rcx
lea rax, [0x1400bbd90]
mov qword [r8 + 0x28], rax
mov qword [r8], rcx
mov qword [r8 + 8], rcx
mov qword [r8 + 0x10], rcx
mov qword [r8 + 0x18], rcx
mov dword [r8 + 0x30], ecx
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [r8 + 0x38], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [r8 + 0x48], xmm1
mov rax, qword [rsp + 0x58]
mov qword [r8 + 0x58], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov rdx, rdi
mov rcx, rsi
call fcn.140037790
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 0x1400b8075
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.140063fb0
nop
nop
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret