joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff826692d94
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x7ff8266e2060]
cmp eax, 0xffffffff
je 0x7ff826692dcb
mov eax, dword [0x7ff8266e2060]
cmp eax, 0xffffffff
je 0x7ff826692dc5
mov ecx, dword [0x7ff8266e2060]
mov edx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
nop dword [rax + rax]
add rsp, 0x28
ret
lea rcx, [0x7ff8266e2888]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov eax, dword [0x7ff8266e2060]
cmp eax, 0xffffffff
jne 0x7ff826692dfb
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsAlloc]
nop dword [rax + rax]
mov dword [0x7ff8266e2060], eax
lea rcx, [0x7ff8266e2888]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
jmp 0x7ff826692da3

Function at 0x7ff826692e18
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x7ff8266e2060]
cmp eax, 0xffffffff
je 0x7ff826692e67
mov ecx, dword [0x7ff8266e2060]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
nop dword [rax + rax]
mov ecx, dword [0x7ff8266e2060]
xor edx, edx
mov rbx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
nop dword [rax + rax]
cmp rbx, 2
jb 0x7ff826692e67
mov rax, qword [rbx + 0x18]
mov rdx, rbx
xor ecx, ecx
call qword [case.0x7ff8266a4768.0]
add rsp, 0x20
pop rbx
ret
Function at 0x7ff8266955f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [section..data]
mov edi, ecx
lea rcx, [0x7ff82669ef10]
mov ebx, r8d
mov esi, edx
cmp rax, rcx
je 0x7ff82669566f
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x30]
call qword [case.0x7ff8266a4768.0]
test eax, eax
jne 0x7ff8266a8cec
mov rax, qword [rsp + 0x68]
xor ecx, ecx
cmp dword [rax + 0x88], ecx
sete cl
cmp edi, 0x11
je 0x7ff8266956a1
mov dword [rsp + 0x28], ecx
xor r9d, r9d
and dword [rsp + 0x20], 0
mov ecx, edi
mov r8d, ebx
mov edx, esi
call sym.WS2_32.dll_WSASocketW
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp qword [0x7ff8266e2828], 0
je 0x7ff826695619
mov ecx, dword [0x7ff8266e2068]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
nop dword [rax + rax]
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x7ff826695636
mov rax, qword [section..data]
jmp 0x7ff826695619
test ebx, ebx
jle 0x7ff826695646
neg ebx
jmp 0x7ff826695646
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
or rax, 0xffffffffffffffff
jmp 0x7ff82669565e
Function at 0x7ff82669d8f4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 + 0x10], rdx
push r14
sub rsp, 0x30
and dword [rsp + 0x60], 0
lea rax, [r11 + 0x28]
mov rsi, r9
mov qword [r11 - 0x10], rax
and qword [r11 - 0x18], 0
lea r9, [r11 + 0x10]
mov r14, r8
lea rdx, str.ProviderInfo
xor r8d, r8d
mov rdi, rcx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x7ff8266ae7b8
mov eax, dword [rsp + 0x60]
xor edx, edx
mov rcx, qword [0x7ff8266e2850]
add eax, 2
mov r8d, eax
mov dword [rsp + 0x60], eax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x7ff8266ae7e3
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
lea rdx, str.ProviderInfo
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x7ff8266ae807
cmp dword [rsp + 0x48], 3
jne 0x7ff8266ae84a
mov eax, dword [rsp + 0x60]
mov qword [r14], rbx
mov dword [rsi], eax
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
test al, 1
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
rol byte [rcx], 1
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
clc
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add al, byte [rax]
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax + 2], dh
Function at 0x7ff82669eff8
Capabilities:
Set thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
cmp dword [0x7ff8266e2068], 0xffffffff
mov r14, rdx
mov rsi, rcx
mov edi, 0x277b
je 0x7ff82669f117
mov rcx, qword [0x7ff8266e2850]
xor edx, edx
mov r8d, 0x98
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x7ff8266af0b8
lea rax, [0x7ff8266b4cb0]
mov qword [rbx + 0x20], rbp
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x70], rbp
mov qword [rbx + 0x58], rbp
mov qword [rbx + 0x60], rbp
mov dword [rbx + 0x68], ebp
mov qword [rbx + 0x78], rbp
mov qword [rbx + 0x80], rbp
mov dword [rbx + 0x88], ebp
mov qword [rbx + 0x90], rbp
mov qword [rbx], rbp
test rbx, rbx
je 0x7ff82669f117
mov rdx, rsi
mov rcx, rbx
call fcn.7ff82669f13c
test eax, eax
jne 0x7ff8266af0c7
mov ecx, dword [0x7ff8266e2068]
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
nop dword [rax + rax]
test eax, eax
je 0x7ff8266af0c7
lea rcx, [0x7ff8266e2930]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rax, qword [0x7ff8266e29e8]
lea rcx, [0x7ff8266e29e0]
cmp qword [rax], rcx
jne 0x7ff8266af0c0
mov qword [rbx], rcx
lea rcx, [0x7ff8266e2930]
mov qword [rbx + 8], rax
mov qword [rax], rbx
mov qword [0x7ff8266e29e8], rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov qword [r14], rbx
mov edi, ebp
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov rbx, rbp
jmp 0x7ff82669f08b
mov ecx, 3
int 0x29
mov rcx, rbx
call fcn.7ff8266a22f8
nop
jmp 0x7ff82669f117
Function at 0x7ff82669f508
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
push r14
mov rbp, rsp
sub rsp, 0x78
mov edi, 1
lea rcx, [rbp + 0x28]
mov dword [rbp + 0x28], edi
call qword [sym.imp.ntdll.dll_RtlGetNtProductType]
nop dword [rax + rax]
mov ecx, dword [rbp + 0x28]
test al, al
cmove ecx, edi
mov dword [rbp + 0x28], ecx
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemInfo]
nop dword [rax + rax]
cmp edi, dword [rbp - 0x20]
lea ebx, [rdi + 0x1f]
lea r14d, [rdi + 7]
mov r9d, edi
sbb eax, eax
lea rdx, str.SystemCurrentControlSetServicesWinsock2Parameters
and eax, 0x7d0
mov rcx, 0xffffffff80000002
cmp dword [rbp + 0x28], edi
mov dword [0x7ff8266e284c], eax
mov eax, ebx
cmove eax, r14d
xor r8d, r8d
mov dword [rbp + 0x38], eax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x7ff82669f622
mov rcx, qword [rbp - 0x48]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
lea rax, [rbp + 0x38]
mov dword [rbp + 0x30], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Ws2_32NumHandleBuckets
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
nop dword [rax + rax]
cmp dword [rbp - 0x20], edi
jbe 0x7ff82669f612
mov rcx, qword [rbp - 0x48]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
lea rax, [0x7ff8266e284c]
mov dword [rbp + 0x30], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Ws2_32SpinCount
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov ecx, dword [rbp + 0x38]
mov edx, 0x100
mov eax, edx
test edx, ecx
jne 0x7ff82669f636
shr eax, 1
test ecx, eax
je 0x7ff82669f630
cmp dword [rbp + 0x28], edi
jne 0x7ff82669f672
cmp eax, ebx
ja 0x7ff82669f648
cmp eax, r14d
mov ebx, eax
cmovb ebx, r14d
mov eax, dword [0x7ff8266e284c]
mov ecx, 0x1f40
cmp eax, ecx
cmova eax, ecx
mov dword [0x7ff8266e284c], eax
lea eax, [rbx - 1]
mov dword [0x7ff8266e26ec], eax
add rsp, 0x78
pop r14
pop rdi
pop rbx
pop rbp
ret
cmp eax, edx
ja 0x7ff82669f67f
cmp eax, ebx
cmovb eax, ebx
mov ebx, eax
jmp 0x7ff82669f648
mov ebx, edx
jmp 0x7ff82669f648
Function at 0x7ff8266a0500
Capabilities:
Get 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, 0x70
mov rax, qword [section..data]
mov rdi, rcx
lea rcx, [0x7ff82669ef10]
mov rsi, r9
mov ebp, r8d
mov r14, rdx
cmp rax, rcx
je 0x7ff8266a06be
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x60]
call qword [case.0x7ff8266a4768.0]
mov dword [rsp + 0x50], eax
test eax, eax
jne 0x7ff8266a069c
mov rdx, qword [0x7ff8266e2838]
mov rcx, rdi
shr rcx, 2
mov r8d, 2
mov eax, dword [rdx]
and rcx, rax
lea rax, [rcx + rcx*8]
mov ecx, r8d
lea r9, [rdx + rax*8]
lock xadd dword [r9 + 0x10], ecx
mov rbx, qword [r9 + 8]
and ecx, 1
test rbx, rbx
je 0x7ff8266afad6
mov r10d, dword [rbx]
cmp r10, 0x1f
jne 0x7ff8266a06b1
movabs rax, 0x842108421084211
mul rdi
mov rax, rdi
sub rax, rdx
shr rax, 1
add rax, rdx
mov rdx, rdi
shr rax, 4
imul rax, rax, 0x1f
sub rdx, rax
mov rbx, qword [rbx + rdx*8 + 8]
test rbx, rbx
je 0x7ff8266afad6
cmp qword [rbx + 8], rdi
jne 0x7ff8266afad6
lock inc dword [rbx]
lock xadd dword [r9 + rcx*4 + 0x14], r8d
cmp r8d, ecx
je 0x7ff8266afadd
test rbx, rbx
je 0x7ff8266afaf6
mov rcx, qword [rbx + 0x18]
mov r9, rsi
mov rax, qword [rsp + 0x58]
mov r8d, ebp
add rax, 0x10
mov rdx, r14
mov r10, qword [rcx + 0xa8]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x38], rax
mov rax, r10
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call qword [case.0x7ff8266a4768.0]
mov edi, eax
mov ecx, 0xffffffff
lock xadd dword [rbx], ecx
cmp ecx, 1
je 0x7ff8266afb11
test edi, edi
jne 0x7ff8266a0690
xor eax, eax
lea r11, [rsp + 0x70]
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
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x7ff8266afb1f
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, 0xffffffff
jmp 0x7ff8266a0674
xor edx, edx
mov rax, rdi
div r10
jmp 0x7ff8266a05c7
cmp qword [0x7ff8266e2828], 0
je 0x7ff8266a053d
mov ecx, dword [0x7ff8266e2068]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
nop dword [rax + rax]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x7ff8266a06f5
mov dword [rsp + 0x50], 0
jmp 0x7ff8266a0559
mov rax, qword [section..data]
jmp 0x7ff8266a053d
xor ebx, ebx
jmp 0x7ff8266a05e2
mov rcx, qword [0x7ff8266e26f0]
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_PulseEvent]
nop dword [rax + rax]
nop
jmp 0x7ff8266a05f2
mov rcx, rdi
call fcn.7ff8266b4b10
mov rbx, rax
test rax, rax
jne 0x7ff8266a05fb
mov eax, 0x2736
jmp 0x7ff8266afb24
mov rcx, rbx
call fcn.7ff8266b49d8
nop
jmp 0x7ff8266a066e
mov eax, 0x277b
mov dword [rsp + 0x50], eax
jmp 0x7ff8266a069c
Function at 0x7ff8266a0e50
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x7ff8266e2050]
xor rax, rsp
mov qword [rsp + 0x240], rax
and qword [rsp + 0x28], 0
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
xor ebx, ebx
call fcn.7ff8266a0f90
test eax, eax
jne 0x7ff8266a0f77
mov rcx, qword [rsp + 0x28]
lea rdx, [rsp + 0x30]
mov edi, 0x105
mov r8d, edi
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
je 0x7ff8266a0f4a
cmp eax, edi
jg 0x7ff8266a0f4a
xor edx, edx
lea r8d, [rbx + 0x22]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x7ff8266a0f4a
lea ebp, [rbx + 1]
mov edi, 0xff
mov r8d, 0x1fe
mov rcx, qword [0x7ff8266e2850]
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x7ff8266a0f3b
mov edx, dword [rsp + 0x20]
mov r9d, edi
mov r8, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadStringW]
nop dword [rax + rax]
test eax, eax
je 0x7ff8266afd10
inc eax
cmp eax, edi
jae 0x7ff8266afcca
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop dword [rax + rax]
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.7ff8266a4480
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
xor eax, eax
jmp 0x7ff8266a0f4d
mov rcx, qword [0x7ff8266e2850]
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
inc ebp
xor ebx, ebx
imul edi, ebp, 0xff
cmp edi, 0x10000
jge 0x7ff8266a0f3b
mov ecx, edi
lea eax, [rbx + 2]
mul rcx
lea rcx, [rbx - 1]
cmovo rax, rcx
mov r8, rax
jmp 0x7ff8266a0ef3
mov rcx, qword [0x7ff8266e2850]
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
xor ebx, ebx
jmp 0x7ff8266a0f3b
Function at 0x7ff8266a10a0
Capabilities:
Get 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 r15
sub rsp, 0x60
mov r15, r9
mov r14d, r8d
mov esi, edx
mov rdi, rcx
lea rcx, [0x7ff82669ef10]
mov rax, qword [section..data]
cmp rax, rcx
jne 0x7ff8266a1249
cmp qword [0x7ff8266e2828], 0
je 0x7ff8266a1249
mov ecx, dword [0x7ff8266e2068]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
nop dword [rax + rax]
mov rcx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x7ff8266a1242
xor eax, eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x7ff8266a126f
cmp r14d, 0x7008
je 0x7ff8266a1231
mov rdx, qword [0x7ff8266e2838]
mov rcx, rdi
shr rcx, 2
mov eax, dword [rdx]
and rcx, rax
lea rax, [rcx + rcx*8]
lea r9, [rdx + rax*8]
mov r8d, 2
mov ecx, r8d
lock xadd dword [r9 + 0x10], ecx
and ecx, 1
mov rbx, qword [r9 + 8]
test rbx, rbx
je 0x7ff8266afd87
mov r10d, dword [rbx]
cmp r10, 0x1f
jne 0x7ff8266a1284
movabs rax, 0x842108421084211
mul rdi
mov rax, rdi
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 4
imul rax, rax, 0x1f
mov rdx, rdi
sub rdx, rax
mov rbx, qword [rbx + rdx*8 + 8]
test rbx, rbx
je 0x7ff8266afd87
cmp qword [rbx + 8], rdi
jne 0x7ff8266afd87
lock inc dword [rbx]
lock xadd dword [r9 + rcx*4 + 0x14], r8d
cmp r8d, ecx
je 0x7ff8266afd8e
test rbx, rbx
je 0x7ff8266afda7
mov rax, qword [rbx + 0x18]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov ecx, dword [rsp + 0x90]
mov dword [rsp + 0x20], ecx
mov r9, r15
mov r8d, r14d
mov edx, esi
mov rcx, rdi
mov rax, qword [rax + 0xe0]
call qword [case.0x7ff8266a4768.0]
mov edi, eax
mov ecx, 0xffffffff
lock xadd dword [rbx], ecx
cmp ecx, 1
je 0x7ff8266afdc2
test edi, edi
jne 0x7ff8266a1263
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
cmp esi, 0xffff
jne 0x7ff8266a1128
jmp 0x7ff8266afd44
mov rax, qword [section..data]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call qword [case.0x7ff8266a4768.0]
mov rcx, qword [rsp + 0x48]
jmp 0x7ff8266a110f
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x7ff8266afdd0
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, 0xffffffff
jmp 0x7ff8266a1215
xor edx, edx
mov rax, rdi
div r10
jmp 0x7ff8266a1196
cmp dword [rsp + 0x90], 4
jae 0x7ff8266afd58
mov ecx, 0x271e
jmp 0x7ff8266a1271
mov eax, dword [r15]
mov dword [rsp + 0x44], eax
jmp 0x7ff8266afd7c
mov dword [rcx + 0x88], eax
jmp 0x7ff8266a1213
xor ebx, ebx
jmp 0x7ff8266a11b1
mov rcx, qword [0x7ff8266e26f0]
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_PulseEvent]
nop dword [rax + rax]
nop
jmp 0x7ff8266a11c1
mov rcx, rdi
call fcn.7ff8266b4b10
mov rbx, rax
test rax, rax
jne 0x7ff8266a11ca
mov eax, 0x2736
jmp 0x7ff8266afdd5
mov rcx, rbx
call fcn.7ff8266b49d8
nop
jmp 0x7ff8266a120f
mov eax, 0x277b
mov dword [rsp + 0x40], eax
jmp 0x7ff8266a126f
Function at 0x7ff8266a1380
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [section..data]
mov rbp, rcx
lea rcx, [0x7ff82669ef10]
mov rdi, r9
mov r14, r8
mov r15, rdx
cmp rax, rcx
jne 0x7ff8266afe21
cmp qword [0x7ff8266e2828], 0
je 0x7ff8266afe21
mov ecx, dword [0x7ff8266e2068]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
nop dword [rax + rax]
mov qword [rsp + 0x48], rax
test rax, rax
je 0x7ff8266afe1a
and dword [rsp + 0x40], 0
mov rcx, rbp
call fcn.7ff8266a1fbc
mov rsi, rax
test rax, rax
je 0x7ff8266afe5b
mov al, byte [rax + 0x2a]
mov r9, rdi
mov rdx, qword [rsp + 0x48]
neg al
mov r8, r14
sbb ecx, ecx
not ecx
mov ebx, dword [rdx + 0x88]
and ecx, 0x20
mov dword [rdx + 0x88], ecx
mov rdx, r15
mov rax, qword [rsi + 0x18]
mov rcx, rbp
mov r10, qword [rax + 0x10]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov rax, r10
call qword [case.0x7ff8266a4768.0]
mov rdi, rax
mov rax, qword [rsp + 0x48]
mov dword [rax + 0x88], ebx
or eax, 0xffffffff
lock xadd dword [rsi], eax
cmp eax, 1
je 0x7ff8266afe3e
cmp rdi, 0xffffffffffffffff
je 0x7ff8266afe4c
cmp rdi, rbp
je 0x7ff8266a1488
mov rcx, rdi
call fcn.7ff8266a14ac
mov rax, rdi
lea r11, [rsp + 0x60]
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
mov rax, qword [section..data]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call qword [case.0x7ff8266a4768.0]
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x7ff8266afe64
jmp 0x7ff8266a13ee
mov rcx, rsi
call fcn.7ff8266b49d8
nop
jmp 0x7ff8266a1471
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x7ff8266afe64
mov eax, 0x277b
jmp 0x7ff8266afe60
mov eax, 0x2736
mov dword [rsp + 0x40], eax
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
or rax, 0xffffffffffffffff
jmp 0x7ff8266a148b
Function at 0x7ff8266a1760
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x4f]
sub rsp, 0x90
mov rax, qword [section..data]
mov rdi, rcx
lea rcx, [0x7ff82669ef10]
mov esi, r9d
mov r14d, r8d
mov r15, rdx
cmp rax, rcx
jne 0x7ff8266a188c
cmp qword [0x7ff8266e2828], 0
je 0x7ff8266a188c
mov ecx, dword [0x7ff8266e2068]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
nop dword [rax + rax]
mov qword [rbp + 0xf], rax
test rax, rax
je 0x7ff8266a1885
and dword [rbp + 7], 0
mov rcx, rdi
call fcn.7ff8266a1fbc
mov rbx, rax
test rax, rax
je 0x7ff8266b0574
mov rcx, qword [rax + 0x18]
lea r9, [rbp + 0xb]
mov rax, qword [rbp + 0xf]
lea rdx, [rbp + 0x1f]
add rax, 0x10
mov dword [rbp + 0x1f], r14d
mov qword [rbp + 0x27], r15
mov r8d, 1
mov r10, qword [rcx + 0xd8]
lea rcx, [rbp + 7]
mov qword [rsp + 0x50], rcx
mov rcx, rdi
mov qword [rsp + 0x48], rax
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
mov eax, dword [rbp + 0x7f]
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 0x77]
mov qword [rsp + 0x28], rax
mov rax, r10
mov dword [rsp + 0x20], esi
call qword [case.0x7ff8266a4768.0]
mov edi, eax
or eax, 0xffffffff
lock xadd dword [rbx], eax
cmp eax, 1
je 0x7ff8266b0558
test edi, edi
jne 0x7ff8266b0566
mov eax, dword [rbp + 0xb]
lea r11, [rsp + 0x90]
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
mov rax, qword [section..data]
lea rdx, [rbp + 0xf]
lea rcx, [rbp + 0x17]
call qword [case.0x7ff8266a4768.0]
mov dword [rbp + 7], eax
test eax, eax
je 0x7ff8266a17d3
jmp 0x7ff8266b057c
mov rcx, rbx
call fcn.7ff8266b49d8
nop
jmp 0x7ff8266a185c
mov eax, dword [rbp + 7]
test eax, eax
jne 0x7ff8266b057c
mov eax, 0x277b
jmp 0x7ff8266b0579
mov eax, 0x2736
mov dword [rbp + 7], eax
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
or eax, 0xffffffff
jmp 0x7ff8266a1867