joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017c9
Capabilities:
Persist via run registry key

Disassembly:
push rbp
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x10], rcx
mov qword [rbp - 8], rdx
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x60]
mov rcx, rax
call method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.basic_string_std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____const_
lea rax, [rbp - 0x50]
mov rdx, qword [rbp - 0x10]
mov rcx, rax
call method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.basic_string_std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____const_
lea rax, [rbp - 0x31]
mov rcx, rax
call fcn.00448700
lea rdx, [rbp - 0x31]
lea rax, [rbp - 0x40]
mov r8, rdx
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, rax
call method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.basic_string_wchar_t_const__std::allocator_wchar_t__const_
lea rcx, [rbp - 0x60]
lea rdx, [rbp - 0x50]
lea rax, [rbp - 0x40]
mov r9, rcx
mov r8, rdx
mov rdx, rax
mov rcx, 0xffffffff80000001
call sym.WriteToRegedit_HKEY____std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t_____std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t_____std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____
mov ebx, eax
lea rax, [rbp - 0x40]
mov rcx, rax
call fcn.0044a740
lea rax, [rbp - 0x31]
mov rcx, rax
call sym.std::allocator_wchar_t_::allocator__
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.0044a740
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.0044a740
mov eax, ebx
jmp 0x4018c4
add rsp, 0x58
pop rbx
pop rbp
ret

Function at 0x4018cb
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x004ab048]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
nop
add rsp, 0x20
pop rbp
ret

Function at 0x401b1e
Capabilities:
Execute command

Disassembly:
push rbp
push rdi
sub rsp, 0x438
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], rdx
lea rdx, [rbp - 0x50]
mov eax, 0
mov ecx, pe_nt_image_headers64
mov rdi, rdx
rep stosq qword [rdi], rax
mov edx, dword [0x004ab040]
mov rax, qword [rbp + 0x3d0]
mov rcx, qword [rax]
mov r8, qword [rbp + 0x3d8]
lea rax, [rbp - 0x50]
mov dword [rsp + 0x20], edx
mov r9, r8
mov r8, rcx
lea rdx, str.start__s__s__u
mov rcx, rax
call dbg.sprintf(char*, char const*, ::)
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.system
nop
add rsp, 0x438
pop rdi
pop rbp
ret
Function at 0x401b9c
Capabilities:
Print debug messages

Disassembly:
push rbp
push rdi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x40], rcx
mov dword [rbp + 0x48], edx
mov rcx, qword [rbp + 0x40]
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
mov dword [rbp + 0x1c], 0
mov qword [rbp + 8], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call rax
mov r8d, eax
mov edx, 0
mov ecx, 0x1f0fff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x10], rax
lea rdx, [rbp + 8]
mov rax, qword [rbp + 0x10]
mov r8, rdx
mov edx, 0x20
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call rax
test eax, eax
sete al
test al, al
je 0x401c1d
jmp 0x401d2c
mov rax, rbp
mov r8, rax
mov rdx, qword [rbp + 0x40]
mov ecx, 0
mov rax, qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
call rax
test eax, eax
sete al
test al, al
je 0x401c43
jmp 0x401d2c
mov dword [rbp - 0x10], 1
mov rax, qword [rbp]
mov qword [rbp - 0xc], rax
cmp dword [rbp + 0x48], 0
je 0x401c5f
mov eax, 2
jmp 0x401c64
mov eax, 1
mov dword [rbp - 4], eax
mov ecx, 0x10
mov rax, qword [rbp + 8]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, ecx
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call rax
test eax, eax
sete al
test al, al
je 0x401cee
lea rdx, [rbp - 0x50]
mov eax, 0
mov ecx, 8
mov rdi, rdx
rep stosq qword [rdi], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, [rbp - 0x50]
mov r8d, edx
lea rdx, str.AdjustTokenPrivileges_error:__lu_n
mov rcx, rax
call dbg.sprintf(char*, char const*, ::)
lea rax, [rbp - 0x50]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
nop
jmp 0x401d2c
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0x514
sete al
test al, al
je 0x401d15
lea rcx, str.The_token_does_not_have_the_specified_privilege.__n
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
jmp 0x401d2c
mov dword [rbp + 0x1c], 1
lea rcx, str.Set_OK
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
cmp qword [rbp + 0x10], 0
je 0x401d43
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 8]
test rax, rax
je 0x401d5c
mov rax, qword [rbp + 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp + 0x1c]
add rsp, 0xa8
pop rdi
pop rbp
ret
Function at 0x401fcb
Capabilities:
Get hostname

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rdx, [0x00475040]
lea rcx, [0x004ab030]
mov rax, qword [sym.imp.KERNEL32.dll_GetComputerNameA]
call rax
test eax, eax
setne al
test al, al
je 0x401ffa
mov eax, 0
jmp 0x401fff
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x402005
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x80]
lea r9, str.29544E05_024F_4BC1_A272_452DBC8E17A4
mov r8d, 0
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
setne al
test al, al
je 0x402052
mov eax, 0
jmp 0x40212f
lea rdx, [rbp + 0x10]
mov eax, 0
mov ecx, 0x20
mov rdi, rdx
rep stosq qword [rdi], rax
mov rdx, rdi
mov dword [rdx], eax
add rdx, 4
mov qword [rbp + 0x118], 0
lea rdx, [rbp + 0x10]
mov rax, qword [rbp + 0x118]
mov r8d, 0x104
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rdx, [rbp - 0x60]
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x60], 0x70
lea rax, str.runas
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0x10]
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x30], 1
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
sete al
test al, al
je 0x402117
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp + 0x114], eax
cmp dword [rbp + 0x114], 0x4c7
jne 0x402107
mov eax, 0
jmp 0x40212f
cmp dword [rbp + 0x114], 2
jne 0x402117
mov eax, 0
jmp 0x40212f
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov ecx, 0
call sym.exit
add rsp, 0x1a8
pop rdi
pop rbp
ret

Function at 0x402139
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov byte [rbp - 0x10], 0
mov byte [rbp - 0xf], 0
mov byte [rbp - 0xe], 0
mov byte [rbp - 0xd], 0
mov byte [rbp - 0xc], 0
mov byte [rbp - 0xb], 5
lea rax, [rbp - 0x10]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x50], rdx
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
call rax
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
test eax, eax
je 0x4021e9
mov rax, qword [rbp - 0x18]
lea rdx, [rbp - 0x1c]
mov r8, rdx
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_FreeSid]
call rax
mov eax, dword [rbp - 0x1c]
cmp eax, 1
sete al
sub rsp, 0xffffffffffffff80
pop rbp
ret
Function at 0x4101d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x004ab084]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x4102ea
mov rax, qword [0x004ab088]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x41021e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x4102d0
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x410202
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x410322
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x004ab088]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x004ab088]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x410305
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4102c9
sub eax, 0x40
and eax, 0xffffffbf
je 0x4102c9
mov r9, rbp
add r9, qword [0x004ab088]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4102f1
add dword [0x004ab084], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x41022b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x004ab088]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x410f00
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x410f10
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x410f20
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x410f61
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x410f58
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x410f63
add rax, 0x28
cmp rax, r9
jne 0x410f44
xor eax, eax
repz ret

Function at 0x411010
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x00490230]
cmp word [rbx], 0x5a4d
je 0x411030
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x411024
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x411280
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004aba00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004ab9e0]
test rbx, rbx
je 0x4112d4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4112cb
test rsi, rsi
je 0x4112cb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4112b0
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x004aba00]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x411a70
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.004114b0
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 0x411b59
int3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x411bf8
mov rcx, r12
call sym.malloc
lea r9d, [rsi + 0x10]
mov rbx, rax
mov r10d, 0x40
bt rbx, r10
jae 0x411b94
mov r11d, r14d
sub r11d, r10d
movsxd r11, r11d
mov byte [r15 + r11], 0x41
sub r10d, 1
jne 0x411b80
mov dword [rbp - 0x54], r9d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
mov r9d, dword [rbp - 0x54]
je 0x411bf5
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call dbg.get_ptr_from_atom
cmp rax, rbx
mov rsi, rax
je 0x411c10
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 0x411bcf
xor edx, edx
mov r8, r12
mov rcx, rbx
call sym.memset
test r13, r13
je 0x411bcf
mov rcx, rbx
call r13
jmp 0x411bcf
Function at 0x418070
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 0x418103
movzx ecx, word [rdx + 0xa]
and cx, 0x7fff
cmp cx, 0x7fff
je 0x418132
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 0x418150
cmp word [rcx + rax], 0
jne 0x418190
cmp word [rdx + rax], 0
jne 0x418190
add rax, 2
cmp rax, 0xe
jne 0x4180d9
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 0x4181a5
cmp rcx, r8
jne 0x41810a
movzx ecx, word [rdx + 0xa]
and cx, 0x7fff
cmp cx, 0x7fff
jne 0x41809e
lea r8, [rdx + 0xa]
mov rcx, rdx
add rcx, 2
cmp word [rcx - 2], 0
jne 0x4181a5
cmp rcx, r8
jne 0x418139
jmp 0x41809e
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 0x4181b2
cmp rcx, 0xe
jne 0x418163
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 0x4180fb

Function at 0x41ce90
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x004ac548]
test rbx, rbx
je 0x41cec0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [0x004ac548]
test rax, rax
je 0x41cee4
cmp dword [rax], 0xffffffff
je 0x41cf05
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.unk_2605
mov rbx, rax
mov qword [0x004ac548], rax
jmp 0x41cea1
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call sym.unk_2605
mov qword [0x004ac548], rax
jmp 0x41ceb5
call sym.abort
nop
nop dword [rax + rax]
Function at 0x41d3a0
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 [0x004ac550]
test rcx, rcx
je 0x41d4e0
call sym._pthread_once_raw.constprop.5
mov rax, qword [0x004ac548]
test rax, rax
je 0x41d503
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x41d3e3
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.pop_pthread_mem
test rax, rax
mov rbx, rax
je 0x41d54b
cmp qword [sym.__dyn_tls_pthread], 0
je 0x41d54b
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 0x41d552
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 [0x004ac548]
test rax, rax
je 0x41d527
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41d552
mov rax, rbx
jmp 0x41d3da
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call sym.unk_2605
mov rcx, rax
mov qword [0x004ac550], rax
jmp 0x41d3b8
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call sym.unk_2605
mov qword [0x004ac548], rax
jmp 0x41d3cd
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call sym.unk_2605
mov qword [0x004ac548], rax
jmp 0x41d4c8
xor eax, eax
jmp 0x41d3da
call sym.abort
nop
nop dword [rax + rax]

Function at 0x41d560
Capabilities:
Check mutex on windows

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

Function at 0x41d580
Capabilities:
Check mutex on windows

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

Function at 0x41d5a0
Capabilities:
Check mutex on windows

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

Function at 0x41d5c0
Capabilities:
Check mutex on windows

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

Function at 0x41d5e0
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.unk_2605
Function at 0x41d600
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.unk_2605

Function at 0x41d620
Capabilities:
Check mutex on windows

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

Function at 0x41d640
Capabilities:
Check mutex on windows

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

Function at 0x41d660
Capabilities:
Check mutex on windows

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

Function at 0x41d680
Capabilities:
Check mutex on windows

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

Function at 0x41d6a0
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.unk_2605

Function at 0x41d6c0
Capabilities:
Check mutex on windows

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

Function at 0x41d6e0
Capabilities:
Check mutex on windows

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

Function at 0x41d700
Capabilities:
Check mutex on windows

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

Function at 0x41d720
Capabilities:
Check mutex on windows

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

Disassembly:
push rsi
push rbx
sub rsp, 0x28
cmp edx, 3
je 0x41d9e0
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret
mov rax, qword [0x004ac548]
test rax, rax
je 0x41db40
mov ecx, dword [rax]
cmp ecx, 0xffffffff
je 0x41d9cb
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x41d9cb
test byte [rax + 0x40], 0x30
je 0x41da91
mov rcx, qword [rax + 0x1c8]
test rcx, rcx
jne 0x41db30
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x41da4c
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x41da3c
call rsi
mov qword [rbx + 0x30], 0
mov qword [rbx + 0x28], 0
lea rcx, [rbx + 0x38]
call sym.unk_2569
cmp qword [rbx + 0x1c0], 0
mov qword [rbx + 0x60], 0xffffffffffffffff
je 0x41db85
mov rax, qword [0x004ac548]
test rax, rax
je 0x41db61
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 0x41daf0
test rcx, rcx
je 0x41daaa
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 0x41db20
test byte [rbx + 0x44], 4
je 0x41db03
mov rcx, qword [rbx + 0x28]
mov dword [rbx], 0xdeadbeef
test rcx, rcx
je 0x41da44
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41da44
test rcx, rcx
je 0x41dafb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x30], 0
lea rcx, [rbx + 0x38]
call sym.unk_2569
mov qword [rbx + 0x60], 0xffffffffffffffff
jmp 0x41d9cb
call sym._pthread_cleanup_dest.part.3
jmp 0x41dac8
call sym._pthread_cleanup_dest.part.3
jmp 0x41da1f
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
lea rcx, str._pthread_tls_shmem
mov dl, 4
call sym.unk_2605
mov qword [0x004ac548], rax
jmp 0x41d9f0
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call sym.unk_2605
mov qword [0x004ac548], rax
jmp 0x41da7b
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x41da6b
Function at 0x41df90
Capabilities:
Check mutex on windows

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

Function at 0x41dfb0
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.unk_2605