joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3be96afb0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x3bea8df30]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x3be96afd0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x3be96afd8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3be96afd0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x3be96b02d
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 0x3be96b024
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x3be96afd0
add rax, 0x28
cmp rax, r9
jne 0x3be96b010
xor eax, eax
ret

Function at 0x3be96b030
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3bea8df30]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x3be96b04f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x3be96b058
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x3be96b04f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x3be96b0f0
Capabilities:
Parse pe header

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

Function at 0x3be96b9f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x230
mov rbx, rcx
call sub.msvcrt.dll__errno
mov dword [rax], 0
test rbx, rbx
je 0x3be96bb50
cmp word [rbx], 0
je 0x3be96bb40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x3be96bb60
test al, 0x10
je 0x3be96bb40
lea rsi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rsi
lea rdi, [0x3bea8ccc0]
lea rbp, [0x3bea8ccc4]
call sub.msvcrt.dll__wfullpath
mov rcx, rsi
call sub.msvcrt.dll_wcslen
mov rcx, rdi
mov rbx, rax
call sub.msvcrt.dll_wcslen
mov rcx, rbp
add rbx, rax
call sub.msvcrt.dll_wcslen
lea rcx, [rbx + rax + 0x229]
add rcx, rcx
call sub.msvcrt.dll_malloc
mov rbx, rax
test rax, rax
je 0x3be96bb6f
lea r12, [rax + 0x44c]
mov rdx, rsi
mov rcx, r12
call sub.msvcrt.dll_wcscpy
cmp word [rbx + 0x44c], 0
jne 0x3be96bb08
mov rdx, rbp
mov rcx, r12
call sub.msvcrt.dll_wcscat
lea rdx, [rbx + 0x238]
mov ecx, 0x41
xor eax, eax
mov qword [rbx + 0x440], 0xffffffffffffffff
mov rdi, rdx
mov dword [rbx + 0x448], 0
mov qword [rbx + 0x230], 0
rep stosq qword [rdi], rax
mov rax, rbx
add rsp, 0x230
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, r12
call sub.msvcrt.dll_wcslen
cmp word [rbx + rax*2 + 0x44a], 0x2f
je 0x3be96bab2
mov rcx, r12
call sub.msvcrt.dll_wcslen
cmp word [rbx + rax*2 + 0x44a], 0x5c
je 0x3be96bab2
mov rdx, rdi
mov rcx, r12
call sub.msvcrt.dll_wcscat
jmp 0x3be96bab2
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 0x14
jmp 0x3be96baf1
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 0xe
jmp 0x3be96baf1
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 2
jmp 0x3be96baf1
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 0xc
jmp 0x3be96baf1
Function at 0x3be96c100
Capabilities:
Enumerate disk volumes
Get disk information
Get disk size
Get file size

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov ebp, ecx
mov rsi, rdx
cmp ecx, 0xffffffff
je 0x3be96c330
test rdx, rdx
js 0x3be96c330
call sub.msvcrt.dll__get_osfhandle
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x3be96c360
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x3be96c360
mov ecx, ebp
call sub.msvcrt.dll__telli64
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x3be96c330
lea rdx, [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x3be96c360
cmp qword [rsp + 0x68], rsi
jb 0x3be96c1f0
xor r9d, r9d
mov qword [rsp + 0x70], rsi
lea r8, [rsp + 0x74]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x3be96c1a9
cmp dword [rsp + 0x70], 0xffffffff
jne 0x3be96c344
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x3be96c330
mov rdx, qword [rsp + 0x48]
xor r8d, r8d
mov ecx, ebp
call fcn.3be974fc0
cmp rax, 0xffffffffffffffff
je 0x3be96c330
xor eax, eax
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x3be96c330
mov edx, 2
mov ecx, 0x33
call sub.msvcrt.dll_calloc
mov edx, 2
mov ecx, 0x106
mov rbx, rax
call sub.msvcrt.dll_calloc
mov r12, rax
test rbx, rbx
je 0x3be96c360
test rax, rax
je 0x3be96c360
mov edx, 0x32
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov r14, qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov r15, qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov r13, rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x40], rax
jmp 0x3be96c287
mov r8d, 0x32
mov rdx, rbx
mov rcx, r13
call r15
test eax, eax
je 0x3be96c318
mov dword [rsp + 0x38], 0
mov rdx, r12
mov rcx, rbx
mov r9, qword [rsp + 0x40]
mov qword [rsp + 0x30], 0
mov r8d, 0x105
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call r14
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x8c], eax
jne 0x3be96c270
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, r12
call sub.msvcrt.dll_free
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rcx, rbx
mov r12d, eax
call sub.msvcrt.dll_free
test r12d, r12d
je 0x3be96c351
mov rax, rsi
sub rax, qword [rsp + 0x68]
cmp qword [rsp + 0x60], rax
jae 0x3be96c181
jmp 0x3be96c351
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, rbx
xor ebx, ebx
call sub.msvcrt.dll_free
jmp 0x3be96c2d4
mov ecx, 0x16
call fcn.3be9746c0
mov eax, 0xffffffff
jmp 0x3be96c1d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x83
jne 0x3be96c330
mov ecx, 0x1b
call fcn.3be9746c0
jmp 0x3be96c33a
mov ecx, 9
call fcn.3be9746c0
jmp 0x3be96c33a
Function at 0x3be976e80
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 0x3be976ec0
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 0x3be976ee8
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::path_const__std::error_code_
cmp al, 2
jne 0x3be976ecd
xor eax, eax
jmp 0x3be976eda

Function at 0x3be976f00
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 0x3be976f40
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 0x3be976f68
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 0x3be976f4d
xor eax, eax
jmp 0x3be976f5a
Function at 0x3be981770
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 sub.msvcrt.dll_fread
mov edx, 0xffffffff
test rax, rax
jle 0x3be98179c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x3be982570
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x3bea848e0], 0
jne 0x3be982673
mov byte [0x3bea848e0], 1
call sym.libstdc_6.dll___cxa_current_exception_type
test rax, rax
je 0x3be982648
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.libstdc_6.dll___cxa_demangle
mov ecx, 2
mov rsi, qword [fcn.3be9748b0]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call fcn.3be975048
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x3be982639
call rsi
mov rcx, rbx
mov rdx, rax
call sub.msvcrt.dll_fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x3bea85311]
mov r9, rax
call fcn.3be975048
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x3bea773e7
jmp 0x3bea773df
call rsi
mov rcx, rdi
mov rdx, rax
call sub.msvcrt.dll_fputs
jmp 0x3be982607
mov ecx, 2
call qword [fcn.3be9748b0]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call fcn.3be975048
nop
jmp 0x3bea773da
mov ecx, 2
call qword [fcn.3be9748b0]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call fcn.3be975048
call sub.msvcrt.dll_abort
nop
nop
nop
push rbx
sub rsp, 0x20
lea rax, [0x3beabad50]
mov qword [rcx], rax
mov rbx, rcx
call sym.libstdc_6.dll_std::exception::exception__
mov edx, 8
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp sym.libstdc_6.dll_operator_delete_void__unsigned_long_long_
call sub.msvcrt.dll_abort
mov rcx, rdi
call sub.msvcrt.dll_free
call sym.libstdc_6.dll___cxa_rethrow
call sym.libstdc_6.dll___cxa_begin_catch
call sym.libstdc_6.dll___cxa_end_catch
jmp 0x3bea773da
Function at 0x3be995b40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
test r8, r8
je 0x3be995b7c
movabs r9, 0x100000001b3
add r8, rdx
nop dword [rax + rax]
movsx rcx, byte [rdx]
add rdx, 1
xor rax, rcx
imul rax, r9
cmp rdx, r8
jne 0x3be995b68
ret

Function at 0x3be995b80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
add r8, r8
je 0x3be995bbc
movabs r9, 0x100000001b3
add r8, rdx
nop dword [rax + rax]
movsx rcx, byte [rdx]
add rdx, 1
xor rax, rcx
imul rax, r9
cmp rdx, r8
jne 0x3be995ba8
ret

Function at 0x3be995c40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov rdx, qword [rdx]
mov r8, qword [rdx - 0x18]
add r8, r8
je 0x3be995c7c
movabs r9, 0x100000001b3
add r8, rdx
nop dword [rax + rax]
movsx rcx, byte [rdx]
add rdx, 1
xor rax, rcx
imul rax, r9
cmp rdx, r8
jne 0x3be995c68
ret

Function at 0x3be995c80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov rdx, qword [rdx]
mov r8, qword [rdx - 0x18]
test r8, r8
je 0x3be995cbc
movabs r9, 0x100000001b3
add r8, rdx
nop dword [rax + rax]
movsx rcx, byte [rdx]
add rdx, 1
xor rax, rcx
imul rax, r9
cmp rdx, r8
jne 0x3be995ca8
ret

Function at 0x3be995cc0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov rdx, qword [rdx]
mov r8, qword [rdx - 0x18]
add r8, r8
je 0x3be995cfc
movabs r9, 0x100000001b3
add r8, rdx
nop dword [rax + rax]
movsx rcx, byte [rdx]
add rdx, 1
xor rax, rcx
imul rax, r9
cmp rdx, r8
jne 0x3be995ce8
ret

Function at 0x3be995d00
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov rdx, qword [rdx]
mov r8, qword [rdx - 0x18]
test r8, r8
je 0x3be995d3c
movabs r9, 0x100000001b3
add r8, rdx
nop dword [rax + rax]
movsx rcx, byte [rdx]
add rdx, 1
xor rax, rcx
imul rax, r9
cmp rdx, r8
jne 0x3be995d28
ret

Function at 0x3be9ed4a0
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 0x3be9ed4e0
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 0x3be9ed508
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::path_const__std::error_code_
cmp al, 2
jne 0x3be9ed4ed
xor eax, eax
jmp 0x3be9ed4fa
Function at 0x3be9ed640
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 0x3be9ed680
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 0x3be9ed6a8
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 0x3be9ed68d
xor eax, eax
jmp 0x3be9ed69a
Function at 0x3be9f1770
Capabilities:
Get common file path

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
xor r11d, r11d
mov rdi, qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r12, [rsp + 0x40]
mov rbp, rdx
mov rbx, rcx
mov edx, 0x400
mov qword [rsp + 0x30], r12
lea rsi, [rsp + 0x30]
mov qword [rsp + 0x38], 0
mov word [rsp + 0x40], r11w
nop dword [rax]
xor r8d, r8d
mov rcx, rsi
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.resize_unsigned_long_long__wchar_t_
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x38]
call rdi
mov edx, eax
cmp qword [rsp + 0x38], rdx
jb 0x3be9f17b0
mov qword [rsp + 0x28], rdx
test eax, eax
je 0x3be9f1880
call method.std::_V2.system_category__
mov rdx, qword [rsp + 0x28]
xor edi, edi
mov dword [rbp], edi
xor r8d, r8d
mov rcx, rsi
mov qword [rbp + 8], rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.resize_unsigned_long_long__wchar_t_
mov rax, qword [rsp + 0x30]
lea rcx, [rbx + 0x10]
mov rdi, qword [rsp + 0x38]
mov qword [rbx], rcx
cmp rax, r12
je 0x3be9f18f0
mov qword [rbx], rax
mov rax, qword [rsp + 0x40]
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rdi
lea rdi, [rbx + 0x20]
xor r10d, r10d
mov rcx, rdi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 0
mov word [rsp + 0x40], r10w
call method.std::filesystem::__cxx11::path::_List._List__
mov rcx, rbx
call method.std::filesystem::__cxx11::path._M_split_cmpts__
mov rcx, qword [rsp + 0x30]
cmp rcx, r12
je 0x3be9f1868
mov rax, qword [rsp + 0x40]
lea rdx, [rax + rax + 2]
call sym.libstdc_6.dll_operator_delete_void__unsigned_long_long_
mov r9d, dword [rbp]
test r9d, r9d
je 0x3be9f18a0
mov rax, rbx
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call method.std::_V2.system_category__
mov rdx, qword [rsp + 0x28]
jmp 0x3be9f17e8
mov rdx, rbp
mov rcx, rbx
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
mov r8d, dword [rbp]
test r8d, r8d
jne 0x3be9f1910
cmp al, 2
je 0x3be9f1871
mov rax, qword [rbx]
xor edx, edx
mov qword [rbx + 8], 0
mov rcx, rbx
mov word [rax], dx
call method.std::filesystem::__cxx11::path._M_split_cmpts__
call method.std::_V2.generic_category__
mov dword [rbp], 0x14
mov qword [rbp + 8], rax
mov rax, rbx
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8, rdi
add r8, 1
je 0x3be9f1820
add r8, r8
mov rdx, r12
call sub.msvcrt.dll_memcpy
jmp 0x3be9f1820
mov rax, qword [rbx]
xor ecx, ecx
mov qword [rbx + 8], 0
mov word [rax], cx
mov rcx, rbx
call method.std::filesystem::__cxx11::path._M_split_cmpts__
mov rax, rbx
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x3be9f7fd0
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::path_const__std::error_code_
test al, al
je 0x3be9f801e
cmp al, 0xff
je 0x3be9f8030
mov rdx, rbx
mov rcx, rsi
call method.std::filesystem.status_std::filesystem::path_const__std::error_code_
cmp al, 2
je 0x3be9f8048
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x3be9f8055
mov eax, dword [rbx]
test eax, eax
jne 0x3be9f801e
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 0x3be9f801e
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x3be9f7ff8
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 0x3be9f80b0
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 0x3be9f80fe
cmp al, 0xff
je 0x3be9f8110
mov rdx, rbx
mov rcx, rsi
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp al, 2
je 0x3be9f8128
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x3be9f8135
mov eax, dword [rbx]
test eax, eax
jne 0x3be9f80fe
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 0x3be9f80fe
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x3be9f80d8
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 0x3be9f81a0
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::path_const__std::error_code_
mov rdi, rax
cmp al, 0xff
je 0x3be9f8200
mov ecx, dword [rbx]
test ecx, ecx
jne 0x3be9f81f3
test al, al
jne 0x3be9f8218
mov rdx, qword [rsi]
mov rcx, qword [rbp]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x3be9f8260
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 0x3be9f81cd
mov rdx, rbx
mov rcx, rbp
call method.std::filesystem.status_std::filesystem::path_const__std::error_code_
mov edx, dword [rbx]
test edx, edx
jne 0x3be9f81f3
cmp dil, 2
je 0x3be9f8248
cmp al, 2
jne 0x3be9f81cd
call method.std::_V2.generic_category__
mov dword [rbx], 0x14
mov qword [rbx + 8], rax
jmp 0x3be9f81f3
cmp al, 2
je 0x3be9f81cd
call method.std::_V2.generic_category__
mov dword [rbx], 0x15
mov qword [rbx + 8], rax
jmp 0x3be9f81f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.msvcrt.dll__errno]
cmp eax, 5
je 0x3be9f8295
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 rdi
mov dword [rax], 0xd
jmp 0x3be9f827a

Function at 0x3be9f82f0
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 0x3be9f8350
mov ecx, dword [rbx]
test ecx, ecx
jne 0x3be9f8343
test al, al
jne 0x3be9f8368
mov rdx, qword [rsi]
mov rcx, qword [rbp]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x3be9f83b0
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 0x3be9f831d
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 0x3be9f8343
cmp dil, 2
je 0x3be9f8398
cmp al, 2
jne 0x3be9f831d
call method.std::_V2.generic_category__
mov dword [rbx], 0x14
mov qword [rbx + 8], rax
jmp 0x3be9f8343
cmp al, 2
je 0x3be9f831d
call method.std::_V2.generic_category__
mov dword [rbx], 0x15
mov qword [rbx + 8], rax
jmp 0x3be9f8343
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.msvcrt.dll__errno]
cmp eax, 5
je 0x3be9f83e5
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 rdi
mov dword [rax], 0xd
jmp 0x3be9f83ca
Function at 0x3bea004f0
Capabilities:
Get disk size

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbx, qword [rsp + 0x90]
mov rdi, rdx
mov rbp, r8
mov rsi, r9
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x28]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x3bea00588
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x3bea0054a
mov qword [rdi], rax
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x3bea00558
mov qword [rbp], rax
mov rax, qword [rsp + 0x28]
test rax, rax
jne 0x3bea00580
call method.std::_V2.system_category__
xor esi, esi
mov dword [rbx], esi
mov qword [rbx + 8], rax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov qword [rsi], rax
jmp 0x3bea00562
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
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x3bea07d00
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x3bea07d48
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x3bea07d1a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x3bea1cd30
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 0x3bea1cd58
mov rcx, qword [rcx]
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 sub.msvcrt.dll__read
test eax, eax
jle 0x3bea1cda0
cdqe
add rsi, rax
sub rbx, rax
jne 0x3bea1cd70
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x3bea1cdac
call rbp
cmp dword [rax], 4
je 0x3bea1cd70
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop