joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f540
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 [0x14013bd20], 1
je 0x14000f5e6
lea rdi, [0x140106140]
lea rsi, [0x14013bd20]
mov rcx, rdi
call sym.pthread_spin_lock
mov rbx, qword [0x14013bcd0]
test rbx, rbx
jne 0x14000f590
jmp 0x14000f783
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x14000f750
mov rbx, rax
cmp qword [rbx], rsi
jne 0x14000f580
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 [0x14013bd20]
test edi, edi
jne 0x14000f610
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140106158], eax
cmp eax, 0xffffffff
je sym.__pthread_self_lite.cold
mov dword [0x14013bd20], 1
mov rcx, rsi
call sym.pthread_mutex_unlock
mov rcx, rbx
call sym.leaveOnceObject.part.0
mov ecx, dword [0x140106158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14000f640
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp edi, 1
je 0x14000f5d6
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r9d, edi
lea r8, [0x14013bd20]
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sym.fprintf
jmp 0x14000f5d6
call sym.pop_pthread_mem
cmp qword [sym.__dyn_tls_pthread], 0
mov rsi, rax
je 0x14000f5fa
test rax, rax
je 0x14000f5fa
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 0x14000f7a8
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 [0x140106158]
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 0x14000f59d
mov edx, 0x20
mov ecx, 1
call sym.calloc
mov qword [rax], rsi
mov rbx, rax
mov dword [rax + 0x10], 1
mov qword [0x14013bcd0], rax
jmp 0x14000f770
call sym.replace_spin_keys.part.0
nop
nop
Function at 0x14000fc30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
test edx, edx
jne 0x14000fc50
test r8, r8
je 0x14000fd00
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret
cmp edx, 1
je 0x14000fd30
cmp edx, 3
jne 0x14000fc43
mov ecx, dword [0x140106158]
cmp ecx, 0xffffffff
je 0x14000fc43
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14000fc43
test byte [rax + 0x40], 0x30
je 0x14000fd58
mov rcx, qword [rax + 0x1d8]
test rcx, rcx
je 0x14000fc92
call sym._pthread_cleanup_dest.part.0
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14000fcb7
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14000fcaf
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 0x14000fe2c
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x14000fe1f
mov ecx, dword [0x140106158]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x14000fc43
mov rcx, qword [0x14013bce0]
test rcx, rcx
je 0x14000fc43
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov qword [0x14013bce0], 0
jmp 0x14000fc43
lea rdx, [sym.SetThreadName_VEH]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x14013bce0], 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 0x14000fdd0
test rcx, rcx
je 0x14000fd71
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 0x14000fd94
call sym._pthread_cleanup_dest.part.0
test byte [rbx + 0x44], 4
je 0x14000fe10
mov rcx, qword [rbx + 0x28]
mov dword [rbx], 0xdeadbeef
test rcx, rcx
je 0x14000fcb7
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 0x14000fcc4
test rcx, rcx
je 0x14000fe10
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 0x14000fe2c
mov qword [rbx + 0x68], 0xffffffffffffffff
jmp 0x14000fc43
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x14000fdf0
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x14000fce8
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140011090
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140106148]
mov rbx, rcx
mov rcx, rdi
mov esi, edx
call sym.pthread_mutex_lock
mov rax, qword [0x14013bcf8]
test rax, rax
je 0x140011100
mov r9, qword [0x14013bd00]
lea r8, [rax - 1]
xor ecx, ecx
cmp rax, 1
jne 0x1400110de
jmp 0x140011178
cmp rcx, rax
je 0x140011100
lea r8, [rax - 1]
cmp r8, rcx
jb 0x140011100
lea rax, [rcx + r8]
shr rax, 1
mov rdx, rax
shl rdx, 4
add rdx, r9
cmp rbx, qword [rdx + 8]
je 0x140011118
jb 0x1400110d0
lea rcx, [rax + 1]
cmp r8, rcx
jae 0x1400110de
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 0x140011100
cmp qword [rax + 0x1d8], rbx
jne 0x140011100
test byte [rax + 0x40], 0xc
jne 0x140011100
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x140011100
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x140011100
mov rcx, rdi
call sym.pthread_mutex_unlock
test esi, esi
je 0x140011170
sub esi, 2
cmp esi, 0x15
ja 0x140011183
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.pthread_cancel
xor eax, eax
jmp 0x14001110d
cmp rbx, qword [r9 + 8]
jne 0x140011100
mov rax, qword [r9]
jmp 0x14001111b
mov eax, 0x16
jmp 0x14001110d
Function at 0x140011430
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 0x140011664
test rbp, rbp
je 0x14001146b
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 0x1400114e0
test esi, esi
jne 0x1400114d0
xor ecx, ecx
mov esi, 1
call r14
jmp 0x14001149f
add esi, 1
mov ecx, 0x14
call r13
cmp esi, 5
jne 0x14001149f
mov qword [rbx + 0x38], 0xffffffffffffffff
lea r12, [rbx + 0x68]
mov rcx, r12
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14001168a
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 0x14001164d
xor edx, edx
test rdi, rdi
je 0x14001154d
mov eax, dword [rdi]
mov rsi, qword [rdi + 0x10]
mov dword [rbx + 0x44], eax
test al, 8
jne 0x140011670
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 0x140011618
mov eax, dword [rbx + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x1400115f0
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 0x1400115d0
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 0x1400115b7
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x140011591
mov edx, 2
cmp eax, edx
cmovle edx, eax
cmp eax, 0xf
mov eax, 0xf
cmovge edx, eax
jmp 0x140011591
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140011627
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 0x14001168a
mov qword [rbx + 0x68], 0xffffffffffffffff
pxor xmm0, xmm0
movups xmmword [rbx + 0x28], xmm0
test rbp, rbp
je 0x14001165a
mov qword [rbp], 0
cmp qword [rbx + 0x1d0], 0
je 0x140011680
mov eax, 0xb
jmp 0x1400115c1
call sym.__pthread_self_lite
mov eax, dword [rax + 0xc0]
jmp 0x140011545
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x140011664
call sym.replace_spin_keys.part.0
nop
Function at 0x140014c70
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 0x140014c9c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x14009d400
Capabilities:
Create directory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rbx, rcx
mov dword [rsp + 0x30], 0
call method.std::_V2.system_category__
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rax
call qword [sym.imp.msvcrt.dll__wmkdir]
mov edx, eax
mov eax, 1
test edx, edx
jne 0x14009d440
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.msvcrt.dll__errno]
mov esi, dword [rax]
cmp esi, 0x11
je 0x14009d470
call method.std::_V2.generic_category__
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], rax
test esi, esi
jne 0x14009d487
xor eax, eax
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
lea rdx, [rsp + 0x30]
mov rcx, rbx
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp al, 2
jne 0x14009d44d
mov esi, dword [rsp + 0x30]
jmp 0x14009d45b
mov ecx, 0x30
lea rdi, [rsp + 0x40]
call sym.__cxa_allocate_exception
lea rdx, str.cannot_create_directory
mov rcx, rdi
mov rsi, rax
call fcn.1400e7bb0
movdqa xmm0, xmmword [rsp + 0x30]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
lea r9, [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
call method.std::filesystem::__cxx11::filesystem_error.filesystem_error_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::filesystem::__cxx11::path_const__std::error_code_
mov rcx, rdi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
lea r8, [method.std::filesystem::__cxx11::filesystem_error.filesystem_error__]
lea rdx, [0x140110500]
mov rcx, rsi
call sym.__cxa_throw
mov rbx, rax
jmp 0x14009d4f4
mov rcx, rsi
call sym.__cxa_free_exception
mov rcx, rbx
call dbg._Unwind_Resume
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x14009d510
Capabilities:
Create directory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rbx, rdx
mov rcx, qword [rcx]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x14009d550
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.msvcrt.dll__errno]
mov edi, dword [rax]
cmp edi, 0x11
je 0x14009d578
call method.std::_V2.generic_category__
mov dword [rbx], edi
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rdx, rbx
mov rcx, rsi
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp al, 2
jne 0x14009d55d
xor eax, eax
jmp 0x14009d56a
Function at 0x14009d590
Capabilities:
Create directory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov rbx, rdx
mov rdi, rcx
lea rsi, [rsp + 0x40]
mov dword [rsp + 0x30], 0
call method.std::_V2.system_category__
mov rcx, qword [rbx]
mov rdx, rsi
mov qword [rsp + 0x38], rax
call qword [sym.imp.msvcrt.dll__wstat64]
test eax, eax
jne 0x14009d620
mov rcx, qword [rdi]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x14009d5f0
mov eax, 1
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [rax]
cmp ebx, 0x11
je 0x14009d640
call method.std::_V2.generic_category__
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x14009d657
xor eax, eax
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
ret
call method.std::_V2.generic_category__
mov rbp, rax
call qword [sym.imp.msvcrt.dll__errno]
mov qword [rsp + 0x38], rbp
mov ebx, dword [rax]
mov dword [rsp + 0x30], ebx
jmp 0x14009d60b
lea rdx, [rsp + 0x30]
mov rcx, rdi
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp al, 2
jne 0x14009d5fd
mov ebx, dword [rsp + 0x30]
jmp 0x14009d60b
mov ecx, 0x30
call sym.__cxa_allocate_exception
lea rdx, str.cannot_create_directory
mov rcx, rsi
mov rbp, rax
call fcn.1400e7bb0
movdqa xmm0, xmmword [rsp + 0x30]
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
lea r9, [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
call method.std::filesystem::__cxx11::filesystem_error.filesystem_error_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::filesystem::__cxx11::path_const__std::error_code_
mov rcx, rsi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
lea r8, [method.std::filesystem::__cxx11::filesystem_error.filesystem_error__]
lea rdx, [0x140110500]
mov rcx, rbp
call sym.__cxa_throw
mov rbx, rax
jmp 0x14009d6bf
mov rcx, rbp
call sym.__cxa_free_exception
mov rcx, rbx
call dbg._Unwind_Resume
nop

Function at 0x14009d6d0
Capabilities:
Create directory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x20]
mov rbx, r8
mov rcx, qword [rax]
call qword [sym.imp.msvcrt.dll__wstat64]
test eax, eax
jne 0x14009d748
mov rcx, qword [rsi]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x14009d720
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.msvcrt.dll__errno]
mov edi, dword [rax]
cmp edi, 0x11
je 0x14009d768
call method.std::_V2.generic_category__
mov dword [rbx], edi
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
call method.std::_V2.generic_category__
mov rsi, rax
call qword [sym.imp.msvcrt.dll__errno]
mov eax, dword [rax]
mov qword [rbx + 8], rsi
mov dword [rbx], eax
xor eax, eax
jmp 0x14009d73a
mov rdx, rbx
mov rcx, rsi
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp al, 2
jne 0x14009d72d
jmp 0x14009d738
Function at 0x1400a1880
Capabilities:
Get disk size

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov rsi, rdx
lea rdi, [rsp + 0x50]
mov rbx, rcx
call method.std::_V2.system_category__
pcmpeqd xmm0, xmm0
mov rdx, rsi
mov rcx, rdi
mov rbp, rax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0xffffffffffffffff
call method.std::filesystem.absolute_std::filesystem::__cxx11::path_const_
mov rcx, rdi
call method.std::filesystem::__cxx11::path.remove_filename__
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x48], 0
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1400a19a0
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x1400a190e
mov qword [rbx], rax
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1400a191c
mov qword [rbx + 8], rax
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1400a192a
mov qword [rbx + 0x10], rax
mov rdx, qword [rsp + 0x70]
test rdx, rdx
je 0x1400a1980
lea rcx, [rsp + 0x70]
xor r12d, r12d
call method.std::filesystem::__cxx11::path::_List::_Impl_deleter.operator___std::filesystem::__cxx11::path::_List::_Impl__const
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
cmp rcx, rax
je 0x1400a1964
mov rax, qword [rsp + 0x60]
lea rdx, [rax + rax + 2]
call sym.operator_delete_void__unsigned_long_long_
test r12d, r12d
jne 0x1400a19ce
mov rax, rbx
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
cmp rcx, rax
je 0x1400a1964
mov rax, qword [rsp + 0x60]
lea rdx, [rax + rax + 2]
call sym.operator_delete_void__unsigned_long_long_
jmp 0x1400a1964
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rsp + 0x70]
mov r12d, eax
test rdx, rdx
je 0x1400a19bd
lea rcx, [rsp + 0x70]
call method.std::filesystem::__cxx11::path::_List::_Impl_deleter.operator___std::filesystem::__cxx11::path::_List::_Impl__const
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
cmp rcx, rax
jne 0x1400a1950
jmp 0x1400a195f
mov ecx, 0x30
call sym.__cxa_allocate_exception
lea rdx, str.cannot_get_free_space
mov rcx, rdi
mov r13, rax
call fcn.1400e7bb0
mov eax, r12d
lea r9, [rsp + 0x20]
mov r8, rsi
mov rdx, rdi
mov rcx, r13
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbp
call method.std::filesystem::__cxx11::filesystem_error.filesystem_error_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::filesystem::__cxx11::path_const__std::error_code_
mov rcx, rdi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
lea r8, [method.std::filesystem::__cxx11::filesystem_error.filesystem_error__]
lea rdx, [0x140110500]
mov rcx, r13
call sym.__cxa_throw
mov rbx, rax
jmp 0x1400a1a38
mov rcx, r13
call sym.__cxa_free_exception
mov rcx, rbx
call dbg._Unwind_Resume
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400a1a50
Capabilities:
Get disk size

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x70
pcmpeqd xmm0, xmm0
lea rdi, [rsp + 0x40]
movups xmmword [rcx], xmm0
mov rbx, rcx
mov rsi, r8
mov qword [rcx + 0x10], 0xffffffffffffffff
mov rcx, rdi
call method.std::filesystem.absolute_std::filesystem::__cxx11::path_const_
mov rcx, rdi
call method.std::filesystem::__cxx11::path.remove_filename__
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x28]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1400a1b40
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1400a1acb
mov qword [rbx], rax
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1400a1ad9
mov qword [rbx + 8], rax
mov rax, qword [rsp + 0x28]
test rax, rax
jne 0x1400a1b30
call method.std::_V2.system_category__
xor edi, edi
mov rdx, qword [rsp + 0x60]
mov dword [rsi], edi
mov qword [rsi + 8], rax
test rdx, rdx
je 0x1400a1b04
lea rcx, [rsp + 0x60]
call method.std::filesystem::__cxx11::path::_List::_Impl_deleter.operator___std::filesystem::__cxx11::path::_List::_Impl__const
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
cmp rcx, rax
je 0x1400a1b22
mov rax, qword [rsp + 0x50]
lea rdx, [rax + rax + 2]
call sym.operator_delete_void__unsigned_long_long_
mov rax, rbx
add rsp, 0x70
pop rbx
pop rsi
pop rdi
ret
mov qword [rbx + 0x10], rax
jmp 0x1400a1ae3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call method.std::_V2.system_category__
jmp 0x1400a1aea
Function at 0x1400a1b50
Capabilities:
Delete directory
Delete file

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rbx, rcx
lea rdi, [rsp + 0x30]
mov dword [rsp + 0x30], 0
call method.std::_V2.system_category__
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x38], rax
mov rsi, rax
call method.std::filesystem.symlink_status_std::filesystem::__cxx11::path_const__std::error_code_
test al, al
jne 0x1400a1b98
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x1400a1bc8
xor eax, eax
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
cmp al, 0xff
je 0x1400a1b8b
mov rdx, rdi
mov rcx, rbx
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp al, 2
je 0x1400a1c28
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400a1c39
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400a1c50
mov ecx, 0x30
lea rdi, [rsp + 0x40]
call sym.__cxa_allocate_exception
lea rdx, str.cannot_remove
mov rcx, rdi
mov rsi, rax
call fcn.1400e7bb0
movdqa xmm0, xmmword [rsp + 0x30]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
lea r9, [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
call method.std::filesystem::__cxx11::filesystem_error.filesystem_error_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::filesystem::__cxx11::path_const__std::error_code_
mov rcx, rdi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
lea r8, [method.std::filesystem::__cxx11::filesystem_error.filesystem_error__]
lea rdx, [0x140110500]
mov rcx, rsi
call sym.__cxa_throw
nop dword [rax]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1400a1bab
mov eax, 1
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], eax
jmp 0x1400a1b87

Function at 0x1400a1c90
Capabilities:
Delete directory
Delete file

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call method.std::filesystem.symlink_status_std::filesystem::__cxx11::path_const__std::error_code_
test al, al
je 0x1400a1cde
cmp al, 0xff
je 0x1400a1cf0
mov rdx, rbx
mov rcx, rsi
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp al, 2
je 0x1400a1d08
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400a1d15
mov eax, dword [rbx]
test eax, eax
jne 0x1400a1cde
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call method.std::_V2.system_category__
mov dword [rbx], esi
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
jmp 0x1400a1cde
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1400a1cb8
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret