joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6e5b60
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00a5d714]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x6e5d08
mov rax, qword [0x00a5d718]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x6e5bac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x6e5c37
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x6e5b90
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x6e5d42
mov rax, qword [0x00a5d718]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00a5d718]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6e5d51
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x6e5c30
sub eax, 4
and eax, 0xfffffffb
jne 0x6e5cc0
add dword [0x00a5d714], 1
cmp ebx, 8
jae 0x6e5c68
test bl, 4
jne 0x6e5d10
test ebx, ebx
je 0x6e5c59
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x6e5d30
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x6e5c59
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x6e5c9a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00a5d718]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6e5c30
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor edi, edi
jmp 0x6e5bb7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x6e5c59
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x6e5c59
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x00a5d718]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x6e6530
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00a5da00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00a5d9e0]
test rbx, rbx
je 0x6e6584
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x6e657b
test r12, r12
je 0x6e657b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6e6560
lea rcx, [0x00a5da00]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x6e67b0
Capabilities:
Parse pe header

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

Function at 0x6e67d0
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 0x6e6815
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x6e680c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6e6817
add rax, 0x28
cmp rax, r9
jne 0x6e67f8
xor eax, eax
ret

Function at 0x6e68c0
Capabilities:
Enumerate pe sections

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

Function at 0x6e6a20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x0099f2f0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x6e6a8f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6e6a8f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x6e6a8d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x6e6a84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6e6a98
add rax, 0x28
cmp rax, r9
jne 0x6e6a70
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x6e6ab0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x0099f2f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x6e6b28
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6e6b28
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x6e6b28
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6e6b28
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x6e6b1c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x6e6b30
add rdx, 0x28
cmp rdx, r10
jne 0x6e6b08
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x6e6b40
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x6e6b4e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x6e6b25
test r8d, r8d
jg 0x6e6b38
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret

Function at 0x6f4440
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x00865388], eax
cmp eax, 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
ret

Function at 0x6f4aa0
Capabilities:
Print debug messages

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, rcx
test rcx, rcx
je 0x6f4ac5
call dbg.pthread_spin_destroy
cmp eax, 1
je 0x6f4ad2
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
ret
lea r12, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
mov rdi, r12
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x6f4b58
mov eax, 0x28
jmp 0x6f4b2a
add rax, 1
cmp rax, 0x6b
je 0x6f4b4a
cmp byte [r12 + rax], 0
mov edx, eax
jne 0x6f4b20
cmp eax, 0x6a
je 0x6f4b4a
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov edx, 0x27
jmp 0x6f4b38
Function at 0x6f4b60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x00a5e4f0], 1
je 0x6f4b77
call sym._pthread_once_raw.part.0.constprop.0
mov ecx, dword [0x00865388]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x6f4ba0
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 0x6f4b8b
test rax, rax
je 0x6f4b8b
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 ecx, dword [0x00865388]
mov rdx, rbx
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
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
Function at 0x6f4e10
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 0x6f4e40
test r8, r8
je 0x6f4ee8
mov eax, 1
add rsp, 0x20
pop r12
pop r13
pop r14
ret
cmp edx, 1
je 0x6f4f10
cmp edx, 3
jne 0x6f4e27
mov ecx, dword [0x00865388]
cmp ecx, 0xffffffff
je 0x6f4e27
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x6f4e27
test byte [rax + 0x40], 0x30
je 0x6f4f40
mov rcx, qword [rax + 0x1d8]
test rcx, rcx
je 0x6f4e82
call sym._pthread_cleanup_dest.part.0
mov rcx, qword [r12 + 0x28]
test rcx, rcx
je 0x6f4eb5
mov r13, qword [sym.imp.KERNEL32.dll_CloseHandle]
call r13
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x6f4ea3
call r13
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
lea rcx, [r12 + 0x38]
call dbg.pthread_mutex_destroy
lea rcx, [r12 + 0x68]
call sym.replace_spin_keys.constprop.0
mov rcx, r12
call sym.push_pthread_mem
mov ecx, dword [0x00865388]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x6f4e27
mov rcx, qword [0x00a5e4b0]
test rcx, rcx
je 0x6f4e27
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov qword [0x00a5e4b0], 0
jmp 0x6f4e27
lea rdx, [dbg.SetThreadName_VEH]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x00a5e4b0], 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 0x6f4fc8
test rcx, rcx
je 0x6f4f59
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 0x6f4f80
call sym._pthread_cleanup_dest.part.0
lea r14, [r12 + 0x38]
lea r13, [r12 + 0x68]
test byte [r12 + 0x44], 4
je 0x6f4ff8
mov rcx, qword [r12 + 0x28]
mov dword [r12], 0xdeadbeef
test rcx, rcx
je 0x6f4faa
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r12 + 0x28], 0
mov rcx, r14
call dbg.pthread_mutex_destroy
mov rcx, r13
jmp 0x6f4ec4
test rcx, rcx
je 0x6f4fd3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r12 + 0x30], 0
lea rcx, [r12 + 0x38]
call dbg.pthread_mutex_destroy
lea rcx, [r12 + 0x68]
call sym.replace_spin_keys.constprop.0
jmp 0x6f4e27
mov rcx, r14
call dbg.pthread_mutex_destroy
mov rcx, r13
call sym.replace_spin_keys.constprop.0
jmp 0x6f4e27
Function at 0x6f5010
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push r12
push rsi
push rbx
mov rbp, rsp
sub rsp, 0x28
mov qword [rbp + 0x28], rcx
lea rcx, [0x00865378]
call dbg.pthread_mutex_lock
mov rax, qword [rbp + 0x28]
lea r12, [rax + 0x38]
mov rcx, r12
call dbg.pthread_mutex_lock
cmp dword [0x00a5e4f0], 1
je 0x6f504a
call sym._pthread_once_raw.part.0.constprop.0
mov rdx, qword [rbp + 0x28]
mov ecx, dword [0x00865388]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rbx, qword [rbp + 0x28]
mov rcx, r12
mov dword [rbx + 0x70], eax
call dbg.pthread_mutex_unlock
mov rax, qword [rbp + 0x28]
mov rdx, rbp
lea rcx, [rax + 0xd0]
call sym._setjmp
test eax, eax
je 0x6f511f
lea rcx, [0x00865378]
call dbg.pthread_mutex_lock
mov rax, qword [rbp + 0x28]
lea r12, [rax + 0x38]
mov rcx, r12
call dbg.pthread_mutex_lock
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax + 0x30]
mov rbx, qword [rax + 8]
test rcx, rcx
je 0x6f50bd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x28]
cmp qword [rax + 0x28], 0
mov qword [rax + 0x30], 0
je 0x6f5175
mov rcx, r12
call dbg.pthread_mutex_unlock
mov rcx, r12
call dbg.pthread_mutex_destroy
mov rax, qword [rbp + 0x28]
mov qword [rax + 0x38], 0xffffffffffffffff
mov dword [rax + 0xbc], 1
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
lea rsi, [0x00865378]
mov rcx, rsi
call dbg.pthread_mutex_unlock
test eax, eax
jne 0x6f51b3
xor ecx, ecx
call r12
jmp 0x6f5108
lea rcx, [0x00865378]
call dbg.pthread_mutex_unlock
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x6f51ab
mov rsi, qword [rbp + 0x28]
mov rcx, qword [rsi + 8]
call rax
mov r12, rax
nop
nop
lea rcx, [0x00865378]
call dbg.pthread_mutex_lock
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax + 0x1d8]
mov qword [rax + 8], r12
test rcx, rcx
je 0x6f5096
call sym._pthread_cleanup_dest.part.0
jmp 0x6f5096
mov rax, qword [rbp + 0x28]
mov rcx, r12
mov dword [rax], 0xdeadbeef
call dbg.pthread_mutex_unlock
mov rcx, r12
call dbg.pthread_mutex_destroy
mov rcx, qword [rbp + 0x28]
call sym.push_pthread_mem
mov ecx, dword [0x00865388]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x6f50fa
mov r12d, pe_nt_image_headers64
jmp 0x6f5145
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__endthreadex]
nop
nop dword [rax]
Function at 0x6f5d60
Capabilities:
Hijack thread execution

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x4f8
mov rsi, rcx
call dbg.__pth_gpointer_locked
mov rbx, rax
test rax, rax
je 0x6f5e2c
mov rcx, qword [rax + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x6f5e2c
lea r12, [rsp + 0x20]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x6f5e2c
lea r13, [rbx + 0x38]
mov rcx, r13
call dbg.pthread_mutex_lock
call sym.__pthread_self_lite
test rax, rax
je 0x6f5eb0
mov rdx, qword [rax + 0x1d8]
movzx eax, byte [rbx + 0x40]
cmp rsi, rdx
je 0x6f5e40
mov edx, dword [rbx + 0x44]
and edx, 3
cmp edx, 3
je 0x6f5e20
test al, 3
jne 0x6f5e98
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
lock add dword [0x00a5e4f8], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x6f5e06
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, r13
call dbg.pthread_mutex_unlock
xor eax, eax
add rsp, 0x4f8
pop rbx
pop rsi
pop r12
pop r13
ret
test al, 0xc
jne 0x6f5e98
test al, 0xf
je 0x6f5ec0
mov eax, 3
add rsp, 0x4f8
pop rbx
pop rsi
pop r12
pop r13
ret
test al, 3
jne 0x6f5e98
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
lock add dword [0x00a5e4f8], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x6f5e64
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [rbx + 0x44]
mov edx, eax
and edx, 3
cmp edx, 3
jne 0x6f5e06
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 dbg.pthread_mutex_unlock
call dbg._pthread_invoke_cancel
nop dword [rax]
mov rcx, r13
call dbg.pthread_mutex_unlock
test byte [rbx + 0x40], 0xc
jne 0x6f5e2c
xor eax, eax
jmp 0x6f5e10
xor edx, edx
jmp 0x6f5dca
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 0x6f5e06
mov rcx, qword [rbx + 0x28]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
lea rax, [dbg._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
lock add dword [0x00a5e4f8], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x6f5f3a
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, r13
call dbg.pthread_mutex_unlock
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x6f5e06
Function at 0x6f5f60
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
lea rcx, [0x00865378]
mov ebx, edx
call dbg.pthread_mutex_lock
mov rcx, r12
call sym.__pthread_get_pointer
test rax, rax
je 0x6f5fd8
cmp qword [rax + 0x1d8], r12
jne 0x6f5fd8
test byte [rax + 0x40], 0xc
jne 0x6f5fd8
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x6f5fd8
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x6f5fd8
lea rcx, [0x00865378]
call dbg.pthread_mutex_unlock
test ebx, ebx
je 0x6f5ff8
lea edx, [rbx - 2]
cmp edx, 0x15
ja 0x6f6000
mov rcx, r12
add rsp, 0x28
pop rbx
pop r12
jmp dbg.pthread_cancel
lea rcx, [0x00865378]
call dbg.pthread_mutex_unlock
mov eax, 3
add rsp, 0x28
pop rbx
pop r12
ret
xor eax, eax
jmp 0x6f5fe9
mov eax, 0x16
jmp 0x6f5fe9
Function at 0x6f6280
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 0x6f64f0
test rdi, rdi
je 0x6f62ba
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 0x6f6330
test ebx, ebx
je 0x6f6328
mov ecx, 0x14
call r14
cmp ebx, 4
je 0x6f6330
add ebx, 1
jmp 0x6f62f5
xor ecx, ecx
call r13
jmp 0x6f631f
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 0x6f649c
xor edx, edx
test rsi, rsi
je 0x6f6396
mov eax, dword [rsi]
mov edx, dword [rsi + 0x10]
mov dword [r12 + 0x44], eax
test al, 8
jne 0x6f64c8
mov eax, dword [rsi + 0x18]
mov dword [r12 + 0xc0], eax
lea r8, [dbg.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 0x6f6468
mov eax, dword [r12 + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x6f6440
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 0x6f6420
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 0x6f6406
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x6f63dc
mov edx, 0xf
cmp eax, 0xe
jg 0x6f63dc
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x6f63dc
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x6f6478
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r12 + 0x38]
call dbg.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 0x6f64a8
mov qword [rdi], 0
mov rcx, r12
call sym.push_pthread_mem
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 0x6f6396
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x75d610
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
mov rbx, rcx
mov dword [rsp + 0x30], 0
call method.boost::system.system_category__
mov rbx, qword [rbx + 0x10]
mov qword [rsp + 0x38], rax
xor eax, eax
lock xadd dword [rbx + 0x30], eax
test eax, eax
je 0x75d760
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rbx
mov ecx, dword [0x008674e0]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea r13, [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov ecx, dword [0x008674e0]
mov rdi, qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rdx, r13
call rdi
xor r12d, r12d
lea rsi, [rsp + 0x30]
jmp 0x75d69e
cmp r12, 0xffffffffffffffff
je 0x75d728
add r12, 1
mov r8, rsi
mov edx, 1
mov rcx, rbx
call method.boost::asio::detail::win_iocp_io_service.do_one_bool__boost::system::error_code_
test rax, rax
jne 0x75d690
mov ecx, dword [0x008674e0]
mov rdx, qword [rsp + 0x50]
call rdi
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x75d6cf
call sym.operator_delete_void_
mov ebx, dword [rsp + 0x30]
test ebx, ebx
je 0x75d776
mov rcx, r13
lea rdx, [0x00871690]
mov rsi, qword [rsp + 0x38]
call method.std::runtime_error.runtime_error_char_const_
lea rax, method.boost::system::system_error.system_error__
mov rcx, r13
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0
mov byte [rsp + 0x70], 0
call method.void_boost::throw_exception_boost::system.system_error__boost::system::system_error_const_
nop dword [rax]
mov r8, rsi
mov edx, 1
mov rcx, rbx
call method.boost::asio::detail::win_iocp_io_service.do_one_bool__boost::system::error_code_
test rax, rax
je 0x75d6b3
mov r8, rsi
mov edx, 1
mov rcx, rbx
call method.boost::asio::detail::win_iocp_io_service.do_one_bool__boost::system::error_code_
test rax, rax
jne 0x75d728
jmp 0x75d6b3
mov eax, 1
mov edx, eax
xchg dword [rbx + 0x34], edx
test edx, edx
je 0x75d788
call method.boost::system.system_category__
xor r12d, r12d
mov rax, r12
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
xchg dword [rbx + 0x38], eax
test eax, eax
jne 0x75d76e
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x75d76e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call method.boost::system.system_category__
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x48], rax
test ebx, ebx
je 0x75d76e
lea rcx, [rsp + 0x40]
lea rdx, [0x00872540]
call method.boost::asio::detail.do_throw_error_boost::system::error_code_const__char_const_
mov rcx, r13
mov r12, rax
call method.boost::system::system_error.system_error__
mov rcx, r12
call sym._Unwind_Resume
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x008674e0]
mov r12, rax
call rdi
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x75d7d9
call sym.operator_delete_void_
jmp 0x75d7d9