joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006a170
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 rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
lea rdi, [0x1402b2c88]
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
cmp rbx, 0xffffffffffffffff
jne 0x14006a1ea
mov rax, rbx
jmp 0x14006a232
cmp esi, 0x17
jne 0x14006a214
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], 0
lea edx, [rsi + 0x12]
mov dword [rsp + 0x20], 4
lea r8d, [rsi + 4]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x30], 0
mov rax, rbx
mov byte [rsp + 0x34], 0
mov qword [rsp + 0x38], 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 0x14006a250
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 0x14006a37d
cmp dword [rax + 8], 0
je 0x14006a37d
test r8, r8
je 0x14006a28a
cmp byte [r8], 0
jne 0x14006a28c
xor edi, edi
test rbx, rbx
je 0x14006a297
cmp byte [r9], 0
jne 0x14006a299
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 0x14006a312
je 0x14006a308
test eax, eax
je 0x14006a2f9
sub edx, 8
je 0x14006a2ef
sub edx, 0x271e
je 0x14006a2e5
cmp edx, 0x16
jne 0x14006a32c
mov dword [rsp + 0x20], 0x273c
jmp 0x14006a365
mov dword [rsp + 0x20], 0x2726
jmp 0x14006a365
mov dword [rsp + 0x20], reloc.WS2_32.dll_ntohl
jmp 0x14006a365
mov dword [rsp + 0x20], 0
mov byte [rsp + 0x24], 0
jmp 0x14006a36a
mov dword [rsp + 0x20], 0x273f
jmp 0x14006a365
sub edx, 0x277d
je 0x14006a35d
sub edx, 0x37c
je 0x14006a353
sub edx, 1
je 0x14006a349
cmp edx, 1
je 0x14006a33f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x20], eax
setne byte [rsp + 0x24]
jmp 0x14006a36a
mov dword [rsp + 0x20], 0x2afb
jmp 0x14006a365
mov dword [rsp + 0x20], 0x2afa
jmp 0x14006a365
mov dword [rsp + 0x20], 0x2af9
jmp 0x14006a365
mov dword [rsp + 0x20], 0x277d
mov byte [rsp + 0x24], 1
lea rax, [0x1402b2c88]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
jmp 0x14006a39b
lea rax, [0x1402b2c88]
mov dword [rsp + 0x20], 0x3e3
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x24], 1
movups xmm0, xmmword [rsp + 0x20]
mov rax, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x40]
movups xmmword [rsi], xmm0
movups xmmword [rax], xmm0
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14007ab50
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 0x14007ac46
xor eax, eax
lock cmpxchg qword [rcx + 0x38], rbp
je 0x14007ab96
mov rdx, qword [rdi + 8]
mov rcx, rax
call fcn.140024410
mov r14, qword [rdi + 8]
lea rsi, [0x1402b2c88]
cmp r14, 0xffffffffffffffff
je 0x14007ac4d
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 0x14007ac4d
cmp eax, 0x2733
je 0x14007abf1
cmp eax, 0x4d5
jne 0x14007ac66
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 0x14007ac66
jmp 0x14007ac4d
lea rsi, [0x1402b2c88]
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 0x14007acbc
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14007acbc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x14007acbc
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 0x14007acd2
add rsp, 0x48
ret
lea rdx, str.close
lea rcx, [rsp + 0x20]
call fcn.1400226b0
int3
Function at 0x14007c970
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 0x14007c99d
mov dword [rsp + 0x30], 0x2719
lea rax, [0x1402b2c88]
mov byte [rsp + 0x34], 1
jmp 0x14007c9fa
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, [0x1402b2c88]
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
test ebx, ebx
jne 0x14007ca0a
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 0x14007ca1c
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
lea rdx, str.set_option
lea rcx, [rsp + 0x30]
call fcn.1400226b0
int3

Function at 0x14007ca30
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 0x14007ca5d
mov dword [rsp + 0x30], 0x2719
lea rax, [0x1402b2c88]
mov byte [rsp + 0x34], 1
jmp 0x14007cab8
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, [0x1402b2c88]
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
test ebx, ebx
jne 0x14007cac8
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 0x14007cada
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
lea rdx, str.set_option
lea rcx, [rsp + 0x30]
call fcn.1400226b0
int3
Function at 0x140081120
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 0x14008117c
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.140053d60
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x1400812c1
cmp byte [rbx + 8], 0
je 0x1400811f1
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.140053d60
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 [0x140312328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140081252
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140081252
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140081252
mov qword [rcx + 0x10], 0
movzx ecx, byte [rax]
cmp cl, 0x10
jb 0x14008124a
mov byte [rax + 0x40], cl
jmp 0x140081260
mov rcx, rax
call fcn.1402193d4
mov ecx, 0x41
call fcn.140219078
mov byte [rax + 0x40], reloc.WS2_32.dll_recv
lea rcx, [0x140053750]
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 0x1400812b0
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.140023da0
nop
lea rcx, [rsp + 0x20]
call fcn.140038d10
int3
Function at 0x1400818a0
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.1400cc080
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.1400cbff0
nop
mov rsi, qword [rdi]
mov rbx, qword [rdi + 8]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140081934
cmp qword [rax], rbx
je 0x140081a41
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140081922
lea rax, [rbp - 0x49]
mov qword [rbp - 0x71], rax
lea rdx, [rbp - 0x49]
mov ecx, 0xb8
call fcn.1400227f0
mov rbx, rax
mov qword [rbp - 0x69], rax
xor r14d, r14d
mov qword [rbp - 0x61], r14
mov qword [rax + 0x20], r14
lea rax, [fcn.140084590]
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.1400846e0
mov r8, rbx
lea rdx, [rdi + 8]
mov rcx, rsi
call fcn.140025350
mov qword [rbp - 0x61], r14
mov qword [rbp - 0x69], r14
test al, al
je 0x140081a12
mov rax, qword [rdi + 8]
mov qword [rsp + 0x20], rax
mov ecx, dword [0x140312360]
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 [0x140312360]
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.140084590
nop
lea rcx, [rbp - 0x59]
call fcn.140025130
nop
mov rdx, qword [rbp - 0x79]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rcx, [rbp + 0xf]
call fcn.1400cc700
lea rcx, [rbp - 0x39]
call fcn.1400cc700
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 0x140081934
nop
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x49]
call fcn.140086e70
nop
nop
jmp 0x140081a12
Function at 0x140082480
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.1400227f0
mov rdi, rax
mov qword [rsp + 0x38], rax
xor edx, edx
mov qword [rax + 0x20], rdx
lea rax, [0x140085ae0]
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, [0x1402b2c88]
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 0x140082584
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.14007feb0
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.14004f740
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 0x140082d50
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 [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140082da2
nop dword [rax]
cmp qword [rax], rbx
je 0x140082efa
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140082d90
mov qword [rbp + 0x1f], rdi
mov rdx, rdi
mov ecx, 0x60
call fcn.1400227f0
mov rbx, rax
xor r15d, r15d
mov qword [rax + 0x20], r15
lea rax, [0x140083750]
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.140025350
mov qword [rbp + 0x2f], r15
mov qword [rbp + 0x27], r15
test al, al
je 0x140082edd
mov rax, qword [rsi]
mov qword [rbp - 0x49], rax
mov ecx, dword [0x140312360]
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 [0x140312360]
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 0x140082e97
mov qword [rbp - 0x21], r15
lea r8, [rbp - 0x19]
lea edx, [r15 + 0x60]
mov rcx, rbx
call fcn.140022880
mov ebx, r15d
mov qword [rbp - 0x29], rbx
test rdi, rdi
je 0x140082eab
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x19]
call fcn.1400861a0
nop
nop
test rbx, rbx
je 0x140082ec2
lea r8, [rbp - 0x19]
mov edx, 0x60
mov rcx, rbx
call fcn.140022880
nop
lea rcx, [rbp + 0xf]
call fcn.140025130
nop
mov rdx, qword [rbp - 0x39]
mov ecx, dword [0x140312360]
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 0x140082da2
nop
mov rdx, rdi
mov rcx, rdi
call fcn.1400861a0
nop
nop
jmp 0x140082edd
Function at 0x140082f20
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 [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140082f72
nop dword [rax]
cmp qword [rax], rbx
je 0x1400830ca
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140082f60
mov qword [rbp + 0x1f], rdi
mov rdx, rdi
mov ecx, 0x60
call fcn.1400227f0
mov rbx, rax
xor r15d, r15d
mov qword [rax + 0x20], r15
lea rax, [0x1400836b0]
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.140025350
mov qword [rbp + 0x2f], r15
mov qword [rbp + 0x27], r15
test al, al
je 0x1400830ad
mov rax, qword [rsi]
mov qword [rbp - 0x49], rax
mov ecx, dword [0x140312360]
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 [0x140312360]
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 0x140083067
mov qword [rbp - 0x21], r15
lea r8, [rbp - 0x19]
lea edx, [r15 + 0x60]
mov rcx, rbx
call fcn.140022880
mov ebx, r15d
mov qword [rbp - 0x29], rbx
test rdi, rdi
je 0x14008307b
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x19]
call fcn.140054110
nop
nop
test rbx, rbx
je 0x140083092
lea r8, [rbp - 0x19]
mov edx, 0x60
mov rcx, rbx
call fcn.140022880
nop
lea rcx, [rbp + 0xf]
call fcn.140025130
nop
mov rdx, qword [rbp - 0x39]
mov ecx, dword [0x140312360]
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 0x140082f72
nop
mov rdx, rdi
mov rcx, rdi
call fcn.140054110
nop
nop
jmp 0x1400830ad
Function at 0x1400837f0
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 0x14008384d
mov rbx, qword [rbx + 0x40]
test rbx, rbx
je 0x140083845
mov qword [rsp + 0x30], rsi
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140083840
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x140083840
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 0x1400838a4
mov ecx, dword [0x140312328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140083894
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140083894
cmp qword [rcx + 0x10], 0
jne 0x140083894
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.1402193d4
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400840d0
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 0x140084119
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 [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140084159
cmp qword [rax], rbx
je 0x1400842a9
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140084147
lea rax, [rbp - 0x39]
mov qword [rbp + 0x27], rax
lea rdx, [rbp - 0x39]
mov ecx, reloc.WS2_32.dll_WSASetLastError
call fcn.1400227f0
mov rbx, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [fcn.1400879c0]
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.140025350
mov qword [rbp + 0x37], r14
mov qword [rbp + 0x2f], r14
test al, al
je 0x140084257
mov rax, qword [rdi]
mov qword [rbp - 1], rax
mov ecx, dword [0x140312360]
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 [0x140312360]
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.1400879c0
nop
lea rcx, [rbp + 0x17]
call fcn.140025130
nop
mov rdx, qword [rbp + 0xf]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rbx, qword [rbp - 0x11]
test rbx, rbx
je 0x14008428c
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14008428c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14008428c
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 0x140084159
nop
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x39]
call fcn.140089fd0
nop
nop
jmp 0x140084257