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

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rcx, qword [0x0040f9d0]
test rcx, rcx
je 0x404038
cmp dword [rcx], 1
je 0x403f03
call sym._pthread_once_raw.part.0.constprop.0
mov rax, qword [0x0040f9c8]
test rax, rax
je 0x404060
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x403f30
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
call sym.pop_pthread_mem
cmp qword [sym.__dyn_tls_pthread], 0
mov rbx, rax
je 0x403f23
test rax, rax
je 0x403f23
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call sym.replace_spin_keys.constprop.0
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rdi
mov dword [rsp + 0x30], 2
mov r8, rsi
mov rdx, r12
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.cold
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
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
mov rax, qword [0x0040f9c8]
test rax, rax
je 0x404088
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je sym.__pthread_self_lite.cold
mov r12, rbx
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call sym.__shmem_winpthreads_grab
mov qword [0x0040f9d0], rax
mov rcx, rax
jmp 0x403ef9
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call sym.__shmem_winpthreads_grab
mov qword [0x0040f9c8], rax
jmp 0x403f13
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call sym.__shmem_winpthreads_grab
mov qword [0x0040f9c8], rax
jmp 0x40400e

Function at 0x4040c0
Capabilities:
Check mutex on windows

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

Function at 0x4040e0
Capabilities:
Check mutex on windows

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

Function at 0x404100
Capabilities:
Check mutex on windows

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

Function at 0x404120
Capabilities:
Check mutex on windows

Disassembly:
xor r8d, r8d
mov edx, 4
lea rcx, str._pthread_tls_once_shmem
jmp sym.__shmem_winpthreads_grab
Function at 0x404140
Capabilities:
Check mutex on windows

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

Function at 0x404160
Capabilities:
Check mutex on windows

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

Function at 0x404180
Capabilities:
Check mutex on windows

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

Function at 0x4041a0
Capabilities:
Check mutex on windows

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

Function at 0x4041c0
Capabilities:
Check mutex on windows

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

Function at 0x4041e0
Capabilities:
Check mutex on windows

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

Function at 0x404200
Capabilities:
Check mutex on windows

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

Function at 0x404220
Capabilities:
Check mutex on windows

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

Function at 0x404240
Capabilities:
Check mutex on windows

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

Function at 0x404260
Capabilities:
Check mutex on windows

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

Function at 0x404280
Capabilities:
Check mutex on windows

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

Disassembly:
push r14
push r13
push r12
sub rsp, 0x20
test edx, edx
jne 0x404580
test r8, r8
je 0x404638
mov eax, 1
add rsp, 0x20
pop r12
pop r13
pop r14
ret
cmp edx, 1
je 0x404660
cmp edx, 3
jne 0x404567
mov rax, qword [0x0040f9c8]
test rax, rax
je 0x404778
mov ecx, dword [rax]
cmp ecx, 0xffffffff
je 0x404567
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x404567
test byte [rax + 0x40], 0x30
je 0x404690
mov rcx, qword [rax + 0x1d8]
test rcx, rcx
je 0x4045ce
call sym._pthread_cleanup_dest.part.0
mov rcx, qword [r12 + 0x28]
test rcx, rcx
je 0x404601
mov r13, qword [sym.imp.KERNEL32.dll_CloseHandle]
call r13
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x4045ef
call r13
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
lea rcx, [r12 + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [r12 + 0x68]
call sym.replace_spin_keys.constprop.0
cmp qword [r12 + 0x1d0], 0
jne 0x40472a
mov rcx, r12
call sym.push_pthread_mem.part.0
jmp 0x40472a
mov rcx, qword [0x0040f9f8]
test rcx, rcx
je 0x404567
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov qword [0x0040f9f8], 0
jmp 0x404567
lea rdx, [sym.SetThreadName_VEH]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x0040f9f8], rax
mov eax, 1
add rsp, 0x20
pop r12
pop r13
pop r14
ret
mov rcx, qword [rax + 0x30]
mov eax, dword [rax + 0xbc]
test eax, eax
jne 0x404748
test rcx, rcx
je 0x4046ad
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r12 + 0x1d8]
mov qword [r12 + 0x30], 0
mov dword [r12 + 0xbc], 1
test rcx, rcx
je 0x4046d4
call sym._pthread_cleanup_dest.part.0
lea r14, [r12 + 0x38]
lea r13, [r12 + 0x68]
test byte [r12 + 0x44], 4
je 0x4047a0
mov rcx, qword [r12 + 0x28]
mov dword [r12], 0xdeadbeef
test rcx, rcx
je 0x404702
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r12 + 0x28], 0
mov rcx, r14
call sym.pthread_mutex_destroy
mov rcx, r13
call sym.replace_spin_keys.constprop.0
cmp qword [r12 + 0x1d0], 0
je 0x404624
mov rax, qword [0x0040f9c8]
test rax, rax
je 0x4047b5
mov ecx, dword [rax]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x404567
test rcx, rcx
je 0x404753
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r12 + 0x30], 0
lea rcx, [r12 + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [r12 + 0x68]
call sym.replace_spin_keys.constprop.0
jmp 0x404567
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call sym.__shmem_winpthreads_grab
mov qword [0x0040f9c8], rax
jmp 0x40459e
mov rcx, r14
call sym.pthread_mutex_destroy
mov rcx, r13
call sym.replace_spin_keys.constprop.0
jmp 0x404567
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call sym.__shmem_winpthreads_grab
mov qword [0x0040f9c8], rax
jmp 0x404736
Function at 0x404bd0
Capabilities:
Check mutex on windows

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

Function at 0x404bf0
Capabilities:
Check mutex on windows

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

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x4f8
mov rsi, rcx
call sym.__pth_gpointer_locked
mov rbx, rax
test rax, rax
je 0x405fac
mov rcx, qword [rax + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x405fac
lea r12, [rsp + 0x20]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x405fac
lea r13, [rbx + 0x38]
mov rcx, r13
call sym.pthread_mutex_lock
call sym.__pthread_self_lite
test rax, rax
je 0x406040
mov rdx, qword [rax + 0x1d8]
movzx eax, byte [rbx + 0x40]
cmp rsi, rdx
je 0x405fc0
mov edx, dword [rbx + 0x44]
and edx, 3
cmp edx, 3
je 0x405fa0
test al, 3
jne 0x406020
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
mov rax, qword [0x0040f9e0]
test rax, rax
je 0x4060f0
lock add dword [rax], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x405f82
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, r13
call sym.pthread_mutex_unlock
xor eax, eax
add rsp, 0x4f8
pop rbx
pop rsi
pop r12
pop r13
ret
test al, 0xc
jne 0x406020
test al, 0xf
je 0x406050
mov eax, 3
add rsp, 0x4f8
pop rbx
pop rsi
pop r12
pop r13
ret
test al, 3
jne 0x406020
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
mov rax, qword [0x0040f9e0]
test rax, rax
je 0x406110
lock add dword [rax], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x405ff0
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [rbx + 0x44]
mov edx, eax
and edx, 3
cmp edx, 3
jne 0x405f82
and eax, 0xfffffffe
mov rcx, r13
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 dword [rax]
mov rcx, r13
call sym.pthread_mutex_unlock
test byte [rbx + 0x40], 0xc
jne 0x405fac
xor eax, eax
jmp 0x405f8c
xor edx, edx
jmp 0x405f3a
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 0x405f82
mov rcx, qword [rbx + 0x28]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
lea rax, [sym._pthread_invoke_cancel]
mov rcx, qword [rbx + 0x28]
mov rdx, r12
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 [0x0040f9e0]
test rax, rax
je 0x406130
lock add dword [rax], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x4060d2
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, r13
call sym.pthread_mutex_unlock
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x405f82
xor r8d, r8d
mov edx, 4
lea rcx, str._pthread_cancelling_shmem
call sym.__shmem_winpthreads_grab
mov qword [0x0040f9e0], rax
jmp 0x405f6f
xor r8d, r8d
mov edx, 4
lea rcx, str._pthread_cancelling_shmem
call sym.__shmem_winpthreads_grab
mov qword [0x0040f9e0], rax
jmp 0x405fdd
xor r8d, r8d
mov edx, 4
lea rcx, str._pthread_cancelling_shmem
call sym.__shmem_winpthreads_grab
mov qword [0x0040f9e0], rax
jmp 0x4060bf
Function at 0x406150
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
mov rcx, qword [0x0040f998]
mov ebx, edx
test rcx, rcx
je 0x406208
call sym.pthread_mutex_lock
mov rcx, r12
call sym.__pthread_get_pointer
mov rcx, qword [0x0040f998]
test rax, rax
je 0x4061e0
cmp qword [rax + 0x1d8], r12
jne 0x4061e0
test byte [rax + 0x40], 0xc
jne 0x4061e0
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x4061e0
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x4061e0
test rcx, rcx
je 0x406260
call sym.pthread_mutex_unlock
test ebx, ebx
je 0x406200
lea edx, [rbx - 2]
cmp edx, 0x15
ja 0x406258
mov rcx, r12
add rsp, 0x28
pop rbx
pop r12
jmp sym.pthread_cancel
test rcx, rcx
je 0x406230
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x28
pop rbx
pop r12
ret
xor eax, eax
jmp 0x4061ef
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 qword [0x0040f998], rax
mov rcx, rax
jmp 0x40616c
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 qword [0x0040f998], rax
mov rcx, rax
jmp 0x4061e5
mov eax, 0x16
jmp 0x4061ef
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 qword [0x0040f998], rax
mov rcx, rax
jmp 0x4061b5
Function at 0x406500
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
mov rbp, r9
call sym.pop_pthread_mem
mov r12, rax
test rax, rax
je 0x40673b
test rdi, rdi
je 0x40653a
mov rax, qword [rax + 0x1d8]
mov qword [rdi], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [r12 + 8], rbp
mov dword [r12 + 0x44], 1
mov rbp, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [r12 + 0xbc], 0
mov r14, r13
mov qword [r12 + 0x28], 0xffffffffffffffff
mov qword [r12 + 0x10], rbx
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call rbp
mov qword [r12 + 0x30], rax
test rax, rax
jne 0x4065b0
test ebx, ebx
je 0x4065a8
mov ecx, 0x14
call r14
cmp ebx, 4
je 0x4065b0
add ebx, 1
jmp 0x406575
xor ecx, ecx
call r13
jmp 0x40659f
mov qword [r12 + 0x38], 0xffffffffffffffff
lea r14, [r12 + 0x68]
mov rcx, r14
call sym.replace_spin_keys.constprop.0
cmp qword [r12 + 0x30], 0
mov dword [r12], 0xbab1f00d
mov dword [r12 + 0xc0], 0
mov dword [r12 + 0xb8], 0
je 0x40671c
xor edx, edx
test rsi, rsi
je 0x406616
mov eax, dword [rsi]
mov edx, dword [rsi + 0x10]
mov dword [r12 + 0x44], eax
test al, 8
jne 0x406750
mov eax, dword [rsi + 0x18]
mov dword [r12 + 0xc0], eax
lea r8, [sym.pthread_create_wrapper]
mov r9, r12
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov r13, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x4066e8
mov eax, dword [r12 + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x4066c0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [r12 + 0x44], 4
jne 0x4066a0
mov qword [r12 + 0x28], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov qword [r12 + 0x28], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406686
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x40665c
mov edx, 0xf
cmp eax, 0xe
jg 0x40665c
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x40665c
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x4066f8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r12 + 0x38]
call sym.pthread_mutex_destroy
mov rcx, r14
call sym.replace_spin_keys.constprop.0
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
test rdi, rdi
je 0x406728
mov qword [rdi], 0
cmp qword [r12 + 0x1d0], 0
jne 0x40673b
mov rcx, r12
call sym.push_pthread_mem.part.0
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov dword [rsp + 0x3c], edx
call sym.__pthread_self_lite
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [r12 + 0xc0], eax
jmp 0x406616

Function at 0x406d80
Capabilities:
Check mutex on windows

Disassembly:
xor r8d, r8d
mov edx, 4
lea rcx, str.dummy_concurrency_level_shmem
jmp sym.__shmem_winpthreads_grab
Function at 0x4070a0
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 rsi, r8
mov r12, rcx
movsxd rbx, edx
call sym.strlen
mov r8, rax
lea eax, [rax + 0xf]
mov dword [rbp - 0x54], eax
lea eax, [r8 + 0x51]
lea edi, [r8 + 0x10]
cdqe
lea r15d, [r8 + 0x50]
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.00402bc0
movabs rcx, 0x656d68732d636367
sub rsp, rax
movsxd r13, r8d
mov rdx, r12
mov eax, 0x326d
mov r8, r13
mov qword [rsp + 0x20], rcx
lea r14, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
mov byte [rsp + 0x2e], 0x2d
call sym.memcpy
lea rax, [r14 + r13 + 0x10]
movsxd r12, dword [rbp - 0x54]
mov r8, r14
movabs rdx, 0x6161616161616161
movabs rcx, 0x6161616161616161
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rcx
mov qword [rax + 0x30], rdx
xor edx, edx
mov qword [rax + 0x38], rcx
movsxd rax, r15d
xor ecx, ecx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + r12 + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + r12 + 0x20], 0x2d
mov edx, 0xffffffff
mov r13, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40719e
int3
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
je 0x4071f0
mov rdx, r14
movzx ecx, ax
mov r9d, edi
mov r8d, r15d
call sym.get_ptr_from_atom
mov r14, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r14
lea rsp, [rbp - 0x48]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rbx
call sym.malloc
mov r12, rax
mov eax, 0x40
bt r12, rax
jae 0x407213
mov edx, r15d
sub edx, eax
movsxd rdx, edx
mov byte [r14 + rdx], 0x41
sub eax, 1
jne 0x407200
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
jne 0x407227
int3
mov rdx, r14
movzx ecx, ax
mov r9d, edi
mov r8d, r15d
call sym.get_ptr_from_atom
mov r14, rax
cmp r12, rax
je 0x40724d
mov rcx, r12
call sym.free
jmp 0x4071c0
xor edx, edx
mov r8, rbx
mov rcx, rax
call sym.memset
test rsi, rsi
je 0x4071c0
mov rcx, r14
call rsi
jmp 0x4071c0

Function at 0x408050
Capabilities:
Check mutex on windows

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

Function at 0x408120
Capabilities:
Check mutex on windows

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

Function at 0x408ed0
Capabilities:
Check mutex on windows

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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003a03
cmp byte [rcx + 0x71], 0
je 0x140003a03
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400039ff
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400039c4
sub eax, 1
je 0x1400039c8
cmp eax, 2
jne 0x1400039ff
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004bc0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400039f6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400039ff
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400039ac
xor al, al
jmp 0x1400039ac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004bc0
add rsp, 0x60
pop rbx
ret
Function at 0x140003e30
Capabilities:
Link function at runtime on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbp, rcx
xor edx, edx
lea rcx, [rsp + 0x28]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::_Lockit::constructor_int____ptr64]
nop
mov rax, qword [0x14000bce0]
mov qword [rsp + 0x20], rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::locale::id_std::codecvt_char__char__struct__Mbstatet_::id]
call qword [sym.imp.MSVCP140.dll_public:_unsigned_long_long_unsigned___int64____cdecl_std::locale::id::operator_unsigned_long_long_unsigned___int64__void____ptr64]
mov rsi, rax
mov rdx, qword [rbp + 8]
lea rdi, [rax*8]
cmp rax, qword [rdx + 0x18]
jae 0x140003ea1
mov rcx, qword [rdx + 0x10]
mov rbx, qword [rdi + rcx]
test rbx, rbx
jne 0x140003f07
jmp 0x140003ea3
xor ebx, ebx
cmp byte [rdx + 0x24], 0
je 0x140003ebd
call qword [sym.imp.MSVCP140.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Getgloballocale_void_]
cmp rsi, qword [rax + 0x18]
jae 0x140003ec2
mov rax, qword [rax + 0x10]
mov rbx, qword [rdi + rax]
test rbx, rbx
jne 0x140003f07
mov rbx, qword [rsp + 0x20]
test rbx, rbx
jne 0x140003f07
mov rdx, rbp
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_public:_static_unsigned_long_long_unsigned___int64____cdecl_std::codecvt_char__char__struct__Mbstatet_::_Getcat_class_std::locale::facet_const____ptr64____ptr64__class_std::locale_const____ptr64_]
cmp rax, 0xffffffffffffffff
je 0x140003f37
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x30], rbx
mov rcx, rbx
call fcn.140004b40
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rbx, qword [rsp + 0x20]
mov qword [0x14000bce0], rbx
lea rcx, [rsp + 0x28]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::_Lockit::destructor_void____ptr64]
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140004bc0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
call fcn.140001850
nop
int3

Function at 0x1400056b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400056fa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400056fa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400056fa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400056fa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400056fa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400056fc
xor al, al
add rsp, 0x28
ret

Function at 0x14000f000
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x38
and rsp, 0xfffffffffffffff0
movabs rcx, 0x14000f062
movabs rax, sym.imp.KERNEL32.dll_LoadLibraryA
call qword [rax]
movabs rdx, 0x14000f06b
mov rcx, rax
movabs rax, sym.imp.MSVCP140.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Getgloballocale_void_
call qword [rax]
xor ecx, ecx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov r9, rcx
movabs r8, 0x14000f078
mov rdx, rcx
call rax
leave
jmp fcn.1400051c0