joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d4300
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d4d02
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f9108]
test eax, eax
je 0x2fc4d4d9a
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f9110]
mov qword [rbp - 8], rax
jmp 0x2fc4d4d7e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d4d72
cmp qword [rbp - 0x10], 0
je 0x2fc4d4d72
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d4d38
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d4d9b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d4ea0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d4ec8
mov eax, 0
jmp 0x2fc4d4f16
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d4ef1
mov eax, 0
jmp 0x2fc4d4f16
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d4f11
mov eax, 0
jmp 0x2fc4d4f16
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140002c90
Capabilities:
Move file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
call fcn.140014350
mov rdi, rax
mov rbx, rdx
mov rcx, rsi
call fcn.140014350
mov r9, rdx
mov rcx, rdi
mov rdx, rbx
mov r8, rax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x140012360
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, r9
mov rdi, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x30]
call fcn.140013e70
mov rax, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x1400123d6
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x38], rcx
lea rcx, [rbp - 0x60]
lea rdx, [rbp - 0x48]
mov r8b, 1
call fcn.1400147f0
mov rax, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x58]
cmp rax, rbx
jne 0x1400123e7
mov rax, rdx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x18], rdx
lea rcx, [rbp - 0x30]
mov rdx, rdi
mov r8, rsi
call fcn.140013e70
mov rax, qword [rbp - 0x30]
mov rsi, qword [rbp - 0x28]
cmp rax, rbx
je 0x140012438
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rcx
lea rcx, [rbp - 0x60]
lea rdx, [rbp - 0x48]
mov r8b, 1
call fcn.1400147f0
mov rdi, qword [rbp - 0x60]
mov rsi, qword [rbp - 0x58]
cmp rdi, rbx
jne 0x140012461
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
mov rax, rsi
test rdx, rdx
je 0x1400123d9
add rdx, rdx
mov r8d, 2
mov rsi, rax
call fcn.140007930
mov rax, rsi
jmp 0x1400123d9
mov rcx, qword [rbp - 0x18]
mov rbx, rcx
mov rdx, rsi
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
mov rdx, qword [rbp - 0x10]
je 0x1400124bb
test rdi, rdi
je 0x14001249e
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rsi, rdx
mov rdx, rdi
call fcn.140007930
mov rdx, rsi
test rdx, rdx
je 0x1400124b4
add rdx, rdx
mov r8d, 2
mov rcx, rbx
call fcn.140007930
xor eax, eax
jmp 0x1400123d9
mov r14, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x1400124eb
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.140007930
mov rax, rsi
mov rcx, rbx
mov rdx, r14
test rdx, rdx
jne 0x140012448
jmp 0x1400123d9
Function at 0x140005190
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov r9d, 0x40
mov rcx, rdx
mov rdx, r8
xor r8d, r8d
call fcn.140007970
lea rcx, [0x140025e8c]
mov r8d, 0x24
test rax, rax
je 0x14000521d
cmp rdx, 0x40
jb 0x14000521d
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x140005210
mov r8d, dword [rax + 0x3c]
mov r9d, 0x78
mov rcx, rbx
mov rdx, rdi
call fcn.140007970
test rax, rax
je 0x14000522f
cmp rdx, 0x78
jb 0x14000522f
cmp dword [rax], 0x4550
jne 0x140005243
movzx eax, word [rax + 0x18]
mov word [rsi + 8], ax
mov qword [rsi], 0
jmp 0x140005224
lea rcx, [0x140025eb0]
mov r8d, 0x11
mov qword [rsi], rcx
mov qword [rsi + 8], r8
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rax, str.Invalid_NT_headers_offset__size__or_alignmentInvalid_PE_magicInvalid_ELF_section_index
mov qword [rsi], rax
mov qword [rsi + 8], 0x2d
jmp 0x140005224
lea rax, [0x140025d6d]
mov qword [rsi], rax
mov qword [rsi + 8], 0x10
jmp 0x140005224

Function at 0x1400083a0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x68
movaps xmmword [rsp + 0x50], xmm6
mov rsi, rcx
mov rdi, qword [rcx + 0x10]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rsp + 0x48]
cmp eax, 1
adc eax, 0
cmp rdi, rax
je 0x140008432
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GetSystemInfo
mov ecx, dword [rsp + 0x48]
test rcx, rcx
je 0x14000843e
mov rax, rdi
shr rax, 0x20
je 0x140008412
mov rax, rdi
xor edx, edx
div rcx
jmp 0x140008418
mov eax, edi
xor edx, edx
div ecx
sub rdi, rdx
mov rcx, rdi
call sub.KERNEL32.dll_UnmapViewOfFile
cmp qword [rsi], 0
je 0x140008432
mov rcx, qword [rsi + 8]
call sub.KERNEL32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x68
pop rdi
pop rsi
ret
lea rcx, str.C:Userswho.cargo_registry_srcmirrors.ustc.edu.cn_61ef6e0cd06fb9b8memmap2_0.9.4_srcwindows.rs
call fcn.1400240b0
int3
Function at 0x140008450
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov ebp, r9d
mov r15d, r8d
mov rdi, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call sub.KERNEL32.dll_GetSystemInfo
mov ecx, dword [rsp + 0x68]
test rcx, rcx
je 0x14000862a
mov r8, qword [rsp + 0xe8]
mov r14, qword [rsp + 0xe0]
mov rax, r14
shr rax, 0x20
je 0x14000859b
mov rax, r14
xor edx, edx
div rcx
mov r13, rdx
movzx r12d, byte [rsp + 0xf0]
mov rbx, r13
add rbx, r8
je 0x1400085ba
mov r12, r8
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rdi
xor edx, edx
mov r8d, r15d
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingW
test rax, rax
je 0x140008601
mov r15, rax
sub r14, r13
mov r8, r14
shr r8, 0x20
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov edx, ebp
mov r9d, r14d
call sub.KERNEL32.dll_MapViewOfFile
mov r14, rax
mov rcx, r15
call sub.KERNEL32.dll_CloseHandle
test r14, r14
je 0x140008601
mov qword [rsp + 0x40], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x1400085f9
mov rax, qword [rsp + 0x40]
add r14, r13
mov qword [rsi], 1
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], r12
movzx eax, byte [rsp + 0xf0]
mov byte [rsi + 0x20], al
jmp 0x140008619
mov eax, r14d
xor edx, edx
div ecx
mov r13d, edx
movzx r12d, byte [rsp + 0xf0]
mov rbx, r13
add rbx, r8
jne 0x1400084d2
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rsp + 0x68]
cmp eax, 1
adc eax, 0
mov qword [rsi], 0
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], 0
mov byte [rsi + 0x20], r12b
jmp 0x140008619
mov rcx, r14
call sub.KERNEL32.dll_UnmapViewOfFile
call fcn.140012d70
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 2
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.C:Userswho.cargo_registry_srcmirrors.ustc.edu.cn_61ef6e0cd06fb9b8memmap2_0.9.4_srcwindows.rs
call fcn.1400240b0
int3
Function at 0x140008640
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x20], xmm6
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov r14, r9
mov rdi, r8
mov r15, rdx
mov rsi, rcx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, r8
xor edx, edx
mov r8d, 0x20
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingW
mov rbx, rax
test rax, rax
je 0x1400086b1
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
mov r8d, 0x40
mov r9d, 0x26
jmp 0x1400086bd
mov r8d, 4
mov r9d, 6
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
mov byte [rsp + 0x30], 0
lea rcx, [rbp - 0x20]
mov rdx, rdi
call fcn.140008450
mov r14, qword [rbp - 0x20]
mov rdi, qword [rbp - 0x18]
cmp r14, 2
jne 0x1400086f6
mov qword [rsi + 8], rdi
mov qword [rsi], 2
jmp 0x1400087c5
mov rax, qword [rbp]
mov qword [rbp - 0x28], rax
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], rdi
test rbx, rbx
je 0x140008786
lea rcx, [rbp - 0x48]
call fcn.140008830
test rax, rax
je 0x140008786
mov qword [rsi + 8], rax
mov qword [rsi], 2
mov rbx, qword [rbp - 0x38]
xorps xmm6, xmm6
movaps xmmword [rbp], xmm6
movaps xmmword [rbp - 0x10], xmm6
movaps xmmword [rbp - 0x20], xmm6
lea rcx, [rbp - 0x20]
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rbp + 8]
cmp eax, 1
adc eax, 0
cmp rbx, rax
je 0x1400087c5
movaps xmmword [rbp], xmm6
movaps xmmword [rbp - 0x10], xmm6
movaps xmmword [rbp - 0x20], xmm6
lea rcx, [rbp - 0x20]
call sub.KERNEL32.dll_GetSystemInfo
mov ecx, dword [rbp + 8]
test rcx, rcx
je 0x1400087dc
mov rax, rbx
shr rax, 0x20
je 0x1400087a7
mov rax, rbx
xor edx, edx
div rcx
jmp 0x1400087ad
mov rax, qword [rbp - 0x28]
mov qword [rsi + 0x20], rax
mov rax, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x40]
movups xmm0, xmmword [rbp - 0x38]
movups xmmword [rsi + 0x10], xmm0
mov qword [rsi], rax
mov qword [rsi + 8], rcx
jmp 0x1400087c5
mov eax, ebx
xor edx, edx
div ecx
sub rbx, rdx
mov rcx, rbx
call sub.KERNEL32.dll_UnmapViewOfFile
test r14, r14
je 0x1400087c5
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
mov rax, rsi
movaps xmm6, xmmword [rbp + 0x20]
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
lea rcx, str.C:Userswho.cargo_registry_srcmirrors.ustc.edu.cn_61ef6e0cd06fb9b8memmap2_0.9.4_srcwindows.rs
call fcn.1400240b0
int3
Function at 0x140008830
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x68
movaps xmmword [rsp + 0x50], xmm6
cmp byte [rcx + 0x20], 0
mov rdi, qword [rcx + 0x10]
mov rsi, qword [rcx + 0x18]
xorps xmm6, xmm6
je 0x1400088b1
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rsp + 0x48]
cmp eax, 1
adc eax, 0
cmp rax, rdi
je 0x140008940
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GetSystemInfo
mov ecx, dword [rsp + 0x48]
test rcx, rcx
je 0x14000898b
mov rax, rdi
shr rax, 0x20
je 0x140008912
mov rax, rdi
xor edx, edx
div rcx
jmp 0x140008918
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rsp + 0x48]
cmp eax, 1
adc eax, 0
cmp rax, rdi
je 0x140008940
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GetSystemInfo
mov ecx, dword [rsp + 0x48]
test rcx, rcx
je 0x14000898b
mov rax, rdi
shr rax, 0x20
je 0x140008944
mov rax, rdi
xor edx, edx
div rcx
jmp 0x14000894a
mov eax, edi
xor edx, edx
div ecx
sub rdi, rdx
add rsi, rdx
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x20]
mov rcx, rdi
mov rdx, rsi
mov r8d, 8
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x140008972
xor eax, eax
jmp 0x14000897f
mov eax, edi
xor edx, edx
div ecx
sub rdi, rdx
add rsi, rdx
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x20]
mov rcx, rdi
mov rdx, rsi
mov r8d, 4
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x140008940
call fcn.140012d70
shl rax, 0x20
or rax, 2
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x68
pop rdi
pop rsi
ret
lea rcx, str.C:Userswho.cargo_registry_srcmirrors.ustc.edu.cn_61ef6e0cd06fb9b8memmap2_0.9.4_srcwindows.rs
call fcn.1400240b0
int3
Function at 0x14000af10
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x14000afb0
jmp 0x14000af9f
jae 0x14000b06f
cmp r8, 0x201
jae 0x14000afb0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x14000b007
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14000afdf
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.140022ae0
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x14000b030
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000b0db
mov r8d, r13d
cmp r12, r8
jne 0x14000af90
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000b10f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000af9f
jmp 0x14000afb0
cmp r14, r8
jb 0x14000b129
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14000d540
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x14000b0c4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140007930
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14000b0af
jmp 0x14000b0c4
lea rcx, str.internal_error:_entered_unreachable_code_rustc_129f3b9964af4d4a709d1383930ade12dfe7c081library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140023c70
jmp 0x14000b13e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140023fc0
ud2
Function at 0x140012290
Capabilities:
Delete file

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x10]
call fcn.140013e70
mov rax, qword [rbp - 0x10]
mov rsi, qword [rbp - 8]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x1400122f0
mov rcx, qword [rbp]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov r8b, 1
call fcn.1400147f0
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp rdi, rbx
jne 0x1400122fc
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140012326
test rdi, rdi
je 0x140012352
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140007930
xor eax, eax
jmp 0x1400122f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x1400122f3
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.140007930
jmp 0x1400122f0
xor eax, eax
jmp 0x1400122f3
Function at 0x140012360
Capabilities:
Move file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
call fcn.140014350
mov rdi, rax
mov rbx, rdx
mov rcx, rsi
call fcn.140014350
mov r9, rdx
mov rcx, rdi
mov rdx, rbx
mov r8, rax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x140012360
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, r9
mov rdi, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x30]
call fcn.140013e70
mov rax, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x1400123d6
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x38], rcx
lea rcx, [rbp - 0x60]
lea rdx, [rbp - 0x48]
mov r8b, 1
call fcn.1400147f0
mov rax, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x58]
cmp rax, rbx
jne 0x1400123e7
mov rax, rdx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x18], rdx
lea rcx, [rbp - 0x30]
mov rdx, rdi
mov r8, rsi
call fcn.140013e70
mov rax, qword [rbp - 0x30]
mov rsi, qword [rbp - 0x28]
cmp rax, rbx
je 0x140012438
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rcx
lea rcx, [rbp - 0x60]
lea rdx, [rbp - 0x48]
mov r8b, 1
call fcn.1400147f0
mov rdi, qword [rbp - 0x60]
mov rsi, qword [rbp - 0x58]
cmp rdi, rbx
jne 0x140012461
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
mov rax, rsi
test rdx, rdx
je 0x1400123d9
add rdx, rdx
mov r8d, 2
mov rsi, rax
call fcn.140007930
mov rax, rsi
jmp 0x1400123d9
mov rcx, qword [rbp - 0x18]
mov rbx, rcx
mov rdx, rsi
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
mov rdx, qword [rbp - 0x10]
je 0x1400124bb
test rdi, rdi
je 0x14001249e
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rsi, rdx
mov rdx, rdi
call fcn.140007930
mov rdx, rsi
test rdx, rdx
je 0x1400124b4
add rdx, rdx
mov r8d, 2
mov rcx, rbx
call fcn.140007930
xor eax, eax
jmp 0x1400123d9
mov r14, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x1400124eb
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.140007930
mov rax, rsi
mov rcx, rbx
mov rdx, r14
test rdx, rdx
jne 0x140012448
jmp 0x1400123d9
Function at 0x140012940
Capabilities:
Set file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov ebx, r8d
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x18]
call fcn.140013e70
mov rax, qword [rbp - 0x18]
mov rsi, qword [rbp - 0x10]
movabs r14, 0x8000000000000000
cmp rax, r14
je 0x1400129a5
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x30]
mov r8b, 1
call fcn.1400147f0
mov rdi, qword [rbp - 0x48]
mov rsi, qword [rbp - 0x40]
cmp rdi, r14
jne 0x1400129b3
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov rcx, rsi
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1400129df
test rdi, rdi
je 0x140012a0b
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140007930
xor eax, eax
jmp 0x1400129a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x1400129a8
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.140007930
jmp 0x1400129a5
xor eax, eax
jmp 0x1400129a8
Function at 0x140012a10
Capabilities:
Copy file

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
mov rsi, r9
mov rdi, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x38]
call fcn.140013e70
mov rax, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x140012a86
mov rcx, qword [rbp - 0x28]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x50]
lea rdx, [rbp - 0x20]
mov r8b, 1
call fcn.1400147f0
mov rax, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
cmp rax, rbx
jne 0x140012a99
mov eax, 1
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp], rax
mov qword [rbp - 8], rdx
lea rcx, [rbp - 0x38]
mov rdx, rdi
mov r8, rsi
call fcn.140013e70
mov rax, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
cmp rax, rbx
je 0x140012aea
mov rcx, qword [rbp - 0x28]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x50]
lea rdx, [rbp - 0x20]
mov r8b, 1
call fcn.1400147f0
mov rsi, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
cmp rsi, rbx
jne 0x140012b1d
mov rcx, qword [rbp - 8]
mov r14, qword [rbp]
mov eax, 1
test r14, r14
je 0x140012a8b
add r14, r14
mov r8d, 2
mov rsi, rdx
mov rdx, r14
call fcn.140007930
mov eax, 1
mov rdx, rsi
jmp 0x140012a8b
mov qword [rbp - 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x140012c30]
lea r9, [rbp - 0x20]
mov rcx, qword [rbp - 8]
mov rbx, rcx
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
mov r14, qword [rbp]
je 0x140012ba2
mov rdx, qword [rbp - 0x20]
test rsi, rsi
je 0x140012b7c
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdi, rdx
mov rdx, rsi
call fcn.140007930
mov rdx, rdi
test r14, r14
je 0x140012b9b
add r14, r14
mov r8d, 2
mov rcx, rbx
mov rsi, rdx
mov rdx, r14
call fcn.140007930
mov rdx, rsi
xor eax, eax
jmp 0x140012a8b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
test rsi, rsi
je 0x140012bd1
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdi, rdx
mov rdx, rsi
call fcn.140007930
mov rdx, rdi
mov rcx, rbx
mov eax, 1
test r14, r14
jne 0x140012afc
jmp 0x140012a8b