joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140080830
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 [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140080882
nop dword [rax]
cmp qword [rax], rbx
je 0x1400809e3
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140080870
mov qword [rbp + 0x1f], rdi
mov rdx, rdi
mov ecx, 0x60
call fcn.140021fa0
mov rbx, rax
xor r15d, r15d
mov qword [rax + 0x20], r15
lea rax, [0x140081100]
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.140024870
mov qword [rbp + 0x2f], r15
mov qword [rbp + 0x27], r15
test al, al
je 0x1400809c6
mov rax, qword [rsi]
mov qword [rbp - 0x49], rax
mov ecx, dword [0x1402daed4]
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 [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rax, qword [r14 + 0x28]
mov qword [rbp + 0xf], rax
mov rax, qword [rsi]
mov qword [rbp + 0x17], rax
call fcn.1400b35b0
mov rdi, qword [r14 + 0x28]
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 0x140080980
mov qword [rbp - 0x21], r15
lea r8, [rbp - 0x19]
lea edx, [r15 + 0x60]
mov rcx, rbx
call fcn.140022030
mov ebx, r15d
mov qword [rbp - 0x29], rbx
test rdi, rdi
je 0x140080994
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x19]
call fcn.140083a00
nop
nop
test rbx, rbx
je 0x1400809ab
lea r8, [rbp - 0x19]
mov edx, 0x60
mov rcx, rbx
call fcn.140022030
nop
lea rcx, [rbp + 0xf]
call fcn.140024650
nop
mov rdx, qword [rbp - 0x39]
mov ecx, dword [0x1402daed4]
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 0x140080882
nop
mov rdx, rdi
mov rcx, rdi
call fcn.140083a00
nop
nop
jmp 0x1400809c6
Function at 0x1400811a0
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 [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400811f2
nop dword [rax]
cmp qword [rax], rbx
je 0x140081353
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400811e0
mov qword [rbp + 0x1f], rdi
mov rdx, rdi
mov ecx, 0x60
call fcn.140021fa0
mov rbx, rax
xor r15d, r15d
mov qword [rax + 0x20], r15
lea rax, [0x140082010]
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.140024870
mov qword [rbp + 0x2f], r15
mov qword [rbp + 0x27], r15
test al, al
je 0x140081336
mov rax, qword [rsi]
mov qword [rbp - 0x49], rax
mov ecx, dword [0x1402daed4]
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 [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rax, qword [r14 + 0x28]
mov qword [rbp + 0xf], rax
mov rax, qword [rsi]
mov qword [rbp + 0x17], rax
call fcn.1400b35b0
mov rdi, qword [r14 + 0x28]
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 0x1400812f0
mov qword [rbp - 0x21], r15
lea r8, [rbp - 0x19]
lea edx, [r15 + 0x60]
mov rcx, rbx
call fcn.140022030
mov ebx, r15d
mov qword [rbp - 0x29], rbx
test rdi, rdi
je 0x140081304
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x19]
call fcn.140051ec0
nop
nop
test rbx, rbx
je 0x14008131b
lea r8, [rbp - 0x19]
mov edx, 0x60
mov rcx, rbx
call fcn.140022030
nop
lea rcx, [rbp + 0xf]
call fcn.140024650
nop
mov rdx, qword [rbp - 0x39]
mov ecx, dword [0x1402daed4]
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 0x1400811f2
nop
mov rdx, rdi
mov rcx, rdi
call fcn.140051ec0
nop
nop
jmp 0x140081336
Function at 0x140081370
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x2a0
mov rax, qword [0x1402cf480]
xor rax, rsp
mov qword [rsp + 0x290], rax
movups xmm0, xmmword [r8]
mov r14, qword [rdx]
mov rax, qword [r8 + 8]
mov rbx, qword [rsp + 0x2e0]
movzx edi, byte [rdx + 8]
movq qword [rsp + 0x48], xmm0
movq xmm0, qword [r8 + 8]
movd dword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rax
cmp r14, 0xffffffffffffffff
jne 0x1400813e9
mov dword [rsp + 0x30], 0x2719
call fcn.1400b35b0
mov qword [rsp + 0x38], rax
xor esi, esi
movups xmm0, xmmword [rsp + 0x30]
mov eax, esi
movups xmmword [rbx], xmm0
jmp 0x140081531
test rax, rax
jne 0x140081413
test dil, 0x10
je 0x140081413
xor esi, esi
mov dword [rsp + 0x30], esi
call fcn.1400b35b0
mov qword [rsp + 0x38], rax
mov eax, esi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x140081531
mov r8d, 1
mov qword [rsp + 0x2c0], rbp
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rbx
mov rcx, r14
call fcn.1400233c0
test eax, eax
jns 0x140081527
xor esi, esi
test dil, 1
jne 0x140081555
call fcn.1400b35b0
cmp qword [rbx + 8], rax
jne 0x14008145a
cmp dword [rbx], 0x2733
je 0x140081475
call fcn.1400b35b0
cmp qword [rbx + 8], rax
jne 0x140081555
cmp dword [rbx], 0x4d5
jne 0x140081555
xor ecx, ecx
mov qword [rsp + 0x88], r14
mov dword [rsp + 0x80], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [r14 + 1]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [rsp + 0x80]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
mov ebp, eax
call fcn.1400b35b0
mov rdi, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
test ebp, ebp
jne 0x1400814e9
mov dword [rsp + 0x58], esi
call fcn.1400b35b0
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbx], xmm0
jmp 0x140081507
jle 0x140081503
mov dword [rsp + 0x68], esi
call fcn.1400b35b0
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rbx], xmm0
jmp 0x140081507
test ebp, ebp
js 0x140081555
mov r8d, 1
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.1400233c0
test eax, eax
js 0x140081447
mov eax, eax
mov rbp, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1401fb000
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2a0
pop r14
pop rdi
pop rsi
ret
mov rax, rsi
jmp 0x140081529
Function at 0x140081560
Capabilities:
Get thread local storage value
Set thread local storage value

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, 0x80
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
mov rbx, qword [rdx]
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400815b2
nop word [rax + rax]
cmp qword [rax], rbx
je 0x1400816ed
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400815a0
mov qword [rsp + 0x58], rdi
mov rdx, rdi
mov ecx, 0xb8
call fcn.140021fa0
mov rbx, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [fcn.140081ed0]
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
mov rcx, qword [rdi]
mov qword [rbx + 0x38], rcx
mov rax, qword [rdi + 8]
mov qword [rbx + 0x40], rax
lea rcx, [rbx + 0x48]
lea rdx, [rdi + 0x10]
call fcn.1400b5720
movups xmm0, xmmword [rdi + 0x38]
movups xmmword [rbx + 0x70], xmm0
mov rax, qword [rdi + 0x48]
mov qword [rbx + 0x80], rax
mov rax, qword [rdi + 0x50]
mov qword [rbx + 0x88], rax
lea rcx, [rbx + 0x90]
lea rdx, [rdi + 0x58]
call fcn.1400b5720
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call fcn.140024870
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], r14
test al, al
je 0x1400816cf
mov rax, qword [rsi]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
call fcn.1400b35b0
xor r9d, r9d
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, qword [rbp + 0x28]
call fcn.140081ed0
nop
lea rcx, [rsp + 0x20]
call fcn.140024650
nop
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
cmp qword [rax + 8], 0
je 0x1400815b2
nop
mov rdx, rdi
mov rcx, rdi
call fcn.140084310
nop
nop
jmp 0x1400816cf
Function at 0x1400828d0
Capabilities:
Get thread local storage value
Set thread local storage value

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, 0x80
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
mov rbx, qword [rdx]
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140082922
nop word [rax + rax]
cmp qword [rax], rbx
je 0x140082a67
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140082910
mov qword [rsp + 0x58], rdi
mov rdx, rdi
mov ecx, 0x90
call fcn.140021fa0
mov rbx, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [fcn.140082e80]
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 [rdi]
movups xmmword [rbx + 0x38], xmm0
movups xmm0, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x48], xmm0
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rbx + 0x58], xmm0
movups xmm0, xmmword [rdi + 0x30]
movups xmmword [rbx + 0x68], xmm0
mov qword [rbx + 0x78], r14
mov qword [rbx + 0x80], r14
mov rax, qword [rdi + 0x40]
mov qword [rbx + 0x78], rax
mov rax, qword [rdi + 0x48]
mov qword [rbx + 0x80], rax
mov qword [rdi + 0x40], r14
mov qword [rdi + 0x48], r14
mov rax, qword [rdi + 0x50]
mov qword [rbx + 0x88], rax
mov qword [rdi + 0x50], r14
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call fcn.140024870
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], r14
test al, al
je 0x140082a49
mov rax, qword [rsi]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
call fcn.1400b35b0
xor r9d, r9d
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, qword [rbp + 0x28]
call fcn.140082e80
nop
lea rcx, [rsp + 0x20]
call fcn.140024650
nop
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
cmp qword [rax + 8], 0
je 0x140082922
nop
mov rdx, rdi
mov rcx, rdi
call fcn.140084340
nop
nop
jmp 0x140082a49
Function at 0x140084310
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
lea r8, [rcx + 0x48]
lea rdx, [rcx + 0x40]
mov rcx, qword [rcx + 0x38]
add rsp, 0x28
jmp 0x140085190
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov rbx, qword [rdx]
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400851e4
cmp qword [rax], rbx
je 0x14008537c
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400851d2
mov qword [rbp + 0x1f], rdi
mov rdx, rdi
mov ecx, reloc.WS2_32.dll_WSASetLastError
call fcn.140021fa0
mov rbx, rax
xor r12d, r12d
mov qword [rax + 0x20], r12
lea rax, [0x140085440]
mov qword [rbx + 0x28], rax
mov qword [rbx], r12
mov qword [rbx + 8], r12
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
mov dword [rbx + 0x30], r12d
mov rax, qword [rdi]
mov qword [rbx + 0x38], rax
mov rax, qword [rdi + 8]
mov qword [rbx + 0x40], rax
lea rdx, [rdi + 0x10]
lea rcx, [rbx + 0x48]
call fcn.1400b5720
mov r8, rbx
mov rdx, rsi
mov rcx, r14
call fcn.140024870
mov qword [rbp + 0x2f], r12
mov qword [rbp + 0x27], r12
test al, al
je 0x14008535b
mov rax, qword [rsi]
mov qword [rbp - 0x59], rax
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x49], rax
lea rax, [rbp - 0x59]
mov qword [rbp - 0x51], rax
lea rdx, [rbp - 0x59]
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rax, qword [r14 + 0x28]
mov qword [rbp - 0x29], rax
mov rax, qword [rsi]
mov qword [rbp - 0x21], rax
call fcn.1400b35b0
mov rsi, qword [r14 + 0x28]
mov qword [rbp - 0x39], rbx
mov rdi, rbx
mov qword [rbp - 0x31], rbx
mov rax, qword [rbx + 0x38]
mov qword [rbp - 0x19], rax
mov rax, qword [rbx + 0x40]
mov qword [rbp - 0x11], rax
lea rdx, [rbx + 0x48]
lea rcx, [rbp - 9]
call fcn.1400b5720
nop
lea rax, [rbp - 0x19]
mov qword [rbp - 0x41], rax
test rbx, rbx
je 0x1400852fd
lea rcx, [rbx + 0x48]
call fcn.1400b5d40
mov edi, r12d
mov qword [rbp - 0x31], r12
lea r8, [rbp - 0x19]
lea edx, [r12 + 0x70]
mov rcx, rbx
call fcn.140022030
mov ebx, r12d
mov qword [rbp - 0x39], rbx
test rsi, rsi
je 0x140085311
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x19]
call fcn.140051ec0
nop
nop
lea rcx, [rbp - 9]
call fcn.1400b5d40
nop
test rdi, rdi
je 0x140085329
lea rcx, [rdi + 0x48]
call fcn.1400b5d40
test rbx, rbx
je 0x140085340
lea r8, [rbp - 0x19]
mov edx, reloc.WS2_32.dll_WSASetLastError
mov rcx, rbx
call fcn.140022030
nop
lea rcx, [rbp - 0x29]
call fcn.140024650
nop
mov rdx, qword [rbp - 0x49]
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
cmp qword [rax + 8], 0
je 0x1400851e4
nop
mov rdx, rdi
mov rcx, rdi
call fcn.140051ec0
nop
nop
jmp 0x14008535b
Function at 0x140085190
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
lea r8, [rcx + 0x48]
lea rdx, [rcx + 0x40]
mov rcx, qword [rcx + 0x38]
add rsp, 0x28
jmp 0x140085190
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov rbx, qword [rdx]
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400851e4
cmp qword [rax], rbx
je 0x14008537c
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400851d2
mov qword [rbp + 0x1f], rdi
mov rdx, rdi
mov ecx, reloc.WS2_32.dll_WSASetLastError
call fcn.140021fa0
mov rbx, rax
xor r12d, r12d
mov qword [rax + 0x20], r12
lea rax, [0x140085440]
mov qword [rbx + 0x28], rax
mov qword [rbx], r12
mov qword [rbx + 8], r12
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
mov dword [rbx + 0x30], r12d
mov rax, qword [rdi]
mov qword [rbx + 0x38], rax
mov rax, qword [rdi + 8]
mov qword [rbx + 0x40], rax
lea rdx, [rdi + 0x10]
lea rcx, [rbx + 0x48]
call fcn.1400b5720
mov r8, rbx
mov rdx, rsi
mov rcx, r14
call fcn.140024870
mov qword [rbp + 0x2f], r12
mov qword [rbp + 0x27], r12
test al, al
je 0x14008535b
mov rax, qword [rsi]
mov qword [rbp - 0x59], rax
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x49], rax
lea rax, [rbp - 0x59]
mov qword [rbp - 0x51], rax
lea rdx, [rbp - 0x59]
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rax, qword [r14 + 0x28]
mov qword [rbp - 0x29], rax
mov rax, qword [rsi]
mov qword [rbp - 0x21], rax
call fcn.1400b35b0
mov rsi, qword [r14 + 0x28]
mov qword [rbp - 0x39], rbx
mov rdi, rbx
mov qword [rbp - 0x31], rbx
mov rax, qword [rbx + 0x38]
mov qword [rbp - 0x19], rax
mov rax, qword [rbx + 0x40]
mov qword [rbp - 0x11], rax
lea rdx, [rbx + 0x48]
lea rcx, [rbp - 9]
call fcn.1400b5720
nop
lea rax, [rbp - 0x19]
mov qword [rbp - 0x41], rax
test rbx, rbx
je 0x1400852fd
lea rcx, [rbx + 0x48]
call fcn.1400b5d40
mov edi, r12d
mov qword [rbp - 0x31], r12
lea r8, [rbp - 0x19]
lea edx, [r12 + 0x70]
mov rcx, rbx
call fcn.140022030
mov ebx, r12d
mov qword [rbp - 0x39], rbx
test rsi, rsi
je 0x140085311
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x19]
call fcn.140051ec0
nop
nop
lea rcx, [rbp - 9]
call fcn.1400b5d40
nop
test rdi, rdi
je 0x140085329
lea rcx, [rdi + 0x48]
call fcn.1400b5d40
test rbx, rbx
je 0x140085340
lea r8, [rbp - 0x19]
mov edx, reloc.WS2_32.dll_WSASetLastError
mov rcx, rbx
call fcn.140022030
nop
lea rcx, [rbp - 0x29]
call fcn.140024650
nop
mov rdx, qword [rbp - 0x49]
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
cmp qword [rax + 8], 0
je 0x1400851e4
nop
mov rdx, rdi
mov rcx, rdi
call fcn.140051ec0
nop
nop
jmp 0x14008535b
Function at 0x140085a50
Capabilities:
Get thread local storage value
Set thread local storage value

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, 0x80
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
mov rbx, qword [rdx]
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140085aa2
nop word [rax + rax]
cmp qword [rax], rbx
je 0x140085c2d
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140085a90
mov qword [rsp + 0x58], rdi
mov rdx, rdi
mov ecx, 0xe0
call fcn.140021fa0
mov rbx, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [fcn.140086340]
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 [rdi]
movups xmmword [rbx + 0x38], xmm0
mov rax, qword [rdi + 0x10]
mov qword [rbx + 0x48], rax
mov rax, qword [rdi + 0x18]
mov qword [rbx + 0x50], rax
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rbx + 0x58], xmm0
mov eax, dword [rdi + 0x30]
mov dword [rbx + 0x68], eax
mov eax, dword [rdi + 0x34]
mov dword [rbx + 0x6c], eax
movups xmm0, xmmword [rdi + 0x38]
movups xmmword [rbx + 0x70], xmm0
mov rax, qword [rdi + 0x48]
mov qword [rbx + 0x80], rax
mov rax, qword [rdi + 0x50]
mov qword [rbx + 0x88], rax
mov rax, qword [rdi + 0x58]
mov qword [rbx + 0x90], rax
mov rax, qword [rdi + 0x60]
mov qword [rbx + 0x98], rax
mov eax, dword [rdi + 0x68]
mov dword [rbx + 0xa0], eax
mov rax, qword [rdi + 0x70]
mov qword [rbx + 0xa8], rax
movups xmm0, xmmword [rdi + 0x78]
movups xmmword [rbx + 0xb0], xmm0
movups xmm0, xmmword [rdi + 0x88]
movups xmmword [rbx + 0xc0], xmm0
movups xmm0, xmmword [rdi + 0x98]
movups xmmword [rbx + 0xd0], xmm0
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call fcn.140024870
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], r14
test al, al
je 0x140085c0f
mov rax, qword [rsi]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
call fcn.1400b35b0
xor r9d, r9d
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, qword [rbp + 0x28]
call fcn.140086340
nop
lea rcx, [rsp + 0x20]
call fcn.140024650
nop
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x1402daed4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
cmp qword [rax + 8], 0
je 0x140085aa2
nop
mov rdx, rdi
mov rcx, rdi
call fcn.140086bd0
nop
nop
jmp 0x140085c0f