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

Disassembly:
sub rsp, 0x48
mov rcx, qword [rcx]
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x20], 0x14
lea r9, [rsp + 0x30]
mov edx, 0x29
mov r8d, 0xd
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400c9a2d
xor eax, eax
add rsp, 0x48
ret
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x48
ret

Function at 0x1400c9a40
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
je 0x1400c9a79
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400c9a8f
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x1400c9aa0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
je 0x1400c9ad3
cdqe
jmp 0x1400c9ae1
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x1400c9ae9
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400c9afa
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x1400ce700
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
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, [dbg.callback]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
mov rdx, rax
call sub.kernel32.dll_WriteFileEx
test eax, eax
je 0x1400ce793
nop dword [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.kernel32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x1400ce760
movsxd rax, dword [rsp + 0x38]
test rax, rax
je 0x1400ce7ad
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x1400ce7b7
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400ce7ba
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 0x1400ce7e0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
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, [dbg.callback]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
mov rdx, rax
call sub.kernel32.dll_WriteFileEx
test eax, eax
je 0x1400ce873
nop
mov ecx, 0xffffffff
mov edx, 1
call sub.kernel32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x1400ce840
movsxd rax, dword [rsp + 0x38]
test rax, rax
je 0x1400ce88d
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x1400ce897
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400ce89a
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 0x1400ce940
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
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, [dbg.callback]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
mov rdx, rax
call sub.kernel32.dll_ReadFileEx
test eax, eax
je 0x1400ce9d1
nop dword [rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.kernel32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x1400ce9a0
mov edi, dword [rsp + 0x38]
test edi, edi
je 0x1400ce9f2
mov ecx, edi
call dbg.decode_error_kind
cmp al, 0xb
jne 0x1400ce9e3
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400ce9ff
call sub.kernel32.dll_GetLastError
mov edi, eax
mov ecx, edi
call dbg.decode_error_kind
cmp al, 0xb
je 0x1400ce9c9
shl rdi, 0x20
or rdi, 2
mov eax, 1
jmp 0x1400ce9f8
mov edi, dword [rsp + 0x3c]
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 8], rdi
mov rax, rsi
add rsp, 0x68
pop rdi
pop rsi
ret

Function at 0x1400cf550
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, qword [rcx + 0x30]
jns 0x1400cf58a
mov rcx, rdi
mov edx, 1
call sub.kernel32.dll_TerminateProcess
test eax, eax
je 0x1400cf56f
xor esi, esi
jmp 0x1400cf5b8
call sub.kernel32.dll_GetLastError
mov esi, eax
cmp eax, 5
jne 0x1400cf5b0
mov rcx, rdi
xor edx, edx
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x1400cf592
cmp eax, 0x102
je 0x1400cf56b
jmp 0x1400cf5ab
mov dword [rsp + 0x24], 0
lea rdx, [rsp + 0x24]
mov rcx, rdi
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x1400cf56b
call sub.kernel32.dll_GetLastError
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x28
add esp, 0x28
pop rdi
pop rsi
ret
Function at 0x1400d0740
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rdi
sub rsp, 0x1f8
mov rax, qword [rcx]
mov rdi, qword [rax]
mov qword [rax], 0
test rdi, rdi
je 0x1400d0798
lea rsi, [rsp + 0x60]
mov r8d, 0x198
mov rcx, rsi
xor edx, edx
call fcn.140153c20
mov cx, 0x202
mov rdx, rsi
call sub.ws2_32.dll_WSAStartup
mov dword [rsp + 0x2c], eax
test eax, eax
jne 0x1400d07b2
lea rax, [0x140153044]
mov qword [rdi], rax
add rsp, 0x1f8
pop rdi
pop rsi
ret
lea rcx, [0x14016ab30]
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call dbg.panic
ud2
mov qword [rsp + 0x30], 0
lea rdx, [0x14016fd48]
lea r9, str.library_std_src_syswindows_net.rs
lea rcx, [rsp + 0x2c]
lea r8, [rsp + 0x30]
call dbg.assert_failed<i32, i32>
ud2
Function at 0x1400d2890
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1078
call dbg.___chkstk_ms
sub rsp, rax
movaps xmmword [rsp + 0x1060], xmm6
mov rsi, rdx
mov rdi, rcx
lea rbx, [rsp + 0x60]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call fcn.140153c20
mov dword [rsp + 0x34], 0
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
lea r13, [rsp + 0x34]
mov qword [rsp + 0x58], r13
lea rbp, [dbg.callback]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x1000
call sub.kernel32.dll_ReadFileEx
test eax, eax
je 0x1400d2a25
lea rbx, [rsp + 0x40]
lea r14, [rsp + 0x60]
mov ecx, 0xffffffff
mov edx, 1
call sub.kernel32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x1400d2923
cmp dword [rsp + 0x38], 0
jne 0x1400d2a2a
mov r15d, dword [rsp + 0x3c]
test r15, r15
je 0x1400d2a2a
cmp r15d, 0x1000
ja 0x1400d2a6a
xor r12d, r12d
nop word cs:[rax + rax]
cmp r12, r15
ja 0x1400d2a56
lea rdx, [rsp + r12]
add rdx, 0x60
mov r8d, r15d
sub r8d, r12d
mov dword [rsp + 0x34], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rsi
mov r9, rbx
call sub.kernel32.dll_WriteFileEx
test eax, eax
je 0x1400d2a25
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.kernel32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x1400d29c0
cmp dword [rsp + 0x38], 0
jne 0x1400d2a2a
mov eax, dword [rsp + 0x3c]
add r12, rax
cmp r12, r15
jne 0x1400d2970
mov dword [rsp + 0x34], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rdi
mov rdx, r14
mov r8d, 0x1000
mov r9, rbx
call sub.kernel32.dll_ReadFileEx
test eax, eax
jne 0x1400d2923
call sub.kernel32.dll_GetLastError
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
mov rcx, rsi
call sub.kernel32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0x1060]
add rsp, 0x1078
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r12
mov rdx, r15
call dbg.slice_index_order_fail
jmp 0x1400d2a7e
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call dbg.slice_end_index_len_fail
ud2

Function at 0x1400d7710
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400d7727
dec ecx
jmp 0x1400d7731
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::hf708679f60708267
mov ecx, eax
mov edx, 1
call fcn.14015349c
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400d7759
dec ecx
jmp 0x1400d7763
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::hf708679f60708267
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.14015349c
Function at 0x1400d7800
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov qword [rsp + 0x30], rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400d7819
dec ecx
jmp 0x1400d7823
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::hf708679f60708267
mov ecx, eax
mov edx, 1
call fcn.14015349c
mov rdi, qword [rsp + 0x30]
cmp qword [rdi + 8], 0
je 0x1400d7851
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1400d7851
lock dec qword [rax]
jne 0x1400d7851
lea rcx, [rdi + 0x10]
call dbg.drop_slow<std::sync::mpmc::context::Inner, alloc::alloc::Global>
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400d786f
dec ecx
jmp 0x1400d7879
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::hf708679f60708267
mov ecx, eax
xor edx, edx
call fcn.14015349c
nop
add rsp, 0x68
pop rdi
pop rsi
ret

Function at 0x1400d7910
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400d7927
dec ecx
jmp 0x1400d7931
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::hf708679f60708267
mov ecx, eax
mov edx, 1
call fcn.14015349c
mov edx, 0x20
mov r8d, 8
mov rcx, rdi
mov ecx, edi
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400d7959
dec ecx
jmp 0x1400d7963
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::hf708679f60708267
add dword [rax], eax
mov ecx, eax
xor edx, edx
add rsp, 0x68
push 0x2ce95e5f
invalid
invalid
invalid

Function at 0x1400d7a00
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov qword [rsp + 0x30], rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400d7a19
dec ecx
jmp 0x1400d7a23
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::hf708679f60708267
mov ecx, eax
mov edx, 1
call fcn.14015349c
invalid
add byte [rax - 0x75], cl
jl 0x1400d7a55
xor byte [rax - 0x7d], cl
jg 0x1400d7a3e
invalid
je 0x1400d7a51
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1400d7a51
lock dec qword [rax]
jne 0x1400d7a51
lea rcx, [rdi + 0x10]
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>, alloc::alloc::Global>
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400d7a6f
dec ecx
jmp 0x1400d7a79
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::hf708679f60708267
mov ecx, eax
xor edx, edx
call fcn.14015349c
nop
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x1400d7b10
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x68
push 0x244c8948
xor byte [rax - 0x75], cl
xor dword [rbx - 0x367ae7b2], ecx
je 0x1400d7b29
dec ecx
jmp 0x1400d7b33
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::hf708679f60708267
mov ecx, eax
mov edx, 1
call fcn.14015349c
invalid
add byte [rax - 0x75], cl
jl 0x1400d7b65
xor byte [rax - 0x7d], cl
jg 0x1400d7b4e
invalid
je 0x1400d7b61
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1400d7b61
lock dec qword [rax]
jne 0x1400d7b61
lea rcx, [rdi + 0x10]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
jmp rbx
cld
invalid
mov edx, 0x18
mov r8d, 8
add byte [rax - 0x77], cl
stc
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
invalid
invalid
test ecx, ecx
je 0x1400d7b7f
dec ecx
jmp 0x1400d7b89
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::hf708679f60708267
jns case.0x1400cc026.270
add dword [rax], eax
mov ecx, eax
xor edx, edx
call fcn.14015349c
or al, 0xb9
invalid
add byte [rax + 0x68c48348], dl
pop rdi
pop rsi
ret
Function at 0x1400d98e0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call sym.std::sys::windows::to_u16s::inner::h7e66ebc21fd40bcf
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x1400d9995
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call dbg.get_long_path
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x1400d9995
mov rcx, rdi
xor edx, edx
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
je 0x1400d996a
test rsi, rsi
je 0x1400d9966
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
xor esi, esi
jmp 0x1400d9995
call sub.kernel32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x1400d9992
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400d9d20
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call sym.std::sys::windows::to_u16s::inner::h7e66ebc21fd40bcf
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x1400d9dd3
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call dbg.get_long_path
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x1400d9dd3
mov rcx, rdi
call sub.kernel32.dll_DeleteFileW
test eax, eax
je 0x1400d9da8
test rsi, rsi
je 0x1400d9da4
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
xor esi, esi
jmp 0x1400d9dd3
call sub.kernel32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x1400d9dd0
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400d9de0
Capabilities:
Move file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r14, r9
mov r15, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call sym.std::sys::windows::to_u16s::inner::h7e66ebc21fd40bcf
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
test rax, rax
je 0x1400d9f3a
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call dbg.get_long_path
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x1400d9ef0
lea rcx, [rsp + 0x20]
mov rdx, r15
mov r8, r14
call sym.std::sys::windows::to_u16s::inner::h7e66ebc21fd40bcf
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
test rax, rax
je 0x1400d9f21
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call dbg.get_long_path
mov r14, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
test r14, r14
je 0x1400d9f21
mov rcx, rdi
mov rdx, r14
mov r8d, 1
call sub.kernel32.dll_MoveFileExW
test eax, eax
je 0x1400d9ef5
test rbx, rbx
je 0x1400d9ed3
add rbx, rbx
mov r8d, 2
mov rcx, r14
mov rdx, rbx
call sym.__rust_dealloc
test rsi, rsi
je 0x1400d9eec
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
xor ebx, ebx
jmp 0x1400d9f3a
mov rbx, rsi
jmp 0x1400d9f3a
call sub.kernel32.dll_GetLastError
mov r15d, eax
shl r15, 0x20
or r15, 2
test rbx, rbx
je 0x1400d9f1e
add rbx, rbx
mov r8d, 2
mov rcx, r14
mov rdx, rbx
call sym.__rust_dealloc
mov rbx, r15
test rsi, rsi
je 0x1400d9f3a
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
mov rax, rbx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400d9f70
Capabilities:
Delete directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call sym.std::sys::windows::to_u16s::inner::h7e66ebc21fd40bcf
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x1400da023
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call dbg.get_long_path
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x1400da023
mov rcx, rdi
call sub.kernel32.dll_RemoveDirectoryW
test eax, eax
je 0x1400d9ff8
test rsi, rsi
je 0x1400d9ff4
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
xor esi, esi
jmp 0x1400da023
call sub.kernel32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x1400da020
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400db410
Capabilities:
Set file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov ebx, r8d
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call sym.std::sys::windows::to_u16s::inner::h7e66ebc21fd40bcf
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x1400db4c8
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call dbg.get_long_path
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x1400db4c8
mov rcx, rdi
mov edx, ebx
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
je 0x1400db49d
test rsi, rsi
je 0x1400db499
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
xor esi, esi
jmp 0x1400db4c8
call sub.kernel32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x1400db4c5
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400db790
Capabilities:
Copy file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
mov r14, r9
mov rsi, rcx
lea rcx, [rsp + 0x30]
call sym.std::sys::windows::to_u16s::inner::h7e66ebc21fd40bcf
mov rax, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
test rax, rax
je 0x1400db8a0
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x30]
mov r8b, 1
call dbg.get_long_path
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
test rbx, rbx
je 0x1400db8a0
mov r8, qword [rsp + 0xb0]
lea rcx, [rsp + 0x30]
mov rdx, r14
call sym.std::sys::windows::to_u16s::inner::h7e66ebc21fd40bcf
mov rax, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
test rax, rax
je 0x1400db8ad
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x30]
mov r8b, 1
call dbg.get_long_path
mov r15, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
test r15, r15
je 0x1400db8ad
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [sym.std::sys::windows::fs::copy::callback::h4ef4b8655740b946]
lea r9, [rsp + 0x30]
mov rcx, rbx
mov rdx, r15
call sub.kernel32.dll_CopyFileExW
test eax, eax
je 0x1400db8ba
mov rax, qword [rsp + 0x30]
mov qword [rsi + 8], rax
mov qword [rsi], 0
test r14, r14
jne 0x1400db8d7
jmp 0x1400db8eb
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp 0x1400db904
mov qword [rsi + 8], r14
mov qword [rsi], 1
jmp 0x1400db8eb
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
test r14, r14
je 0x1400db8eb
add r14, r14
mov r8d, 2
mov rcx, r15
mov rdx, r14
call sym.__rust_dealloc
test rdi, rdi
je 0x1400db904
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400dc220
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rax, r8
mov rsi, rcx
mov r10, qword [rsp + 0x60]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdx]
mov qword [rsp + 0x20], r10
lea r9, [rsp + 0x2c]
mov rdx, rax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x1400dc276
mov eax, dword [rsp + 0x2c]
mov qword [rsi], 1
mov qword [rsi + 8], rax
mov rax, rsi
add rsp, 0x30
pop rsi
ret
call sub.kernel32.dll_GetLastError
cmp eax, 0x6d
je 0x1400dc290
cmp eax, 0x3e5
jne 0x1400dc2a1
mov qword [rsi], 0
jmp 0x1400dc26d
mov qword [rsi], 1
mov qword [rsi + 8], 0
jmp 0x1400dc26d
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 2
jmp 0x1400dc26d

Function at 0x1400dc520
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14016fcc0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1400dc564
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x1400dc5c1
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1400dc5d0
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400dc607
cmp eax, 0x103
je 0x1400dc611
test eax, eax
js 0x1400dc5ed
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400dc607
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x14016fd28]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call dbg.write_fmt<std::sys::windows::stdio::Stderr>
mov rcx, rax
call dbg.drop_in_place<core::option::Option<std::io::error::Error>>
mov ecx, 7
int 0x29
ud2