joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140077710
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 0x140077806
xor eax, eax
lock cmpxchg qword [rcx + 0x38], rbp
je 0x140077756
mov rdx, qword [rdi + 8]
mov rcx, rax
call fcn.140023bb0
mov r14, qword [rdi + 8]
lea rsi, [0x140275440]
cmp r14, 0xffffffffffffffff
je 0x14007780d
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 0x14007780d
cmp eax, 0x2733
je 0x1400777b1
cmp eax, 0x4d5
jne 0x140077826
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 0x140077826
jmp 0x14007780d
lea rsi, [0x140275440]
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 0x14007787c
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14007787c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x14007787c
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 0x140077892
add rsp, 0x48
ret
lea rdx, str.close
lea rcx, [rsp + 0x20]
call fcn.140021e50
int3
Function at 0x140079510
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 0x14007953d
mov dword [rsp + 0x30], 0x2719
lea rax, [0x140275440]
mov byte [rsp + 0x34], 1
jmp 0x14007959a
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, [0x140275440]
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
test ebx, ebx
jne 0x1400795aa
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 0x1400795bc
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
lea rdx, str.set_option
lea rcx, [rsp + 0x30]
call fcn.140021e50
int3

Function at 0x1400795d0
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 0x1400795fd
mov dword [rsp + 0x30], 0x2719
lea rax, [0x140275440]
mov byte [rsp + 0x34], 1
jmp 0x140079658
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, [0x140275440]
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
test ebx, ebx
jne 0x140079668
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 0x14007967a
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
lea rdx, str.set_option
lea rcx, [rsp + 0x30]
call fcn.140021e50
int3
Function at 0x14007dd00
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 0x14007dd5c
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.140050e70
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x14007dea1
cmp byte [rbx + 8], 0
je 0x14007ddd1
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.140050e70
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 [0x1402c6008]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14007de32
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14007de32
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14007de32
mov qword [rcx + 0x10], 0
movzx ecx, byte [rax]
cmp cl, 0x10
jb 0x14007de2a
mov byte [rax + 0x40], cl
jmp 0x14007de40
mov rcx, rax
call fcn.1401ec5c4
mov ecx, 0x41
call fcn.1401ec268
mov byte [rax + 0x40], reloc.WS2_32.dll_recv
lea rcx, [0x140050860]
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 0x14007de90
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.140023540
nop
lea rcx, [rsp + 0x20]
call fcn.1400374e0
int3
Function at 0x14007e480
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rdi, rdx
mov rbx, rcx
mov rax, qword [rdx + 0x10]
mov qword [rbp - 0x49], rax
mov rax, qword [rdx + 0x18]
mov qword [rbp - 0x41], rax
add rdx, 0x20
lea rcx, [rbp - 0x39]
call fcn.1400b6c10
nop
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x11], xmm0
mov rax, qword [rbx + 0x10]
mov qword [rbp - 1], rax
mov rax, qword [rbx + 0x18]
mov qword [rbp + 7], rax
lea rdx, [rbx + 0x20]
lea rcx, [rbp + 0xf]
call fcn.1400b6b80
nop
mov rsi, qword [rdi]
mov rbx, qword [rdi + 8]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14007e514
cmp qword [rax], rbx
je 0x14007e621
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14007e502
lea rax, [rbp - 0x49]
mov qword [rbp - 0x71], rax
lea rdx, [rbp - 0x49]
mov ecx, 0xb8
call fcn.140021f90
mov rbx, rax
mov qword [rbp - 0x69], rax
xor r14d, r14d
mov qword [rbp - 0x61], r14
mov qword [rax + 0x20], r14
lea rax, [fcn.140081190]
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 - 0x49]
call fcn.1400812e0
mov r8, rbx
lea rdx, [rdi + 8]
mov rcx, rsi
call fcn.140024b00
mov qword [rbp - 0x61], r14
mov qword [rbp - 0x69], r14
test al, al
je 0x14007e5f2
mov rax, qword [rdi + 8]
mov qword [rsp + 0x20], rax
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x79], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsi + 0x28]
mov qword [rbp - 0x59], rcx
mov rax, qword [rdi + 8]
mov qword [rbp - 0x51], rax
xor r9d, r9d
lea r8, [rbp + 0x37]
mov rdx, rbx
call fcn.140081190
nop
lea rcx, [rbp - 0x59]
call fcn.1400248e0
nop
mov rdx, qword [rbp - 0x79]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rcx, [rbp + 0xf]
call fcn.1400b7290
lea rcx, [rbp - 0x39]
call fcn.1400b7290
lea r11, [rsp + 0x100]
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 0x14007e514
nop
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x49]
call fcn.140083a80
nop
nop
jmp 0x14007e5f2
Function at 0x14007f080
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov rbx, rdx
mov r14, rcx
mov rbp, qword [rcx]
mov qword [rsp + 0x30], rdx
add rdx, 0x78
mov ecx, 0xe0
call fcn.140021f90
mov rdi, rax
mov qword [rsp + 0x38], rax
xor edx, edx
mov qword [rax + 0x20], rdx
lea rax, [0x1400826f0]
mov qword [rdi + 0x28], rax
mov qword [rdi], rdx
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rdx
mov qword [rdi + 0x18], rdx
mov dword [rdi + 0x30], edx
mov dword [rdi + 0x38], edx
mov byte [rdi + 0x3c], dl
lea rax, [0x140275440]
mov qword [rdi + 0x40], rax
mov rax, qword [rbx]
mov qword [rdi + 0x48], rax
mov rax, qword [rbx + 8]
mov qword [rdi + 0x50], rax
movups xmm0, xmmword [rbx + 0x10]
movups xmmword [rdi + 0x58], xmm0
mov eax, dword [rbx + 0x20]
mov dword [rdi + 0x68], eax
mov eax, dword [rbx + 0x24]
mov dword [rdi + 0x6c], eax
movups xmm0, xmmword [rbx + 0x28]
movups xmmword [rdi + 0x70], xmm0
mov rax, qword [rbx + 0x38]
mov qword [rdi + 0x80], rax
mov rax, qword [rbx + 0x40]
mov qword [rdi + 0x88], rax
mov rax, qword [rbx + 0x48]
mov qword [rdi + 0x90], rax
mov rax, qword [rbx + 0x50]
mov qword [rdi + 0x98], rax
mov eax, dword [rbx + 0x58]
mov dword [rdi + 0xa0], eax
mov rax, qword [rbx + 0x60]
mov qword [rdi + 0xa8], rax
movups xmm0, xmmword [rbx + 0x68]
movups xmmword [rdi + 0xb0], xmm0
movups xmm0, xmmword [rbx + 0x78]
movups xmmword [rdi + 0xc0], xmm0
mov rcx, qword [r14 + 0x40]
test rcx, rcx
je 0x14007f184
mov rax, qword [rcx]
call qword [rax]
mov rdx, rax
mov qword [rdi + 0xd0], rdx
movzx eax, byte [r14 + 0x48]
mov byte [rdi + 0xd8], al
lea rdx, [rdi + 0xd0]
call fcn.14007ca90
mov qword [rsp + 0x40], rdi
mov byte [r14 + 0x10], 1
lea r9, [r14 + 0x18]
lea rdx, [rbp + 0x28]
mov qword [rsp + 0x20], rdi
lea r8, [r14 + 8]
mov rcx, qword [rbp + 0x68]
call fcn.14004cd40
nop
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x14007f950
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov rbx, qword [rdx]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14007f9a2
nop dword [rax]
cmp qword [rax], rbx
je 0x14007fafa
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14007f990
mov qword [rbp + 0x1f], rdi
mov rdx, rdi
mov ecx, 0x60
call fcn.140021f90
mov rbx, rax
xor r15d, r15d
mov qword [rax + 0x20], r15
lea rax, [0x140080350]
mov qword [rbx + 0x28], rax
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov dword [rbx + 0x30], r15d
movups xmm0, xmmword [rdi]
movups xmmword [rbx + 0x38], xmm0
movups xmm0, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x48], xmm0
mov rax, qword [rdi + 0x20]
mov qword [rbx + 0x58], rax
mov r8, rbx
mov rdx, rsi
mov rcx, r14
call fcn.140024b00
mov qword [rbp + 0x2f], r15
mov qword [rbp + 0x27], r15
test al, al
je 0x14007fadd
mov rax, qword [rsi]
mov qword [rbp - 0x49], rax
mov ecx, dword [0x1402c6040]
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 [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rdi, qword [r14 + 0x28]
mov qword [rbp + 0xf], rdi
mov rax, qword [rsi]
mov qword [rbp + 0x17], rax
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x21], rbx
movups xmm0, xmmword [rbx + 0x38]
movups xmmword [rbp - 0x19], xmm0
movups xmm1, xmmword [rbx + 0x48]
movups xmmword [rbp - 9], xmm1
mov rax, qword [rbx + 0x58]
mov qword [rbp + 7], rax
lea rax, [rbp - 0x19]
mov qword [rbp - 0x31], rax
test rbx, rbx
je 0x14007fa97
mov qword [rbp - 0x21], r15
lea r8, [rbp - 0x19]
lea edx, [r15 + 0x60]
mov rcx, rbx
call fcn.140022020
mov ebx, r15d
mov qword [rbp - 0x29], rbx
test rdi, rdi
je 0x14007faab
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x19]
call fcn.140082db0
nop
nop
test rbx, rbx
je 0x14007fac2
lea r8, [rbp - 0x19]
mov edx, 0x60
mov rcx, rbx
call fcn.140022020
nop
lea rcx, [rbp + 0xf]
call fcn.1400248e0
nop
mov rdx, qword [rbp - 0x39]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
cmp qword [rax + 8], 0
je 0x14007f9a2
nop
mov rdx, rdi
mov rcx, rdi
call fcn.140082db0
nop
nop
jmp 0x14007fadd
Function at 0x14007fb20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov rbx, qword [rdx]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14007fb72
nop dword [rax]
cmp qword [rax], rbx
je 0x14007fcca
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14007fb60
mov qword [rbp + 0x1f], rdi
mov rdx, rdi
mov ecx, 0x60
call fcn.140021f90
mov rbx, rax
xor r15d, r15d
mov qword [rax + 0x20], r15
lea rax, [0x1400802b0]
mov qword [rbx + 0x28], rax
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov dword [rbx + 0x30], r15d
movups xmm0, xmmword [rdi]
movups xmmword [rbx + 0x38], xmm0
movups xmm0, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x48], xmm0
mov rax, qword [rdi + 0x20]
mov qword [rbx + 0x58], rax
mov r8, rbx
mov rdx, rsi
mov rcx, r14
call fcn.140024b00
mov qword [rbp + 0x2f], r15
mov qword [rbp + 0x27], r15
test al, al
je 0x14007fcad
mov rax, qword [rsi]
mov qword [rbp - 0x49], rax
mov ecx, dword [0x1402c6040]
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 [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rdi, qword [r14 + 0x28]
mov qword [rbp + 0xf], rdi
mov rax, qword [rsi]
mov qword [rbp + 0x17], rax
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x21], rbx
movups xmm0, xmmword [rbx + 0x38]
movups xmmword [rbp - 0x19], xmm0
movups xmm1, xmmword [rbx + 0x48]
movups xmmword [rbp - 9], xmm1
mov rax, qword [rbx + 0x58]
mov qword [rbp + 7], rax
lea rax, [rbp - 0x19]
mov qword [rbp - 0x31], rax
test rbx, rbx
je 0x14007fc67
mov qword [rbp - 0x21], r15
lea r8, [rbp - 0x19]
lea edx, [r15 + 0x60]
mov rcx, rbx
call fcn.140022020
mov ebx, r15d
mov qword [rbp - 0x29], rbx
test rdi, rdi
je 0x14007fc7b
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x19]
call fcn.140051220
nop
nop
test rbx, rbx
je 0x14007fc92
lea r8, [rbp - 0x19]
mov edx, 0x60
mov rcx, rbx
call fcn.140022020
nop
lea rcx, [rbp + 0xf]
call fcn.1400248e0
nop
mov rdx, qword [rbp - 0x39]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
cmp qword [rax + 8], 0
je 0x14007fb72
nop
mov rdx, rdi
mov rcx, rdi
call fcn.140051220
nop
nop
jmp 0x14007fcad
Function at 0x1400803f0
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 0x14008044d
mov rbx, qword [rbx + 0x40]
test rbx, rbx
je 0x140080445
mov qword [rsp + 0x30], rsi
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140080440
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x140080440
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 0x1400804a4
mov ecx, dword [0x1402c6008]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140080494
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140080494
cmp qword [rcx + 0x10], 0
jne 0x140080494
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.1401ec5c4
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140080cd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
movups xmm0, xmmword [rcx + 0x10]
movups xmmword [rbp - 0x39], xmm0
movups xmm1, xmmword [rdx]
movups xmmword [rbp - 0x29], xmm1
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x19], xmm0
mov rdx, qword [r8 + 8]
test rdx, rdx
je 0x140080d19
lock inc dword [rdx + 8]
mov rdx, qword [r8 + 8]
mov rax, qword [r8]
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rdx
mov rax, qword [r8 + 0x10]
mov qword [rbp - 9], rax
mov rsi, qword [rcx]
lea rdi, [rcx + 8]
mov rbx, qword [rdi]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140080d59
cmp qword [rax], rbx
je 0x140080ea9
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140080d47
lea rax, [rbp - 0x39]
mov qword [rbp + 0x27], rax
lea rdx, [rbp - 0x39]
mov ecx, reloc.WS2_32.dll_WSASetLastError
call fcn.140021f90
mov rbx, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [fcn.1400845d0]
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 - 0x39]
movups xmmword [rbx + 0x38], xmm0
movups xmm1, xmmword [rbp - 0x29]
movups xmmword [rbx + 0x48], xmm1
mov qword [rbx + 0x58], r14
mov qword [rbx + 0x60], r14
mov rax, qword [rbp - 0x19]
mov qword [rbx + 0x58], rax
mov rax, qword [rbp - 0x11]
mov qword [rbx + 0x60], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x19], xmm0
mov rax, qword [rbp - 9]
mov qword [rbx + 0x68], rax
mov qword [rbp - 9], r14
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.140024b00
mov qword [rbp + 0x37], r14
mov qword [rbp + 0x2f], r14
test al, al
je 0x140080e57
mov rax, qword [rdi]
mov qword [rbp - 1], rax
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp + 0xf], rax
lea rax, [rbp - 1]
mov qword [rbp + 7], rax
lea rdx, [rbp - 1]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsi + 0x28]
mov qword [rbp + 0x17], rcx
mov rax, qword [rdi]
mov qword [rbp + 0x1f], rax
xor r9d, r9d
lea r8, [rbp + 0x3f]
mov rdx, rbx
call fcn.1400845d0
nop
lea rcx, [rbp + 0x17]
call fcn.1400248e0
nop
mov rdx, qword [rbp + 0xf]
mov ecx, dword [0x1402c6040]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rbx, qword [rbp - 0x11]
test rbx, rbx
je 0x140080e8c
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140080e8c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140080e8c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea r11, [rsp + 0xb0]
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 0x140080d59
nop
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x39]
call fcn.140086be0
nop
nop
jmp 0x140080e57
Function at 0x140080ed0
Capabilities:
Get thread local storage value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov rbx, qword [rcx]
test rbx, rbx
je 0x14008106e
movups xmm0, xmmword [rdx + 0x28]
cmp byte [rbx + 8], 0
je 0x140080f62
mov rax, qword [rdx]
mov qword [rsp + 0x60], rax
mov rax, qword [rdx + 8]
mov qword [r11 - 0x80], rax
mov rax, qword [rdx + 0x10]
mov qword [r11 - 0x78], rax
mov eax, dword [rdx + 0x18]
mov dword [rsp + 0x78], eax
mov rax, qword [rdx + 0x20]
mov qword [r11 - 0x68], rax
movups xmmword [r11 - 0x60], xmm0
movups xmm1, xmmword [rdx + 0x38]
movups xmmword [r11 - 0x50], xmm1
movups xmm0, xmmword [rdx + 0x48]
movups xmmword [r11 - 0x40], xmm0
mov rax, qword [rdx + 0x58]
mov qword [r11 - 0x30], rax
lea rdx, [r11 - 0x60]
lea rcx, [rsp + 0x60]
call fcn.140084a70
jmp 0x14008104d
mov rax, qword [rbx]
mov rdi, qword [rax + 0x28]
mov rsi, qword [rdx]
mov rbp, qword [rdx + 8]
mov r14, qword [rdx + 0x10]
mov r15d, dword [rdx + 0x18]
mov r12, qword [rdx + 0x20]
movups xmmword [rsp + 0x38], xmm0
movups xmm0, xmmword [rdx + 0x38]
movups xmmword [rsp + 0x48], xmm0
movups xmm0, xmmword [rdx + 0x48]
movups xmmword [rsp + 0x20], xmm0
mov r13, qword [rdx + 0x58]
mov ecx, dword [0x1402c6008]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140080fd7
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140080fd7
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140080fd7
mov qword [rcx + 0x10], 0
movzx ecx, byte [rax]
cmp cl, 0x1c
jb 0x140080fcf
mov byte [rax + 0x70], cl
jmp 0x140080fe5
mov rcx, rax
call fcn.1401ec5c4
mov ecx, WSACleanup
call fcn.1401ec268
mov byte [rax + 0x70], 0x1c
lea rcx, [0x140082fe0]
mov qword [rax], rcx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], r14
mov dword [rax + 0x20], r15d
mov qword [rax + 0x28], r12
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rax + 0x30], xmm0
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rax + 0x40], xmm0
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rax + 0x50], xmm0
mov qword [rax + 0x60], r13
mov qword [rsp + 0x100], rax
lea rdx, [rsp + 0x100]
mov rcx, rbx
call rdi
nop
mov rcx, qword [rsp + 0x100]
test rcx, rcx
je 0x14008104d
mov rax, qword [rcx]
xor edx, edx
call rax
nop
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, [rsp + 0x20]
call fcn.140023540
nop
lea rcx, [rsp + 0x20]
call fcn.1400374e0
int3