joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140023e20
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x1400f3680]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r15d, r15d
mov rdi, r9
mov r14, rdx
mov rbp, rcx
cmp rcx, 0xffffffffffffffff
je 0x140023f81
mov qword [rsp + 0x50], rsi
test r8b, r8b
je 0x140023e97
movzx eax, byte [rdx]
test al, 8
je 0x140023e97
or al, 8
mov dword [rsp + 0x40], r15d
mov byte [rdx], al
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140023e97
call fcn.1400298b0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
test eax, eax
jne 0x140023eae
mov dword [rdi], r15d
jmp 0x140023f41
mov qword [rsp + 0x90], rbx
call fcn.1400298b0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rbx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
call fcn.1400298b0
mov rcx, qword [rdi + 8]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x140023ef0
cmp dword [rdi], 0x2733
je 0x140023f0b
call fcn.1400298b0
mov rdx, qword [rdi + 8]
mov rax, qword [rax + 8]
cmp qword [rdx + 8], rax
jne 0x140023f7d
cmp dword [rdi], 0x4d5
jne 0x140023f7d
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], r15d
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r14], 0xfc
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
test eax, eax
jne 0x140023f5e
mov dword [rdi], r15d
mov rbx, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140097850
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rbp
ret
call fcn.1400298b0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rbx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov eax, esi
jmp 0x140023f39
mov eax, r15d
jmp 0x140023f46
Function at 0x1400262b0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x1400f3680]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, eax
mov qword [rsp + 0x20], rbx
lea r8, str.asio_58CCDC44_6264_4842_90C2_F3C545CB8AA7__u__p
mov edx, 0x80
lea rcx, [rsp + 0x40]
call fcn.14003d280
lea r8, [rsp + 0x40]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rdi, rdi
jne 0x140026323
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400263a2
cmp eax, 0xb7
jne 0x140026338
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rbx], 0
jne 0x140026371
lea rcx, [rbx + 8]
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x14002636e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x1400263a2
mov byte [rbx], 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400263a2
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140097850
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret
Function at 0x140029070
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 0x1400290a5
mov r8, qword [rdx]
movabs rdx, 0xcbf29ce484222325
xor ecx, ecx
test rbp, rbp
je 0x1400290d4
movabs r9, 0x100000001b3
movzx eax, byte [r8 + rcx]
xor rdx, rax
imul rdx, r9
inc rcx
cmp rcx, rbp
jb 0x1400290c0
mov rcx, qword [0x1400fd2d0]
and rcx, rdx
add rcx, rcx
mov rax, qword [0x1400fd2b8]
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [0x1400fd2a8]
je 0x14002913a
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 0x140029112
mov rdx, qword [rdx]
mov rcx, rdi
cmp r15, 0xf
jbe 0x14002911e
mov rcx, qword [rdi]
cmp rbp, rax
jne 0x14002912f
mov r8, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14002913c
cmp rbx, r14
je 0x14002913a
mov rbx, qword [rbx + 8]
jmp 0x140029100
xor ebx, ebx
test rbx, rbx
je 0x14002915b
cmp rbx, qword [0x1400fd2a8]
je 0x14002915b
lea rdx, [rbx + 0x30]
mov rcx, rsi
call fcn.140005960
jmp 0x14002923e
mov rcx, rdi
call fcn.14003ab30
test al, al
je 0x140029177
mov rdx, rdi
mov rcx, rsi
call fcn.140005960
jmp 0x14002923e
cmp dword [0x1400e9460], 2
jg 0x140029213
mov edx, 1
lea rcx, [rsp + 0x28]
call fcn.1400132d0
mov eax, 2
mov dword [rsp + 0x110], eax
mov ecx, dword [0x1400e9460]
cmp ecx, eax
jg 0x1400291c7
lea rdx, str.Unable_to_interpret_mime_type_for_content_type_
lea rcx, [rsp + 0x28]
call fcn.1400077d0
mov eax, dword [rsp + 0x110]
mov ecx, dword [0x1400e9460]
cmp eax, ecx
jl 0x140029209
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x1400291d9
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.14000ae80
mov eax, dword [rsp + 0x110]
mov ecx, dword [0x1400e9460]
cmp eax, ecx
jl 0x140029209
lea rdx, str.._Defaulting_to_text_plain.
lea rcx, [rsp + 0x28]
call fcn.1400077d0
nop
lea rcx, [rsp + 0x28]
call fcn.140018030
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.140004100
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 0x14002f140
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400f3680]
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 dword [rsp + 0x48], 1
lea r8d, [rax + 1]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
call fcn.1400298b0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x14002f1ad
cmp eax, 0x4d2
jne 0x14002f1b2
call fcn.1400298b0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140097850
add rsp, 0x68
ret

Function at 0x14002f310
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400f3680]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
mov r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
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 [0x1400fd2f0], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x14002f389
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140097850
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.14000e0e0]
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.140097850
add rsp, 0x40
pop rbx
ret
Function at 0x14002f600
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 [0x1400f3680]
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 0x14002f661
mov esi, 0x2719
mov dword [rsp + 0x20], esi
call fcn.1400298b0
mov qword [rsp + 0x28], rax
jmp 0x14002f6ff
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 0x14002f6d6
lea rax, [0x1400e96c0]
mov qword [rsp + 0x28], rax
cmp rcx, 0x80
ja 0x14002f722
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.140097850
mov rbp, qword [rsp + 0x98]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
mov qword [rsp + 0x90], rbx
call fcn.1400298b0
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 0x14002f74a
jmp 0x14002f6b5
mov dword [rsp + 0x20], 0x2726
call fcn.1400298b0
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call fcn.1400269b0
int3
lea rdx, str.local_endpoint
lea rcx, [rsp + 0x20]
call fcn.140026a00
int3
Function at 0x1400306e0
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 0x140030827
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
imul rax, qword [rdi + 0x2e0], 0xf4240
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x70]
lea rcx, [rdi + 0x1f8]
call fcn.140027610
mov qword [rsp + 0x70], rdi
mov rsi, qword [rdi + 0x1f8]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov ecx, dword [0x1400fd308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor r14d, r14d
test rax, rax
je 0x14003075c
mov rdx, qword [rax + 8]
jmp 0x14003075f
mov rdx, r14
mov r9d, 8
mov r8d, 0x90
movzx ecx, byte [rsp + 0x70]
call fcn.14000c9e0
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rax + 0x20], r14
lea rax, [0x140025460]
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, [0x1400e96c0]
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.140013c10
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.140010e20
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x30]
call fcn.140034170
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 0x140033ad0
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 0x140033b2d
mov rbx, qword [rbx + 0x40]
test rbx, rbx
je 0x140033b25
mov qword [rsp + 0x30], rdi
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140033b20
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140033b20
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 0x140033b77
mov ecx, dword [0x1400fd308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140033b66
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140033b66
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x140033b82
inc ecx
inc rax
cmp rax, 2
jl 0x140033b54
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 0x140033bb0
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 0x140033bdf
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x140033bd7
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140033c29
mov ecx, dword [0x1400fd308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140033c18
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140033c18
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x140033c34
inc ecx
inc rax
cmp rax, 2
jl 0x140033c06
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 0x140033d00
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 0x140033d5d
mov rbx, qword [rbx + 0x18]
test rbx, rbx
je 0x140033d55
mov qword [rsp + 0x30], rdi
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140033d50
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140033d50
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 0x140033daa
mov ecx, dword [0x1400fd308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140033d99
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140033d99
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x140033db5
inc ecx
inc rax
cmp rax, 6
jl 0x140033d87
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 0x140033e80
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 0x140033edd
mov rbx, qword [rbx + 0x10]
test rbx, rbx
je 0x140033ed5
mov qword [rsp + 0x30], rdi
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140033ed0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140033ed0
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 0x140033f2a
mov ecx, dword [0x1400fd308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140033f19
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140033f19
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x140033f35
inc ecx
inc rax
cmp rax, 6
jl 0x140033f07
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 0x140034000
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 0x140034027
add rcx, 8
call fcn.140017730
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140034074
mov ecx, dword [0x1400fd308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140034063
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140034063
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x14003407f
inc ecx
inc rax
cmp rax, 6
jl 0x140034051
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 0x1400340b0
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 0x1400340e3
add rcx, 0x60
cmp qword [rcx + 0x20], 0
je 0x1400340db
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 0x140034133
mov ecx, dword [0x1400fd308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140034122
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140034122
xor ecx, ecx
xor eax, eax
nop word [rax + rax]
cmp qword [rdx + rax*8], 0
je 0x14003413e
inc ecx
inc rax
cmp rax, 2
jl 0x140034110
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 0x140034170
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 0x1400341a3
add rcx, 0x58
cmp qword [rcx + 0x20], 0
je 0x14003419b
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 0x1400341f3
mov ecx, dword [0x1400fd308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400341e2
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400341e2
xor ecx, ecx
xor eax, eax
nop word [rax + rax]
cmp qword [rdx + rax*8], 0
je 0x1400341fe
inc ecx
inc rax
cmp rax, 2
jl 0x1400341d0
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 0x140034230
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 0x140034263
add rcx, 0x68
cmp qword [rcx + 0x20], 0
je 0x14003425b
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 0x1400342b3
mov ecx, dword [0x1400fd308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400342a2
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400342a2
xor ecx, ecx
xor eax, eax
nop word [rax + rax]
cmp qword [rdx + rax*8], 0
je 0x1400342be
inc ecx
inc rax
cmp rax, 2
jl 0x140034290
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 0x1400342f0
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 0x14003439a
lea rcx, [rdi + 0x1c8]
cmp qword [rcx + 0x20], r14
je 0x14003432c
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
mov rbx, qword [rdi + 0x1b0]
test rbx, rbx
je 0x140034364
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140034364
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x140034364
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x140034396
mov qword [rsp + 0x20], r14
lea rax, [0x1400e96c0]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x50], 0
lea r9, [rsp + 0x20]
mov r8b, 1
lea rdx, [rsp + 0x50]
call fcn.140023e20
mov qword [rbp + 0x10], r14
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x1400343e2
mov ecx, dword [0x1400fd308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400343d5
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400343d5
mov ecx, r14d
mov rax, r14
cmp qword [rdx + rax*8], 0
je 0x1400343f5
inc ecx
inc rax
cmp rax, 2
jl 0x1400343c3
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 0x1400343de