joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003daf0
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 0x14003db83
nop
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x14003db50
movsxd rax, dword [rsp + 0x38]
test rax, rax
je 0x14003db9d
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x14003dba7
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14003dbaa
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 0x14003e670
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rdi, qword [rcx + 0x30]
mov rcx, rdi
mov edx, 1
call sub.KERNEL32.dll_TerminateProcess
add eax, 0x8500061c
invalid
je 0x14003e68f
xor esi, esi
jmp 0x14003e6f7
call sub.KERNEL32.dll_GetLastError
mov esi, eax
cmp eax, 5
jne 0x14003e6ef
mov rcx, rdi
xor edx, edx
call sub.KERNEL32.dll_WaitForSingleObject
invalid
invalid
test eax, eax
je 0x14003e6b2
cmp eax, 0x102
je 0x14003e68b
jmp 0x14003e6cb
mov dword [rsp + 0x24], 0
lea rdx, [rsp + 0x24]
mov rcx, rdi
mov ecx, edi
call sub.KERNEL32.dll_GetExitCodeProcess
lea ebx, [0x10088e6cf]
jne 0x14003e68b
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 1
sub byte [rcx], al
add byte [rax], al
add byte [rax - 0x73], cl
and al, 0x30
call dbg.drop_in_place<std::io::error::Error>
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x14003f820
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 0x14003f878
lea rsi, [rsp + 0x60]
mov r8d, 0x198
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov cx, 0x202
mov rdx, rsi
call sub.WS2_32.dll_WSAStartup
mov dword [rsp + 0x2c], eax
test eax, eax
jne 0x14003f890
lea rax, [0x1400a068c]
mov qword [rdi], rax
add rsp, 0x1f8
pop rdi
pop rsi
ret
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srcio_borrowed_buf.rs_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rs
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call dbg.panic
mov qword [rsp + 0x30], 0
lea rdx, [0x1402a0b00]
lea r9, str.library_std_src_syswindows_net.rs
lea rcx, [rsp + 0x2c]
lea r8, [rsp + 0x30]
call dbg.assert_failed<i32, i32>
int3
Function at 0x1400407c0
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov ebp, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call sym.unk_1647
mov rdx, qword [rsp + 0x30]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x140040857
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x140040889
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 byte [rdi], 0
test rbx, rbx
jne 0x1400408a7
jmp 0x1400408b8
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdx, rdx
je 0x1400408b8
mov rcx, qword [rsp + 0x38]
mov r8d, 1
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
jmp sym.__rust_dealloc
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
je 0x1400408b8
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call sym.__rust_dealloc
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x140041130
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1098
call dbg.___chkstk_ms
sub rsp, rax
movaps xmmword [rsp + 0x1080], xmm6
mov rsi, rdx
mov rdi, rcx
lea r14, [rsp + 0x80]
mov r8d, 0x1000
mov rcx, r14
xor edx, edx
call sub.msvcrt.dll_memset
lea r15, [rsp + 0x50]
xorps xmm6, xmm6
lea rbx, [rsp + 0x34]
lea r12, [dbg.callback]
lea r13, [rsp + 0x60]
mov qword [rsp + 0x28], rdi
mov r9d, 0x1000
mov rcx, r15
mov rdx, rdi
mov r8, r14
call sym.std::sys::windows::pipe::AnonPipe::read::h01e729ab0308e481
cmp qword [rsp + 0x50], 0
jne 0x1400412b6
mov rbp, qword [rsp + 0x58]
test rbp, rbp
je 0x14004128a
cmp rbp, 0x1000
ja 0x1400412d6
mov rdi, r14
mov r14, r15
xor r15d, r15d
nop word cs:[rax + rax]
mov r8d, ebp
sub r8d, r15d
lea rdx, [rsp + r15]
add rdx, 0x80
mov dword [rsp + 0x34], 0
movaps xmmword [rsp + 0x60], xmm6
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x20], r12
mov rcx, rsi
mov r9, r13
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x140041260
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x140041220
movsxd rax, dword [rsp + 0x38]
test rax, rax
jne 0x140041265
mov eax, dword [rsp + 0x3c]
add r15, rax
cmp r15, rbp
je 0x140041250
jbe 0x1400411e0
jmp 0x1400412c2
mov r15, r14
mov r14, rdi
mov rdi, qword [rsp + 0x28]
jmp 0x14004118d
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 1
lea rcx, [rsp + 0x48]
mov rdi, qword [rsp + 0x28]
call dbg.drop_in_place<std::io::error::Error>
mov rcx, rdi
call fcn.1400a055c
mov rcx, rsi
call fcn.1400a055c
movaps xmm6, xmmword [rsp + 0x1080]
add rsp, 0x1098
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x58]
call dbg.drop_in_place<std::io::error::Error>
jmp 0x14004128a
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r15
mov rdx, rbp
call dbg.slice_index_order_fail
jmp 0x1400412ea
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, rbp
call dbg.slice_end_index_len_fail
ud2

Function at 0x140044fd0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x68
sub esp, 0x68
Function at 0x1400450d0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
mov rdi, qword [rcx]
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x1400450f8
dec ecx
mov edx, 1
add al, ch
jge 0x14004509e
add eax, 0x7e834800
or byte [rax], al
jmp case.0x140031d7a.359
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
adc byte [rsi], dl
add dword [rax], eax
mov ecx, eax
mov edx, 1
call fcn.1400a026c
invalid
mov cl, 5
add byte [rax - 0x7d], cl
jle 0x140045118
invalid
je case.0x140031d7a.359
mov rax, qword [rsi + 0x10]
test rax, rax
je case.0x140031d7a.359
lock dec qword [rax]
jne case.0x140031d7a.359
lea rcx, [rsi + 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, rsi
call sym.__rust_dealloc
mov ecx, dword [rdi + 0x18]
test ecx, ecx
leave
je 0x140045149
invalid
dec ecx
jmp 0x140045153
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
adc eax, 0xc1890001
xor edx, edx
add rsp, 0x68
push 0xce95e5f
mov cl, 5
invalid

Function at 0x140045220
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
mov rdi, qword [rcx]
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x140045248
invalid
dec ecx
mov edx, 1
add dword [rax], eax
add byte [rax], al
call fcn.1400a026c
mov al, 5
add byte [rax - 0x7d], cl
cmp qword [rsi + 8], 0
or byte [rax], al
jne 0x140045263
jmp 0x14004527b
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
add byte [rcx + 0x1bac1], cl
mov edx, 1
add al, ch
adc byte [rax - 0x7cb7fffb], dh
jle 0x140045268
or byte [rax], al
je 0x14004527b
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14004527b
lock dec qword [rax]
jne 0x14004527b
lea rcx, [rsi + 0x10]
call dbg.drop_slow<std::sync::mpmc::context::Inner, alloc::alloc::Global>
sbb bh, ch
invalid
mov edx, 0x18
mov r8d, 8
add byte [rax], al
mov rcx, rsi
call sym.__rust_dealloc
xor bh, bh
sti
dec dword [rbx - 0x367ae7b1]
mov ecx, dword [rdi + 0x18]
invalid
test ecx, ecx
je case.0x140036160.303
invalid
dec ecx
jmp case.0x140031d7a.390
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
xor edx, edx
add rsp, 0x68
push 0xffffffffbce95e5f
pop rsi
jmp fcn.1400a026c
invalid
scasd eax, dword [rdi]
invalid
invalid
Function at 0x140046ec0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rsp + 0x20]
call sym.std::sys::windows::to_u16s::inner::h6585014e7b142911
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
cmp rax, rbx
je 0x140046f7f
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]
cmp rdi, rbx
je 0x140046f7f
mov rcx, rsi
xor edx, edx
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x140046f54
test rdi, rdi
je 0x140046f50
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call sym.__rust_dealloc
xor esi, esi
jmp 0x140046f7f
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x140046f7c
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call sym.__rust_dealloc
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400472e0
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rsp + 0x20]
call sym.std::sys::windows::to_u16s::inner::h6585014e7b142911
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
cmp rax, rbx
je 0x14004739d
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]
cmp rdi, rbx
je 0x14004739d
mov rcx, rsi
call sub.KERNEL32.dll_DeleteFileW
test eax, eax
je 0x140047372
test rdi, rdi
je 0x14004736e
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call sym.__rust_dealloc
xor esi, esi
jmp 0x14004739d
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x14004739a
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call sym.__rust_dealloc
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400473b0
Capabilities:
Move file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov r14, r9
mov r15, r8
mov r8, rdx
mov rdx, rcx
movabs r12, 0x8000000000000000
lea rcx, [rsp + 0x28]
call sym.std::sys::windows::to_u16s::inner::h6585014e7b142911
mov rax, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
cmp rax, r12
je 0x140047515
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x28]
mov r8b, 1
call dbg.get_long_path
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
cmp rsi, r12
jne 0x14004742d
mov rbx, rdi
jmp 0x140047515
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, r14
call sym.std::sys::windows::to_u16s::inner::h6585014e7b142911
mov rax, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
cmp rax, r12
je 0x1400474fc
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x28]
mov r8b, 1
call dbg.get_long_path
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
cmp r14, r12
je 0x1400474fc
mov rcx, rdi
mov rdx, rbx
mov r8d, 1
call sub.KERNEL32.dll_MoveFileExW
test eax, eax
je 0x1400474d0
test r14, r14
je 0x1400474b3
add r14, r14
mov r8d, 2
mov rcx, rbx
mov rdx, r14
call sym.__rust_dealloc
test rsi, rsi
je 0x1400474cc
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
xor ebx, ebx
jmp 0x140047515
call sub.KERNEL32.dll_GetLastError
mov r15d, eax
shl r15, 0x20
or r15, 2
test r14, r14
je 0x1400474f9
add r14, r14
mov r8d, 2
mov rcx, rbx
mov rdx, r14
call sym.__rust_dealloc
mov rbx, r15
test rsi, rsi
je 0x140047515
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
mov rax, rbx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140047550
Capabilities:
Delete directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rsp + 0x20]
call sym.std::sys::windows::to_u16s::inner::h6585014e7b142911
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
cmp rax, rbx
je 0x14004760d
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]
cmp rdi, rbx
je 0x14004760d
mov rcx, rsi
call sub.KERNEL32.dll_RemoveDirectoryW
test eax, eax
je 0x1400475e2
test rdi, rdi
je 0x1400475de
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call sym.__rust_dealloc
xor esi, esi
jmp 0x14004760d
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x14004760a
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call sym.__rust_dealloc
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x140049640
Capabilities:
Set file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov ebx, r8d
mov r8, rdx
mov rdx, rcx
movabs r14, 0x8000000000000000
lea rcx, [rsp + 0x28]
call sym.std::sys::windows::to_u16s::inner::h6585014e7b142911
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
cmp rax, r14
je 0x140049704
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x28]
mov r8b, 1
call dbg.get_long_path
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
cmp rdi, r14
je 0x140049704
mov rcx, rsi
mov edx, ebx
call sub.KERNEL32.dll_SetFileAttributesW
test eax, eax
je 0x1400496d9
test rdi, rdi
je 0x1400496d5
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call sym.__rust_dealloc
xor esi, esi
jmp 0x140049704
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x140049701
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call sym.__rust_dealloc
mov rsi, rbx
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400499f0
Capabilities:
Copy file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
mov r14, r9
mov rsi, rcx
movabs r12, 0x8000000000000000
lea rcx, [rsp + 0x38]
call sym.std::sys::windows::to_u16s::inner::h6585014e7b142911
mov rax, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
cmp rax, r12
je 0x140049a5b
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x38]
mov r8b, 1
call dbg.get_long_path
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
cmp rbx, r12
jne 0x140049a77
mov qword [rsi + 8], rdi
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r8, qword [rsp + 0xc0]
lea rcx, [rsp + 0x38]
mov rdx, r14
call sym.std::sys::windows::to_u16s::inner::h6585014e7b142911
mov rax, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
cmp rax, r12
je 0x140049ad0
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x38]
mov r8b, 1
call dbg.get_long_path
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
cmp r15, r12
jne 0x140049af9
mov qword [rsi + 8], r14
mov qword [rsi], 1
test rbx, rbx
je 0x140049a66
add rbx, rbx
mov r8d, 2
mov rcx, rdi
mov rdx, rbx
call sym.__rust_dealloc
jmp 0x140049a66
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [sym.std::sys::windows::fs::copy::callback::h998c69501decb353]
lea r9, [rsp + 0x38]
mov rcx, rdi
mov rdx, r14
call sub.KERNEL32.dll_CopyFileExW
test eax, eax
je 0x140049b45
mov rax, qword [rsp + 0x38]
mov qword [rsi + 8], rax
mov qword [rsi], 0
test r15, r15
jne 0x140049b66
jmp 0x140049adb
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
test r15, r15
je 0x140049adb
add r15, r15
mov r8d, 2
mov rcx, r14
mov rdx, r15
call sym.__rust_dealloc
jmp 0x140049adb
Function at 0x14004a2d0
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov rsi, rcx
mov r10, qword [rsp + 0x70]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x34], 0
mov rcx, qword [rdx]
mov qword [rsp + 0x20], r10
lea r9, [rsp + 0x34]
mov rdx, rax
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x14004a31f
mov eax, dword [rsp + 0x34]
mov qword [rsi], 1
mov qword [rsi + 8], rax
jmp 0x14004a371
call sub.KERNEL32.dll_GetLastError
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x38], rcx
cmp eax, 0x6d
je 0x14004a345
cmp eax, 0x3e5
jne 0x14004a366
mov rax, rsi
jmp 0x14004a353
mov qword [rsi], 1
mov rax, rsi
add rax, 8
mov qword [rax], 0
lea rcx, [rsp + 0x38]
call dbg.drop_in_place<std::io::error::Error>
jmp 0x14004a371
mov qword [rsi + 8], rcx
mov qword [rsi], 2
mov rax, rsi
add rsp, 0x40
pop rsi
ret

Function at 0x14004a600
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 [0x1402a0a78]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14004a644
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 0x14004a6a1
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14004a6b0
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14004a6e7
cmp eax, 0x103
je 0x14004a6f1
test eax, eax
js 0x14004a6cd
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14004a6e7
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 dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1402a0ae0]
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 sym.std::io::Write::write_fmt::h3d21beac8e0d2508
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call sym.core::ptr::drop_in_place_core::result::Result____std::io::error::Error__::h3d52a3d6c45c6b2b
mov ecx, 7
int 0x29
ud2
Function at 0x14004a760
Capabilities:
Write 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 [0x1402a0a78]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14004a7a4
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_NtWriteFile
cmp eax, 0x103
jne 0x14004a808
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14004a83e
test eax, eax
js 0x14004a819
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14004a831
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1402a0ae0]
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 sym.std::io::Write::write_fmt::h3d21beac8e0d2508
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call sym.core::ptr::drop_in_place_core::result::Result____std::io::error::Error__::h3d52a3d6c45c6b2b
mov ecx, 7
int 0x29
ud2

Function at 0x14004aeb0
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, r8d
mov rsi, rcx
cmp word [rdx], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x14004af04
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14004af9a
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x14004af17
cmp eax, 0x2739
jne 0x14004af65
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x14004af60
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x14004af7a
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x14004af9a
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14004af9a
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call sub.WS2_32.dll_closesocket
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x14004afb0
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x48
cmp word [rdx], 0
je 0x14004afd6
movups xmm0, xmmword [rdx + 4]
mov eax, dword [rdx + 0x14]
mov r9d, dword [rdx + 0x18]
movzx edx, word [rdx + 0x1c]
mov r8d, 0x1c
mov r10w, 0x17
jmp 0x14004afeb
mov eax, dword [rdx + 2]
movzx edx, word [rdx + 6]
mov r8d, 0x10
mov r10w, 2