joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40223b
Capabilities:
Execute command

Disassembly:
push rbp
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x80]
lea rcx, [0x004a3012]
call sym.system
lea rax, [rbp - 0x51]
mov rcx, rax
call fcn.004612d0
lea rdx, [rbp - 0x51]
lea rax, [rbp - 0x60]
mov r8, rdx
lea rdx, [0x004a3078]
mov rcx, rax
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.Slowsay_std::string_
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.0046a960
lea rax, [rbp - 0x51]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp - 0x41]
mov rcx, rax
call fcn.004612d0
lea rdx, [rbp - 0x41]
lea rax, [rbp - 0x50]
mov r8, rdx
lea rdx, [0x004a30c0]
mov rcx, rax
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.Slowsay_std::string_
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.0046a960
lea rax, [rbp - 0x41]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp - 0x31]
mov rcx, rax
call fcn.004612d0
lea rdx, [rbp - 0x31]
lea rax, [rbp - 0x40]
mov r8, rdx
lea rdx, [0x004a311a]
mov rcx, rax
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.Slowsay_std::string_
lea rax, [rbp - 0x40]
mov rcx, rax
call fcn.0046a960
lea rax, [rbp - 0x31]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov dword [0x004cc0c4], 1
mov eax, 0
jmp 0x4023d6
add rsp, 0x58
pop rbx
pop rbp
ret
Function at 0x407eb7
Capabilities:
Execute command

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x80]
mov eax, dword [0x004cc090]
add eax, 1
mov dword [0x004cc090], eax
lea rcx, [0x004a3012]
call sym.system
lea rax, [rbp - 0x51]
mov rcx, rax
call fcn.004612d0
lea rdx, [rbp - 0x51]
lea rax, [rbp - 0x60]
mov r8, rdx
lea rdx, [0x004a4642]
mov rcx, rax
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.Slowsay_std::string_
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.0046a960
lea rax, [rbp - 0x51]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp - 0x41]
mov rcx, rax
call fcn.004612d0
lea rdx, [rbp - 0x41]
lea rax, [rbp - 0x50]
mov r8, rdx
lea rdx, str.Bad_End______7
mov rcx, rax
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.Slowsay_std::string_
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.0046a960
lea rax, [rbp - 0x41]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov dword [0x004cc29c], 1
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x407fe4
add rsp, 0x48
pop rbx
pop rbp
ret

Function at 0x408387
Capabilities:
Execute command

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x80]
lea rcx, [0x004a3012]
call sym.system
lea rax, [rbp - 0x51]
mov rcx, rax
call fcn.004612d0
lea rdx, [rbp - 0x51]
lea rax, [rbp - 0x60]
mov r8, rdx
lea rdx, [0x004a4728]
mov rcx, rax
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.Slowsay_std::string_
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.0046a960
lea rax, [rbp - 0x51]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp - 0x41]
mov rcx, rax
call fcn.004612d0
lea rdx, [rbp - 0x41]
lea rax, [rbp - 0x50]
mov r8, rdx
lea rdx, [0x004a4747]
mov rcx, rax
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.Slowsay_std::string_
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.0046a960
lea rax, [rbp - 0x41]
mov rcx, rax
call sym.std::allocator_char_::allocator__
call sym.tg3__
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x4084a0
add rsp, 0x48
pop rbx
pop rbp
ret
Function at 0x4092d9
Capabilities:
Execute command

Disassembly:
push rbp
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x80]
lea rcx, [0x004a3012]
call sym.system
lea rax, [rbp - 0x51]
mov rcx, rax
call fcn.004612d0
lea rdx, [rbp - 0x51]
lea rax, [rbp - 0x60]
mov r8, rdx
lea rdx, [0x004a4bd5]
mov rcx, rax
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.Slowsay_std::string_
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.0046a960
lea rax, [rbp - 0x51]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp - 0x41]
mov rcx, rax
call fcn.004612d0
lea rdx, [rbp - 0x41]
lea rax, [rbp - 0x50]
mov r8, rdx
lea rdx, [0x004a4bee]
mov rcx, rax
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.Slowsay_std::string_
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.0046a960
lea rax, [rbp - 0x41]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp - 0x31]
mov rcx, rax
call fcn.004612d0
lea rdx, [rbp - 0x31]
lea rax, [rbp - 0x40]
mov r8, rdx
lea rdx, [0x004a4c03]
mov rcx, rax
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.Slowsay_std::string_
lea rax, [rbp - 0x40]
mov rcx, rax
call fcn.0046a960
lea rax, [rbp - 0x31]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [rbp - 0x21]
mov rcx, rax
call fcn.004612d0
lea rdx, [rbp - 0x21]
lea rax, [rbp - 0x30]
mov r8, rdx
lea rdx, [0x004a4c1b]
mov rcx, rax
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.Slowsay_std::string_
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.0046a960
lea rax, [rbp - 0x21]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x4094e8
add rsp, 0x68
pop rbx
pop rbp
ret
Function at 0x425840
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 [0x004cc624]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x42595a
mov rax, qword [0x004cc628]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x42588e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x425940
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x425872
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x425992
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x004cc628]
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 [0x004cc628]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x425975
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x425939
sub eax, 0x40
and eax, 0xffffffbf
je 0x425939
mov r9, rbp
add r9, qword [0x004cc628]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x425961
add dword [0x004cc624], 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 0x42589b
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 [0x004cc628]
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 0x426570
Capabilities:
Parse pe header

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

Function at 0x426590
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 0x4265d1
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 0x4265c8
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x4265d3
add rax, 0x28
cmp rax, r9
jne 0x4265b4
xor eax, eax
repz ret

Function at 0x426680
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x004ac870]
cmp word [rbx], 0x5a4d
je 0x4266a0
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 0x426694
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x4268f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004ccf80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004ccf60]
test rbx, rbx
je 0x426944
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 0x42693b
test rsi, rsi
je 0x42693b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x426920
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x004ccf80]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x4270e0
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.00427020
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 0x4271c9
int3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x427268
mov rcx, r12
call sym.malloc
lea r9d, [rsi + 0x10]
mov rbx, rax
mov r10d, 0x40
bt rbx, r10
jae 0x427204
mov r11d, r14d
sub r11d, r10d
movsxd r11, r11d
mov byte [r15 + r11], 0x41
sub r10d, 1
jne 0x4271f0
mov dword [rbp - 0x54], r9d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
mov r9d, dword [rbp - 0x54]
je 0x427265
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call dbg.get_ptr_from_atom
cmp rax, rbx
mov rsi, rax
je 0x427280
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 0x42723f
xor edx, edx
mov r8, r12
mov rcx, rbx
call sym.memset
test r13, r13
je 0x42723f
mov rcx, rbx
call r13
jmp 0x42723f
Function at 0x4317a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
test rdx, rdx
mov rsi, rcx
mov r12, rdx
mov edi, r8d
je 0x4317c2
mov qword [r12], rcx
cmp edi, 0x24
ja 0x4318a3
cmp edi, 1
jne 0x4317d9
jmp 0x4318a3
add rsi, 1
movsx ecx, byte [rsi]
mov ebx, ecx
call sym.isspace
test eax, eax
jne 0x4317d5
lea edx, [rbx - 0x2b]
mov rcx, rsi
mov eax, ebx
and edx, 0xfd
jne 0x4317ff
movzx eax, byte [rcx + 1]
add rsi, 1
test edi, edi
jne 0x431935
cmp al, 0x30
mov dil, 0xa
je 0x431990
movsx r15d, al
lea edx, [r15 - 0x30]
cmp edx, 9
ja 0x431910
movsx r15d, al
sub r15d, 0x30
cmp edi, r15d
jle 0x4319b5
mov eax, r15d
shr eax, 0x1f
test al, al
jne 0x4319b5
lea r14, [rsi + 1]
movsxd r15, r15d
xor r13d, r13d
movsxd rsi, edi
nop
movsx ebp, byte [r14]
lea r9d, [rbp - 0x30]
cmp r9d, 9
mov ecx, r9d
jbe 0x4318c4
mov ecx, ebp
call sym.isupper
test eax, eax
lea ecx, [rbp - 0x37]
jne 0x4318c4
mov ecx, ebp
call sym.islower
test eax, eax
jne 0x4318c1
test r12, r12
je 0x431883
mov qword [r12], r14
test r13d, r13d
jne 0x431960
xor edx, edx
cmp bl, 0x2d
sete dl
mov rax, rdx
neg rax
xor r15, rax
lea rax, [r15 + rdx]
jmp 0x4318b0
call sym._errno
mov dword [rax], 0x21
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea ecx, [rbp - 0x57]
cmp edi, ecx
jle 0x43187a
test ecx, ecx
js 0x43187a
xor edx, edx
mov rax, 0xffffffffffffffff
div rsi
add rax, 1
cmp r15, rax
ja 0x431900
mov rax, r15
movsxd rcx, ecx
imul rax, rsi
add rcx, rax
cmp r15, rcx
ja 0x431900
mov r15, rcx
add r14, 1
jmp 0x431850
mov r13d, 1
jmp 0x4318f6
mov ecx, r15d
call sym.isupper
test eax, eax
jne 0x431980
mov ecx, r15d
call sym.islower
mov edx, eax
xor eax, eax
test edx, edx
je 0x4318b0
sub r15d, 0x57
jmp 0x43182b
cmp edi, 0x10
jne 0x431812
cmp al, 0x30
jne 0x431812
movzx eax, byte [rsi + 1]
and eax, 0xffffffdf
cmp al, 0x58
je 0x4319a3
mov eax, 0x30
jmp 0x431823
call sym._errno
mov dword [rax], 0x22
mov rax, 0xffffffffffffffff
jmp 0x4318b0
sub r15d, 0x37
jmp 0x43182b
movzx edx, byte [rsi + 1]
mov dil, 8
and edx, 0xffffffdf
cmp dl, 0x58
jne 0x431812
movzx eax, byte [rsi + 2]
mov edi, 0x10
add rsi, 2
jmp 0x431812
xor eax, eax
jmp 0x4318b0

Function at 0x435d80
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x004cdac8]
test rbx, rbx
je 0x435db0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [0x004cdac8]
test rax, rax
je 0x435dd4
cmp dword [rax], 0xffffffff
je 0x435df5
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 [0x004cdac8], rax
jmp 0x435d91
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 [0x004cdac8], rax
jmp 0x435da5
call sym.abort
nop
nop dword [rax + rax]
Function at 0x436290
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 [0x004cdad0]
test rcx, rcx
je 0x4363d0
call sym._pthread_once_raw.constprop.5
mov rax, qword [0x004cdac8]
test rax, rax
je 0x4363f3
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x4362d3
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.pop_pthread_mem
test rax, rax
mov rbx, rax
je 0x43643b
cmp qword [sym.__dyn_tls_pthread], 0
je 0x43643b
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 0x436442
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 [0x004cdac8]
test rax, rax
je 0x436417
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x436442
mov rax, rbx
jmp 0x4362ca
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call sym.__shmem_winpthreads_grab
mov rcx, rax
mov qword [0x004cdad0], rax
jmp 0x4362a8
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 [0x004cdac8], rax
jmp 0x4362bd
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 [0x004cdac8], rax
jmp 0x4363b8
xor eax, eax
jmp 0x4362ca
call sym.abort
nop
nop dword [rax + rax]

Function at 0x436450
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 0x436470
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 0x436490
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 0x4364b0
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 0x4364d0
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 0x4368b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
cmp edx, 3
je 0x4368d0
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret
mov rax, qword [0x004cdac8]
test rax, rax
je 0x436a30
mov ecx, dword [rax]
cmp ecx, 0xffffffff
je 0x4368bb
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x4368bb
test byte [rax + 0x40], 0x30
je 0x436981
mov rcx, qword [rax + 0x1c8]
test rcx, rcx
jne 0x436a20
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x43693c
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x43692c
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 0x436a75
mov rax, qword [0x004cdac8]
test rax, rax
je 0x436a51
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 0x4369e0
test rcx, rcx
je 0x43699a
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 0x436a10
test byte [rbx + 0x44], 4
je 0x4369f3
mov rcx, qword [rbx + 0x28]
mov dword [rbx], 0xdeadbeef
test rcx, rcx
je 0x436934
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x436934
test rcx, rcx
je 0x4369eb
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 0x4368bb
call sym._pthread_cleanup_dest.part.3
jmp 0x4369b8
call sym._pthread_cleanup_dest.part.3
jmp 0x43690f
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 [0x004cdac8], rax
jmp 0x4368e0
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 [0x004cdac8], rax
jmp 0x43696b
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x43695b
Function at 0x438070
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 0x438099
mov rcx, qword [rax + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x4380b0
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 0x438099
lea rbp, [rbx + 0x38]
mov rcx, rbp
call sym.pthread_mutex_lock
call sym.__pthread_self_lite
test rax, rax
je 0x438255
mov rax, qword [rax + 0x1c8]
cmp rsi, rax
je 0x438153
mov eax, dword [rbx + 0x44]
and eax, 3
cmp eax, 3
movzx eax, byte [rbx + 0x40]
je 0x4381b0
test al, 3
jne 0x43813a
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
mov rax, qword [0x004cdae0]
test rax, rax
je 0x43825c
lock add dword [rax], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x43812b
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbp
call sym.pthread_mutex_unlock
xor eax, eax
jmp 0x43809e
mov rcx, rbp
call sym.pthread_mutex_unlock
test byte [rbx + 0x40], 0xc
jne 0x438099
xor eax, eax
jmp 0x43809e
movzx eax, byte [rbx + 0x40]
test al, 3
jne 0x43813a
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
mov rax, qword [0x004cdae0]
test rax, rax
je 0x43827c
lock add dword [rax], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x438187
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [rbx + 0x44]
and eax, 3
cmp eax, 3
jne 0x43812b
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 0x43813a
test al, 0xf
jne 0x438099
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 0x43812b
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 [0x004cdae0]
test rax, rax
je 0x43829c
lock add dword [rax], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x43823e
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 0x43812b
xor eax, eax
jmp 0x4380e3
lea rcx, str._pthread_cancelling_shmem
xor r8d, r8d
mov edx, 4
call sym.__shmem_winpthreads_grab
mov qword [0x004cdae0], rax
jmp 0x438118
lea rcx, str._pthread_cancelling_shmem
xor r8d, r8d
mov edx, 4
call sym.__shmem_winpthreads_grab
mov qword [0x004cdae0], rax
jmp 0x438174
lea rcx, str._pthread_cancelling_shmem
xor r8d, r8d
mov edx, 4
call sym.__shmem_winpthreads_grab
mov qword [0x004cdae0], rax
jmp 0x43822b