joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0041fef0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x0041ff00]
mov dword [rax], 1
mov rax, qword [0x0041ff10]
mov dword [rax], 1
mov rax, qword [0x0041fee0]
mov dword [rax], 1
mov rax, qword [0x0041fdd0]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x0041fed0]
mov dword [0x00426008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x0041fe90]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x0041fbc0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401602
Capabilities:
Execute command

Disassembly:
sub rsp, 0x28
lea rcx, str.Launching_Pixel_Gun_3D_via_Steam...
call dbg.void log<(ConsoleColor)11>(char const*)
lea rcx, str.start_steam:__rungameid_2524890
call sym.system
nop
add rsp, 0x28
ret
Function at 0x401624
Capabilities:
Enumerate threads
Inject apc

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbx, rcx
mov rsi, rdx
mov rax, qword [rdx + 8]
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
lea r8, [rax + 1]
mov edx, 0
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
je 0x40171b
mov rax, qword [rsi + 8]
mov qword [rsp + 0x20], 0
lea r9, [rax + 1]
mov r8, qword [rsi]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40172e
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.LoadLibraryA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test rax, rax
je 0x401762
mov edx, 0
mov ecx, 4
call sym.CreateToolhelp32Snapshot
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x40178d
mov dword [rsp + 0x30], 0x1c
lea rdx, [rsp + 0x30]
mov rcx, rax
call sym.Thread32First
test eax, eax
je 0x4017a6
mov esi, dword [rsp + 0x3c]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessId]
cmp esi, eax
je 0x4017a0
lea rdx, [rsp + 0x30]
mov rcx, rbp
call sym.Thread32Next
test eax, eax
jne 0x4016eb
mov esi, 0
jmp 0x4017ab
lea rcx, str.Failed_to_allocate_memory_in_remote_process.
call dbg.void log<(ConsoleColor)12>(char const*)
mov eax, 0
jmp 0x401757
lea rcx, str.Failed_to_write_DLL_path_to_remote_process.
call dbg.void log<(ConsoleColor)12>(char const*)
mov r9d, 0x8000
mov r8d, 0
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, 0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rcx, str.Failed_to_find_LoadLibraryA_address.
call dbg.void log<(ConsoleColor)12>(char const*)
mov r9d, 0x8000
mov r8d, 0
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, 0
jmp 0x401757
lea rcx, str.Failed_to_get_thread_snapshot.
call dbg.void log<(ConsoleColor)12>(char const*)
mov eax, 0
jmp 0x401757
mov esi, dword [rsp + 0x38]
jmp 0x4017ab
mov esi, 0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x401805
mov r8d, esi
mov edx, 0
mov ecx, 0x10
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x40181b
mov r8, rdi
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
test eax, eax
je 0x401831
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.APC_queued_successfully._DLL_injection_scheduled.
call dbg.void log<(ConsoleColor)11>(char const*)
mov eax, 1
jmp 0x401757
lea rcx, str.Failed_to_find_a_thread_in_the_target_process.
call dbg.void log<(ConsoleColor)12>(char const*)
mov eax, 0
jmp 0x401757
lea rcx, str.Failed_to_open_target_thread.
call dbg.void log<(ConsoleColor)12>(char const*)
mov eax, 0
jmp 0x401757
lea rcx, str.Failed_to_queue_APC.
call dbg.void log<(ConsoleColor)12>(char const*)
mov r9d, 0x8000
mov r8d, 0
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0
jmp 0x401757
Function at 0x401868
Capabilities:
Enumerate processes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x170
mov rsi, rcx
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x40197b
mov dword [rsp + 0x40], 0x130
lea rdx, [rsp + 0x40]
mov rcx, rax
call sym.Process32First
test eax, eax
jne 0x401909
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0
add rsp, 0x170
pop rbx
pop rsi
pop rdi
ret
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0x20]
test r8, r8
je 0x4018e0
call sym.memcmp
test eax, eax
jne 0x4018e7
mov edi, 1
jmp 0x401958
mov edi, 1
jmp 0x401958
mov edi, 0
jmp 0x401958
call sym.operator_delete_void_
test dil, dil
jne 0x401969
lea rdx, [rsp + 0x40]
mov rcx, rbx
call sym.Process32Next
test eax, eax
je 0x4018aa
lea r10, [rsp + 0x20]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x6c]
mov rcx, 0xffffffffffffffff
mov eax, 0
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
mov r9d, 0
lea r8, [rdx + rcx - 1]
mov rcx, r10
call dbg.void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char const*>(char const*, char const*, std::forward_iterator_tag)
mov r8, qword [rsp + 0x28]
cmp r8, qword [rsi + 8]
je 0x4018c3
mov edi, 0
mov rcx, qword [rsp + 0x20]
lea rax, [rsp + 0x30]
cmp rcx, rax
jne 0x4018ee
jmp 0x4018f3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x48]
jmp 0x4018b8
mov eax, 0
jmp 0x4018b8
Function at 0x40b9d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00426624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x40bb58
mov rax, qword [0x00426628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40ba1c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x40baa5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x40ba00
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x40bb8d
mov rax, qword [0x00426628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00426628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40bb70
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40ba9e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x40bb00
add dword [0x00426624], 1
cmp edi, 8
jae 0x40bad3
test dil, 4
jne 0x40bb44
test edi, edi
je 0x40bac8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40bb5f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x40bac8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40baec
jmp 0x40bac8
add rsi, qword [0x00426628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40ba9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x40bac8
xor esi, esi
jmp 0x40ba27
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x40bac8
mov rax, qword [0x00426628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x40c2e0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00426900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004268e0]
test rbx, rbx
je 0x40c334
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 0x40c32b
test rsi, rsi
je 0x40c32b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40c310
lea rcx, [0x00426900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x40c570
Capabilities:
Parse pe header

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

Function at 0x40c590
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 0x40c5d1
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 0x40c5c8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x40c5d3
add rax, 0x28
cmp rax, r9
jne 0x40c5b4
xor eax, eax
ret

Function at 0x40c670
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0041fdd0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40c6dd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40c6dd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40c6dd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x40c6d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40c6df
add rax, 0x28
cmp rax, r9
jne 0x40c6c0
xor eax, eax
add rsp, 0x28
ret

Function at 0x40c7e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0041fdd0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x40c800
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40c7f8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40c85d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x40c854
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40c864
add rax, 0x28
cmp rax, r9
jne 0x40c840
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x40c880
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x0041fdd0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x40c8ee
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40c8ee
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x40c8ee
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40c8ee
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x40c8e5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x40c8f5
add rcx, 0x28
cmp rcx, rax
jne 0x40c8d0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x40c908
jmp 0x40c8ee
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x40c916
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x40c8ee
test r9d, r9d
jg 0x40c900
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x40dcb0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x0041c0d8], eax
je 0x40dcca
add rsp, 0x28
ret
call sym.abort
nop

Function at 0x40e1d0
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
test rcx, rcx
mov rbx, rcx
je 0x40e1f3
call sym.pthread_spin_destroy
cmp eax, 1
je 0x40e1fe
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
lea rbx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rbx + 0x27]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x40e275
mov eax, 0x28
jmp 0x40e25a
add rax, 1
cmp rax, 0x6b
je 0x40e267
cmp byte [rbx + rax], 0
mov edx, eax
jne 0x40e250
cmp eax, 0x6a
jne 0x40e27a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov edx, 0x27
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
jmp 0x40e267

Function at 0x40e320
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x004269e0], 1
je 0x40e336
call sym._pthread_once_raw.part.5.constprop.11
mov ecx, dword [0x0041c0d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x40e360
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.pop_pthread_mem
cmp qword [sym.__dyn_tls_pthread], 0
mov rsi, rax
je 0x40e34a
test rax, rax
je 0x40e34a
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 [rsi + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea rcx, [rsi + 0x68]
mov qword [rsi + 0x38], 0xffffffffffffffff
mov qword [rsi + 0x30], rax
call sym.replace_spin_keys.constprop.10
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsi + 0xb8], 0
mov qword [rsi + 0x28], 0
call rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rbx
mov dword [rsp + 0x30], 2
mov r8, rbp
mov rdx, rdi
mov dword [rsp + 0x28], 0
lea r9, [rsi + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x40e450
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov rdx, rsi
mov ecx, dword [0x0041c0d8]
mov dword [rsi + 0xbc], 0
mov dword [rsi + 0xc0], eax
movzx eax, byte [rsi + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rsi + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40e450
mov rbx, rsi
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.abort
nop
nop word cs:[rax + rax]
Function at 0x40e5c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
test edx, edx
jne 0x40e5e1
test r8, r8
je 0x40e680
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
cmp edx, 1
je 0x40e6b0
cmp edx, 3
jne 0x40e5d4
mov ecx, dword [0x0041c0d8]
cmp ecx, 0xffffffff
je 0x40e5d4
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x40e5d4
test byte [rax + 0x40], 0x30
je 0x40e6d0
mov rcx, qword [rax + 0x1d8]
test rcx, rcx
jne 0x40e7c5
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x40e64f
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x40e63f
call rsi
mov qword [rbx + 0x30], 0
mov qword [rbx + 0x28], 0
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.replace_spin_keys.constprop.10
cmp qword [rbx + 0x1d0], 0
jne 0x40e75c
mov rcx, rbx
call sym.push_pthread_mem.part.2
jmp 0x40e75c
mov rcx, qword [0x004269a0]
test rcx, rcx
je 0x40e5d4
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov qword [0x004269a0], 0
jmp 0x40e5d4
lea rdx, [sym.SetThreadName_VEH]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x004269a0], rax
jmp 0x40e5d4
mov rcx, qword [rax + 0x30]
mov eax, dword [rax + 0xbc]
test eax, eax
jne 0x40e770
test rcx, rcx
je 0x40e6ed
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x1d8]
mov qword [rbx + 0x30], 0
mov dword [rbx + 0xbc], 1
test rcx, rcx
jne 0x40e7a0
test byte [rbx + 0x44], 4
lea rdi, [rbx + 0x38]
lea rsi, [rbx + 0x68]
je 0x40e7b0
mov rcx, qword [rbx + 0x28]
mov dword [rbx], 0xdeadbeef
test rcx, rcx
je 0x40e736
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
mov qword [rbx + 0x28], 0
call sym.pthread_mutex_destroy
mov rcx, rsi
call sym.replace_spin_keys.constprop.10
cmp qword [rbx + 0x1d0], 0
je 0x40e66f
xor edx, edx
mov ecx, dword [0x0041c0d8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x40e5d4
test rcx, rcx
je 0x40e77b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x38]
mov qword [rbx + 0x30], 0
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.replace_spin_keys.constprop.10
jmp 0x40e5d4
call sym._pthread_cleanup_dest.part.8
jmp 0x40e70f
mov rcx, rdi
call sym.pthread_mutex_destroy
mov rcx, rsi
call sym.replace_spin_keys.constprop.10
jmp 0x40e5d4
call sym._pthread_cleanup_dest.part.8
jmp 0x40e622
Function at 0x40e7d0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
mov rbp, rsp
sub rsp, 0x28
mov qword [rbp + 0x28], rcx
lea rcx, [0x0041c0c8]
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x28]
lea rbx, [rax + 0x38]
mov rcx, rbx
call sym.pthread_mutex_lock
cmp dword [0x004269e0], 1
je 0x40e809
call sym._pthread_once_raw.part.5.constprop.11
mov rdx, qword [rbp + 0x28]
mov ecx, dword [0x0041c0d8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rsi, qword [rbp + 0x28]
mov rcx, rbx
mov dword [rsi + 0x70], eax
call sym.pthread_mutex_unlock
mov rax, qword [rbp + 0x28]
mov rdx, rbp
lea rcx, [rax + 0xd0]
call sym._setjmp
test eax, eax
je 0x40e8dd
lea rcx, [0x0041c0c8]
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x28]
lea rbx, [rax + 0x38]
mov rcx, rbx
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax + 0x30]
mov rsi, qword [rax + 8]
test rcx, rcx
je 0x40e87c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x28]
cmp qword [rax + 0x28], 0
mov qword [rax + 0x30], 0
je 0x40e937
mov rcx, rbx
call sym.pthread_mutex_unlock
mov rcx, rbx
call sym.pthread_mutex_destroy
mov rax, qword [rbp + 0x28]
mov qword [rax + 0x38], 0xffffffffffffffff
mov dword [rax + 0xbc], 1
mov rbx, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x0041c0c8]
mov rcx, rdi
call sym.pthread_mutex_unlock
test eax, eax
jne 0x40e981
xor ecx, ecx
call rbx
jmp 0x40e8c7
lea rcx, [0x0041c0c8]
call sym.pthread_mutex_unlock
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x40e989
mov rdi, qword [rbp + 0x28]
mov rcx, qword [rdi + 8]
call rax
mov rbx, rax
nop
nop
lea rcx, [0x0041c0c8]
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax + 0x1d8]
mov qword [rax + 8], rbx
test rcx, rcx
je 0x40e855
call sym._pthread_cleanup_dest.part.8
jmp 0x40e855
mov rax, qword [rbp + 0x28]
mov rcx, rbx
mov dword [rax], 0xdeadbeef
call sym.pthread_mutex_unlock
mov rcx, rbx
call sym.pthread_mutex_destroy
cmp qword [rbp + 0x28], 0
je 0x40e96e
mov rax, qword [rbp + 0x28]
cmp qword [rax + 0x1d0], 0
jne 0x40e96e
mov rcx, rax
call sym.push_pthread_mem.part.2
xor edx, edx
mov ecx, dword [0x0041c0d8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x40e8b9
mov ecx, esi
call qword [sym.imp.msvcrt.dll__endthreadex]
mov ebx, pe_nt_image_headers64
jmp 0x40e907
Function at 0x40f510
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 0x40f5da
mov rcx, qword [rax + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x40f5da
lea rbp, [rsp + 0x20]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x40f5da
lea rdi, [rbx + 0x38]
mov rcx, rdi
call sym.pthread_mutex_lock
call sym.__pthread_self_lite
xor edx, edx
test rax, rax
je 0x40f576
mov rdx, qword [rax + 0x1d8]
cmp rsi, rdx
movzx eax, byte [rbx + 0x40]
je 0x40f5c4
mov edx, dword [rbx + 0x44]
and edx, 3
cmp edx, 3
je 0x40f5f0
test al, 3
jne 0x40f5cc
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
lock add dword [0x004269e8], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x40f5ae
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rdi
call sym.pthread_mutex_unlock
xor eax, eax
add rsp, 0x4f8
pop rbx
pop rsi
pop rdi
pop rbp
ret
test al, 3
je 0x40f685
mov rcx, rdi
call sym.pthread_mutex_unlock
test byte [rbx + 0x40], 0xc
je 0x40f5b6
mov eax, 3
add rsp, 0x4f8
pop rbx
pop rsi
pop rdi
pop rbp
ret
test al, 0xc
jne 0x40f5cc
test al, 0xf
jne 0x40f5da
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 0x40f5ae
mov rcx, qword [rbx + 0x28]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
lea rax, [sym._pthread_invoke_cancel]
mov rcx, qword [rbx + 0x28]
mov rdx, rbp
mov qword [rsp + 0x118], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
movzx eax, byte [rbx + 0x40]
and dword [rbx + 0x44], 0xfffffffe
and eax, 0xfffffff0
or eax, 5
mov byte [rbx + 0x40], al
lock add dword [0x004269e8], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x40f66e
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rdi
call sym.pthread_mutex_unlock
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x40f5ae
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
lock add dword [0x004269e8], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x40f6a5
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [rbx + 0x44]
mov edx, eax
and edx, 3
cmp edx, 3
jne 0x40f5ae
and eax, 0xfffffffe
mov rcx, rdi
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
nop word [rax + rax]
Function at 0x40f6e0
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov esi, edx
lea rcx, [0x0041c0c8]
call sym.pthread_mutex_lock
mov rcx, rbx
call sym.__pthread_get_pointer
test rax, rax
je 0x40f751
cmp qword [rax + 0x1d8], rbx
jne 0x40f751
test byte [rax + 0x40], 0xc
jne 0x40f751
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x40f751
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x40f751
lea rcx, [0x0041c0c8]
call sym.pthread_mutex_unlock
test esi, esi
je 0x40f770
sub esi, 2
cmp esi, 0x15
ja 0x40f774
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp sym.pthread_cancel
lea rcx, [0x0041c0c8]
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x28
pop rbx
pop rsi
ret
xor eax, eax
jmp 0x40f762
mov eax, 0x16
jmp 0x40f762