joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003ba00
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
test rdx, rdx
mov rbx, rcx
mov rsi, rdx
je 0x14003bb28
cmp eax, 1
je 0x14003ba5b
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 0x14003ba70
cmp r12d, 1
jne 0x14003bb00
mov rcx, rbp
call sym.pthread_mutex_unlock
test rdi, rdi
je 0x14003ba5b
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 [0x1400405e8]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x14003bb68
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 [0x1400405e8]
call r12
test rax, rax
je 0x14003bb50
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 [0x1400405e8]
call r12
test rax, rax
je 0x14003bb40
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x14003ba46
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sym.fprintf_1
jmp 0x14003ba46
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 0x14003bae9
jmp sym.pthread_once.cold
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x14003bac5
jmp 0x14003face
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x14003ba9f
jmp 0x14003fac4
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x14003bdf0
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 [0x1400405e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14003be68
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call sym.pthread_spin_lock
cmp esi, dword [rbx + 0x48]
jae 0x14003be43
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14003be43
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 0x14003be1d
Function at 0x14003be80
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400405e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14003bf90
lea r14, [rbx + 0x68]
mov rcx, r14
call sym.pthread_spin_lock
cmp esi, dword [rbx + 0x48]
jae 0x14003bf10
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r14
mov byte [rax + rsi], 1
call sym.pthread_spin_unlock
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbx + 0x50]
lea r15d, [rsi + 1]
movsxd r13, r15d
lea rdx, [r13*8]
call sym.realloc
test rax, rax
mov rdi, rax
je 0x14003bf9d
mov rcx, qword [rbx + 0x58]
mov rdx, r13
movq xmm6, rdi
call sym.realloc
movq xmm0, rax
test rax, rax
mov r13, rax
punpcklqdq xmm6, xmm0
je 0x14003bf9d
mov eax, dword [rbx + 0x48]
mov edx, r15d
lea rcx, [rdi + rax*8]
sub edx, eax
lea r8, [rdx*8]
xor edx, edx
call sym.memset
mov edx, dword [rbx + 0x48]
mov r8d, r15d
lea rcx, [r13 + rdx]
sub r8d, edx
xor edx, edx
call sym.memset
movaps xmmword [rbx + 0x50], xmm6
mov dword [rbx + 0x48], r15d
jmp 0x14003bed4
call sym.__pthread_self_lite.part.0
mov rbx, rax
jmp 0x14003bebf
mov rcx, r14
call sym.pthread_spin_unlock
mov eax, 0xc
jmp 0x14003bef2

Function at 0x14003bfd0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400405e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14003c000
mov rdx, qword [rax + 0x1d8]
mov rax, rdx
add rsp, 0x28
ret
call sym.__pthread_self_lite.part.0
xor edx, edx
test rax, rax
jne 0x14003bfea
mov rax, rdx
add rsp, 0x28
ret

Function at 0x14003c020
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400405e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14003c048
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x14003c03a
add rsp, 0x28
ret

Function at 0x14003c0b0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400405e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14003c0d8
add rax, 0x18
add rsp, 0x28
ret
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x14003c0ca
jmp 0x14003c0ce
Function at 0x14003c1f0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140051e58]
test eax, eax
jne 0x14003c208
xor eax, eax
add rsp, 0x28
ret
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400405e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14003c238
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14003c1fe
test byte [rax + 0x40], 3
je 0x14003c1fe
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14003c200
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x14003c21e
jmp 0x14003c1fe

Function at 0x14003c250
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400405e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14003c290
test ebx, ebx
jle 0x14003c280
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x14003c26d
add rsp, 0x20
pop rbx
ret

Function at 0x14003c380
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400405e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14003c3f8
test byte [rbx + 0x40], 0xc
jne 0x14003c3af
mov eax, dword [0x140051e58]
test eax, eax
jne 0x14003c3c0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call sym.pthread_mutex_lock
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14003c3e3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14003c3e3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14003c40c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sym.pthread_mutex_unlock
call sym.__pthread_self_lite.part.0
test rax, rax
mov rbx, rax
jne 0x14003c39f
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14003c42a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call sym.pthread_mutex_unlock
call sym._pthread_invoke_cancel
nop
nop dword [rax + rax]
Function at 0x14003c440
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14003c4b0
call sym._pthread_time_in_ms_from_timespec
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14003c4e8
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400405e8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14003c540
test esi, esi
je 0x14003c4c6
call sym.pthread_testcancel
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14003c520
mov edx, edi
call sym._pthread_wait_for_single_object
call sym.pthread_testcancel
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400405e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14003c530
call sym.pthread_testcancel
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call sym.pthread_testcancel
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400405e8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x14003c485
call sym.__pthread_self_lite.part.0
mov rbx, rax
jmp 0x14003c485
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14003c49e
call sym.__pthread_self_lite.part.0
jmp 0x14003c4c6
call sym.__pthread_self_lite.part.0
mov rbx, rax
jmp 0x14003c481

Function at 0x14003c550
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400405e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14003c5c0
test esi, esi
je 0x14003c5a0
call sym.pthread_testcancel
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14003c5d0
mov edx, esi
call sym._pthread_wait_for_single_object
call sym.pthread_testcancel
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.pthread_testcancel
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call sym.pthread_testcancel
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.__pthread_self_lite.part.0
mov rbx, rax
jmp 0x14003c571
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14003c58a
Function at 0x14003c5e0
Capabilities:
Get thread local storage value
Hijack thread execution

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4f8
test rcx, rcx
mov rsi, rcx
je 0x14003c6d0
lea rdi, [0x1400405d8]
mov rcx, rdi
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rcx, rdi
mov rbx, rax
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x14003c6d0
mov rcx, qword [rbx + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14003c6d0
lea rdi, [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x14003c6d0
lea rbp, [rbx + 0x38]
mov rcx, rbp
call sym.pthread_mutex_lock
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400405e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14003c7e0
cmp rsi, qword [rax + 0x1d8]
movzx edx, byte [rbx + 0x40]
je 0x14003c6e8
mov eax, dword [rbx + 0x44]
and eax, 3
cmp eax, 3
je 0x14003c740
test dl, 3
jne 0x14003c6c0
and edx, 0xfffffffc
or edx, 1
mov byte [rbx + 0x40], dl
lock add dword [0x140051e58], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14003c6b1
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbp
call sym.pthread_mutex_unlock
xor eax, eax
jmp 0x14003c6d5
mov rcx, rbp
call sym.pthread_mutex_unlock
test byte [rbx + 0x40], 0xc
je 0x14003c6b9
nop
mov eax, 3
add rsp, 0x4f8
pop rbx
pop rsi
pop rdi
pop rbp
ret
test dl, 3
jne 0x14003c6c0
and edx, 0xfffffffc
or edx, 1
mov byte [rbx + 0x40], dl
lock add dword [0x140051e58], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14003c70d
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [rbx + 0x44]
mov edx, eax
and edx, 3
cmp edx, 3
jne 0x14003c6b1
and eax, 0xfffffffe
mov rcx, rbp
mov dword [rbx + 0x44], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xfffffff3
or eax, 4
mov byte [rbx + 0x40], al
call sym.pthread_mutex_unlock
call sym._pthread_invoke_cancel
nop word [rax + rax]
test dl, 0xc
jne 0x14003c6c0
and edx, 0xf
jne 0x14003c6d0
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x50], 0x100001
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor edx, edx
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14003c6b1
mov rcx, qword [rbx + 0x28]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
lea rax, [sym._pthread_invoke_cancel]
mov rcx, qword [rbx + 0x28]
mov rdx, rdi
mov qword [rsp + 0x118], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
movzx eax, byte [rbx + 0x40]
and dword [rbx + 0x44], 0xfffffffe
and eax, 0xfffffff0
or eax, 5
mov byte [rbx + 0x40], al
lock add dword [0x140051e58], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14003c7c8
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbp
call sym.pthread_mutex_unlock
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x14003c6b1
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x14003c670
movzx edx, byte [rbx + 0x40]
jmp 0x14003c67d
Function at 0x14003c800
Capabilities:
Get thread local storage value
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1400405d8]
mov rbx, rcx
mov rcx, rdi
mov esi, edx
call sym.pthread_mutex_lock
mov rcx, rbx
call sym.__pthread_get_pointer
test rax, rax
je 0x14003c878
cmp qword [rax + 0x1d8], rbx
jne 0x14003c878
test byte [rax + 0x40], 0xc
jne 0x14003c878
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x14003c878
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x14003c878
mov rcx, rdi
call sym.pthread_mutex_unlock
test esi, esi
je 0x14003c890
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x14003c898
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.pthread_cancel
mov rcx, rdi
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor eax, eax
jmp 0x14003c885
mov eax, 0x16
jmp 0x14003c885

Function at 0x14003ca60
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov rdi, rdx
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400405e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14003cad0
cmp esi, 1
ja 0x14003cadd
lea rbp, [rbx + 0x38]
mov rcx, rbp
call sym.pthread_mutex_lock
test rdi, rdi
je 0x14003caa4
mov eax, dword [rbx + 0x44]
and eax, 1
mov dword [rdi], eax
mov eax, dword [rbx + 0x44]
mov rcx, qword [rbx + 0x1d8]
and eax, 0xfffffffe
or eax, esi
mov dword [rbx + 0x44], eax
call sym.test_cancel_locked
mov rcx, rbp
call sym.pthread_mutex_unlock
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.__pthread_self_lite.part.0
test rax, rax
mov rbx, rax
jne 0x14003ca86
mov eax, 0x16
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x14003caf0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
mov rdi, rdx
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400405e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14003cb68
mov ebp, esi
and ebp, 0xfffffffd
jne 0x14003cb75
lea r12, [rbx + 0x38]
mov rcx, r12
call sym.pthread_mutex_lock
test rdi, rdi
je 0x14003cb38
mov eax, dword [rbx + 0x44]
and eax, 2
mov dword [rdi], eax
mov eax, dword [rbx + 0x44]
mov rcx, qword [rbx + 0x1d8]
and eax, 0xfffffffd
or eax, esi
mov dword [rbx + 0x44], eax
call sym.test_cancel_locked
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, ebp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call sym.__pthread_self_lite.part.0
test rax, rax
mov rbx, rax
jne 0x14003cb18
mov ebp, 0x16
mov eax, ebp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14003ce20
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
test rcx, rcx
mov rsi, rcx
mov rbp, rdx
je 0x14003cf40
lea rdi, [0x1400405d8]
mov rcx, rdi
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rcx, rdi
mov rbx, rax
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x14003cf40
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14003cf40
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x14003cf40
test byte [rbx + 0x44], 4
jne 0x14003cf50
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400405e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14003cf70
cmp rsi, qword [rax + 0x1d8]
je 0x14003cf98
mov eax, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test eax, eax
je 0x14003cecb
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14003ceda
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14003ceee
call rsi
mov qword [rbx + 0x30], 0
lea rcx, [rbx + 0x38]
test rbp, rbp
je 0x14003cf88
mov rax, qword [rbx + 8]
mov qword [rbp], rax
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14003cf9f
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x14003cf60
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 3
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 0x16
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbx
call sym.push_pthread_mem.part.0
xor eax, eax
jmp 0x14003cf36
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x14003cea6
jmp 0x14003ceb3
call sym.pthread_mutex_destroy
jmp 0x14003cf10
mov eax, 0x24
jmp 0x14003cf45
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
Function at 0x14003cfb0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [0x1400405d8]
mov rsi, rcx
mov rcx, rbp
mov rdi, rdx
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
test rax, rax
mov rbx, rax
je 0x14003d0d0
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x14003d0d0
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x14003d0d0
test byte [rbx + 0x44], 4
jne 0x14003d0f0
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400405e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14003d130
mov rdx, qword [rax + 0x1d8]
cmp rsi, rdx
je 0x14003d168
mov edx, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test edx, edx
jne 0x14003d057
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14003d110
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14003d06b
call rsi
mov qword [rbx + 0x30], 0
lea rcx, [rbx + 0x38]
test rdi, rdi
je 0x14003d148
mov rax, qword [rbx + 8]
mov qword [rdi], rax
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14003d17a
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x14003d158
mov rcx, rbp
call sym.pthread_mutex_unlock
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x16
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, dword [rbx + 0xbc]
test eax, eax
jne 0x14003d053
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x10
jmp 0x14003d0be
call sym.__pthread_self_lite.part.0
xor edx, edx
test rax, rax
jne 0x14003d025
jmp 0x14003d02c
call sym.pthread_mutex_destroy
jmp 0x14003d08c
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x14003d0b4
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x24
jmp 0x14003d0be
call sym.replace_spin_keys.part.0
nop
Function at 0x1414265e5
Capabilities:
Encode data using base64

Disassembly:
xor r11d, 0x8a12969a
ror r11d, 1
add dword [rsp + rdx - 0xb2], eax
not r11d
mov r8d, 0xed9f28ab
jo 0x1414b9a12
ror r11d, 2
sal cx, 3
sets cl
mov qword [rsp + rdx*2 - 0x16e], rdi
xor dword [rsp + rax*2 - 0x4d9e], r11d
mov qword [rsp + rdx*2 - 0x176], r8
sal r10b, 0x81
mov rdi, qword [rsp + rdx*4 - 0x2e4]
movsxd r11, r11d
adc r9, r11
push r10
call fcn.1414983f4

Function at 0x14142a213
Capabilities:
Encode data using base64

Disassembly:
neg ebp
or dl, r10b
sbb byte [rsp + rcx + 0x5a6e03ef], dl
xchg word [rsp + rdx*2 - 0x1f92e], r10w
mov qword [rsp + rcx + 0x5a6e03f1], rdi
xor dword [rsp + rdx - 0xfc8b], ebp
ror r8d, cl
mov rdi, qword [rsp + rdx - 0xfc8b]
mov dword [rdx + rbx - 0xfca7], ebp
push rdx
sbb edx, edx
jg 0x1414c14d1
lea rbx, [rcx + rbx + 0x5a6e03d5]
pop rbp
mov r8d, dword [rsi + rcx + 0x5a6e03d7]
rol r10, 0x38
lea rsi, [rcx + rsi + 0x5a6e03d7]
add ecx, 0x51a0603f
and dword [rsp + r10 + 0x2175d0b], ebp
or r11d, 0x38359588
xor r8d, edi
sub r8d, 0xf39c9712
bswap r8d
mov qword [rsp + r10*4 + 0x85d7414], 0xffffffffa9b21c16
sal r11w, 1
lea r8d, [r10 + r8 + 0x1e236ef]
neg dword [rsp + r10 + 0x2175d12]
and rdx, 0xffffffffa90c102c
neg r8d
inc r10w
call fcn.14144e66c
Function at 0x14142faac
Capabilities:
Encode data using base64
Execute anti-debugging instructions

Disassembly:
lea r10, [rdx*4 + 0x7421d108]
add cx, 0x261f
or r10d, 0x56963992
sub r10d, ebp
mov qword [rsp + r8 + 0x56f20000], r11
neg cx
sal r11b, 0xe1
lea rbp, [rbp + r11 - 0x1e6cb054]
adc dx, 0xb9b1
sub cx, 0x1612
lea r10, [r10 + r10 - 0xd5407f5]
sub dword [rsp + rdx*2 - 0x569abcc4], r10d
cmovl bp, word [rsp + rdx*2 - 0x569abcb6]
xor cx, 0x7489
shl dl, 0x61
xor di, cx
and r8b, 0xab
xchg word [rsp + rdx - 0x2b4d5ec4], r10w
jp 0x141469ba3
mov eax, 0xa8ae1b3b
lea rcx, [rax*8 + 0x303c2186]
movsx r8d, ax
mov r11d, dword [rbx + r8 - 0x1b3b]
jmp 0x1414a34a1
xor di, cx
lea rcx, [rsp + rcx + 8]
mov r10, qword [rcx + rbp - 0x30]
lea rbx, [rbx + rbp*2 - 0x68]
mov qword [rbp + rbx - 0x30], r10
sub bpl, 0x97
movzx r10d, bpl
lea rsi, [rbp + rsi - 0x9d]
xchg word [rsp + rbp*2 - 0x12d], r10w
not rax
mov ebp, dword [rsi + r8 - 0x21384283]
lea rcx, [r8*8 - 0x375f52fe]
xor ebp, edi
xchg byte [rsp + r8*2 - 0x42708505], r10b
lea ebp, [r8 + rbp + 0xdd37b7d]
call fcn.14146fedc
mov rdi, qword [rsp + r8*2 - 0xac7f0]
not qword [rsp + r8*4 - 0x158ffa]
movsxd rbp, ebp
add r9, rbp
call fcn.1414387e9
mov r10d, 0xb4a01532
sub rsi, 4
mov ebp, dword [rsi]
xor ebp, edi
mov edx, 0x8dade39e
mov r11d, 0x3f8399b6
not ebp
jmp 0x141455537
lea r10, [rcx + rcx*4 - 0x52f76cfb]
xor ebp, edi
rol ebp, cl
jmp 0x141441c60
push r10
add cx, 0x913a
and r10, rax
ror cx, 1
not cx
ror al, 0xa5
or byte [rsp + rbp*4 - 0xba], ah
mov r8d, 0x21384283
neg cx
jmp 0x141434e7f
lea rdx, [rsp + rax - 2]
movzx r8w, byte [r8 + rdx - 0x1b3b]
xchg ebp, eax
xor ax, 0xb61e
mov word [rbx + rax - 0x22897d1a], r8w
sub bp, 0x48a9
lea rbx, [rax + rbx - 0x22897d1a]
mov r11d, dword [rax + rsi - 0x22897d20]
mov edx, ebp
jnp 0x14143e398
lea rsi, [rsi + r10 - 0x2eae3b60]
movsx ecx, bp
xor r11d, edi
add eax, 0xcb89dca1
sub r10w, dx
xor r11d, 0xd23139a8
call fcn.14147b9bc
mov r8d, 0x789c68e
mov ebp, 0xd4b4c82d
mov r10, qword [rbx + r8*4 - 0x1e271a38]
lea r11, [r8 + rbp*2 - 0xec23275]
movsx ecx, r11b
inc cl
mov r11b, byte [rbx + r8*2 - 0xf138d14]
rol r8b, 0xa6
lea rbx, [rbx + r8 - 0x789c699]
mov byte es:[r10 + r8 - 0x789c6a3], r11b
lea rsi, [rsi + r8*4 - 0x1e271a90]
and cx, 0x74ba
mov r8d, dword [rsi + r8*8 - 0x3c4e3518]
jnp 0x14149c758
movzx r11d, cl
movzx eax, cl
xor r8d, edi
movzx r10d, bpl
lea rbp, [rbp + rax - 0xe706f70]
inc r8d
jmp 0x1414789e0
xor ebp, 0x7a0f5da7
shr r10b, 0xc5
movzx ecx, dx
neg r11b
rol ebp, 1
mov eax, ecx
mov r8d, ecx
ror dl, 0x81
xor ebp, 0xe62b7d05
push rdi
lea r10, [r10*8 - 0x34dae05c]
add cl, cl
xor dword [rsp + r11 - 0x3f83994a], ebp
shr rax, 0x67
pop rdi
call fcn.141430058
xor r8d, 0xedb9d317
dec rax
or bpl, 0xf
lea r8d, [rcx + r8 - 0x2026bdd9]
call fcn.14143c527
sub rsi, 2
jmp 0x1414beb36
ror r8b, 0x23
bswap eax
not cx
call fcn.1414ad47b
shr rax, cl
lea rcx, [rsp + rax*2 + 0xfc]
lea rbp, [r8*8 + 0x2288f12a]
movzx edx, bpl
lea r10, [r8 + r8*4 + 0x2eadb335]
mov dword [rcx + rax - 2], r11d
jns 0x1414535eb
mov r10d, 0xd69a9f18
movzx ecx, word [rsi]
add r10w, r10w
mov eax, r10d
xor cx, di
movzx ebp, r10b
jmp 0x14144da6e