joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c7ce
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x18]
mov qword [rbp - 8], rax
call dbg.sqlite3_initialize
test eax, eax
jne 0x14000c9a0
mov ecx, 5
call dbg.sqlite3MutexAlloc
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call dbg.sqlite3_mutex_enter
cmp dword [rbp + 0x10], 0
jle 0x14000c819
cmp qword [rbp + 0x18], 0
jne 0x14000c834
mov dword [0x1401f7220], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call dbg.sqlite3_mutex_leave
jmp 0x14000c9a1
mov eax, dword [0x1401f7220]
test eax, eax
jne 0x14000c8c4
mov ecx, 0
call dbg.sqlite3_vfs_find
mov qword [rbp - 0x18], rax
mov rax, qword [str.expand_32_byte_k]
mov rdx, qword [0x1401b6c08]
mov qword [0x1401f7220], rax
mov qword [0x1401f7228], rdx
cmp qword [rbp - 0x18], 0
jne 0x14000c88f
mov r8d, 0x2c
mov edx, 0
lea rax, [0x1401f7230]
mov rcx, rax
call sym.memset
jmp 0x14000c8a7
mov rax, qword [rbp - 0x18]
lea r8, [0x1401f7230]
mov edx, 0x2c
mov rcx, rax
call dbg.sqlite3OsRandomness
mov eax, dword [0x1401f7250]
mov dword [0x1401f725c], eax
mov dword [0x1401f7250], 0
mov byte [0x1401f72a0], 0
movzx eax, byte [0x1401f72a0]
movzx eax, al
cmp dword [rbp + 0x10], eax
jg 0x14000c926
mov eax, dword [rbp + 0x10]
movsxd rcx, eax
movzx eax, byte [0x1401f72a0]
movzx eax, al
sub eax, dword [rbp + 0x10]
cdqe
lea rdx, [rax + 0x40]
lea rax, [0x1401f7220]
add rdx, rax
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call sym.memcpy
movzx eax, byte [0x1401f72a0]
mov edx, dword [rbp + 0x10]
sub eax, edx
mov byte [0x1401f72a0], al
nop
mov rax, qword [rbp - 0x10]
mov rcx, rax
call dbg.sqlite3_mutex_leave
jmp 0x14000c9a1
movzx eax, byte [0x1401f72a0]
test al, al
je 0x14000c96c
movzx eax, byte [0x1401f72a0]
movzx edx, al
mov rax, qword [rbp - 8]
mov r8, rdx
lea rdx, [0x1401f7260]
mov rcx, rax
call sym.memcpy
movzx eax, byte [0x1401f72a0]
movzx eax, al
sub dword [rbp + 0x10], eax
movzx eax, byte [0x1401f72a0]
movzx eax, al
add qword [rbp - 8], rax
mov eax, dword [0x1401f7250]
add eax, 1
mov dword [0x1401f7250], eax
lea rax, [0x1401f7220]
mov rdx, rax
lea rax, [0x1401f7260]
mov rcx, rax
call dbg.chacha_block
mov byte [0x1401f72a0], 0x40
jmp 0x14000c8c4
nop
add rsp, 0x40
pop rbp
ret
Function at 0x14000cbcd
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x10]
mov qword [rax], 0
mov ecx, 0x28
call dbg.sqlite3Malloc
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000cc0b
mov eax, 7
jmp 0x14000ccfa
movzx eax, byte [0x1401a2024]
test al, al
je 0x14000cc24
mov ecx, 0xc8
call dbg.sqlite3FaultSim
test eax, eax
je 0x14000cc3d
mov rax, qword [rbp - 8]
mov r8d, 0x28
mov edx, 0
mov rcx, rax
call sym.memset
jmp 0x14000ccb8
mov rax, qword [rbp - 8]
mov rdx, qword [rbp + 0x18]
mov qword [rax + 0x10], rdx
mov rax, qword [rbp - 8]
mov rdx, qword [rbp + 0x20]
mov qword [rax + 0x18], rdx
mov rax, qword [rbp - 8]
add rax, 8
mov rdx, qword [rbp - 8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rdx
lea r8, [dbg.sqlite3ThreadProc]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.msvcrt.dll__beginthreadex]
call rax
mov rdx, rax
mov rax, qword [rbp - 8]
mov qword [rax], rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax]
test rax, rax
jne 0x14000ccb8
mov rax, qword [rbp - 8]
mov r8d, 0x28
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14000ccea
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 8]
mov dword [rdx + 8], eax
mov rax, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x18]
mov rcx, rax
call rdx
mov rdx, qword [rbp - 8]
mov qword [rdx + 0x20], rax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 8]
mov qword [rax], rdx
mov eax, 0
add rsp, 0x40
pop rbp
ret

Function at 0x140010b30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov word [rbp - 2], 0x28
cmp qword [rbp + 0x10], 7
ja 0x140010b6f
cmp qword [rbp + 0x10], 1
ja 0x140010b66
mov eax, 0
jmp 0x140010bc8
movzx eax, word [rbp - 2]
sub eax, 0xa
mov word [rbp - 2], ax
shl qword [rbp + 0x10], 1
cmp qword [rbp + 0x10], 7
jbe 0x140010b57
jmp 0x140010ba7
bsr rax, qword [rbp + 0x10]
xor rax, 0x3f
mov edx, eax
mov eax, 0x3c
sub eax, edx
mov dword [rbp - 8], eax
mov eax, dword [rbp - 8]
mov edx, eax
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
mov edx, eax
movzx eax, word [rbp - 2]
add eax, edx
mov word [rbp - 2], ax
mov eax, dword [rbp - 8]
mov ecx, eax
shr qword [rbp + 0x10], cl
mov rax, qword [rbp + 0x10]
and eax, 7
lea rdx, [rax + rax]
lea rax, [0x1401a31d0]
movzx eax, word [rdx + rax]
mov edx, eax
movzx eax, word [rbp - 2]
add eax, edx
sub eax, 0xa
add rsp, 0x10
pop rbp
ret
Function at 0x14006a2b5
Capabilities:
Reference sql statements

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov qword [rbp + 0x28], r9
mov rax, qword [rbp + 0x10]
mov byte [rax + 0x1c], 1
mov r8, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
mov edx, dword [rbp + 0x30]
mov dword [rsp + 0x30], edx
mov rdx, qword [rbp + 0x28]
mov qword [rsp + 0x28], rdx
mov edx, dword [rbp + 0x20]
mov dword [rsp + 0x20], edx
mov r9, r8
mov r8, rcx
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov rcx, rax
call dbg.sqlite3NestedParse
cmp dword [rbp + 0x20], 0
jne 0x14006a33b
mov r8, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
mov edx, dword [rbp + 0x30]
mov dword [rsp + 0x20], edx
mov r9, r8
mov r8, rcx
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
mov rcx, rax
call dbg.sqlite3NestedParse
nop
add rsp, 0x40
pop rbp
ret
Function at 0x1400ce088
Capabilities:
Check for software breakpoints

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rax, qword [rax]
mov qword [rbp - 8], rax
jmp 0x1400ce0de
mov rax, qword [rbp - 8]
movzx eax, word [rax + 2]
cmp ax, 0xcc
jbe 0x1400ce0d9
mov rax, qword [rbp - 8]
lea rcx, [rax + 8]
mov rax, qword [rbp - 8]
movzx eax, word [rax + 2]
movzx edx, ax
mov rax, qword [rbp - 0x10]
mov r8, rcx
mov rcx, rax
call dbg.yy_destructor
sub qword [rbp - 8], 0x18
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x18]
cmp rax, qword [rbp - 8]
jb 0x1400ce0a9
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 0x18]
mov rax, qword [rbp - 0x10]
add rax, 0x20
cmp rdx, rax
je 0x1400ce111
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x18]
mov rcx, rax
call dbg.sqlite3_free
nop
add rsp, 0x30
pop rbp
ret
Function at 0x1400f1390
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1400f2062
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1401f75a8]
test eax, eax
je 0x1400f20fa
lea rax, [0x1401f7580]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1401f75b0]
mov qword [rbp - 8], rax
jmp 0x1400f20de
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400f20d2
cmp qword [rbp - 0x10], 0
je 0x1400f20d2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400f2098
lea rax, [0x1401f7580]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400f20fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400f2200
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400f2228
mov eax, 0
jmp 0x1400f2276
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400f2251
mov eax, 0
jmp 0x1400f2276
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400f2271
mov eax, 0
jmp 0x1400f2276
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400f227c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400f22fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400f22f1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400f22f1
mov rax, qword [rbp - 8]
jmp 0x1400f230f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400f22c4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400fcf3e
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
call sym.__mingw_get_msvcrt_handle
mov rcx, rax
lea rax, str.rand_s
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400fcfab
lea rax, [sym.mingw_rand_s]
mov qword [rbp - 8], rax
lea rax, str.advapi32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
call rax
mov rcx, rax
lea rax, str.SystemFunction036
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x1401f8100], rax
mov rax, qword [rbp - 8]
mov qword [sym.init_rand_s], rax
mov rdx, qword [sym.init_rand_s]
mov rax, qword [rbp + 0x10]
mov rcx, rax
call rdx
add rsp, 0x30
pop rbp
ret

Function at 0x1400ff670
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1401a5dd8], eax
cmp eax, 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
ret
Function at 0x1400ff690
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x1400ff792
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400ff76a
add rax, 1
cmp rax, 0x6b
je 0x1400ff787
cmp byte [rcx + rax], 0
jne 0x1400ff760
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x1400ff787
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov edx, 0x28
mov eax, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1400ff778

Function at 0x1400ffb30
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1401f81a0], 1
je 0x1400ffba8
lea rdi, [0x1401f81a0]
mov rcx, rdi
call sym.enterOnceObject
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call sym.pthread_mutex_lock
mov esi, dword [0x1401f81a0]
test esi, esi
jne 0x1400ffbb8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1401a5dd8], eax
cmp eax, 0xffffffff
je sym._pthread_once_raw.constprop.0.isra.0.cold
mov dword [0x1401f81a0], 1
mov rcx, rbp
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x1400ffba8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.leaveOnceObject.part.0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x1400ffb88
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sym.fprintf
jmp 0x1400ffb88
Function at 0x1400ffbe0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call sym.pop_pthread_mem
cmp qword [sym.__dyn_tls_pthread], 0
mov rbx, rax
je 0x1400ffcf8
test rax, rax
je 0x1400ffcf8
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call sym.pthread_spin_destroy
cmp eax, 1
je 0x1400ffd06
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je sym.__pthread_self_lite.part.0.cold
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1401a5dd8]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400ffd0c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.replace_spin_keys.part.0
nop
jmp sym.__pthread_self_lite.part.0.cold

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

Disassembly:
sub rsp, 0x28
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1401a5dd8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400ffd40
add rsp, 0x28
ret
add rsp, 0x28
jmp sym.__pthread_self_lite.part.0
Function at 0x1400ffe90
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
push rsi
push rbx
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
call sym._fpreset
lea rcx, [0x1401a5dc8]
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x10]
lea rbx, [rax + 0x38]
mov rcx, rbx
call sym.pthread_mutex_lock
call sym._pthread_once_raw.constprop.0.isra.0
mov rdx, qword [rbp + 0x10]
mov ecx, dword [0x1401a5dd8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rsi, qword [rbp + 0x10]
mov rcx, rbx
mov dword [rsi + 0x70], eax
call sym.pthread_mutex_unlock
mov rax, qword [rbp + 0x10]
mov rdx, rbp
lea rcx, [rax + 0xd0]
call sym._setjmp
test eax, eax
jne 0x1400fffd0
lea rcx, [0x1401a5dc8]
call sym.pthread_mutex_unlock
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x1400fffe1
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rdx + 8]
call rax
mov rbx, rax
nop
nop
lea rcx, [0x1401a5dc8]
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 0x1d8]
mov qword [rax + 8], rbx
test rcx, rcx
je 0x1400fff55
call sym._pthread_cleanup_dest.part.0
mov rax, qword [rbp + 0x10]
lea rbx, [rax + 0x38]
mov rcx, rbx
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 0x30]
mov rsi, qword [rax + 8]
test rcx, rcx
je 0x1400fff7c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x10]
xor edx, edx
cmp qword [rax + 0x28], 0
mov qword [rax + 0x30], rdx
je 0x1400ffff3
mov rcx, rbx
call sym.pthread_mutex_unlock
mov rcx, rbx
call sym.pthread_mutex_destroy
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov dword [rax + 0xbc], 1
lea rbx, [0x1401a5dc8]
mov rcx, rbx
call sym.pthread_mutex_unlock
test eax, eax
jne 0x1400fffeb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400fffba
lea rcx, [0x1401a5dc8]
call sym.pthread_mutex_lock
jmp 0x1400fff55
mov ebx, pe_nt_image_headers64
jmp 0x1400fff2e
mov ecx, esi
call qword [sym.imp.msvcrt.dll__endthreadex]
mov rax, qword [rbp + 0x10]
mov rcx, rbx
mov dword [rax], 0xdeadbeef
call sym.pthread_mutex_unlock
mov rcx, rbx
call sym.pthread_mutex_destroy
mov rcx, qword [rbp + 0x10]
call sym.push_pthread_mem
mov ecx, dword [0x1401a5dd8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x1400fffb3
Function at 0x140100030
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
test edx, edx
jne 0x140100050
test r8, r8
je 0x140100100
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret
cmp edx, 1
je 0x140100130
cmp edx, 3
jne 0x140100043
mov ecx, dword [0x1401a5dd8]
cmp ecx, 0xffffffff
je 0x140100043
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140100043
test byte [rax + 0x40], 0x30
je 0x140100158
mov rcx, qword [rax + 0x1d8]
test rcx, rcx
je 0x140100092
call sym._pthread_cleanup_dest.part.0
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x1401000b7
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1401000af
call rsi
pxor xmm0, xmm0
movups xmmword [rbx + 0x28], xmm0
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14010022c
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x14010021f
mov ecx, dword [0x1401a5dd8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x140100043
mov rcx, qword [0x1401f8160]
test rcx, rcx
je 0x140100043
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov qword [0x1401f8160], 0
jmp 0x140100043
lea rdx, [sym.SetThreadName_VEH]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x1401f8160], rax
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rax + 0x30]
mov eax, dword [rax + 0xbc]
test eax, eax
jne 0x1401001d0
test rcx, rcx
je 0x140100171
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x1d8]
mov qword [rbx + 0x30], 0
mov dword [rbx + 0xbc], 1
test rcx, rcx
je 0x140100194
call sym._pthread_cleanup_dest.part.0
test byte [rbx + 0x44], 4
je 0x140100210
mov rcx, qword [rbx + 0x28]
mov dword [rbx], 0xdeadbeef
test rcx, rcx
je 0x1401000b7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x28], 0
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x1401000c4
test rcx, rcx
je 0x140100210
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x30], 0
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14010022c
mov qword [rbx + 0x68], 0xffffffffffffffff
jmp 0x140100043
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x1401001f0
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x1401000e8
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1401004b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x1401005d8
cmp eax, 1
je 0x14010050b
call sym.enterOnceObject
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call sym.pthread_mutex_lock
mov r12d, dword [rbx]
test r12d, r12d
je 0x140100520
cmp r12d, 1
jne 0x1401005b0
mov rcx, rbp
call sym.pthread_mutex_unlock
test rdi, rdi
je 0x14010050b
mov rcx, rdi
call sym.leaveOnceObject.part.0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [sym._pthread_once_cleanup]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1401a5dd8]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x140100618
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1401a5dd8]
call r12
test rax, rax
je 0x140100600
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1401a5dd8]
call r12
test rax, rax
je 0x1401005f0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x1401004f6
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sym.fprintf
jmp 0x1401004f6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x140100599
jmp sym.pthread_once.cold
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x140100575
jmp 0x1401a151e
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x14010054f
jmp 0x1401a1514
mov rax, qword [class.std]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x1401008a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1401a5dd8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140100918
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call sym.pthread_spin_lock
cmp esi, dword [rbx + 0x48]
jae 0x1401008f3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x1401008f3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call sym.pthread_spin_unlock
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call sym.__pthread_self_lite.part.0
mov rbx, rax
jmp 0x1401008cd