joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140037820
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 2
mov qword [rsp + 0x40], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor ebx, ebx
mov r14d, 0xffffffff
xor esi, esi
xor r15d, r15d
cmp r8, 0x201
jae 0x1400378a0
jmp 0x14003788f
jae 0x140037944
cmp r8, 0x201
jae 0x1400378a0
mov r12d, 0x200
lea r13, [rsp + 0x68]
mov rbp, r8
jmp 0x1400378e7
sub r8, r15
sub rsi, r15
cmp rsi, r8
jae 0x1400378c7
lea rcx, [rsp + 0x30]
mov rdx, r15
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h51d69f985e1537f9
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
cmp rbx, r14
mov r15d, 0xffffffff
cmovb r15, rbx
mov qword [rsp + 0x40], r15
mov rsi, rbx
mov r12, r15
mov r13, qword [rsp + 0x20]
mov rbp, r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, ebp
mov rdx, r13
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov edi, eax
test eax, eax
jne 0x14003790b
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1400379a2
mov r8d, edi
cmp rbp, r8
jne 0x140037880
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400379cc
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x14003788f
jmp 0x1400378a0
cmp r12, r8
jb 0x1400379e6
lea rcx, [rsp + 0x48]
mov rdx, r13
call sym.std::sys_common::wtf8::Wtf8Buf::from_wide::h1951e04b76830527
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
mov rsi, qword [rsp + 0x28]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x14003798b
add rbx, rbx
mov r8d, 2
mov rcx, qword [rsp + 0x20]
mov rdx, rbx
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rsi, qword [rsp + 0x28]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x140037975
jmp 0x14003798b
lea rcx, str.internal_error:_entered_unreachable_codeA_HandleOrNull_could_not_be_converted_to_a_handle_because_it_was_nullA_HandleOrInvalid_could_not_be_converted_to_a_handle_because_it_was_INVALID_HANDLE_VALUEBorrowedHandlehandle
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call sym.core::panicking::panic::hd174330580e7869e
jmp 0x1400379fb
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r12
mov r8, rax
call sym.core::slice::index::slice_end_index_len_fail::h28c5568a35fadd59
ud2
Function at 0x140037a30
Capabilities:
Set current directory

Disassembly:
push rsi
sub rsp, 0x50
add rdx, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdx
mov word [rsp + 0x48], 0
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x38]
call sym._ZN98__LT_alloc..vec..Vec_LT_T_GT__u20_as_u20_alloc..vec..spec_from_iter..SpecFromIter_LT_T_C_I_GT__GT_9from_iter17h0b34586c4d
mov rdx, qword [rsp + 0x30]
cmp rdx, qword [rsp + 0x20]
jne 0x140037a73
lea rcx, [rsp + 0x20]
call sym.alloc::raw_vec::RawVec_T_A_::reserve_for_push::h37b153cbca7fb2ec
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x28]
mov word [rax + rdx*2], 0
inc qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_SetCurrentDirectoryW
test eax, eax
je 0x140037ab9
xor esi, esi
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x140037ab0
mov rcx, qword [rsp + 0x28]
add rdx, rdx
mov r8d, 2
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x50
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rdx, qword [rsp + 0x20]
test rdx, rdx
jne 0x140037a9d
jmp 0x140037ab0
Function at 0x140037e30
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r9
mov r14, r8
mov r8, rdx
mov rdx, rcx
movabs r12, 0x8000000000000000
lea rcx, [rsp + 0x20]
call sym._ZN3std3sys3pal7windows7to_u16s5inner17h012bd72fba547a21E.llvm.11506732742244318735
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
cmp rsi, r12
jne 0x140037e71
mov rbx, rdi
jmp 0x140037ed8
lea rcx, [rsp + 0x20]
mov rdx, r14
mov r8, rbx
call sym._ZN3std3sys3pal7windows7to_u16s5inner17h012bd72fba547a21E.llvm.11506732742244318735
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
cmp r15, r12
jne 0x140037e95
mov rbx, r14
jmp 0x140037ebf
mov rcx, rdi
mov rdx, r14
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
je 0x140037ee9
xor ebx, ebx
test r15, r15
je 0x140037ebf
add r15, r15
mov r8d, 2
mov rcx, r14
mov rdx, r15
call sym.__rust_dealloc
test rsi, rsi
je 0x140037ed8
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test r15, r15
jne 0x140037eab
jmp 0x140037ebf

Function at 0x140037f30
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call sym._ZN3std3sys3pal7windows7to_u16s5inner17h012bd72fba547a21E.llvm.11506732742244318735
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
movabs rax, 0x8000000000000000
cmp rsi, rax
jne 0x140037f65
mov rbx, rdi
jmp 0x140037f8e
xor ebx, ebx
mov rcx, rdi
xor edx, edx
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
je 0x140037f99
test rsi, rsi
je 0x140037f8e
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
mov rax, rbx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
jne 0x140037f7a
jmp 0x140037f8e
Function at 0x1400395e0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x458
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 2
mov qword [rsp + 0x50], 0
mov edi, 0x200
mov eax, 2
mov qword [rsp + 0x30], rax
xor eax, eax
mov qword [rsp + 0x28], rax
mov ebx, 0xffffffff
xor esi, esi
xor r15d, r15d
cmp rdi, 0x201
jae 0x140039660
jmp 0x14003964f
jae 0x140039719
cmp rdi, 0x201
jae 0x140039660
mov ebp, 0x200
lea r13, [rsp + 0x58]
mov r12, rdi
jmp 0x1400396b4
sub rdi, r15
sub rsi, r15
cmp rsi, rdi
mov rsi, qword [rsp + 0x28]
jae 0x14003968f
lea rcx, [rsp + 0x40]
mov rdx, r15
mov r8, rdi
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h51d69f985e1537f9
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp rsi, rbx
mov r15d, 0xffffffff
cmovb r15, rsi
mov qword [rsp + 0x50], r15
mov rax, rsi
mov qword [rsp + 0x28], rsi
mov rbp, r15
mov r13, qword [rsp + 0x30]
mov r12, r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, r13
mov edx, r12d
call sub.KERNEL32.dll_GetSystemDirectoryW
mov r14d, eax
test eax, eax
jne 0x1400396d6
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140039750
mov edi, r14d
cmp r12, rdi
jne 0x140039640
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400397da
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
mov ebx, 0xffffffff
cmovae r12, rax
mov rdi, r12
cmp rdi, 0x201
jb 0x14003964f
jmp 0x140039660
cmp rbp, rdi
jb 0x1400397f4
test r14d, r14d
je 0x14003977f
lea r14, [rdi + rdi]
mov rax, qword [0x140121bb8]
movzx eax, byte [rax]
mov edx, 2
mov rcx, r14
call sym.__rust_alloc
test rax, rax
je 0x140039808
mov r15, rax
jmp 0x140039788
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rsi, qword [rsp + 0x38]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rsp + 0x28]
test rdx, rdx
jne 0x1400397b0
jmp 0x1400397c3
mov r15d, 2
xor r14d, r14d
mov rcx, r15
mov rdx, r13
mov r8, r14
call sym.memcpy
mov rsi, qword [rsp + 0x38]
mov qword [rsi], rdi
mov qword [rsi + 8], r15
mov qword [rsi + 0x10], rdi
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x1400397c3
add rdx, rdx
mov r8d, 2
mov rcx, qword [rsp + 0x30]
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x458
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.internal_error:_entered_unreachable_codeA_HandleOrNull_could_not_be_converted_to_a_handle_because_it_was_nullA_HandleOrInvalid_could_not_be_converted_to_a_handle_because_it_was_INVALID_HANDLE_VALUEBorrowedHandlehandle
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call sym.core::panicking::panic::hd174330580e7869e
jmp 0x140039815
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, rdi
mov rdx, rbp
call sym.core::slice::index::slice_end_index_len_fail::h28c5568a35fadd59
jmp 0x140039815
mov ecx, 2
mov rdx, r14
call sym.alloc::alloc::handle_alloc_error::h225ba2be7c4efe12
ud2
Function at 0x14003b800
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, r8
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov rsi, rcx
mov rcx, qword [rdx]
mov dword [rsp + 0x34], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x34]
mov qword [rsp + 0x58], rdx
lea rdx, [sym._ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17h588f49992aad3645E.llvm.5209262893849974741]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
mov rdx, rax
call fcn.1400940ec
test eax, eax
je 0x14003b893
nop dword [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x14003b860
movsxd rax, dword [rsp + 0x38]
test rax, rax
je 0x14003b8ad
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x14003b8b7
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14003b8ba
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x60
pop rsi
ret

Function at 0x14003b930
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, r8
mov rsi, rcx
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov rcx, qword [rdx]
mov rcx, qword [rcx]
mov dword [rsp + 0x34], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x34]
mov qword [rsp + 0x58], rdx
lea rdx, [sym._ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17h588f49992aad3645E.llvm.5209262893849974741]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
mov rdx, rax
call fcn.1400940ec
test eax, eax
je 0x14003b9c3
nop
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x14003b990
movsxd rax, dword [rsp + 0x38]
test rax, rax
je 0x14003b9dd
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x14003b9e7
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14003b9ea
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x60
pop rsi
ret
Function at 0x14003df90
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
movabs rbx, 0x8000000000000000
lea rcx, [rsp + 0x28]
call sym._ZN3std3sys3pal7windows7to_u16s5inner17h012bd72fba547a21E.llvm.11506732742244318735
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
cmp rax, rbx
je 0x14003e049
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov r8b, 1
call sym._ZN3std3sys3pal7windows4path13get_long_path17h1f9570165bb61a98E.llvm.12236185191024474919
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rdi, rbx
je 0x14003e049
mov rcx, rsi
xor edx, edx
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x14003e01e
test rdi, rdi
je 0x14003e01a
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call sym.__rust_dealloc
xor esi, esi
jmp 0x14003e049
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x14003e046
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call sym.__rust_dealloc
mov rsi, rbx
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003e480
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r8, rdx
mov rdx, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rsp + 0x28]
call sym._ZN3std3sys3pal7windows7to_u16s5inner17h012bd72fba547a21E.llvm.11506732742244318735
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
cmp rax, rbx
je 0x14003e53d
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov r8b, 1
call sym._ZN3std3sys3pal7windows4path13get_long_path17h1f9570165bb61a98E.llvm.12236185191024474919
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rdi, rbx
je 0x14003e53d
mov rcx, rsi
call sub.KERNEL32.dll_DeleteFileW
test eax, eax
je 0x14003e512
test rdi, rdi
je 0x14003e50e
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call sym.__rust_dealloc
xor esi, esi
jmp 0x14003e53d
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x14003e53a
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call sym.__rust_dealloc
mov rsi, rbx
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003e550
Capabilities:
Move file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
mov r14, r9
mov r15, r8
mov r8, rdx
mov rdx, rcx
movabs r12, 0x8000000000000000
lea rcx, [rsp + 0x20]
call sym._ZN3std3sys3pal7windows7to_u16s5inner17h012bd72fba547a21E.llvm.11506732742244318735
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
cmp rax, r12
je 0x14003e6b5
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x38]
mov r8b, 1
call sym._ZN3std3sys3pal7windows4path13get_long_path17h1f9570165bb61a98E.llvm.12236185191024474919
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
cmp rsi, r12
jne 0x14003e5cd
mov rbx, rdi
jmp 0x14003e6b5
lea rcx, [rsp + 0x20]
mov rdx, r15
mov r8, r14
call sym._ZN3std3sys3pal7windows7to_u16s5inner17h012bd72fba547a21E.llvm.11506732742244318735
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
cmp rax, r12
je 0x14003e69c
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x38]
mov r8b, 1
call sym._ZN3std3sys3pal7windows4path13get_long_path17h1f9570165bb61a98E.llvm.12236185191024474919
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
cmp r14, r12
je 0x14003e69c
mov rcx, rdi
mov rdx, rbx
mov r8d, 1
call sub.KERNEL32.dll_MoveFileExW
test eax, eax
je 0x14003e670
test r14, r14
je 0x14003e653
add r14, r14
mov r8d, 2
mov rcx, rbx
mov rdx, r14
call sym.__rust_dealloc
test rsi, rsi
je 0x14003e66c
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
xor ebx, ebx
jmp 0x14003e6b5
call sub.KERNEL32.dll_GetLastError
mov r15d, eax
shl r15, 0x20
or r15, 2
test r14, r14
je 0x14003e699
add r14, r14
mov r8d, 2
mov rcx, rbx
mov rdx, r14
call sym.__rust_dealloc
mov rbx, r15
test rsi, rsi
je 0x14003e6b5
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
mov rax, rbx
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14003e6f0
Capabilities:
Delete directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r8, rdx
mov rdx, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rsp + 0x28]
call sym._ZN3std3sys3pal7windows7to_u16s5inner17h012bd72fba547a21E.llvm.11506732742244318735
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
cmp rax, rbx
je 0x14003e7ad
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov r8b, 1
call sym._ZN3std3sys3pal7windows4path13get_long_path17h1f9570165bb61a98E.llvm.12236185191024474919
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rdi, rbx
je 0x14003e7ad
mov rcx, rsi
call sub.KERNEL32.dll_RemoveDirectoryW
test eax, eax
je 0x14003e782
test rdi, rdi
je 0x14003e77e
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call sym.__rust_dealloc
xor esi, esi
jmp 0x14003e7ad
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x14003e7aa
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call sym.__rust_dealloc
mov rsi, rbx
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret

Function at 0x14003fba0
Capabilities:
Set file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov ebx, r8d
mov r8, rdx
mov rdx, rcx
movabs r14, 0x8000000000000000
lea rcx, [rsp + 0x20]
call sym._ZN3std3sys3pal7windows7to_u16s5inner17h012bd72fba547a21E.llvm.11506732742244318735
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
cmp rax, r14
je 0x14003fc64
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x38]
mov r8b, 1
call sym._ZN3std3sys3pal7windows4path13get_long_path17h1f9570165bb61a98E.llvm.12236185191024474919
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
cmp rdi, r14
je 0x14003fc64
mov rcx, rsi
mov edx, ebx
call sub.KERNEL32.dll_SetFileAttributesW
test eax, eax
je 0x14003fc39
test rdi, rdi
je 0x14003fc35
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call sym.__rust_dealloc
xor esi, esi
jmp 0x14003fc64
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x14003fc61
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call sym.__rust_dealloc
mov rsi, rbx
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14003fd20
Capabilities:
Copy file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov r14, r9
mov rsi, rcx
movabs r12, 0x8000000000000000
lea rcx, [rsp + 0x48]
call sym._ZN3std3sys3pal7windows7to_u16s5inner17h012bd72fba547a21E.llvm.11506732742244318735
mov rax, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
cmp rax, r12
je 0x14003fd8b
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x30]
mov r8b, 1
call sym._ZN3std3sys3pal7windows4path13get_long_path17h1f9570165bb61a98E.llvm.12236185191024474919
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
cmp rbx, r12
jne 0x14003fda7
mov qword [rsi + 8], rdi
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r8, qword [rsp + 0xd0]
lea rcx, [rsp + 0x48]
mov rdx, r14
call sym._ZN3std3sys3pal7windows7to_u16s5inner17h012bd72fba547a21E.llvm.11506732742244318735
mov rax, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
cmp rax, r12
je 0x14003fe00
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x30]
mov r8b, 1
call sym._ZN3std3sys3pal7windows4path13get_long_path17h1f9570165bb61a98E.llvm.12236185191024474919
mov r15, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
cmp r15, r12
jne 0x14003fe29
mov qword [rsi + 8], r14
mov qword [rsi], 1
test rbx, rbx
je 0x14003fd96
add rbx, rbx
mov r8d, 2
mov rcx, rdi
mov rdx, rbx
call sym.__rust_dealloc
jmp 0x14003fd96
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [sym.std::sys::pal::windows::fs::copy::callback::h391313d315df3667]
lea r9, [rsp + 0x30]
mov rcx, rdi
mov rdx, r14
call sub.KERNEL32.dll_CopyFileExW
test eax, eax
je 0x14003fe75
mov rax, qword [rsp + 0x30]
mov qword [rsi + 8], rax
mov qword [rsi], 0
test r15, r15
jne 0x14003fe96
jmp 0x14003fe0b
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
test r15, r15
je 0x14003fe0b
add r15, r15
mov r8d, 2
mov rcx, r14
mov rdx, r15
call sym.__rust_dealloc
jmp 0x14003fe0b
Function at 0x14003ffe0
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x140121bb8]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400400a3
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [sym._ZN3std3sys3pal7windows6thread6Thread3new12thread_start17ha0428229549b9bf1E.llvm.15600656862715242333]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x140040096
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x14004006f
mov r8, qword [r14 + 0x10]
mov rcx, rbx
call sym.__rust_dealloc
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call sym.__rust_dealloc
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::h225ba2be7c4efe12
ud2

Function at 0x140040460
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
test rax, rax
je 0x140040495
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400404a5
lea rax, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x50
pop rsi
ret
Function at 0x1400404c0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140040545
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x140040586
cmp dword [rsp + 0x2c], 0
je 0x14004056a
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400405b3
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x140132168]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x140132168], rsi
jne 0x140040520
mov byte [0x140132160], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x14004057c
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x1400405fd
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14004056f
mov edi, dword [rsp + 0x28]
jmp 0x14004057c
mov edi, dword [rsi + 0x18]
jmp 0x14004057a
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rax, str.library_std_src_syspalwindows_thread_local_key.rs
mov qword [rsp + 0x20], rax
lea r8, [0x14010bc50]
lea rdx, [rsp + 0x28]
lea r9, [rsp + 0x30]
xor ecx, ecx
call sym.core::panicking::assert_failed::h86523113d3b74fdd
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x14010b340]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call sym.core::panicking::panic_fmt::h1831a24803b4fdac
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x14010b340]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rax, str.library_std_src_syspalwindows_thread_local_key.rs
mov qword [rsp + 0x20], rax
lea r8, [0x14010bc70]
lea rdx, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov cl, 1
call sym.core::panicking::assert_failed::hedda28f8e98912a3
int3