joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006cf80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x120
mov rdi, rdx
mov rsi, rcx
mov rbp, qword [rdx + 0x10]
mov r8, rdx
mov r15, qword [rdx + 0x18]
cmp r15, 0xf
jbe 0x14006cfb5
mov r8, qword [rdx]
movabs rdx, 0xcbf29ce484222325
xor ecx, ecx
test rbp, rbp
je 0x14006cfe4
movabs r9, 0x100000001b3
movzx eax, byte [r8 + rcx]
xor rdx, rax
imul rdx, r9
inc rcx
cmp rcx, rbp
jb 0x14006cfd0
mov rcx, qword [0x1400de4a0]
and rcx, rdx
add rcx, rcx
mov rax, qword [0x1400de488]
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [0x1400de478]
je 0x14006d04a
mov r14, qword [rax + rcx*8]
nop word [rax + rax]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x14006d022
mov rdx, qword [rdx]
mov rcx, rdi
cmp r15, 0xf
jbe 0x14006d02e
mov rcx, qword [rdi]
cmp rbp, rax
jne 0x14006d03f
mov r8, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14006d04c
cmp rbx, r14
je 0x14006d04a
mov rbx, qword [rbx + 8]
jmp 0x14006d010
xor ebx, ebx
mov rdx, qword [0x1400de478]
test rbx, rbx
cmovne rdx, rbx
cmp rdx, qword [0x1400de478]
je 0x14006d074
add rdx, 0x30
mov rcx, rsi
call fcn.140004ff0
jmp 0x14006d157
mov rcx, rdi
call fcn.140081e60
test al, al
je 0x14006d090
mov rdx, rdi
mov rcx, rsi
call fcn.140004ff0
jmp 0x14006d157
cmp dword [0x1400da540], 2
jg 0x14006d12c
mov edx, 1
lea rcx, [rsp + 0x28]
call fcn.140044860
mov eax, 2
mov dword [rsp + 0x110], eax
mov ecx, dword [0x1400da540]
cmp ecx, eax
jg 0x14006d0e0
lea rdx, str.Unable_to_interpret_mime_type_for_content_type_
lea rcx, [rsp + 0x28]
call fcn.140037180
mov eax, dword [rsp + 0x110]
mov ecx, dword [0x1400da540]
cmp eax, ecx
jl 0x14006d122
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x14006d0f2
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.14003a530
mov eax, dword [rsp + 0x110]
mov ecx, dword [0x1400da540]
cmp eax, ecx
jl 0x14006d122
lea rdx, str.._Defaulting_to_text_plain.
lea rcx, [rsp + 0x28]
call fcn.140037180
nop
lea rcx, [rsp + 0x28]
call fcn.140049450
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], 0
mov r8d, 0xa
lea rdx, str.text_plain
mov rcx, rsi
call fcn.140004d60
mov rax, rsi
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1400734c0
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400da5c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x44]
xor eax, eax
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov r8d, 1
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x44], eax
call qword [sym.imp.WS2_32.dll_WSASend]
call fcn.14006d5d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x14007352f
cmp eax, 0x4d2
jne 0x140073534
call fcn.14006d5d0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140088830
add rsp, 0x68
ret

Function at 0x140073680
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400da5c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rbx, rcx
mov rax, qword [rcx + 8]
mov r9d, 0xffffffff
mov ecx, 2
mov qword [rsp + 0x28], rax
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x1400de650], eax
test eax, eax
mov rax, qword [rbx + 8]
je 0x1400736fd
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140088830
add rsp, 0x40
pop rbx
ret
xor r8d, r8d
lea rcx, [fcn.1400073f0]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140088830
add rsp, 0x40
pop rbx
ret
Function at 0x140073a40
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
lea rcx, str.Removing_license_key_file
call fcn.140074420
lea rcx, str.license.key
add rsp, 0x28
jmp qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
Function at 0x1400742c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400da5c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [rcx + 8]
xor ebp, ebp
mov dword [rsp + 0x50], ebp
xorps xmm0, xmm0
mov qword [rsp + 0x38], 2
xorps xmm1, xmm1
mov rdi, rdx
movups xmmword [rsp + 0x20], xmm0
movdqu xmmword [rsp + 0x40], xmm1
cmp rcx, 0xffffffffffffffff
jne 0x140074321
mov esi, 0x2719
mov dword [rsp + 0x20], esi
call fcn.14006d5d0
mov qword [rsp + 0x28], rax
jmp 0x1400743bf
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 0x1c
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
movsxd rcx, dword [rsp + 0x30]
test eax, eax
jne 0x140074396
lea rax, [0x1400da5a0]
mov qword [rsp + 0x28], rax
cmp rcx, 0x80
ja 0x1400743e2
movups xmm0, xmmword [rsp + 0x38]
mov eax, dword [rsp + 0x50]
movsd xmm1, qword [rsp + 0x48]
movups xmmword [rdi], xmm0
movsd qword [rdi + 0x10], xmm1
mov dword [rdi + 0x18], eax
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140088830
mov rbp, qword [rsp + 0x98]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
mov qword [rsp + 0x90], rbx
call fcn.14006d5d0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x28], rbx
mov esi, eax
mov rbx, qword [rsp + 0x90]
mov dword [rsp + 0x20], eax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov qword [rdi + 8], rbp
mov qword [rdi + 0x10], rbp
mov dword [rdi + 0x18], ebp
mov qword [rdi], 2
test esi, esi
jne 0x14007440a
jmp 0x140074375
mov dword [rsp + 0x20], 0x2726
call fcn.14006d5d0
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call fcn.140069680
int3
lea rdx, str.local_endpoint
lea rcx, [rsp + 0x20]
call fcn.1400696d0
int3
Function at 0x140076230
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rdi, rcx
mov rcx, qword [rcx + 0x320]
test rcx, rcx
je 0x140076363
mov rax, qword [rcx]
call qword [rax + select]
imul rax, qword [rdi + 0x2e0], 0xf4240
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x70]
lea rcx, [rdi + 0x1f8]
call fcn.14006b3b0
mov qword [rsp + 0x70], rdi
mov rsi, qword [rdi + 0x1f8]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov ecx, dword [0x1400de65c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor r14d, r14d
test rax, rax
je 0x1400762ac
mov rdx, qword [rax + 8]
jmp 0x1400762af
mov rdx, r14
mov r9d, 8
mov r8d, 0x90
movzx ecx, byte [rsp + 0x70]
call fcn.14003d370
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rax + 0x20], r14
lea rax, [0x140068130]
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 dword [rbx + 0x38], r14d
lea rax, [0x1400da5a0]
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x48], r14
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x50], rax
lea rcx, [rbx + 0x58]
lea r9, [rdi + 0x238]
xor r8d, r8d
xor edx, edx
call fcn.140044ec0
mov qword [rsp + 0x40], rbx
mov byte [rdi + 0x208], 1
lea r9, [rdi + 0x210]
lea rdx, [rsi + 0x28]
mov qword [rsp + 0x20], rbx
lea r8, [rdi + 0x200]
mov rcx, qword [rsi + 0x58]
call fcn.1400422a0
nop
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
int3
Function at 0x1400767a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400da5c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x1400767cd
xor eax, eax
jmp 0x140076936
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x14007680d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x14007680d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x14007692e
cmp qword [rdi + 0x80], 0
je 0x140076929
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x140076847
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140076872
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x14007692e
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400768e1
sub eax, 1
je 0x1400768e1
cmp eax, 2
jne 0x140076929
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x14007692e
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x14007690f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140076929
lea rax, [rsp + 0x50]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x14007692e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140088830
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140079a70
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
mov rsi, rcx
test rbx, rbx
je 0x140079acd
mov rbx, qword [rbx + 0x40]
test rbx, rbx
je 0x140079ac5
mov qword [rsp + 0x30], rdi
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140079ac0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140079ac0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x30]
mov qword [rsi + 0x10], 0
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x140079b17
mov ecx, dword [0x1400de65c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140079b06
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140079b06
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x140079b22
inc ecx
inc rax
cmp rax, 2
jl 0x140079af4
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rsi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
movzx eax, byte [rbx + 0x50]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x38]
mov qword [rsi + 8], 0
add rsp, 0x20
pop rsi
ret

Function at 0x140079b50
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140079b7f
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x140079b77
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140079bc9
mov ecx, dword [0x1400de65c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140079bb8
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140079bb8
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x140079bd4
inc ecx
inc rax
cmp rax, 2
jl 0x140079ba6
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x48]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140079ca0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
mov rsi, rcx
test rbx, rbx
je 0x140079cfd
mov rbx, qword [rbx + 0x18]
test rbx, rbx
je 0x140079cf5
mov qword [rsp + 0x30], rdi
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140079cf0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140079cf0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x30]
mov qword [rsi + 0x10], 0
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x140079d4a
mov ecx, dword [0x1400de65c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140079d39
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140079d39
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x140079d55
inc ecx
inc rax
cmp rax, 6
jl 0x140079d27
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rsi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
movzx eax, byte [rbx + 0x48]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x38]
mov qword [rsi + 8], 0
add rsp, 0x20
pop rsi
ret

Function at 0x140079e20
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
mov rsi, rcx
test rbx, rbx
je 0x140079e7d
mov rbx, qword [rbx + 0x10]
test rbx, rbx
je 0x140079e75
mov qword [rsp + 0x30], rdi
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140079e70
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140079e70
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x30]
mov qword [rsi + 0x10], 0
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x140079eca
mov ecx, dword [0x1400de65c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140079eb9
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140079eb9
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x140079ed5
inc ecx
inc rax
cmp rax, 6
jl 0x140079ea7
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rsi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
movzx eax, byte [rbx + 0x38]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x38]
mov qword [rsi + 8], 0
add rsp, 0x20
pop rsi
ret
Function at 0x140079fa0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140079fc7
add rcx, 8
call fcn.140048880
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14007a014
mov ecx, dword [0x1400de65c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14007a003
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14007a003
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x14007a01f
inc ecx
inc rax
cmp rax, 6
jl 0x140079ff1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x88]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret

Function at 0x14007a050
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14007a083
add rcx, 0x60
cmp qword [rcx + 0x20], 0
je 0x14007a07b
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14007a0d3
mov ecx, dword [0x1400de65c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14007a0c2
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14007a0c2
xor ecx, ecx
xor eax, eax
nop word [rax + rax]
cmp qword [rdx + rax*8], 0
je 0x14007a0de
inc ecx
inc rax
cmp rax, 2
jl 0x14007a0b0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x98]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14007a110
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14007a143
add rcx, 0x58
cmp qword [rcx + 0x20], 0
je 0x14007a13b
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14007a193
mov ecx, dword [0x1400de65c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14007a182
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14007a182
xor ecx, ecx
xor eax, eax
nop word [rax + rax]
cmp qword [rdx + rax*8], 0
je 0x14007a19e
inc ecx
inc rax
cmp rax, 2
jl 0x14007a170
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x90]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14007a1d0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14007a203
add rcx, 0x68
cmp qword [rcx + 0x20], 0
je 0x14007a1fb
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14007a253
mov ecx, dword [0x1400de65c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14007a242
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14007a242
xor ecx, ecx
xor eax, eax
nop word [rax + rax]
cmp qword [rdx + rax*8], 0
je 0x14007a25e
inc ecx
inc rax
cmp rax, 2
jl 0x14007a230
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0xa0]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14007a290
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbp, rcx
mov rdi, qword [rcx + 0x10]
xor r14d, r14d
test rdi, rdi
je 0x14007a33a
lea rcx, [rdi + 0x1c8]
cmp qword [rcx + 0x20], r14
je 0x14007a2cc
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
mov rbx, qword [rdi + 0x1b0]
test rbx, rbx
je 0x14007a304
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14007a304
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x14007a304
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x14007a336
mov qword [rsp + 0x20], r14
lea rax, [0x1400da5a0]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x50], 0
lea r9, [rsp + 0x20]
mov r8b, 1
lea rdx, [rsp + 0x50]
call fcn.140064d10
mov qword [rbp + 0x10], r14
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x14007a382
mov ecx, dword [0x1400de65c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14007a375
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14007a375
mov ecx, r14d
mov rax, r14
cmp qword [rdx + rax*8], 0
je 0x14007a395
inc ecx
inc rax
cmp rax, 2
jl 0x14007a363
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rbp + 8], r14
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
movzx eax, byte [rbx + 0x200]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
jmp 0x14007a37e
Function at 0x14007a3b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x14007a43d
lea rcx, [rsi + 0x70]
cmp qword [rcx + 0x20], 0
je 0x14007a3e5
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
mov rbx, qword [rsi + 0x68]
mov edi, 0xffffffff
test rbx, rbx
je 0x14007a41c
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14007a41c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14007a41c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rsi + 0x48]
test rcx, rcx
je 0x14007a435
lock xadd dword [rcx + 0xc], edi
cmp edi, 1
jne 0x14007a435
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [rbp + 0x10], 0
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x14007a487
mov ecx, dword [0x1400de65c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14007a476
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14007a476
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x14007a49c
inc ecx
inc rax
cmp rax, 2
jl 0x14007a464
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rbp + 8], 0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0xa8]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
jmp 0x14007a47f

Function at 0x14007a4b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x14007a510
lea rcx, [rbx + 0x1b0]
cmp qword [rcx + 0x20], 0
je 0x14007a4de
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
lea rcx, [rbx + 0x150]
call fcn.140048880
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x14007a508
mov eax, 0xffffffff
lock xadd dword [rcx + 0xc], eax
cmp eax, 1
jne 0x14007a508
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14007a55a
mov ecx, dword [0x1400de65c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14007a549
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14007a549
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x14007a565
inc ecx
inc rax
cmp rax, 2
jl 0x14007a537
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x1e8]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret