joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018950
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x1400e3d40], 1
mov r12d, eax
je 0x14001897c
call sym._pthread_once_raw.part.0.constprop.0.isra.0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140018a58
lea r13, [rbx + 0x68]
mov rcx, r13
call sym.pthread_spin_lock
cmp dword [rbx + 0x48], esi
jbe 0x1400189e0
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], rbp
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call sym.pthread_spin_unlock
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sym.realloc
mov rdi, rax
test rax, rax
je 0x140018a65
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sym.realloc
mov r14, rax
test rax, rax
je 0x140018a65
mov eax, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
sub r8d, eax
lea rcx, [rdi + rax*8]
shl r8, 3
call sym.memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sym.memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x1400189a9
call sym.__pthread_self_lite.part.0
mov rbx, rax
jmp 0x140018994
mov rcx, r13
call sym.pthread_spin_unlock
mov eax, 0xc
jmp 0x1400189c8

Function at 0x140018aa0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x1400e3d40], 1
je 0x140018ab2
call sym._pthread_once_raw.part.0.constprop.0.isra.0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018ad8
mov r8, qword [rax + 0x1d8]
mov rax, r8
add rsp, 0x28
ret
call sym.__pthread_self_lite.part.0
xor r8d, r8d
test rax, rax
jne 0x140018ac3
mov rax, r8
add rsp, 0x28
ret

Function at 0x140018af0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x1400e3d40], 1
je 0x140018b02
call sym._pthread_once_raw.part.0.constprop.0.isra.0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018b20
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x140018b13
add rsp, 0x28
ret

Function at 0x140018b90
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x1400e3d40], 1
je 0x140018ba2
call sym._pthread_once_raw.part.0.constprop.0.isra.0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018bc0
add rax, 0x18
add rsp, 0x28
ret
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x140018bb3
jmp 0x140018bb7
Function at 0x140018ce0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400e3d48]
test eax, eax
jne 0x140018cf8
xor eax, eax
add rsp, 0x28
ret
cmp dword [0x1400e3d40], 1
je 0x140018d06
call sym._pthread_once_raw.part.0.constprop.0.isra.0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018d30
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x140018cee
test byte [rax + 0x40], 3
je 0x140018cee
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140018cf0
call sym.__pthread_self_lite.part.0
test rax, rax
je 0x140018cee
jmp 0x140018d17

Function at 0x140018d40
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1400e3d40], 1
mov ebx, ecx
je 0x140018d55
call sym._pthread_once_raw.part.0.constprop.0.isra.0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018d90
add rax, 0x20
test ebx, ebx
jle 0x140018d80
lock add dword [rax], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax], 1
add rsp, 0x20
pop rbx
ret
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x140018d66
add rsp, 0x20
pop rbx
ret

Function at 0x140018e90
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbx
sub rsp, 0x28
cmp dword [0x1400e3d40], 1
je 0x140018ea5
call sym._pthread_once_raw.part.0.constprop.0.isra.0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140018f10
test byte [rbx + 0x40], 0xc
jne 0x140018ec9
mov eax, dword [0x1400e3d48]
test eax, eax
jne 0x140018ed8
add rsp, 0x28
pop rbx
pop r12
ret
lea r12, [rbx + 0x38]
mov rcx, r12
call sym.pthread_mutex_lock
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140018efb
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140018efb
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140018f25
mov rcx, r12
add rsp, 0x28
pop rbx
pop r12
jmp sym.pthread_mutex_unlock
call sym.__pthread_self_lite.part.0
mov rbx, rax
test rax, rax
jne 0x140018eb9
add rsp, 0x28
pop rbx
pop r12
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x140018f43
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, r12
call sym.pthread_mutex_unlock
call sym._pthread_invoke_cancel
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140018f60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbx
sub rsp, 0x28
xor r12d, r12d
test rcx, rcx
je 0x140018f86
call sym._pthread_time_in_ms_from_timespec
mov edx, 0xfffffffe
mov r12d, 0xffffffff
cmp rax, rdx
cmovbe r12d, eax
cmp dword [0x1400e3d40], 1
je 0x140018f94
call sym._pthread_once_raw.part.0.constprop.0.isra.0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140018ff8
test r12d, r12d
je 0x140018fd8
call sym.pthread_testcancel
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140019008
mov edx, r12d
call sym._pthread_wait_for_single_object
call sym.pthread_testcancel
xor eax, eax
add rsp, 0x28
pop rbx
pop r12
ret
call sym.pthread_testcancel
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call sym.pthread_testcancel
xor eax, eax
add rsp, 0x28
pop rbx
pop r12
ret
call sym.__pthread_self_lite.part.0
mov rbx, rax
jmp 0x140018fa8
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140018fc3

Function at 0x140019020
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbx
sub rsp, 0x28
cmp dword [0x1400e3d40], 1
mov r12d, ecx
je 0x140019038
call sym._pthread_once_raw.part.0.constprop.0.isra.0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400190a0
test r12d, r12d
je 0x140019080
call sym.pthread_testcancel
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400190b0
mov edx, r12d
call sym._pthread_wait_for_single_object
call sym.pthread_testcancel
xor eax, eax
add rsp, 0x28
pop rbx
pop r12
ret
call sym.pthread_testcancel
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call sym.pthread_testcancel
xor eax, eax
add rsp, 0x28
pop rbx
pop r12
ret
call sym.__pthread_self_lite.part.0
mov rbx, rax
jmp 0x14001904c
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140019067
Function at 0x1400190c0
Capabilities:
Get thread local storage value
Hijack thread execution

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x4f8
mov rsi, rcx
test rcx, rcx
je 0x1400191c6
lea rcx, [0x1400b3168]
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
lea rcx, [0x1400b3168]
mov rbx, rax
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x1400191c6
mov rcx, qword [rbx + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400191c6
lea r12, [rsp + 0x20]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1400191c6
lea r13, [rbx + 0x38]
mov rcx, r13
call sym.pthread_mutex_lock
cmp dword [0x1400e3d40], 1
je 0x140019147
call sym._pthread_once_raw.part.0.constprop.0.isra.0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400192d8
cmp rsi, qword [rax + 0x1d8]
je 0x1400191e0
mov edx, dword [rbx + 0x44]
movzx eax, byte [rbx + 0x40]
and edx, 3
cmp edx, 3
je 0x140019238
test al, 3
jne 0x1400191b8
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
lock add dword [0x1400e3d48], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001919c
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, r13
call sym.pthread_mutex_unlock
xor eax, eax
add rsp, 0x4f8
pop rbx
pop rsi
pop r12
pop r13
ret
mov rcx, r13
call sym.pthread_mutex_unlock
test byte [rbx + 0x40], 0xc
je 0x1400191a4
mov eax, 3
add rsp, 0x4f8
pop rbx
pop rsi
pop r12
pop r13
ret
movzx eax, byte [rbx + 0x40]
test al, 3
jne 0x1400191b8
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
lock add dword [0x1400e3d48], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140019208
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [rbx + 0x44]
mov edx, eax
and edx, 3
cmp edx, 3
jne 0x14001919c
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 sym.pthread_mutex_unlock
call sym._pthread_invoke_cancel
nop dword [rax]
test al, 0xc
jne 0x1400191b8
test al, 0xf
jne 0x1400191c6
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 0x14001919c
mov rcx, qword [rbx + 0x28]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
lea rax, [sym._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 [0x1400e3d48], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400192be
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, r13
call sym.pthread_mutex_unlock
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x14001919c
call sym.__pthread_self_lite.part.0
test rax, rax
je 0x140019165
jmp 0x14001915c
Function at 0x1400192f0
Capabilities:
Get thread local storage value
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
lea rcx, [0x1400b3168]
mov ebx, edx
call sym.pthread_mutex_lock
mov rcx, r12
call sym.__pthread_get_pointer
test rax, rax
je 0x140019368
cmp qword [rax + 0x1d8], r12
jne 0x140019368
test byte [rax + 0x40], 0xc
jne 0x140019368
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x140019368
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x140019368
lea rcx, [0x1400b3168]
call sym.pthread_mutex_unlock
test ebx, ebx
je 0x140019388
lea edx, [rbx - 2]
cmp edx, 0x15
ja 0x140019390
mov rcx, r12
add rsp, 0x28
pop rbx
pop r12
jmp sym.pthread_cancel
lea rcx, [0x1400b3168]
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x28
pop rbx
pop r12
ret
xor eax, eax
jmp 0x140019379
mov eax, 0x16
jmp 0x140019379

Function at 0x140019540
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400e3d40], 1
mov esi, ecx
mov rdi, rdx
je 0x14001955c
call sym._pthread_once_raw.part.0.constprop.0.isra.0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400195d8
test esi, 0xfffffffe
je 0x140019590
mov eax, 0x16
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
ret
lea r12, [rbx + 0x38]
mov rcx, r12
call sym.pthread_mutex_lock
test rdi, rdi
je 0x1400195a9
mov eax, dword [rbx + 0x44]
and eax, 1
mov dword [rdi], eax
mov ecx, dword [rbx + 0x44]
and ecx, 0xfffffffe
or esi, ecx
mov rcx, qword [rbx + 0x1d8]
mov dword [rbx + 0x44], esi
call sym.test_cancel_locked
mov rcx, r12
call sym.pthread_mutex_unlock
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
ret
call sym.__pthread_self_lite.part.0
mov rbx, rax
test rax, rax
jne 0x140019570
jmp 0x140019578

Function at 0x1400195f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400e3d40], 1
mov esi, ecx
mov rdi, rdx
je 0x14001960c
call sym._pthread_once_raw.part.0.constprop.0.isra.0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140019688
test esi, 0xfffffffd
je 0x140019640
mov eax, 0x16
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
ret
lea r12, [rbx + 0x38]
mov rcx, r12
call sym.pthread_mutex_lock
test rdi, rdi
je 0x140019659
mov eax, dword [rbx + 0x44]
and eax, 2
mov dword [rdi], eax
mov ecx, dword [rbx + 0x44]
and ecx, 0xfffffffd
or esi, ecx
mov rcx, qword [rbx + 0x1d8]
mov dword [rbx + 0x44], esi
call sym.test_cancel_locked
mov rcx, r12
call sym.pthread_mutex_unlock
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
ret
call sym.__pthread_self_lite.part.0
mov rbx, rax
test rax, rax
jne 0x140019620
jmp 0x140019628
Function at 0x140019980
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x40
mov rbx, rcx
mov rsi, rdx
test rcx, rcx
je 0x140019ac0
lea rcx, [0x1400b3168]
call sym.pthread_mutex_lock
mov rcx, rbx
call sym.__pthread_get_pointer
lea rcx, [0x1400b3168]
mov r12, rax
call sym.pthread_mutex_unlock
test r12, r12
je 0x140019ac0
mov rcx, qword [r12 + 0x28]
test rcx, rcx
je 0x140019ac0
lea rdx, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x140019ac0
test byte [r12 + 0x44], 4
jne 0x140019ad0
cmp dword [0x1400e3d40], 1
je 0x1400199fe
call sym._pthread_once_raw.part.0.constprop.0.isra.0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140019ae0
cmp rbx, qword [rax + 0x1d8]
je 0x140019af8
mov eax, dword [r12 + 0xbc]
mov rcx, qword [r12 + 0x28]
test eax, eax
je 0x140019a3b
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140019a4b
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [r12 + 0x28]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x140019a60
call rbx
mov qword [r12 + 0x30], 0
test rsi, rsi
je 0x140019a76
mov rax, qword [r12 + 8]
mov qword [rsi], rax
lea rcx, [r12 + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [r12 + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x140019aff
mov qword [r12 + 0x68], 0xffffffffffffffff
xor eax, eax
cmp qword [r12 + 0x1d0], 0
jne 0x140019ac5
mov rcx, r12
mov dword [rsp + 0x2c], eax
call sym.push_pthread_mem.part.0
mov eax, dword [rsp + 0x2c]
jmp 0x140019ac5
mov eax, 3
add rsp, 0x40
pop rbx
pop rsi
pop r12
ret
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop r12
ret
call sym.__pthread_self_lite.part.0
test rax, rax
je 0x140019a20
jmp 0x140019a13
mov eax, 0x24
jmp 0x140019ac5
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
Function at 0x140019b10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
lea rcx, [0x1400b3168]
mov rsi, rdx
call sym.pthread_mutex_lock
mov rcx, rbx
call sym.__pthread_get_pointer
mov r12, rax
test rax, rax
je 0x140019c40
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x140019c40
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x140019c40
test byte [r12 + 0x44], 4
jne 0x140019c60
cmp dword [0x1400e3d40], 1
je 0x140019b78
call sym._pthread_once_raw.part.0.constprop.0.isra.0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140019ca8
mov rdx, qword [rax + 0x1d8]
cmp rbx, rdx
je 0x140019cd0
mov edx, dword [r12 + 0xbc]
test edx, edx
jne 0x140019bbe
xor edx, edx
mov rcx, qword [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140019c80
mov rcx, qword [r12 + 0x28]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x140019bd8
call rbx
mov qword [r12 + 0x30], 0
test rsi, rsi
je 0x140019bee
mov rax, qword [r12 + 8]
mov qword [rsi], rax
lea rcx, [r12 + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [r12 + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x140019ce6
cmp qword [r12 + 0x1d0], 0
mov qword [r12 + 0x68], 0xffffffffffffffff
je 0x140019cc0
lea rcx, [0x1400b3168]
call sym.pthread_mutex_unlock
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, [0x1400b3168]
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, [0x1400b3168]
call sym.pthread_mutex_unlock
mov eax, 0x16
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov eax, dword [r12 + 0xbc]
test eax, eax
jne 0x140019bbe
lea rcx, [0x1400b3168]
call sym.pthread_mutex_unlock
mov eax, 0x10
jmp 0x140019c31
call sym.__pthread_self_lite.part.0
xor edx, edx
test rax, rax
je 0x140019b94
jmp 0x140019b8d
mov rcx, r12
call sym.push_pthread_mem.part.0
jmp 0x140019c23
lea rcx, [0x1400b3168]
call sym.pthread_mutex_unlock
mov eax, 0x24
jmp 0x140019c31
call sym.replace_spin_keys.part.0
nop
nop dword [rax]

Function at 0x14001d150
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x14001d17c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x14001ddf0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
cmp byte [0x1400b5eb0], 0
jne 0x14001defa
mov byte [0x1400b5eb0], 1
call dbg.__cxa_current_exception_type
test rax, rax
je 0x14001ded0
mov r12, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [r12], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add r12, rax
mov rcx, r12
call dbg.__cxa_demangle
mov ecx, 2
mov rbx, qword [dbg.__acrt_iob_func]
mov r13, rax
call rbx
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x14001dec1
call rbx
mov rcx, r12
mov rdx, rax
call sym.fputs
mov ecx, 2
call rbx
mov r8d, 2
mov edx, 1
lea rcx, [0x1400b6541]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x14001debc
mov rcx, r13
call sym.free
call dbg.__cxa_rethrow
call rbx
mov rcx, r13
mov rdx, rax
call sym.fputs
jmp 0x14001de8b
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x14001df8f
call dbg.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov r12, rax
call rbx
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rbx
mov rdx, rax
mov rcx, r12
call sym.fputs
mov ecx, 2
call rbx
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call dbg.__cxa_end_catch
jmp 0x14001def5
call dbg.__cxa_begin_catch
call dbg.__cxa_end_catch
jmp 0x14001def5

Function at 0x140077430
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x140077457
call rbp
cmp dword [rax], 4
jne 0x140077474
mov rcx, rdi
call dbg.std::__basic_file<char>::fd()
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sym.read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x140077450
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14008a970
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x14008a998
xor ecx, ecx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x14008a9e0
cdqe
add rsi, rax
sub rbx, rax
jne 0x14008a9b0
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x14008a9ec
call rbp
cmp dword [rax], 4
je 0x14008a9b0
lea rcx, str.random_device_could_not_be_read
call dbg.std::__throw_runtime_error(char const*)
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14001aae0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x60
mov qword [rsp + 0x50], 0xfffffffffffffffe
lea rcx, [rsp + 0x28]
call fcn.140003950
nop
mov rcx, qword [rsp + 0x78]
call fcn.1400018a0
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.140066e20
test eax, eax
jne 0x14001ab74
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov r8d, dword [rsp + 0x30]
lea rdx, [0x140108220]
lea rcx, str._s___return_FALSE__1__LastError_u_kGetShortPathName_returned_FALSE._n
call fcn.140062f80
mov rdx, qword [rsp + 0x78]
mov rdx, qword [rdx]
lea rcx, str._strSrcFileName__s_._n
call fcn.140062f80
mov dword [rsp + 0x3c], 0
lea rcx, [rsp + 0x28]
call fcn.140003a70
mov eax, dword [rsp + 0x3c]
jmp 0x14001ad03
lea rcx, [rsp + 0x20]
call fcn.140003950
nop
mov rcx, qword [rsp + 0x80]
call fcn.1400018a0
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140066e20
test eax, eax
jne 0x14001abfc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
mov r8d, dword [rsp + 0x34]
lea rdx, [0x1401082b0]
lea rcx, str._s___return_FALSE__2__LastError_u_kGetShortPathName_returned_FALSE._n
call fcn.140062f80
mov rdx, qword [rsp + 0x80]
mov rdx, qword [rdx]
lea rcx, str._strDestFileName__s_._n
call fcn.140062f80
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140003a70
nop
lea rcx, [rsp + 0x28]
call fcn.140003a70
mov eax, dword [rsp + 0x40]
jmp 0x14001ad03
call fcn.140075480
test eax, eax
jne 0x14001ac91
lea rcx, [rsp + 0x20]
call fcn.1400018a0
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.1400018a0
mov r8d, 5
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x14001ac91
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
mov r8d, dword [rsp + 0x38]
lea rdx, [0x140108340]
lea rcx, str._s___return_FALSE__3__LastError_u_MoveFileEx_returned_FALSE._n
call fcn.140062f80
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
lea rcx, str._strSrcFile__s__strDestFile__s_._n
call fcn.140062f80
mov dword [rsp + 0x44], 0
lea rcx, [rsp + 0x20]
call fcn.140003a70
nop
lea rcx, [rsp + 0x28]
call fcn.140003a70
mov eax, dword [rsp + 0x44]
jmp 0x14001ad03
mov rdx, qword [rsp + 0x80]
mov rdx, qword [rdx]
lea rcx, str.OSREBOOT_FILE_REBOOTOVERWRITE____s_._n
call fcn.140062f80
call fcn.140056620
mov edx, 1
mov rcx, rax
call fcn.140056b70
cmp dword [rax + 0x14], 2
jb 0x14001ace2
call fcn.140007560
mov dword [rax + 0x240], 1
lea rdx, str.CInstPrepareDlg::kRebootCopyFile
lea rcx, str._s___change_m_bOSReboot._n
call fcn.140062f80
mov dword [rsp + 0x48], 1
lea rcx, [rsp + 0x20]
call fcn.140003a70
nop
lea rcx, [rsp + 0x28]
call fcn.140003a70
mov eax, dword [rsp + 0x48]
add rsp, 0x60
pop rbx
ret