joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140082420
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rdx + 8]
mov rsi, rcx
mov ecx, dword [0x140336660]
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14008245e
nop word [rax + rax]
cmp qword [rax], rbx
je 0x14008245e
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140082450
lea rdx, [rdi + 0x10]
mov ecx, 0x58
call fcn.140022380
xor edx, edx
lea rcx, [0x14005fa40]
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.140023450

Function at 0x140082570
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 0x14008259d
mov dword [rsp + 0x30], 0x2719
lea rax, [0x1402c41e8]
mov byte [rsp + 0x34], 1
jmp 0x1400825fa
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, [0x1402c41e8]
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
test ebx, ebx
jne 0x14008260a
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 0x14008261c
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
lea rdx, str.set_option
lea rcx, [rsp + 0x30]
call fcn.1400221d0
int3

Function at 0x140082630
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 0x14008265d
mov dword [rsp + 0x30], 0x2719
lea rax, [0x1402c41e8]
mov byte [rsp + 0x34], 1
jmp 0x1400826b8
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, [0x1402c41e8]
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
test ebx, ebx
jne 0x1400826c8
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 0x1400826da
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
lea rdx, str.set_option
lea rcx, [rsp + 0x30]
call fcn.1400221d0
int3
Function at 0x140084ca0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, dword [0x140336660]
mov rsi, r8
mov rbx, qword [rdx + 8]
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140084cde
nop word [rax + rax]
cmp qword [rax], rbx
je 0x140084cde
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140084cd0
lea rdx, [rdi + 0x10]
mov ecx, 0x58
call fcn.140022380
xor edx, edx
lea rcx, [0x14005fa40]
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.140023450
Function at 0x140087190
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xb0
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
movups xmm0, xmmword [rcx + 0x10]
movups xmmword [rax - 0x80], xmm0
movups xmm1, xmmword [rdx]
movups xmmword [rax - 0x70], 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 [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400871f3
cmp qword [rax], rbx
je 0x1400872ff
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400871e1
lea rax, [rsp + 0x38]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x38]
mov ecx, 0x60
call fcn.140022380
mov rbx, rax
xor ebp, ebp
mov qword [rax + 0x20], rbp
lea rax, [fcn.14008a610]
mov qword [rbx + 0x28], rax
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov dword [rbx + 0x30], ebp
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbx + 0x38], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rbx + 0x48], xmm1
mov rax, qword [rsp + 0x58]
mov qword [rbx + 0x58], rax
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.140025180
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x80], rbp
test al, al
je 0x1400872e6
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsi + 0x28]
mov qword [rsp + 0x60], rcx
mov rax, qword [rdi]
mov qword [rsp + 0x68], rax
xor r9d, r9d
lea r8, [rsp + 0x90]
mov rdx, rbx
call fcn.14008a610
nop
lea rcx, [rsp + 0x60]
call fcn.140024f40
nop
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
cmp qword [rax + 8], 0
je 0x1400871f3
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.14008b1d0
nop
jmp 0x1400872e6
Function at 0x140087320
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x1403284b0]
xor rax, rsp
mov qword [rbp + 0x190], rax
movups xmm0, xmmword [r8]
mov r12, qword [rdx]
mov rax, qword [r8 + 8]
mov rbx, qword [rbp + 0x1f0]
movzx r15d, byte [rdx + 8]
movq qword [rsp + 0x68], xmm0
psrldq xmm0, 8
movd dword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
cmp r12, 0xffffffffffffffff
jne 0x1400873a9
lea rsi, [0x1402c41e8]
mov dword [rsp + 0x30], 0x2719
mov qword [rsp + 0x38], rsi
xor edi, edi
mov byte [rsp + 0x34], 1
mov eax, edi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x140087511
test rax, rax
jne 0x1400873da
test r15b, 0x10
je 0x1400873da
xor edi, edi
lea rsi, [0x1402c41e8]
mov dword [rsp + 0x30], edi
mov eax, edi
mov byte [rsp + 0x34], dil
mov qword [rsp + 0x38], rsi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x140087511
mov qword [rsp + 0x2d0], r13
lea rdx, [rsp + 0x60]
mov r8d, 1
mov qword [rsp + 0x2e0], r14
mov rcx, r12
mov qword [rsp + 0x20], rbx
call fcn.140024000
test eax, eax
jns 0x1400874ff
and r15b, 1
lea rsi, [0x1402c41e8]
xor edi, edi
movabs r13, 0x8fafd21e25c5e09b
test r15b, r15b
jne 0x140087537
mov ecx, dword [rbx]
cmp ecx, 0x2733
jne 0x14008743e
mov rax, qword [rbx + 8]
cmp qword [rax + 8], r13
je 0x140087458
cmp ecx, 0x4d5
jne 0x140087537
mov rax, qword [rbx + 8]
cmp qword [rax + 8], r13
jne 0x140087537
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], rdi
xor r9d, r9d
lea r8, [rbp - 0x80]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
mov r14d, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rsi
setne byte [rsp + 0x34]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
test r14d, r14d
jne 0x1400874c2
mov dword [rsp + 0x40], edi
mov byte [rsp + 0x44], dil
mov qword [rsp + 0x48], rsi
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
jmp 0x1400874df
jle 0x1400874da
mov dword [rsp + 0x50], edi
mov byte [rsp + 0x54], dil
mov qword [rsp + 0x58], rsi
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbx], xmm0
test r14d, r14d
js 0x140087537
mov r8d, 1
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.140024000
test eax, eax
js 0x140087421
cdqe
mov r13, qword [rsp + 0x2d0]
mov r14, qword [rsp + 0x2e0]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1402225a0
mov rbx, qword [rsp + 0x2e8]
add rsp, 0x2a0
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, rdi
jmp 0x140087501
Function at 0x140087c80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xa0
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
movups xmm0, xmmword [rcx + 0x10]
movups xmmword [rax - 0x70], xmm0
movups xmm1, xmmword [rdx]
movups xmmword [rax - 0x60], xmm1
lea rdi, [rcx + 8]
mov rsi, qword [rcx]
mov rbx, qword [rdi]
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140087ce2
nop dword [rax]
cmp qword [rax], rbx
je 0x140087de2
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140087cd0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x38]
mov ecx, 0x58
call fcn.140022380
mov rbx, rax
xor ebp, ebp
mov qword [rax + 0x20], rbp
lea rax, [fcn.140057a80]
mov qword [rbx + 0x28], rax
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov dword [rbx + 0x30], ebp
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbx + 0x38], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rbx + 0x48], xmm1
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.140025180
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x78], rbp
test al, al
je 0x140087dc9
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsi + 0x28]
mov qword [rsp + 0x58], rcx
mov rax, qword [rdi]
mov qword [rsp + 0x60], rax
xor r9d, r9d
lea r8, [rsp + 0x88]
mov rdx, rbx
call fcn.140057a80
nop
lea rcx, [rsp + 0x58]
call fcn.140024f40
nop
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
cmp qword [rax + 8], 0
je 0x140087ce2
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.140057b40
nop
jmp 0x140087dc9
Function at 0x140087e00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xb0
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
movups xmm0, xmmword [rcx + 0x10]
movups xmmword [rax - 0x80], xmm0
movups xmm1, xmmword [rdx]
movups xmmword [rax - 0x70], 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 [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140087e63
cmp qword [rax], rbx
je 0x140087f6f
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140087e51
lea rax, [rsp + 0x38]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x38]
mov ecx, 0x60
call fcn.140022380
mov rbx, rax
xor ebp, ebp
mov qword [rax + 0x20], rbp
lea rax, [fcn.14008aae0]
mov qword [rbx + 0x28], rax
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov dword [rbx + 0x30], ebp
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbx + 0x38], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rbx + 0x48], xmm1
mov rax, qword [rsp + 0x58]
mov qword [rbx + 0x58], rax
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.140025180
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x80], rbp
test al, al
je 0x140087f56
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsi + 0x28]
mov qword [rsp + 0x60], rcx
mov rax, qword [rdi]
mov qword [rsp + 0x68], rax
xor r9d, r9d
lea r8, [rsp + 0x90]
mov rdx, rbx
call fcn.14008aae0
nop
lea rcx, [rsp + 0x60]
call fcn.140024f40
nop
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
cmp qword [rax + 8], 0
je 0x140087e63
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.140057b40
nop
jmp 0x140087f56
Function at 0x140087f90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rbp + 0x27], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, rdx
mov rbx, rcx
mov rax, qword [rdx + 0x10]
mov qword [rbp - 0x59], rax
mov rax, qword [rdx + 0x18]
mov qword [rbp - 0x51], rax
add rdx, 0x20
lea rcx, [rbp - 0x49]
call fcn.1400d56d0
nop
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x21], xmm0
mov rax, qword [rbx + 0x10]
mov qword [rbp - 0x11], rax
mov rax, qword [rbx + 0x18]
mov qword [rbp - 9], rax
lea rdx, [rbx + 0x20]
lea rcx, [rbp - 1]
call fcn.1400d5640
nop
lea rsi, [rdi + 8]
mov rdi, qword [rdi]
mov rbx, qword [rsi]
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140088028
cmp qword [rax], rbx
je 0x140088130
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140088016
lea rax, [rbp - 0x59]
mov qword [rsp + 0x38], rax
lea rdx, [rbp - 0x59]
mov ecx, 0xb8
call fcn.140022380
mov rbx, rax
mov qword [rbp - 0x79], rax
xor r14d, r14d
mov qword [rbp - 0x71], r14
mov qword [rax + 0x20], r14
lea rax, [fcn.14008a9a0]
mov qword [rbx + 0x28], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov dword [rbx + 0x30], r14d
lea rcx, [rbx + 0x38]
lea rdx, [rbp - 0x59]
call fcn.14008aba0
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140025180
mov qword [rbp - 0x71], r14
mov qword [rbp - 0x79], r14
test al, al
je 0x140088106
mov rax, qword [rsi]
mov qword [rsp + 0x20], rax
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rdi + 0x28]
mov qword [rbp - 0x69], rcx
mov rax, qword [rsi]
mov qword [rbp - 0x61], rax
xor r9d, r9d
lea r8, [rbp + 0x2f]
mov rdx, rbx
call fcn.14008a9a0
nop
lea rcx, [rbp - 0x69]
call fcn.140024f40
nop
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rcx, [rbp - 1]
call fcn.1400d5c30
lea rcx, [rbp - 0x49]
call fcn.1400d5c30
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
cmp qword [rax + 8], 0
je 0x140088028
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x59]
call fcn.14008c840
nop
jmp 0x140088106
Function at 0x140088350
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
movups xmm0, xmmword [rdx + 0x10]
movups xmmword [rbp - 0x21], xmm0
movups xmm1, xmmword [rcx]
movups xmmword [rbp - 0x11], xmm1
movups xmm0, xmmword [rcx + 0x10]
movups xmmword [rbp - 1], xmm0
movups xmm1, xmmword [rcx + 0x20]
movups xmmword [rbp + 0xf], xmm1
lea rdi, [rdx + 8]
mov rsi, qword [rdx]
mov rbx, qword [rdi]
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400883c3
cmp qword [rax], rbx
je 0x1400884c2
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400883b1
lea rax, [rbp - 0x21]
mov qword [rbp + 0x27], rax
lea rdx, [rbp - 0x21]
mov ecx, 0x78
call fcn.140022380
mov rbx, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [fcn.14008d390]
mov qword [rbx + 0x28], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov dword [rbx + 0x30], r14d
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rbx + 0x38], xmm0
movups xmm0, xmmword [rbp - 0x11]
movups xmmword [rbx + 0x48], xmm0
movups xmm1, xmmword [rbp - 1]
movups xmmword [rbx + 0x58], xmm1
movups xmm0, xmmword [rbp + 0xf]
movups xmmword [rbx + 0x68], xmm0
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.140025180
mov qword [rbp + 0x37], r14
mov qword [rbp + 0x2f], r14
test al, al
je 0x1400884a5
mov rax, qword [rdi]
mov qword [rbp - 0x49], rax
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x39], rax
lea rax, [rbp - 0x49]
mov qword [rbp - 0x41], rax
lea rdx, [rbp - 0x49]
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsi + 0x28]
mov qword [rbp - 0x31], rcx
mov rax, qword [rdi]
mov qword [rbp - 0x29], rax
xor r9d, r9d
lea r8, [rbp + 0x3f]
mov rdx, rbx
call fcn.14008d390
nop
lea rcx, [rbp - 0x31]
call fcn.140024f40
nop
mov rdx, qword [rbp - 0x39]
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
cmp qword [rax + 8], 0
je 0x1400883c3
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x21]
call fcn.14008ead0
nop
jmp 0x1400884a5
Function at 0x1400888d0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
mov rdi, rcx
test rbx, rbx
je 0x14008892d
mov rbx, qword [rbx + 0x40]
test rbx, rbx
je 0x140088925
mov qword [rsp + 0x30], rsi
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140088920
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x140088920
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rsi, qword [rsp + 0x30]
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140088984
mov ecx, dword [0x140336628]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140088974
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140088974
cmp qword [rcx + 0x10], 0
jne 0x140088974
movzx eax, byte [rbx + 0x58]
mov byte [rbx], al
mov qword [rcx + 0x10], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.140222cd4
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140089e70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
movups xmm0, xmmword [rcx + 0x10]
movups xmmword [rbp - 0x49], xmm0
movups xmm1, xmmword [rdx]
movups xmmword [rbp - 0x39], xmm1
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov rdx, qword [r8 + 8]
test rdx, rdx
je 0x140089ebf
lock inc dword [rdx + 8]
mov rdx, qword [r8 + 8]
mov rax, qword [r8]
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rdx
mov rax, qword [r8 + 0x10]
mov qword [rbp - 0x19], rax
lea rdi, [rcx + 8]
mov rsi, qword [rcx]
mov rbx, qword [rdi]
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140089f02
nop dword [rax]
cmp qword [rax], rbx
je 0x14008a052
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140089ef0
lea rax, [rbp - 0x49]
mov qword [rbp + 0x1f], rax
lea rdx, [rbp - 0x49]
mov ecx, reloc.WS2_32.dll_WSASetLastError
call fcn.140022380
mov rbx, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [fcn.14008d470]
mov qword [rbx + 0x28], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov dword [rbx + 0x30], r14d
movups xmm0, xmmword [rbp - 0x49]
movups xmmword [rbx + 0x38], xmm0
movups xmm1, xmmword [rbp - 0x39]
movups xmmword [rbx + 0x48], xmm1
mov qword [rbx + 0x58], r14
mov qword [rbx + 0x60], r14
mov rax, qword [rbp - 0x29]
mov qword [rbx + 0x58], rax
mov rax, qword [rbp - 0x21]
mov qword [rbx + 0x60], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov rax, qword [rbp - 0x19]
mov qword [rbx + 0x68], rax
mov qword [rbp - 0x19], r14
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.140025180
mov qword [rbp + 0x2f], r14
mov qword [rbp + 0x27], r14
test al, al
je 0x14008a000
mov rax, qword [rdi]
mov qword [rbp - 0x11], rax
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 1], rax
lea rax, [rbp - 0x11]
mov qword [rbp - 9], rax
lea rdx, [rbp - 0x11]
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsi + 0x28]
mov qword [rbp + 7], rcx
mov rax, qword [rdi]
mov qword [rbp + 0xf], rax
xor r9d, r9d
lea r8, [rbp + 0x37]
mov rdx, rbx
call fcn.14008d470
nop
lea rcx, [rbp + 7]
call fcn.140024f40
nop
mov rdx, qword [rbp - 1]
mov ecx, dword [0x140336660]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rbx, qword [rbp - 0x21]
test rbx, rbx
je 0x14008a035
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14008a035
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14008a035
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
cmp qword [rax + 8], 0
je 0x140089f02
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x49]
call fcn.14008e9f0
nop
jmp 0x14008a000