joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437650
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov dword [ebp - 0x14], ecx
mov ecx, edx
mov edi, edx
call sym.std::path::Components::len_before_body::hba0b98184b6e16ba
mov ecx, dword [edi + 4]
cmp eax, ecx
ja 0x43776b
mov edx, dword [edi]
mov ebx, edx
lea esi, [edx + eax]
movzx edx, byte [edi + 8]
mov edi, eax
sub edi, ecx
mov byte [ebp - 0xd], dl
jne 0x437697
mov ebx, dword [ebp - 0x14]
xor edi, edi
movzx edx, byte [ebp - 0xd]
sub ecx, eax
jne 0x437713
jmp 0x4376f1
cmp dl, 3
mov dword [ebp - 0x18], esi
jae 0x4376bf
mov edx, ebx
lea esi, [ecx + ebx - 1]
mov ebx, dword [ebp - 0x14]
mov edi, eax
sub edi, ecx
nop dword [eax]
cmp byte [esi], 0x5c
je 0x437755
dec esi
inc edi
jne 0x4376b0
jmp 0x4376e4
mov edx, ebx
lea esi, [ecx + ebx - 1]
nop word cs:[eax + eax]
nop
movzx ebx, byte [esi]
cmp ebx, 0x2f
je 0x4376f5
cmp ebx, 0x5c
je 0x4376f5
dec esi
inc edi
jne 0x4376d0
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
xor edi, edi
movzx edx, byte [ebp - 0xd]
sub ecx, eax
jne 0x437713
mov al, 0xa
jmp 0x437740
mov ebx, dword [ebp - 0x14]
not edi
lea eax, [eax + edi + 1]
cmp eax, ecx
ja 0x43775f
add edx, eax
mov edi, 1
mov esi, edx
movzx edx, byte [ebp - 0xd]
sub ecx, eax
je 0x4376f1
mov al, 9
cmp ecx, 2
je 0x437732
cmp ecx, 1
jne 0x437740
cmp byte [esi], 0x2e
jne 0x437740
xor eax, eax
cmp dl, 3
setae al
lea eax, [eax + eax*2 + 7]
jmp 0x437740
cmp byte [esi], 0x2e
jne 0x437740
cmp byte [esi + 1], 0x2e
sete al
xor al, 9
add edi, ecx
mov dword [ebx], edi
mov byte [ebx + 4], al
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
not edi
lea eax, [eax + edi + 1]
cmp eax, ecx
jbe 0x437702
push 0x582ca8
push ecx
push eax
call sym.core::slice::index::slice_start_index_len_fail::h7e8587be95abf61b
push 0x582c98
push ecx
push eax
call sym.core::slice::index::slice_start_index_len_fail::h7e8587be95abf61b
nop word [eax + eax]

Function at 0x43ac80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x20
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
xorps xmm0, xmm0
lea edi, [ebp - 0x14]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], edi
lea edi, [ebp - 0x28]
mov edx, dword [edx]
push sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17hdaf1fc9f919f56e3E_12
push edi
push ecx
push eax
push edx
call sub.kernel32.dll_WriteFileEx
test eax, eax
je 0x43ace6
nop
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x14], 0
je 0x43acc0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
sete al
jne 0x43acdc
mov ecx, dword [ebp - 0xc]
shl al, 2
mov dword [esi + 4], ecx
mov byte [esi], al
jmp 0x43acf1
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebp
ret
Function at 0x43ad00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x20
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
xorps xmm0, xmm0
lea edi, [ebp - 0x14]
mov edx, dword [edx]
mov edx, dword [edx]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0
lea edi, [ebp - 0x28]
push sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17hdaf1fc9f919f56e3E_12
push edi
push ecx
push eax
push edx
call sub.kernel32.dll_WriteFileEx
test eax, eax
je 0x43ad76
nop word cs:[eax + eax]
nop dword [eax + eax]
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x14], 0
je 0x43ad50
mov ecx, dword [ebp - 0x10]
test ecx, ecx
sete al
jne 0x43ad6c
mov ecx, dword [ebp - 0xc]
shl al, 2
mov dword [esi + 4], ecx
mov byte [esi], al
jmp 0x43ad81
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebp
ret

Function at 0x43adf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x20
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
xorps xmm0, xmm0
lea edi, [ebp - 0x14]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], edi
lea edi, [ebp - 0x28]
mov edx, dword [edx]
push sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17hdaf1fc9f919f56e3E_12
push edi
push ecx
push eax
push edx
call sub.kernel32.dll_ReadFileEx
test eax, eax
je 0x43ae5d
nop
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x14], 0
je 0x43ae30
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x43ae73
mov ecx, edi
call sym.std::sys::pal::windows::decode_error_kind::h7329ed9b84dd3c75
cmp al, 0xb
jne 0x43ae6f
mov dword [esi + 4], 0
mov byte [esi], 4
jmp 0x43ae80
call sub.kernel32.dll_GetLastError
mov edi, eax
mov ecx, edi
call sym.std::sys::pal::windows::decode_error_kind::h7329ed9b84dd3c75
cmp al, 0xb
je 0x43ae51
xor eax, eax
jmp 0x43ae78
mov edi, dword [ebp - 0xc]
mov al, 4
movzx eax, al
mov dword [esi + 4], edi
mov dword [esi], eax
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebp
ret

Function at 0x43b6f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [eax + 0x18]
push 1
push edi
call sub.kernel32.dll_TerminateProcess
test eax, eax
je 0x43b711
mov byte [esi], 4
jmp 0x43b754
call sub.kernel32.dll_GetLastError
cmp eax, 5
jne 0x43b74e
mov ebx, eax
push 0
push edi
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x43b732
cmp eax, 0x102
je 0x43b70c
jmp 0x43b747
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push edi
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x43b70c
call sub.kernel32.dll_GetLastError
mov eax, ebx
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43d060
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push edx
push eax
call sym.__LT__RF_str_u20_as_u20_alloc..ffi..c_str..CString..new..SpecNewImpl_GT_::spec_new_impl::h5fd4c193d1ea312f
add esp, 0xc
mov eax, dword [ebp - 0x20]
cmp eax, 0x80000000
jne 0x43d0d7
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 1
push eax
push ecx
push 0
push edi
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x43d103
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 4], 0
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
jne 0x43d123
jmp 0x43d12f
mov ecx, dword [0x583230]
mov edx, dword [0x583234]
test eax, eax
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], 1
je 0x43d12f
push 1
push eax
push dword [ebp - 0x1c]
call sym.___rust_dealloc
add esp, 0x40
jmp 0x43d132
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax]
movzx eax, word [eax]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x43d12f
push 1
push ebx
push edi
call sym.___rust_dealloc
add esp, 0xc
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43db40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1024
call sym.__alloca
mov esi, edx
mov edi, ecx
lea ebx, [ebp - 0x1030]
push 0x1000
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17hdaf1fc9f919f56e3E_12
push eax
push 0x1000
push ebx
mov dword [ebp - 0x10], edi
push edi
call sub.kernel32.dll_ReadFileEx
test eax, eax
je 0x43dc65
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x43db9e
cmp dword [ebp - 0x18], 0
jne 0x43dc6c
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x43dc6c
cmp ebx, 0x1000
ja 0x43dc96
xor edi, edi
mov eax, ebx
sub eax, edi
jb 0x43dc85
xorps xmm0, xmm0
lea edx, [ebp - 0x1c]
lea ecx, [ebp + edi - 0x1030]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], edx
push sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17hdaf1fc9f919f56e3E_12
lea edx, [ebp - 0x30]
push edx
push eax
push ecx
push esi
call sub.kernel32.dll_WriteFileEx
test eax, eax
je 0x43dc67
nop word [eax + eax]
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x43dc10
cmp dword [ebp - 0x18], 0
jne 0x43dc6c
add edi, dword [ebp - 0x14]
cmp edi, ebx
jne 0x43dbd0
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
push sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17hdaf1fc9f919f56e3E_12
lea eax, [ebp - 0x30]
push eax
push 0x1000
lea eax, [ebp - 0x1030]
push eax
push dword [ebp - 0x10]
call sub.kernel32.dll_ReadFileEx
test eax, eax
jne 0x43db9e
jmp 0x43dc67
call sub.kernel32.dll_GetLastError
push dword [ebp - 0x10]
call sub.kernel32.dll_CloseHandle
push esi
call sub.kernel32.dll_CloseHandle
add esp, 0x1024
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5843fc
push ebx
push edi
call sym.core::slice::index::slice_index_order_fail::h40cd09a6386d1bdc
add esp, 0xc
jmp 0x43dca9
push 0x5843fc
push 0x1000
push ebx
call sym.core::slice::index::slice_end_index_len_fail::hb7bcdcb5c84f7e98
add esp, 0xc
ud2
Function at 0x442a10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [ebp - 0x24]
push dword [ebp + 8]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp edx, 0x80000000
je 0x442a64
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
push 1
call sym.std::sys::path::windows::get_long_path::h78b4a6c417dc393d
add esp, 4
mov edi, dword [ebp - 0x18]
cmp edi, 0x80000000
jne 0x442a71
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
mov dword [esi + 4], ecx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp - 0x14]
push 0
push ebx
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
je 0x442a89
mov byte [esi], 4
test edi, edi
jne 0x442a98
jmp 0x442a69
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x442a69
add edi, edi
push 2
push edi
push ebx
call sym.___rust_dealloc
add esp, 0x30
jmp 0x442a6c
Function at 0x442e80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push dword [ebp + 0x10]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp edx, 0x80000000
je 0x442ed8
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
push 1
call sym.std::sys::path::windows::get_long_path::h78b4a6c417dc393d
add esp, 4
mov edi, dword [ebp - 0x18]
cmp edi, 0x80000000
jne 0x442ee7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp - 0x14]
push ebx
call sub.kernel32.dll_DeleteFileW
test eax, eax
je 0x442efd
mov byte [esi], 4
test edi, edi
jne 0x442f0c
jmp 0x442edd
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x442edd
add edi, edi
push 2
push edi
push ebx
call sym.___rust_dealloc
add esp, 0xc
jmp 0x442edd
Function at 0x442f20
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
push dword [ebp + 0x10]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
cmp edx, 0x80000000
je 0x442f78
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x38]
push 1
call sym.std::sys::path::windows::get_long_path::h78b4a6c417dc393d
add esp, 4
mov edi, dword [ebp - 0x1c]
cmp edi, 0x80000000
jne 0x442f87
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, esi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x2c]
push dword [ebp + 0x18]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
cmp edx, 0x80000000
je 0x442fd9
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x1c]
push 1
call sym.std::sys::path::windows::get_long_path::h78b4a6c417dc393d
add esp, 4
mov ebx, dword [ebp - 0x1c]
cmp ebx, 0x80000000
jne 0x442ff4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
test edi, edi
je 0x442f7d
add edi, edi
push 2
push edi
push dword [ebp - 0x10]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x442f7d
mov eax, dword [ebp - 0x18]
push 1
mov dword [ebp - 0x20], eax
push eax
push dword [ebp - 0x10]
call sub.kernel32.dll_MoveFileExW
test eax, eax
je 0x443012
mov byte [esi], 4
test ebx, ebx
jne 0x443021
jmp 0x442fde
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x442fde
add ebx, ebx
push 2
push ebx
push dword [ebp - 0x20]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x442fde
Function at 0x443050
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push dword [ebp + 0x10]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp edx, 0x80000000
je 0x4430a8
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
push 1
call sym.std::sys::path::windows::get_long_path::h78b4a6c417dc393d
add esp, 4
mov edi, dword [ebp - 0x18]
cmp edi, 0x80000000
jne 0x4430b7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp - 0x14]
push ebx
call sub.kernel32.dll_RemoveDirectoryW
test eax, eax
je 0x4430cd
mov byte [esi], 4
test edi, edi
jne 0x4430dc
jmp 0x4430ad
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x4430ad
add edi, edi
push 2
push edi
push ebx
call sym.___rust_dealloc
add esp, 0xc
jmp 0x4430ad

Function at 0x444370
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push dword [ebp + 0x10]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp edx, 0x80000000
je 0x4443c8
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
push 1
call sym.std::sys::path::windows::get_long_path::h78b4a6c417dc393d
add esp, 4
mov edi, dword [ebp - 0x18]
cmp edi, 0x80000000
jne 0x4443d7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp - 0x14]
push dword [ebp + 0x14]
push ebx
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
je 0x4443f0
mov byte [esi], 4
test edi, edi
jne 0x4443ff
jmp 0x4443cd
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x4443cd
add edi, edi
push 2
push edi
push ebx
call sym.___rust_dealloc
add esp, 0xc
jmp 0x4443cd
Function at 0x444650
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x28]
push dword [ebp + 0x10]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
cmp edx, 0x80000000
je 0x4446b7
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x18]
lea edx, [esp + 8]
push 1
call sym.std::sys::path::windows::get_long_path::h78b4a6c417dc393d
add esp, 4
mov ebx, dword [esp + 0x18]
cmp ebx, 0x80000000
jne 0x4446cd
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi], 1
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], eax
lea ecx, [esp + 0x28]
push dword [ebp + 0x18]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
cmp edx, 0x80000000
je 0x44472d
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
lea edx, [esp + 8]
lea ecx, [esp + 0x18]
push 1
call sym.std::sys::path::windows::get_long_path::h78b4a6c417dc393d
add esp, 4
mov edi, dword [esp + 0x18]
cmp edi, 0x80000000
jne 0x444753
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi], 1
test ebx, ebx
je 0x4446c3
add ebx, ebx
push 2
push ebx
push dword [esp + 0xc]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x4446c3
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
push 0
push 0
lea ecx, [esp + 0x10]
push ecx
push sym.__ZN3std3sys3pal7windows2fs4copy8callback17hf82e7c09f77d929dE_52
mov dword [esp + 0x34], eax
push eax
push dword [esp + 0x18]
call sub.kernel32.dll_CopyFileExW
test eax, eax
je 0x4447a1
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi], 0
test edi, edi
jne 0x4447b7
jmp 0x444739
call sub.kernel32.dll_GetLastError
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], 1
test edi, edi
je 0x444739
add edi, edi
push 2
push edi
push dword [esp + 0x2c]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x444739
Function at 0x445040
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
lea ebx, [ebp - 0x10]
push edx
push ebx
push ecx
push eax
push dword [edi]
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x44508a
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], 1
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi], eax
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.kernel32.dll_GetLastError
cmp eax, 0x6d
je 0x4450a6
cmp eax, 0x3e5
jne 0x4450b8
lea eax, [esi + 4]
mov dword [eax], 0
jmp 0x44507c
lea eax, [esi + 8]
mov dword [esi + 4], 1
mov dword [eax], 0
jmp 0x44507c
mov dword [esi + 4], 0
mov dword [esi + 8], eax
mov eax, 1
jmp 0x44507e

Function at 0x445300
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x445344
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x44534a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x44537d
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x44538d
mov dword [esi + 4], 0
jmp 0x44539f
cmp eax, 0x103
je 0x4453b8
test eax, eax
js 0x4453aa
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x4453a2
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x584128
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea esi, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push esi
call sym.std::io::Write::write_fmt::h0f5c472207d58d98
add esp, 0xc
mov ecx, esi
call sym.core::ptr::drop_in_place_LT_core..result..Result_LT__LP__RP__C_std..io..error..Error_GT__GT_::h1766f469e1f57437
mov ecx, 7
int 0x29
ud2