joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400179b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140017a20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14014d384]
mov rbx, rcx
test esi, esi
jle 0x140017b50
mov rax, qword [0x14014d388]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140017a6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140017af5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140017a50
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140017b72
mov rax, qword [0x14014d388]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14014d388]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140017b57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140017aee
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140017b00
add dword [0x14014d384], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14014d388]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140017aee
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 esi, esi
jmp 0x140017a78
mov rax, qword [0x14014d388]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140018100
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14014d3e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14014d3c0]
test rbx, rbx
je 0x14001815c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140018153
test eax, eax
jne 0x140018153
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140018138
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140018370
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140018388
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140018390
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400183a0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400183ed
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400183e4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400183ef
add rax, 0x28
cmp rax, r9
jne 0x1400183d0
xor eax, eax
ret

Function at 0x1400183f0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140018480
mov rdx, qword [0x14011ca60]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14001846e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14001846e
cmp word [rax + 0x18], 0x20b
jne 0x14001846e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140018480
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140018459
add rbx, 0x28
cmp rbx, rdi
je 0x140018480
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140018450
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140018490
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14011ca60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400184b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400184b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400184b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14001850d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140018504
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400184b0
add rax, 0x28
cmp rax, r9
jne 0x1400184f0
xor eax, eax
ret

Function at 0x140018510
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14011ca60]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14001852f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140018538
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14001852f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140018550
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14011ca60]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140018570
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140018578
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140018570
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400185c0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400185b7
test rcx, rcx
je 0x140018570
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400185a8
xor eax, eax
ret

Function at 0x1400185d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14011ca60]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400185ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400185f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140018610
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14011ca60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140018630
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140018638
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140018630
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140018630
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140018684
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140018690
add rdx, 0x28
cmp rdx, r9
jne 0x140018670
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400186a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14011ca60]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400186c2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400186d0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400186c2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400186c2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400186c2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140018725
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140018738
add rdx, 0x28
cmp r10, rdx
jne 0x140018710
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140018747
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140018757
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14001872e
test ecx, ecx
jg 0x140018740
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140021830
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rsi
test rax, rax
je 0x140021878
mov rcx, rbx
mov qword [dbg.init_rand_s], rax
add rsp, 0x28
pop rbx
pop rsi
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rsi
mov qword [0x14014df60], rax
lea rax, [dbg.mingw_rand_s]
jmp 0x14002185e

Function at 0x140023fa0
Capabilities:
Allocate thread local storage

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

Function at 0x140023fc0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
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 0x1400240c2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14002409a
add rax, 1
cmp rax, 0x6b
je 0x1400240b7
cmp byte [rcx + rax], 0
jne 0x140024090
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x1400240b7
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov edx, 0x28
mov eax, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1400240a8
Function at 0x140024620
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x14014e000], 1
je 0x1400246c6
lea rdi, [0x140113160]
lea rsi, [0x14014e000]
mov rcx, rdi
call sym.pthread_spin_lock
mov rbx, qword [0x14014dfb0]
test rbx, rbx
jne 0x140024670
jmp 0x140024863
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x140024830
mov rbx, rax
cmp qword [rbx], rsi
jne 0x140024660
add dword [rbx + 0x10], 1
lea rsi, [rbx + 8]
mov rcx, rdi
call sym.pthread_spin_unlock
mov rcx, rsi
call sym.pthread_mutex_lock
mov edi, dword [0x14014e000]
test edi, edi
jne 0x1400246f0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140113178], eax
cmp eax, 0xffffffff
je sym.__pthread_self_lite.cold
mov dword [0x14014e000], 1
mov rcx, rsi
call sym.pthread_mutex_unlock
mov rcx, rbx
call sym.leaveOnceObject.part.0
mov ecx, dword [0x140113178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140024720
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp edi, 1
je 0x1400246b6
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r9d, edi
lea r8, [0x14014e000]
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sym.fprintf
jmp 0x1400246b6
call sym.pop_pthread_mem
cmp qword [sym.__dyn_tls_pthread], 0
mov rsi, rax
je 0x1400246da
test rax, rax
je 0x1400246da
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rsi + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsi + 0x38], 0xffffffffffffffff
lea rcx, [rsi + 0x68]
mov qword [rsi + 0x30], rax
call sym.pthread_spin_destroy
cmp eax, 1
je 0x140024888
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsi + 0x68], 0xffffffffffffffff
mov dword [rsi + 0xb8], 0
mov qword [rsi + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rbx
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rsi + 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 [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140113178]
mov rdx, rsi
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 sym.__pthread_self_lite.cold
mov rbx, rsi
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, 0x20
mov ecx, 1
call sym.calloc
mov qword [rax], rsi
mov dword [rax + 0x10], 1
mov qword [rbx + 0x18], rax
mov rbx, rax
lea rsi, [rbx + 8]
xor edx, edx
mov rcx, rsi
call sym.pthread_mutex_init
jmp 0x14002467d
mov edx, 0x20
mov ecx, 1
call sym.calloc
mov qword [rax], rsi
mov rbx, rax
mov dword [rax + 0x10], 1
mov qword [0x14014dfb0], rax
jmp 0x140024850
call sym.replace_spin_keys.part.0
nop
nop
Function at 0x140024d10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
test edx, edx
jne 0x140024d30
test r8, r8
je 0x140024de0
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret
cmp edx, 1
je 0x140024e10
cmp edx, 3
jne 0x140024d23
mov ecx, dword [0x140113178]
cmp ecx, 0xffffffff
je 0x140024d23
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140024d23
test byte [rax + 0x40], 0x30
je 0x140024e38
mov rcx, qword [rax + 0x1d8]
test rcx, rcx
je 0x140024d72
call sym._pthread_cleanup_dest.part.0
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x140024d97
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140024d8f
call rsi
pxor xmm0, xmm0
movups xmmword [rbx + 0x28], xmm0
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x140024f0c
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x140024eff
mov ecx, dword [0x140113178]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x140024d23
mov rcx, qword [0x14014dfc0]
test rcx, rcx
je 0x140024d23
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov qword [0x14014dfc0], 0
jmp 0x140024d23
lea rdx, [sym.SetThreadName_VEH]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x14014dfc0], rax
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rax + 0x30]
mov eax, dword [rax + 0xbc]
test eax, eax
jne 0x140024eb0
test rcx, rcx
je 0x140024e51
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
je 0x140024e74
call sym._pthread_cleanup_dest.part.0
test byte [rbx + 0x44], 4
je 0x140024ef0
mov rcx, qword [rbx + 0x28]
mov dword [rbx], 0xdeadbeef
test rcx, rcx
je 0x140024d97
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x28], 0
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x140024da4
test rcx, rcx
je 0x140024ef0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x30], 0
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x140024f0c
mov qword [rbx + 0x68], 0xffffffffffffffff
jmp 0x140024d23
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x140024ed0
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x140024dc8
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140026170
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140113168]
mov rbx, rcx
mov rcx, rdi
mov esi, edx
call sym.pthread_mutex_lock
mov rax, qword [0x14014dfd8]
test rax, rax
je 0x1400261e0
mov r9, qword [0x14014dfe0]
lea r8, [rax - 1]
xor ecx, ecx
cmp rax, 1
jne 0x1400261be
jmp 0x140026258
cmp rcx, rax
je 0x1400261e0
lea r8, [rax - 1]
cmp r8, rcx
jb 0x1400261e0
lea rax, [rcx + r8]
shr rax, 1
mov rdx, rax
shl rdx, 4
add rdx, r9
cmp rbx, qword [rdx + 8]
je 0x1400261f8
jb 0x1400261b0
lea rcx, [rax + 1]
cmp r8, rcx
jae 0x1400261be
mov rcx, rdi
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [rdx]
test rax, rax
je 0x1400261e0
cmp qword [rax + 0x1d8], rbx
jne 0x1400261e0
test byte [rax + 0x40], 0xc
jne 0x1400261e0
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x1400261e0
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x1400261e0
mov rcx, rdi
call sym.pthread_mutex_unlock
test esi, esi
je 0x140026250
sub esi, 2
cmp esi, 0x15
ja 0x140026263
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.pthread_cancel
xor eax, eax
jmp 0x1400261ed
cmp rbx, qword [r9 + 8]
jne 0x1400261e0
mov rax, qword [r9]
jmp 0x1400261fb
mov eax, 0x16
jmp 0x1400261ed
Function at 0x140026510
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, rcx
mov rdi, rdx
mov rsi, r8
mov r12, r9
call sym.pop_pthread_mem
mov rbx, rax
test rax, rax
je 0x140026744
test rbp, rbp
je 0x14002654b
mov rax, qword [rax + 0x1d8]
mov qword [rbp], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbx + 0x44], 1
mov dword [rbx + 0xbc], 0
mov qword [rbx + 0x28], 0xffffffffffffffff
mov r14, r13
mov qword [rbx + 8], r12
mov r12, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rsi
xor esi, esi
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call r12
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x1400265c0
test esi, esi
jne 0x1400265b0
xor ecx, ecx
mov esi, 1
call r14
jmp 0x14002657f
add esi, 1
mov ecx, 0x14
call r13
cmp esi, 5
jne 0x14002657f
mov qword [rbx + 0x38], 0xffffffffffffffff
lea r12, [rbx + 0x68]
mov rcx, r12
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14002676a
cmp qword [rbx + 0x30], 0
mov dword [rbx], 0xbab1f00d
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xc0], 0
mov dword [rbx + 0xb8], 0
je 0x14002672d
xor edx, edx
test rdi, rdi
je 0x14002662d
mov eax, dword [rdi]
mov rsi, qword [rdi + 0x10]
mov dword [rbx + 0x44], eax
test al, 8
jne 0x140026750
mov eax, dword [rdi + 0x18]
mov dword [rbx + 0xc0], eax
mov edx, esi
lea r8, [sym.pthread_create_wrapper]
mov r9, rbx
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rsi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400266f8
mov eax, dword [rbx + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x1400266d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [rbx + 0x44], 4
jne 0x1400266b0
mov qword [rbx + 0x28], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rsi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140026697
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x140026671
mov edx, 2
cmp eax, edx
cmovle edx, eax
cmp eax, 0xf
mov eax, 0xf
cmovge edx, eax
jmp 0x140026671
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140026707
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
mov rcx, r12
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14002676a
mov qword [rbx + 0x68], 0xffffffffffffffff
pxor xmm0, xmm0
movups xmmword [rbx + 0x28], xmm0
test rbp, rbp
je 0x14002673a
mov qword [rbp], 0
cmp qword [rbx + 0x1d0], 0
je 0x140026760
mov eax, 0xb
jmp 0x1400266a1
call sym.__pthread_self_lite
mov eax, dword [rax + 0xc0]
jmp 0x140026625
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x140026744
call sym.replace_spin_keys.part.0
nop
Function at 0x140029810
Capabilities:
Create thread

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x38], rdx
mov qword [rbp + 0x40], r8
mov rax, qword [rbp + 0x30]
mov qword [rax], 0
mov rax, qword [rbp + 0x30]
add rax, 8
mov edx, 0
mov rcx, rax
call method.mingw_stdthread::thread::id.id_unsigned_long_
mov ecx, 0x18
call sym.operator_new_unsigned_long_long_
mov rbx, rax
mov edi, 1
mov rax, qword [rbp + 0x40]
mov rcx, rax
call method.Timer_std.forward_Timer__std::remove_reference_Timer_::type_
mov rsi, rax
mov rax, qword [rbp + 0x38]
mov rcx, rax
call sym.void__Timer::std::forward_void__Timer::_____std::remove_reference_void__Timer::____::type____
mov r8, rsi
mov rdx, rax
mov rcx, rbx
call method.mingw_stdthread::detail.ThreadFuncCall_void__Timer::_____Timer_::ThreadFuncCall_void__Timer::_____Timer_
mov qword [rbp - 8], rbx
mov rax, qword [rbp + 0x30]
add rax, 8
mov rdx, qword [rbp - 8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rdx
lea rax, [method.unsigned_int_mingw_stdthread::thread::threadfunc_mingw_stdthread::detail.ThreadFuncCall_void__Timer::_____Timer___Timer__void_]
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.msvcrt.dll__beginthreadex]
call rax
mov rdx, rax
mov rax, qword [rbp + 0x30]
mov qword [rax], rdx
mov rax, qword [rbp + 0x30]
mov rax, qword [rax]
test rax, rax
jne 0x140029973
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov eax, dword [rax]
mov dword [rbp - 0xc], eax
mov rax, qword [rbp - 8]
test rax, rax
je 0x1400298ff
mov edx, 0x18
mov rcx, rax
call sym.operator_delete_void__unsigned_long_long_
mov ecx, 0x20
call sym.__cxa_allocate_exception
mov rbx, rax
call method.std::_V2.generic_category__
mov rdx, rax
mov eax, dword [rbp - 0xc]
mov r8, rdx
mov edx, eax
mov rcx, rbx
call method.std::system_error.system_error_int__std::_V2::error_category_const_
mov r8, qword [method.std::system_error.system_error__]
lea rax, [0x14011f9d0]
mov rdx, rax
mov rcx, rbx
call sym.__cxa_throw
mov rsi, rax
test dil, dil
je 0x140029952
mov edx, 0x18
mov rcx, rbx
call sym.operator_delete_void__unsigned_long_long_
mov rax, rsi
mov rcx, rax
call dbg._Unwind_Resume
mov rsi, rax
mov rcx, rbx
call sym.__cxa_free_exception
mov rax, rsi
mov rcx, rax
call dbg._Unwind_Resume
nop
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret