joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001e5c0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov eax, edx
mov byte [rbp + 0x28], al
movzx eax, byte [rbp + 0x28]
mov ecx, eax
call method.http::detail.getAddressFamily_http::InternetProtocol_
mov r8d, 6
mov edx, 1
mov ecx, eax
mov rax, qword [sym.imp.WSOCK32.dll_socket]
call rax
mov rdx, qword [rbp + 0x20]
mov qword [rdx], rax
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
cmp rax, 0xffffffffffffffff
jne 0x14001e651
mov ecx, 0x20
call sym.__cxa_allocate_exception
mov rbx, rax
mov rax, qword [sym.imp.WSOCK32.dll_WSAGetLastError]
call rax
lea r9, str.Failed_to_create_socket
lea r8, [0x140134f20]
mov edx, eax
mov rcx, rbx
call method.std::system_error.system_error_int__std::_V2::error_category_const__char_const_
mov r8, qword [method.std::system_error.system_error__]
lea rax, [0x14013eea0]
mov rdx, rax
mov rcx, rbx
call sym.__cxa_throw
mov dword [rbp - 4], 1
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
lea rdx, [rbp - 4]
mov r8, rdx
mov edx, 0x8004667e
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_ioctlsocket]
call rax
cmp eax, 0xffffffff
sete al
test al, al
je 0x14001e6fd
mov rcx, qword [rbp + 0x20]
call method.http::detail::Socket.close__
mov ecx, 0x20
call sym.__cxa_allocate_exception
mov rbx, rax
mov rax, qword [sym.imp.WSOCK32.dll_WSAGetLastError]
call rax
lea r9, str.Failed_to_get_socket_flags
lea r8, [0x140134f20]
mov edx, eax
mov rcx, rbx
call method.std::system_error.system_error_int__std::_V2::error_category_const__char_const_
mov r8, qword [method.std::system_error.system_error__]
lea rax, [0x14013eea0]
mov rdx, rax
mov rcx, rbx
call sym.__cxa_throw
mov rsi, rax
mov rcx, rbx
call sym.__cxa_free_exception
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, 0x30
pop rbx
pop rsi
pop rbp
ret
Function at 0x14001e870
Capabilities:
Initialize winsock library

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x1c0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x160], rcx
mov rax, qword [rbp + 0x160]
mov byte [rax], 0
lea rax, [rbp - 0x60]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WSOCK32.dll_WSAStartup]
call rax
mov dword [rbp + 0x13c], eax
cmp dword [rbp + 0x13c], 0
je 0x14001e8fb
mov ecx, 0x20
call sym.__cxa_allocate_exception
mov rbx, rax
mov eax, dword [rbp + 0x13c]
lea r9, str.WSAStartup_failed
lea r8, [0x140134f20]
mov edx, eax
mov rcx, rbx
call method.std::system_error.system_error_int__std::_V2::error_category_const__char_const_
mov r8, qword [method.std::system_error.system_error__]
lea rax, [0x14013eea0]
mov rdx, rax
mov rcx, rbx
call sym.__cxa_throw
movzx eax, word [rbp - 0x60]
cmp al, 2
jne 0x14001e90f
movzx eax, word [rbp - 0x60]
shr ax, 8
cmp al, 2
je 0x14001e950
mov rax, qword [sym.imp.WSOCK32.dll_WSACleanup]
call rax
mov ecx, 0x10
call sym.__cxa_allocate_exception
mov rbx, rax
lea rax, str.Invalid_WinSock_version
mov rdx, rax
mov rcx, rbx
call method.std::runtime_error.runtime_error_char_const_
mov r8, qword [method.std::runtime_error.runtime_error__]
lea rax, [0x14013eff0]
mov rdx, rax
mov rcx, rbx
call sym.__cxa_throw
mov rax, qword [rbp + 0x160]
mov byte [rax], 1
jmp 0x14001e989
add rsp, 0x1c0
pop rbx
pop rsi
pop rbp
ret
Function at 0x14002b2d0
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 0x14002b2fc
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x1400b56f0
Capabilities:
Create directory

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x68
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 r8d, eax
mov eax, 1
test r8d, r8d
jne 0x1400b5730
add rsp, 0x68
pop rbx
pop rsi
pop r12
pop r13
ret
call qword [sym.imp.msvcrt.dll__errno]
mov esi, dword [rax]
cmp esi, 0x11
je 0x1400b5760
call method.std::_V2.generic_category__
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], rax
test esi, esi
jne 0x1400b5777
xor eax, eax
add rsp, 0x68
pop rbx
pop rsi
pop r12
pop r13
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 0x1400b573d
mov esi, dword [rsp + 0x30]
jmp 0x1400b574b
mov ecx, 0x30
lea r12, [rsp + 0x40]
call sym.__cxa_allocate_exception
lea rdx, str.cannot_create_directory
mov rcx, r12
mov r13, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const___clone_.constprop.0_
movdqa xmm0, xmmword [rsp + 0x30]
mov r8, rbx
mov rdx, r12
mov rcx, r13
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, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
cmp rcx, rax
je 0x1400b57d3
mov rax, qword [rsp + 0x50]
lea rdx, [rax + 1]
call sym.operator_delete_void__unsigned_long_long_
lea r8, [method.std::filesystem::__cxx11::filesystem_error.filesystem_error__]
lea rdx, [0x14013d760]
mov rcx, r13
call sym.__cxa_throw
mov rbx, rax
mov rcx, r13
call sym.__cxa_free_exception
mov rcx, rbx
call dbg._Unwind_Resume
mov rcx, qword [rsp + 0x40]
mov rbx, rax
lea rax, [rsp + 0x50]
cmp rcx, rax
je 0x1400b57ec
mov rax, qword [rsp + 0x50]
lea rdx, [rax + 1]
call sym.operator_delete_void__unsigned_long_long_
jmp 0x1400b57ec
Function at 0x1400b5820
Capabilities:
Create directory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov r12, rcx
mov rbx, rdx
mov rcx, qword [rcx]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x1400b5860
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 r12
ret
call qword [sym.imp.msvcrt.dll__errno]
mov esi, dword [rax]
cmp esi, 0x11
je 0x1400b5888
call method.std::_V2.generic_category__
mov dword [rbx], esi
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
mov rdx, rbx
mov rcx, r12
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp al, 2
jne 0x1400b586d
xor eax, eax
jmp 0x1400b584f
Function at 0x1400b58a0
Capabilities:
Create directory

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
mov rbx, rdx
mov rsi, rcx
lea r12, [rsp + 0x40]
mov dword [rsp + 0x30], 0
call method.std::_V2.system_category__
mov rcx, qword [rbx]
mov rdx, r12
mov qword [rsp + 0x38], rax
call qword [sym.imp.msvcrt.dll__wstat64]
test eax, eax
jne 0x1400b5930
mov rcx, qword [rsi]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x1400b5900
mov eax, 1
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
call qword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [rax]
cmp ebx, 0x11
je 0x1400b5950
call method.std::_V2.generic_category__
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x1400b5967
xor eax, eax
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
call method.std::_V2.generic_category__
mov rdi, rax
call qword [sym.imp.msvcrt.dll__errno]
mov qword [rsp + 0x38], rdi
mov ebx, dword [rax]
mov dword [rsp + 0x30], ebx
jmp 0x1400b591b
lea rdx, [rsp + 0x30]
mov rcx, rsi
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp al, 2
jne 0x1400b590d
mov ebx, dword [rsp + 0x30]
jmp 0x1400b591b
mov ecx, 0x30
call sym.__cxa_allocate_exception
lea rdx, str.cannot_create_directory
mov rcx, r12
mov r13, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const___clone_.constprop.0_
movdqa xmm0, xmmword [rsp + 0x30]
mov r8, rsi
mov rdx, r12
mov rcx, r13
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, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
cmp rcx, rax
je 0x1400b59be
mov rax, qword [rsp + 0x50]
lea rdx, [rax + 1]
call sym.operator_delete_void__unsigned_long_long_
lea r8, [method.std::filesystem::__cxx11::filesystem_error.filesystem_error__]
lea rdx, [0x14013d760]
mov rcx, r13
call sym.__cxa_throw
mov r12, rax
mov rcx, r13
call sym.__cxa_free_exception
mov rcx, r12
call dbg._Unwind_Resume
mov rcx, qword [rsp + 0x40]
mov r12, rax
lea rax, [rsp + 0x50]
cmp rcx, rax
je 0x1400b59d7
mov rax, qword [rsp + 0x50]
lea rdx, [rax + 1]
call sym.operator_delete_void__unsigned_long_long_
jmp 0x1400b59d7
Function at 0x1400b5a10
Capabilities:
Create directory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x60
mov r9, rdx
mov r12, rcx
lea rdx, [rsp + 0x20]
mov rbx, r8
mov rcx, qword [r9]
call qword [sym.imp.msvcrt.dll__wstat64]
test eax, eax
jne 0x1400b5a88
mov rcx, qword [r12]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x1400b5a60
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 r12
ret
call qword [sym.imp.msvcrt.dll__errno]
mov esi, dword [rax]
cmp esi, 0x11
je 0x1400b5ab0
call method.std::_V2.generic_category__
mov dword [rbx], esi
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x60
pop rbx
pop rsi
pop r12
ret
call method.std::_V2.generic_category__
mov r12, rax
call qword [sym.imp.msvcrt.dll__errno]
mov eax, dword [rax]
mov qword [rbx + 8], r12
mov dword [rbx], eax
xor eax, eax
add rsp, 0x60
pop rbx
pop rsi
pop r12
ret
mov rdx, rbx
mov rcx, r12
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp al, 2
jne 0x1400b5a6d
xor eax, eax
jmp 0x1400b5a55
Function at 0x1400b9880
Capabilities:
Get disk size

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
mov r12, rcx
mov rbx, rdx
lea r13, [rsp + 0x50]
call method.std::_V2.system_category__
pcmpeqd xmm0, xmm0
mov rdx, rbx
mov rcx, r13
movups xmmword [r12], xmm0
mov rsi, rax
mov qword [r12 + 0x10], 0xffffffffffffffff
call method.std::filesystem.absolute_std::filesystem::__cxx11::path_const_
mov rcx, r13
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 0x1400b9980
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x1400b9911
mov qword [r12], rax
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1400b9920
mov qword [r12 + 8], rax
mov rax, qword [rsp + 0x38]
xor edi, edi
test rax, rax
jne 0x1400b9978
mov rdx, qword [rsp + 0x70]
test rdx, rdx
je 0x1400b9940
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 rbp, [rsp + 0x60]
cmp rcx, rbp
je 0x1400b995e
mov rax, qword [rsp + 0x60]
lea rdx, [rax + rax + 2]
call sym.operator_delete_void__unsigned_long_long_
test edi, edi
jne 0x1400b998a
mov rax, r12
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov qword [r12 + 0x10], rax
jmp 0x1400b992c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1400b992c
mov ecx, 0x30
call sym.__cxa_allocate_exception
lea rdx, str.cannot_get_free_space
mov rcx, r13
mov r14, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const___clone_.constprop.0_
mov eax, edi
lea r9, [rsp + 0x20]
mov r8, rbx
mov rdx, r13
mov rcx, r14
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
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, qword [rsp + 0x50]
cmp rcx, rbp
je 0x1400b99dd
mov rax, qword [rsp + 0x60]
lea rdx, [rax + 1]
call sym.operator_delete_void__unsigned_long_long_
lea r8, [method.std::filesystem::__cxx11::filesystem_error.filesystem_error__]
lea rdx, [0x14013d760]
mov rcx, r14
call sym.__cxa_throw
mov r12, rax
mov rcx, r14
call sym.__cxa_free_exception
mov rcx, r12
call dbg._Unwind_Resume
mov rcx, qword [rsp + 0x50]
mov r12, rax
cmp rcx, rbp
je 0x1400b99f6
mov rax, qword [rsp + 0x60]
lea rdx, [rax + 1]
call sym.operator_delete_void__unsigned_long_long_
jmp 0x1400b99f6
Function at 0x1400b9a30
Capabilities:
Get disk size

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x70
pcmpeqd xmm0, xmm0
lea r13, [rsp + 0x40]
movups xmmword [rcx], xmm0
mov r12, rcx
mov rbx, r8
mov qword [rcx + 0x10], 0xffffffffffffffff
mov rcx, r13
call method.std::filesystem.absolute_std::filesystem::__cxx11::path_const_
mov rcx, r13
call method.std::filesystem::__cxx11::path.remove_filename__
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x28]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov edi, eax
call method.std::_V2.system_category__
mov rsi, rax
test edi, edi
je 0x1400b9b30
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1400b9aba
mov qword [r12], rax
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1400b9ac9
mov qword [r12 + 8], rax
mov rax, qword [rsp + 0x28]
test rax, rax
jne 0x1400b9b20
xor eax, eax
mov rdx, qword [rsp + 0x60]
mov dword [rbx], eax
mov qword [rbx + 8], rsi
test rdx, rdx
je 0x1400b9aef
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 0x1400b9b0d
mov rax, qword [rsp + 0x50]
lea rdx, [rax + rax + 2]
call sym.operator_delete_void__unsigned_long_long_
mov rax, r12
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
mov qword [r12 + 0x10], rax
jmp 0x1400b9ad3
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400b9ad5
Function at 0x1400b9b40
Capabilities:
Delete directory
Delete file

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x68
mov rbx, rcx
lea r12, [rsp + 0x30]
mov dword [rsp + 0x30], 0
call method.std::_V2.system_category__
mov rdx, r12
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 0x1400b9b90
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x1400b9bc4
xor eax, eax
add rsp, 0x68
pop rbx
pop rsi
pop r12
pop r13
ret
cmp al, 0xff
je 0x1400b9b7e
mov rdx, r12
mov rcx, rbx
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp al, 2
je 0x1400b9c40
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400b9c51
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400b9c68
mov ecx, 0x30
lea r12, [rsp + 0x40]
call sym.__cxa_allocate_exception
lea rdx, str.cannot_remove
mov rcx, r12
mov r13, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const___clone_.constprop.0_
movdqa xmm0, xmmword [rsp + 0x30]
mov r8, rbx
mov rdx, r12
mov rcx, r13
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, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
cmp rcx, rax
je 0x1400b9c20
mov rax, qword [rsp + 0x50]
lea rdx, [rax + 1]
call sym.operator_delete_void__unsigned_long_long_
lea r8, [method.std::filesystem::__cxx11::filesystem_error.filesystem_error__]
lea rdx, [0x14013d760]
mov rcx, r13
call sym.__cxa_throw
nop word cs:[rax + rax]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1400b9ba7
mov eax, 1
add rsp, 0x68
pop rbx
pop rsi
pop r12
pop r13
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], eax
jmp 0x1400b9b7a
Function at 0x1400b9cc0
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 0x1400b9d27
cmp al, 0xff
je 0x1400b9d18
mov rdx, rbx
mov rcx, rsi
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp al, 2
je 0x1400b9d30
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400b9d3d
mov eax, dword [rbx]
test eax, eax
jne 0x1400b9d27
call method.std::_V2.system_category__
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rbx + 8], rsi
mov dword [rbx], eax
xor eax, eax
jmp 0x1400b9d29
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1400b9ce8
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
Function at 0x1400b9d60
Capabilities:
Move file

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov rbx, rdx
lea r12, [rsp + 0x40]
mov rbp, rcx
mov dword [rsp + 0x40], 0
call method.std::_V2.system_category__
mov rdx, r12
mov rcx, rbx
mov qword [rsp + 0x48], rax
mov rdi, rax
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
mov rsi, rax
cmp al, 0xff
je 0x1400b9e10
mov ecx, dword [rsp + 0x40]
test ecx, ecx
jne 0x1400b9e82
test al, al
jne 0x1400b9e20
mov rdx, qword [rbx]
mov rcx, qword [rbp]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400b9e00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.msvcrt.dll__errno]
cmp eax, 5
je 0x1400b9e58
call rdi
mov dword [rax], 5
call method.std::_V2.generic_category__
mov rsi, rax
call rdi
mov qword [rsp + 0x48], rsi
mov eax, dword [rax]
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x1400b9e82
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x48], rdi
jmp 0x1400b9dae
mov rdx, r12
mov rcx, rbp
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
mov edx, dword [rsp + 0x40]
test edx, edx
jne 0x1400b9e82
cmp sil, 2
je 0x1400b9e68
cmp al, 2
jne 0x1400b9dae
call method.std::_V2.generic_category__
mov dword [rsp + 0x40], 0x14
mov qword [rsp + 0x48], rax
jmp 0x1400b9e82
call rdi
mov dword [rax], 0xd
jmp 0x1400b9de3
cmp al, 2
je 0x1400b9dae
call method.std::_V2.generic_category__
mov dword [rsp + 0x40], 0x15
mov qword [rsp + 0x48], rax
mov ecx, 0x30
lea r12, [rsp + 0x50]
call sym.__cxa_allocate_exception
lea rdx, str.cannot_rename
mov rcx, r12
mov r13, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const___clone_.constprop.0_
lea rax, [rsp + 0x30]
mov r9, rbx
mov r8, rbp
mov rdx, r12
mov qword [rsp + 0x20], rax
movdqa xmm0, xmmword [rsp + 0x40]
mov rcx, r13
movaps xmmword [rsp + 0x30], xmm0
call sym._ZNSt10filesystem7__cxx1116filesystem_errorC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_4pathESC_St10error_c
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
cmp rcx, rax
je 0x1400b9ee6
mov rax, qword [rsp + 0x60]
lea rdx, [rax + 1]
call sym.operator_delete_void__unsigned_long_long_
lea r8, [method.std::filesystem::__cxx11::filesystem_error.filesystem_error__]
lea rdx, [0x14013d760]
mov rcx, r13
call sym.__cxa_throw
mov rcx, qword [rsp + 0x50]
mov r12, rax
lea rax, [rsp + 0x60]
cmp rcx, rax
je 0x1400b9f1c
mov rax, qword [rsp + 0x60]
lea rdx, [rax + 1]
call sym.operator_delete_void__unsigned_long_long_
mov rcx, r13
call sym.__cxa_free_exception
mov rcx, r12
call dbg._Unwind_Resume
mov r12, rax
jmp 0x1400b9f1c
Function at 0x1400b9f40
Capabilities:
Move file

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rbp, rcx
mov rdx, r8
mov rbx, r8
mov rcx, rsi
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
mov rdi, rax
cmp al, 0xff
je 0x1400b9fe0
mov ecx, dword [rbx]
test ecx, ecx
jne 0x1400b9fb8
test al, al
jne 0x1400b9ff8
mov rdx, qword [rsi]
mov rcx, qword [rbp]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400b9fc8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.msvcrt.dll__errno]
cmp eax, 5
je 0x1400ba030
call rdi
mov dword [rax], 5
call method.std::_V2.generic_category__
mov rsi, rax
call rdi
mov eax, dword [rax]
mov qword [rbx + 8], rsi
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
jmp 0x1400b9f71
mov rdx, rbx
mov rcx, rbp
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
mov edx, dword [rbx]
test edx, edx
jne 0x1400b9fb8
cmp dil, 2
je 0x1400ba040
cmp al, 2
jne 0x1400b9f71
call method.std::_V2.generic_category__
mov dword [rbx], 0x14
mov qword [rbx + 8], rax
jmp 0x1400b9fb8
call rdi
mov dword [rax], 0xd
jmp 0x1400b9fa6
cmp al, 2
je 0x1400b9f71
call method.std::_V2.generic_category__
mov dword [rbx], 0x15
mov qword [rbx + 8], rax
jmp 0x1400b9fb8

Function at 0x1400c4550
Capabilities:
Get disk size

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r13, qword [rsp + 0xa0]
mov qword [rsp + 0x28], 0
mov r12, rdx
mov rbp, r8
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x30]
mov rdi, r9
lea r9, [rsp + 0x38]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov esi, eax
call method.std::_V2.system_category__
mov rbx, rax
test esi, esi
je 0x1400c45f8
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1400c45b9
mov qword [r12], rax
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1400c45c7
mov qword [rbp], rax
mov rax, qword [rsp + 0x28]
test rax, rax
jne 0x1400c45f0
xor eax, eax
mov dword [r13], eax
mov qword [r13 + 8], rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov qword [rdi], rax
jmp 0x1400c45d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400c45d3

Function at 0x1400cd020
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 0x1400cd047
call rbp
cmp dword [rax], 4
jne 0x1400cd064
mov rcx, qword [rdi]
call sym.fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sym.read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x1400cd040
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret