joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410990
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov rdi, rcx
movsxd r12, edx
mov r13, r8
call sym.strlen
mov rsi, rax
lea ebx, [rax + 0xf]
lea eax, [rax + 0x52]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.00410b50
sub rsp, rax
movsxd r14, esi
movabs rax, 0x656d68732d636367
lea r15, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov r8, r14
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov eax, 0x326d
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
movsxd rbx, ebx
mov byte [rsp + 0x2e], 0x2d
call sym.memcpy
lea rax, [r15 + r14 + 0x10]
lea r14d, [rsi + 0x50]
movabs rdx, 0x6161616161616161
xor ecx, ecx
mov r8, r15
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rdx
mov qword [rax + 0x30], rdx
mov qword [rax + 0x38], rdx
movsxd rax, r14d
xor edx, edx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + rbx + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + rbx + 0x20], 0x2d
mov rdi, rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x410a79
int3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x410b18
mov rcx, r12
call sym.malloc
lea r9d, [rsi + 0x10]
mov rbx, rax
mov r10d, 0x40
bt rbx, r10
jae 0x410ab4
mov r11d, r14d
sub r11d, r10d
movsxd r11, r11d
mov byte [r15 + r11], 0x41
sub r10d, 1
jne 0x410aa0
mov dword [rbp - 0x54], r9d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
mov r9d, dword [rbp - 0x54]
je 0x410b15
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call dbg.get_ptr_from_atom
cmp rax, rbx
mov rsi, rax
je 0x410b30
mov rcx, rbx
call sym.free
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
lea rsp, [rbp - 0x48]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
int3
lea r9d, [rsi + 0x10]
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call dbg.get_ptr_from_atom
mov rsi, rax
jmp 0x410aef
xor edx, edx
mov r8, r12
mov rcx, rbx
call sym.memset
test r13, r13
je 0x410aef
mov rcx, rbx
call r13
jmp 0x410aef
Function at 0x416a30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rax, rcx
movzx ecx, word [rcx + 0xa]
and cx, 0x7fff
cmp cx, 0x7fff
je 0x416ac3
movzx ecx, word [rdx + 0xa]
and cx, 0x7fff
cmp cx, 0x7fff
je 0x416af2
lea rsi, [rsp + 0x20]
lea rdi, [rsp + 0x40]
mov rcx, rax
mov rbx, rdx
mov rdx, rsi
call dbg.__emovi
mov rdx, rdi
mov rcx, rbx
call dbg.__emovi
movzx r8d, word [rsp + 0x20]
xor eax, eax
lea rcx, [rsi + 2]
cmp r8w, word [rsp + 0x40]
lea rdx, [rdi + 2]
je 0x416b10
cmp word [rcx + rax], 0
jne 0x416b50
cmp word [rdx + rax], 0
jne 0x416b50
add rax, 2
cmp rax, 0xe
jne 0x416a99
xor al, al
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
lea r8, [rax + 0xa]
mov rcx, rax
add rcx, 2
cmp word [rcx - 2], 0
jne 0x416b65
cmp rcx, r8
jne 0x416aca
movzx ecx, word [rdx + 0xa]
and cx, 0x7fff
cmp cx, 0x7fff
jne 0x416a5e
lea r8, [rdx + 0xa]
mov rcx, rdx
add rcx, 2
cmp word [rcx - 2], 0
jne 0x416b65
cmp rcx, r8
jne 0x416af9
jmp 0x416a5e
cmp r8w, 1
sbb eax, eax
xor ecx, ecx
add rsi, 2
and eax, 2
sub eax, 1
movzx edx, word [rsi + rcx]
add rcx, 2
movzx r8d, word [rdi + rcx]
cmp dx, r8w
jne 0x416b72
cmp rcx, 0xe
jne 0x416b23
xor eax, eax
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
cmp r8w, 1
sbb eax, eax
and eax, 2
sub eax, 1
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
mov eax, 0xfffffffe
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
cmp r8w, dx
setae dl
movzx edx, dl
mov ecx, edx
neg ecx
xor eax, ecx
add eax, edx
jmp 0x416abb

Function at 0x41b760
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x00487548]
test rbx, rbx
je 0x41b790
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [0x00487548]
test rax, rax
je 0x41b7b4
cmp dword [rax], 0xffffffff
je 0x41b7d5
add rsp, 0x20
pop rbx
ret
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call sym.__shmem_winpthreads_grab
mov rbx, rax
mov qword [0x00487548], rax
jmp 0x41b771
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call sym.__shmem_winpthreads_grab
mov qword [0x00487548], rax
jmp 0x41b785
call sym.abort
nop
nop dword [rax + rax]
Function at 0x41bc70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rcx, qword [0x00487550]
test rcx, rcx
je 0x41bdb0
call sym._pthread_once_raw.constprop.5
mov rax, qword [0x00487548]
test rax, rax
je 0x41bdd3
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x41bcb3
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.pop_pthread_mem
test rax, rax
mov rbx, rax
je 0x41be1b
cmp qword [sym.__dyn_tls_pthread], 0
je 0x41be1b
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x68], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], 0xffffffffffffffff
mov qword [rbx + 0x60], 0xffffffffffffffff
mov dword [rbx + 0xb0], 0
mov qword [rbx + 0x28], 0
call rsi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rsi
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbx + 0x28]
mov r8, rbp
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x41be22
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xb8], eax
movzx eax, byte [rbx + 0x40]
mov dword [rbx + 0xb4], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [0x00487548]
test rax, rax
je 0x41bdf7
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41be22
mov rax, rbx
jmp 0x41bcaa
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call sym.__shmem_winpthreads_grab
mov rcx, rax
mov qword [0x00487550], rax
jmp 0x41bc88
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call sym.__shmem_winpthreads_grab
mov qword [0x00487548], rax
jmp 0x41bc9d
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call sym.__shmem_winpthreads_grab
mov qword [0x00487548], rax
jmp 0x41bd98
xor eax, eax
jmp 0x41bcaa
call sym.abort
nop
nop dword [rax + rax]

Function at 0x41be30
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str._pthread_key_dest_shmem
xor r8d, r8d
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x41be50
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str._pthread_cancelling_shmem
xor r8d, r8d
mov edx, 4
jmp sym.__shmem_winpthreads_grab

Function at 0x41be70
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str._pthread_concur_shmem
xor r8d, r8d
mov edx, 4
jmp sym.__shmem_winpthreads_grab

Function at 0x41be90
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
jmp sym.__shmem_winpthreads_grab

Function at 0x41beb0
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
lea rcx, str._pthread_tls_shmem
mov edx, 4
jmp sym.__shmem_winpthreads_grab
Function at 0x41bed0
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init__pthread_key_lock_shmem]
lea rcx, str._pthread_key_lock_shmem
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x41bef0
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str._pthread_key_max_shmem
xor r8d, r8d
mov edx, 4
jmp sym.__shmem_winpthreads_grab

Function at 0x41bf10
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str._pthread_key_sch_shmem
xor r8d, r8d
mov edx, 4
jmp sym.__shmem_winpthreads_grab

Function at 0x41bf30
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.pthr_root_shmem
xor r8d, r8d
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x41bf50
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.pthr_last_shmem
xor r8d, r8d
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x41bf70
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_mtx_pthr_locked_shmem]
lea rcx, str.mtx_pthr_locked_shmem
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x41bf90
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.idList_shmem
xor r8d, r8d
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x41bfb0
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.idListCnt_shmem
xor r8d, r8d
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x41bfd0
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.idListMax_shmem
xor r8d, r8d
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x41bff0
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.idListNextId_shmem
xor r8d, r8d
mov edx, 8
jmp sym.__shmem_winpthreads_grab
Function at 0x41c290
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
cmp edx, 3
je 0x41c2b0
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret
mov rax, qword [0x00487548]
test rax, rax
je 0x41c410
mov ecx, dword [rax]
cmp ecx, 0xffffffff
je 0x41c29b
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x41c29b
test byte [rax + 0x40], 0x30
je 0x41c361
mov rcx, qword [rax + 0x1c8]
test rcx, rcx
jne 0x41c400
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x41c31c
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x41c30c
call rsi
mov qword [rbx + 0x30], 0
mov qword [rbx + 0x28], 0
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
cmp qword [rbx + 0x1c0], 0
mov qword [rbx + 0x60], 0xffffffffffffffff
je 0x41c455
mov rax, qword [0x00487548]
test rax, rax
je 0x41c431
mov ecx, dword [rax]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret
mov eax, dword [rax + 0xb4]
mov rcx, qword [rbx + 0x30]
test eax, eax
jne 0x41c3c0
test rcx, rcx
je 0x41c37a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x1c8]
mov qword [rbx + 0x30], 0
mov dword [rbx + 0xb4], 1
test rcx, rcx
jne 0x41c3f0
test byte [rbx + 0x44], 4
je 0x41c3d3
mov rcx, qword [rbx + 0x28]
mov dword [rbx], 0xdeadbeef
test rcx, rcx
je 0x41c314
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41c314
test rcx, rcx
je 0x41c3cb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x30], 0
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
mov qword [rbx + 0x60], 0xffffffffffffffff
jmp 0x41c29b
call sym._pthread_cleanup_dest.part.3
jmp 0x41c398
call sym._pthread_cleanup_dest.part.3
jmp 0x41c2ef
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
lea rcx, str._pthread_tls_shmem
mov dl, 4
call sym.__shmem_winpthreads_grab
mov qword [0x00487548], rax
jmp 0x41c2c0
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call sym.__shmem_winpthreads_grab
mov qword [0x00487548], rax
jmp 0x41c34b
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x41c33b
Function at 0x41c860
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.once_obj_shmem
xor r8d, r8d
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x41c880
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_once_global_shmem]
lea rcx, str.once_global_shmem
mov edx, 8
jmp sym.__shmem_winpthreads_grab
Function at 0x41da50
Capabilities:
Hijack thread execution

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4f8
mov rsi, rcx
call sym.__pth_gpointer_locked
test rax, rax
mov rbx, rax
je 0x41da79
mov rcx, qword [rax + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x41da90
mov eax, 3
add rsp, 0x4f8
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdi, [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x41da79
lea rbp, [rbx + 0x38]
mov rcx, rbp
call sym.pthread_mutex_lock
call sym.__pthread_self_lite
test rax, rax
je 0x41dc35
mov rax, qword [rax + 0x1c8]
cmp rsi, rax
je 0x41db33
mov eax, dword [rbx + 0x44]
and eax, 3
cmp eax, 3
movzx eax, byte [rbx + 0x40]
je 0x41db90
test al, 3
jne 0x41db1a
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
mov rax, qword [0x00487560]
test rax, rax
je 0x41dc3c
lock add dword [rax], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x41db0b
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbp
call sym.pthread_mutex_unlock
xor eax, eax
jmp 0x41da7e
mov rcx, rbp
call sym.pthread_mutex_unlock
test byte [rbx + 0x40], 0xc
jne 0x41da79
xor eax, eax
jmp 0x41da7e
movzx eax, byte [rbx + 0x40]
test al, 3
jne 0x41db1a
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
mov rax, qword [0x00487560]
test rax, rax
je 0x41dc5c
lock add dword [rax], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x41db67
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [rbx + 0x44]
and eax, 3
cmp eax, 3
jne 0x41db0b
movzx eax, byte [rbx + 0x40]
and dword [rbx + 0x44], 0xfffffffe
mov rcx, rbp
and eax, 0xfffffff3
or eax, 4
mov byte [rbx + 0x40], al
call sym.pthread_mutex_unlock
call sym._pthread_invoke_cancel
test al, 0xc
jne 0x41db1a
test al, 0xf
jne 0x41da79
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 0x41db0b
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
mov rax, qword [0x00487560]
test rax, rax
je 0x41dc7c
lock add dword [rax], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x41dc1e
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 0x41db0b
xor eax, eax
jmp 0x41dac3
lea rcx, str._pthread_cancelling_shmem
xor r8d, r8d
mov edx, 4
call sym.__shmem_winpthreads_grab
mov qword [0x00487560], rax
jmp 0x41daf8
lea rcx, str._pthread_cancelling_shmem
xor r8d, r8d
mov edx, 4
call sym.__shmem_winpthreads_grab
mov qword [0x00487560], rax
jmp 0x41db54
lea rcx, str._pthread_cancelling_shmem
xor r8d, r8d
mov edx, 4
call sym.__shmem_winpthreads_grab
mov qword [0x00487560], rax
jmp 0x41dc0b
Function at 0x41dca0
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x00487518]
mov edi, edx
test rcx, rcx
je 0x41dd80
call sym.pthread_mutex_lock
mov rcx, rbx
call sym.__pthread_get_pointer
test rax, rax
je 0x41dcda
mov rsi, qword [rax + 0x1c8]
cmp rsi, rbx
je 0x41dd00
mov rcx, qword [0x00487518]
test rcx, rcx
je 0x41dd50
mov ebx, 3
call sym.pthread_mutex_unlock
mov eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
test byte [rax + 0x40], 0xc
jne 0x41dcda
mov ebx, dword [rax + 0xb4]
test ebx, ebx
jne 0x41dcda
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x41dcda
mov rcx, qword [0x00487518]
test rcx, rcx
je 0x41dda7
call sym.pthread_mutex_unlock
test edi, edi
je 0x41dcf0
sub edi, 2
mov ebx, 0x16
cmp edi, 0x15
ja 0x41dcf0
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.pthread_cancel
lea rcx, str.mtx_pthr_locked_shmem
lea r8, [sym.__shmem_winpthreads_init_mtx_pthr_locked_shmem]
mov edx, 8
call sym.__shmem_winpthreads_grab
mov rcx, rax
mov qword [0x00487518], rax
jmp 0x41dce6
lea rcx, str.mtx_pthr_locked_shmem
lea r8, [sym.__shmem_winpthreads_init_mtx_pthr_locked_shmem]
mov edx, 8
call sym.__shmem_winpthreads_grab
mov rcx, rax
mov qword [0x00487518], rax
jmp 0x41dcbc
lea rcx, str.mtx_pthr_locked_shmem
lea r8, [sym.__shmem_winpthreads_init_mtx_pthr_locked_shmem]
mov edx, 8
call sym.__shmem_winpthreads_grab
mov rcx, rax
mov qword [0x00487518], rax
jmp 0x41dd2a
Function at 0x41e020
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r14, rcx
mov r12, rdx
mov rsi, r8
mov rdi, r9
call sym.pop_pthread_mem
test rax, rax
mov rbx, rax
je 0x41e1d1
test r14, r14
je 0x41e05a
mov rax, qword [rax + 0x1c8]
mov qword [r14], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rbx + 8], rdi
mov rdi, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rsi
mov esi, 1
mov dword [rbx + 0xb4], 0
mov dword [rbx + 0x44], 1
mov qword [rbx + 0x28], 0xffffffffffffffff
mov rbp, r13
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call rdi
test rax, rax
mov qword [rbx + 0x30], rax
jne 0x41e280
cmp esi, 1
jne 0x41e0c0
xor ecx, ecx
call r13
add esi, 1
jmp 0x41e091
mov ecx, 0x14
call rbp
cmp esi, 5
jne 0x41e0b7
mov rax, qword [rbx + 0x30]
mov qword [rbx + 0x38], 0xffffffffffffffff
mov qword [rbx + 0x60], 0xffffffffffffffff
mov dword [rbx], 0xbab1f00d
mov dword [rbx + 0xb8], 0
mov dword [rbx + 0xb0], 0
test rax, rax
je 0x41e1b7
test r12, r12
je 0x41e2c0
mov eax, dword [r12]
mov rsi, qword [r12 + 0x10]
test al, 8
mov dword [rbx + 0x44], eax
jne 0x41e250
mov eax, dword [r12 + 0x18]
mov edx, esi
mov dword [rbx + 0xb8], eax
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9, rbx
lea r8, [sym.pthread_create_wrapper]
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rsi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x41e187
mov edx, dword [rbx + 0xb8]
cmp edx, 0xfffffff2
jl 0x41e1e5
cmp edx, 0xffffffff
jl 0x41e270
cmp edx, 0xe
jg 0x41e2b0
cmp edx, 2
mov eax, 2
cmovge edx, eax
jmp 0x41e1ea
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x41e196
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
mov qword [rbx + 0x60], 0xffffffffffffffff
mov qword [rbx + 0x30], 0
mov qword [rbx + 0x28], 0
test r14, r14
je 0x41e1c3
mov qword [r14], 0
cmp qword [rbx + 0x1c0], 0
je 0x41e2c7
mov eax, 0xb
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov edx, 0xfffffff1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [rbx + 0x44], 4
je 0x41e240
mov rcx, rsi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov qword [rbx + 0x28], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x41e21d
call sym.__pthread_self_lite
mov eax, dword [rax + 0xb8]
mov edx, esi
mov dword [rbx + 0xb8], eax
jmp 0x41e12d
mov edx, 0xfffffffe
jmp 0x41e1ea
mov qword [rbx + 0x38], 0xffffffffffffffff
mov qword [rbx + 0x60], 0xffffffffffffffff
mov dword [rbx], 0xbab1f00d
mov dword [rbx + 0xb8], 0
mov dword [rbx + 0xb0], 0
jmp 0x41e103
mov edx, 0xf
jmp 0x41e1ea
xor edx, edx
jmp 0x41e12d
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x41e1d1
Function at 0x41e800
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.dummy_concurrency_level_shmem
xor r8d, r8d
mov edx, 4
jmp sym.__shmem_winpthreads_grab

Function at 0x41ebe0
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_mutex_global_shmem]
lea rcx, str.mutex_global_shmem
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x41ec00
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_mutex_global_static_shmem]
lea rcx, str.mutex_global_static_shmem
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x41ed00
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_mxattr_recursive_shmem]
lea rcx, str.mxattr_recursive_shmem
mov edx, 4
jmp sym.__shmem_winpthreads_grab

Function at 0x41ed20
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_mxattr_errorcheck_shmem]
lea rcx, str.mxattr_errorcheck_shmem
mov edx, 4
jmp sym.__shmem_winpthreads_grab

Function at 0x41f950
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_cond_locked_shmem_cond]
lea rcx, str.cond_locked_shmem_cond
mov edx, 8
jmp sym.__shmem_winpthreads_grab
Function at 0x420940
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x80]
mov rdi, rcx
movsxd r12, edx
mov r13, r8
call sym.strlen
mov r14, rax
lea ebx, [rax + 0xf]
lea eax, [rax + 0x51]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.00410b50
sub rsp, rax
movsxd r15, r14d
movabs rax, 0x656d68732d636367
lea rsi, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov r8, r15
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov eax, 0x326d
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
movsxd rbx, ebx
mov byte [rsp + 0x2e], 0x2d
call sym.memcpy
lea rax, [rsi + r15 + 0x10]
lea r15d, [r14 + 0x50]
movabs rdx, 0x6161616161616161
xor ecx, ecx
mov r8, rsi
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rdx
mov qword [rax + 0x30], rdx
mov qword [rax + 0x38], rdx
movsxd rax, r15d
xor edx, edx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + rbx + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + rbx + 0x20], 0x2d
mov rdi, rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x420a29
int3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x420ac2
mov rcx, r12
add r14d, 0x10
call sym.malloc
mov r10d, 0x40
mov rbx, rax
bt rbx, r10
jae 0x420a64
mov r11d, r15d
sub r11d, r10d
movsxd r11, r11d
mov byte [rsi + r11], 0x41
sub r10d, 1
jne 0x420a50
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x420abf
mov rdx, rsi
movzx ecx, ax
mov r9d, r14d
mov r8d, r15d
call sym.get_ptr_from_atom_1
cmp rax, rbx
mov rsi, rax
je 0x420ad9
mov rcx, rbx
call sym.free
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
lea rsp, [rbp - 0x58]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
int3
lea r9d, [r14 + 0x10]
mov rdx, rsi
movzx ecx, ax
mov r8d, r15d
call sym.get_ptr_from_atom_1
mov rsi, rax
jmp 0x420a99
xor edx, edx
mov r8, r12
mov rcx, rbx
call sym.memset
test r13, r13
je 0x420a99
mov rcx, rbx
call r13
jmp 0x420a99

Function at 0x420c30
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.global_lock_spinlock
xor r8d, r8d
mov edx, 4
jmp sym.__shmem_winpthreads_grab

Function at 0x421420
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_rwl_global_shmem]
lea rcx, str.rwl_global_shmem
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x4214f0
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_cond_locked_shmem_rwlock]
lea rcx, str.cond_locked_shmem_rwlock
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x422050
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init_init]
lea rcx, str.init
mov edx, 8
jmp dbg.__shmem_grab

Function at 0x422070
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.eh_globals
xor r8d, r8d
mov edx, 0x10
jmp dbg.__shmem_grab