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

Disassembly:
push rbx
push r12
push r13
push r15
sub rsp, 0x2a8
mov rax, qword [0x1402cf480]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, qword [rsp + 0x300]
mov rax, r9
mov qword [rsp + 0x30], rax
mov r13, r8
movzx r12d, dl
mov r15, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1400691e2
mov dword [rsp + 0x30], 0x2719
call fcn.1400b35b0
mov qword [rsp + 0x38], rax
xor eax, eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x140069360
mov qword [rsp + 0x2d8], rbp
mov qword [rsp + 0x290], r14
movzx r14d, r12b
and r14b, 0x10
cmp byte [rsp + 0x2f8], 0
je 0x140069228
test r14b, r14b
je 0x140069228
xor ebp, ebp
mov dword [rsp + 0x30], ebp
call fcn.1400b35b0
mov qword [rsp + 0x38], rax
xor eax, eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x140069350
mov qword [rsp + 0x2a0], rsi
mov r8, rax
mov rdx, r13
mov qword [rsp + 0x298], rdi
mov qword [rsp + 0x20], rbx
call fcn.140069070
test eax, eax
jg 0x14006933e
xor ebp, ebp
test r14b, r14b
je 0x14006925f
test eax, eax
je 0x14006937f
test r12b, 1
jne 0x140069399
call fcn.1400b35b0
cmp qword [rbx + 8], rax
jne 0x14006927c
cmp dword [rbx], 0x2733
je 0x140069297
call fcn.1400b35b0
cmp qword [rbx + 8], rax
jne 0x140069399
cmp dword [rbx], 0x4d5
jne 0x140069399
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], rbp
xor r9d, r9d
lea rdx, [rsp + 0x70]
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call fcn.1400b35b0
mov rdi, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x50], eax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbx], xmm0
test esi, esi
jne 0x140069303
mov dword [rsp + 0x60], ebp
call fcn.1400b35b0
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbx], xmm0
jmp 0x140069321
jle 0x14006931d
mov dword [rsp + 0x40], ebp
call fcn.1400b35b0
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
jmp 0x140069321
test esi, esi
js 0x140069399
mov r8, qword [rsp + 0x30]
mov rdx, r13
mov rcx, r15
mov qword [rsp + 0x20], rbx
call fcn.140069070
test eax, eax
jle 0x140069252
mov eax, eax
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x2a0]
mov rbp, qword [rsp + 0x2d8]
mov r14, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1401fb000
add rsp, 0x2a8
pop r15
pop r13
pop r12
pop rbx
ret
mov dword [rsp + 0x40], 2
call fcn.140021f00
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
xor eax, eax
jmp 0x140069340
Function at 0x1400693a0
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 rdi, rax
call fcn.1400b35b0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
cmp rdi, 0xffffffffffffffff
jne 0x140069414
mov rax, rdi
jmp 0x14006945c
cmp esi, 0x17
jne 0x14006943e
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], 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 dword [rsp + 0x30], 0
call fcn.1400b35b0
mov qword [rsp + 0x38], rax
mov rax, 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 0x140069480
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 0x14006963c
cmp dword [rax + 8], 0
je 0x14006963c
test r8, r8
je 0x1400694ba
cmp byte [r8], 0
jne 0x1400694bc
xor edi, edi
test rbx, rbx
je 0x1400694c7
cmp byte [r9], 0
jne 0x1400694c9
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 0x1400695a0
je 0x140069584
test eax, eax
je 0x140069568
sub edx, 8
je 0x14006954c
sub edx, 0x271e
je 0x140069530
cmp edx, 0x16
jne 0x1400695ba
mov dword [rsp + 0x20], 0x273c
call fcn.1400b35b0
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
jmp 0x140069653
mov dword [rsp + 0x20], 0x2726
call fcn.1400b35b0
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
jmp 0x140069653
mov dword [rsp + 0x20], reloc.WS2_32.dll_ntohl
call fcn.1400b35b0
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
jmp 0x140069653
mov dword [rsp + 0x20], 0
call fcn.1400b35b0
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
jmp 0x140069653
mov dword [rsp + 0x20], 0x273f
call fcn.1400b35b0
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
jmp 0x140069653
sub edx, 0x277d
je 0x140069623
sub edx, 0x37c
je 0x14006960a
sub edx, 1
je 0x1400695f1
cmp edx, 1
je 0x1400695d8
call fcn.1400b35b0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], rbx
movaps xmm0, xmmword [rsp + 0x20]
jmp 0x140069653
mov dword [rsp + 0x20], 0x2afb
call fcn.1400b35b0
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
jmp 0x140069653
mov dword [rsp + 0x20], 0x2afa
call fcn.1400b35b0
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
jmp 0x140069653
mov dword [rsp + 0x20], 0x2af9
call fcn.1400b35b0
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
jmp 0x140069653
mov dword [rsp + 0x20], 0x277d
call fcn.1400b35b0
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
jmp 0x140069653
mov dword [rsp + 0x20], 0x3e3
call fcn.1400b35b0
mov qword [rsp + 0x28], rax
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 0x140069680
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx], 0xffffffffffffffff
mov rbx, rcx
je 0x140069750
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
call fcn.1400b35b0
mov rdi, qword [rbx]
cmp rdi, 0xffffffffffffffff
je 0x14006973c
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 fcn.1400b35b0
mov rbp, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
test ebx, ebx
je 0x14006973c
call fcn.1400b35b0
cmp rbp, rax
jne 0x1400696ed
cmp esi, 0x2733
je 0x1400696ff
call fcn.1400b35b0
cmp rbp, rax
jne 0x140069741
cmp esi, 0x4d5
jne 0x140069741
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]
mov ebx, eax
call fcn.1400b35b0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x140069741
call fcn.1400b35b0
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbx
ret
Function at 0x140069e00
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
call fcn.1400b35b0
mov rdi, qword [rsi]
cmp rdi, 0xffffffffffffffff
je 0x140069eb8
xor ecx, ecx
mov qword [rsp + 0x48], r14
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.1400b35b0
mov r14, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
test ebx, ebx
je 0x140069eae
call fcn.1400b35b0
cmp r14, rax
jne 0x140069e5f
cmp ebp, 0x2733
je 0x140069e71
call fcn.1400b35b0
cmp r14, rax
jne 0x140069eb3
cmp ebp, 0x4d5
jne 0x140069eb3
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 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]
mov ebx, eax
call fcn.1400b35b0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x140069eb3
call fcn.1400b35b0
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsi + 8]
cmp rdi, 0xffffffffffffffff
je 0x140069f53
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 fcn.1400b35b0
mov rbp, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
test ebx, ebx
je 0x140069f4e
call fcn.1400b35b0
cmp rbp, rax
jne 0x140069eff
cmp esi, 0x2733
je 0x140069f11
call fcn.1400b35b0
cmp rbp, rax
jne 0x140069f53
cmp esi, 0x4d5
jne 0x140069f53
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 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]
mov ebx, eax
call fcn.1400b35b0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x140069f53
call fcn.1400b35b0
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x14006a2b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
sub rsp, 0x28
cmp edx, 2
jne 0x14006a2ef
mov qword [rsp + 0x20], rbx
lea rbx, [rcx + 0x58]
mov rcx, rbx
call fcn.140069e00
mov rcx, rbx
mov qword [rbx + 8], 0xffffffffffffffff
mov qword [rbx], 0xffffffffffffffff
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
jmp fcn.140069760
add rsp, 0x28
ret
Function at 0x14006ae20
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 0x14006ae5a
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rcx + 8]
xor r8d, r8d
add rsp, 0x40
pop rdi
jmp fcn.140068a70
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x14006ae82
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rdi + 8]
mov r8d, 0x2719
add rsp, 0x40
pop rdi
jmp fcn.140068a70
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 0x14006af01
cmp eax, 0x3e5
je 0x14006af01
mov r9d, dword [rsp + 0x78]
mov r8d, eax
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.140068a70
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.1400689d0
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14006af20
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 0x14006af5a
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rcx + 8]
xor r8d, r8d
add rsp, 0x40
pop rbx
jmp fcn.140068a70
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x14006af82
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rbx + 8]
mov r8d, 0x2719
add rsp, 0x40
pop rbx
jmp fcn.140068a70
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 0x14006afdb
mov eax, 0x2746
jmp 0x14006afe8
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
mov rsi, qword [rsp + 0x58]
je 0x14006b017
cmp eax, 0x3e5
je 0x14006b017
mov r9d, dword [rsp + 0x78]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.140068a70
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.1400689d0
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
Function at 0x1400794c0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov rsi, rcx
mov qword [rsp + 0x40], rdi
call fcn.1400b35b0
mov rcx, qword [rsi]
xor ebp, ebp
cmp qword [rsi + 8], 0xffffffffffffffff
je 0x1400795f9
xor eax, eax
lock cmpxchg qword [rcx + 0x38], rbp
je 0x140079506
mov rdx, qword [rsi + 8]
mov rcx, rax
call fcn.1400238c0
mov rdi, qword [rsi + 8]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
cmp rdi, 0xffffffffffffffff
je 0x1400795d4
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 fcn.1400b35b0
mov r15, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x28], r15
mov r14d, eax
mov dword [rsp + 0x20], eax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
test ebx, ebx
je 0x1400795d4
call fcn.1400b35b0
cmp r15, rax
jne 0x14007956d
cmp r14d, 0x2733
je 0x140079580
call fcn.1400b35b0
cmp r15, rax
jne 0x1400795ed
cmp r14d, 0x4d5
jne 0x1400795ed
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], ebp
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [rsi + 0x10], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov edi, eax
call fcn.1400b35b0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
test edi, edi
jne 0x1400795ed
mov dword [rsp + 0x20], ebp
call fcn.1400b35b0
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
jmp 0x140079612
mov dword [rsp + 0x20], ebp
call fcn.1400b35b0
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov byte [rsi + 0x10], 0
mov rdi, 0xffffffffffffffff
mov qword [rsi + 8], rdi
mov rbx, qword [rsi + 0x20]
mov qword [rsi + 0x18], rbp
mov qword [rsi + 0x20], rbp
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
test rbx, rbx
je 0x140079663
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140079663
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140079663
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
cmp dword [rsp + 0x20], 0
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
jne 0x140079679
add rsp, 0x48
ret
lea rdx, str.close
lea rcx, [rsp + 0x20]
call fcn.140021d20
int3
Function at 0x14007a0b0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
cmp qword [rcx + 0x78], 0
je 0x14007a11d
test edx, edx
jne 0x14007a0e8
mov rcx, qword [rcx + 0x58]
mov rcx, qword [rcx + 0x10]
call fcn.140022aa0
mov rcx, qword [rbx + 0x78]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140022310
mov rax, qword [rcx + 0x58]
mov rcx, qword [rax + 0x10]
xor eax, eax
xchg dword [rcx + 0x34], eax
mov ecx, 0x18
call fcn.1401fb140
mov qword [rsp + 0x30], rax
mov rdx, qword [rbx + 0x58]
mov rcx, rax
call fcn.14007ad90
nop
mov rdx, rax
lea rcx, [rbx + 0x78]
call fcn.140030040
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14007b210
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rdi, rdx
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rdx, [rdi + 0x10]
mov ecx, 0x58
call fcn.140021fa0
xor edx, edx
lea rcx, [0x1400583e0]
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 + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.140022b10
Function at 0x14007b2f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov r15, r8
mov r12, rdx
mov rbp, rcx
lea r14, [rcx + 8]
xor r13d, r13d
cmp qword [r14], 0xffffffffffffffff
jne 0x14007b456
mov dword [rsp + 0x40], r13d
call fcn.1400b35b0
mov qword [rsp + 0x48], rax
mov eax, 2
mov ecx, 0x17
cmp word [r12], ax
cmovne eax, ecx
mov dword [rsp + 0xf0], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xf0]
mov r8, r14
lea rdx, [rsp + 0x50]
mov rcx, qword [rbp]
call fcn.14007c340
lea rax, [fcn.140015200]
cmp dword [rsp + 0x40], r13d
cmove rax, r13
test rax, rax
je 0x14007b456
mov rbx, qword [rbp]
mov rbx, qword [rbx + 0x18]
movups xmm0, xmmword [r15]
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmm0, xmmword [r15 + 0x10]
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0xa0], xmm0
mov ecx, dword [0x1402dae9c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14007b3f2
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14007b3f2
mov rax, qword [rcx]
test rax, rax
je 0x14007b3f2
mov qword [rcx], r13
movzx ecx, byte [rax]
cmp cl, 0x1e
jb 0x14007b3ea
mov byte [rax + 0x78], cl
jmp 0x14007b400
mov rcx, rax
call fcn.1401fb48c
mov ecx, 0x79
call fcn.1401fb140
mov byte [rax + 0x78], 0x1e
mov qword [rax + 0x20], r13
lea rcx, [0x14007ffe0]
mov qword [rax + 0x28], rcx
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], r13
mov dword [rax + 0x30], r13d
mov byte [rax + 0x39], 1
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rax + 0x40], xmm0
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rax + 0x50], xmm0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rax + 0x60], xmm0
mov rcx, qword [rbx + 0x10]
lock inc dword [rcx + 0x30]
mov rdx, rax
call fcn.140022b10
jmp 0x14007b50d
mov rbp, qword [rbp]
mov qword [rsp + 0x50], r15
lea rdx, [r15 + 0x10]
mov ecx, 0x88
call fcn.140021fa0
mov rsi, rax
mov qword [rsp + 0x58], rax
mov rbx, qword [r14]
mov qword [rax + 0x20], r13
lea rax, [0x14007de70]
mov qword [rsi + 0x28], rax
mov qword [rsi], r13
mov qword [rsi + 8], r13
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], r13
mov dword [rsi + 0x30], r13d
mov dword [rsi + 0x38], r13d
call fcn.1400b35b0
mov qword [rsi + 0x40], rax
mov qword [rsi + 0x48], r13
lea rax, [0x14006ab60]
mov qword [rsi + 0x50], rax
mov qword [rsi + 0x58], rbx
mov byte [rsi + 0x60], 0
movups xmm0, xmmword [r15]
movups xmmword [rsi + 0x68], xmm0
movups xmm0, xmmword [r15 + 0x10]
movups xmmword [rsi + 0x78], xmm0
mov qword [rsp + 0x60], rsi
mov eax, reloc.WS2_32.dll_recv
mov ecx, 0x1c
cmp word [r12], 2
cmovne eax, ecx
lea rcx, [rbp + 0x28]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9d, 1
mov r8d, dword [r14 + 0x38]
mov rdx, r14
call fcn.14006b030
nop
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14007b530
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rbx, rcx
call fcn.1400b35b0
mov rbx, qword [rbx + 8]
cmp rbx, 0xffffffffffffffff
jne 0x14007b56e
mov dword [rsp + 0x30], 0x2719
call fcn.1400b35b0
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
jmp 0x14007b5d1
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 edi, eax
call fcn.1400b35b0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
test edi, edi
jne 0x14007b5cd
call fcn.1400b35b0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
test eax, eax
je 0x14007b5c2
lea rdx, str.set_option
lea rcx, [rsp + 0x30]
call fcn.140021d20
int3

Function at 0x14007b5f0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rbx, rcx
call fcn.1400b35b0
mov rbx, qword [rbx + 8]
cmp rbx, 0xffffffffffffffff
jne 0x14007b62e
mov dword [rsp + 0x30], 0x2719
call fcn.1400b35b0
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
jmp 0x14007b68f
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 edi, eax
call fcn.1400b35b0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
test edi, edi
jne 0x14007b68b
call fcn.1400b35b0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
test eax, eax
je 0x14007b680
lea rdx, str.set_option
lea rcx, [rsp + 0x30]
call fcn.140021d20
int3
Function at 0x14007c1c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call fcn.1400b35b0
mov qword [rsp + 0x28], rax
mov rdi, qword [rdi + 0x10]
mov eax, ebx
lock xadd dword [rdi + 0x30], eax
test eax, eax
jne 0x140023162
mov rcx, rdi
call fcn.140022aa0
mov dword [rsp + 0x20], ebx
call fcn.1400b35b0
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
jmp 0x140023202
mov qword [rsp + 0x60], rbx
lea rax, [rdi + 0x28]
test rdi, rdi
cmove rax, rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov ecx, dword [0x1402dae9c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x30]
mov ecx, dword [0x1402dae9c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r8, [rsp + 0x20]
mov rcx, rdi
call fcn.140022ba0
test rax, rax
je 0x1400231e1
nop word [rax + rax]
lea rax, [rbx + 1]
cmp rbx, 0xffffffffffffffff
cmove rax, rbx
mov rbx, rax
lea r8, [rsp + 0x20]
mov rcx, rdi
call fcn.140022ba0
test rax, rax
jne 0x1400231c0
mov rdx, qword [rsp + 0x40]
mov ecx, dword [0x1402dae9c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140023202
call fcn.1401fb48c
cmp dword [rsp + 0x20], 0
jne 0x140023217
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
lea rcx, [rsp + 0x20]
call fcn.140021ce0
int3
mov rcx, qword [rcx + 0x18]
jmp 0x140023110