joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003e5a0
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, [sym.std::sys::pal::windows::pipe::AnonPipe::alertable_io_internal::callback::h3b5dcc3a0ba47e7f]
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::pal::windows::pipe::AnonPipe::read::h948e451a88be5f38
cmp qword [rsp + 0x50], 0
jne 0x14003e726
mov rbp, qword [rsp + 0x58]
test rbp, rbp
je 0x14003e6fa
cmp rbp, 0x1000
ja 0x14003e746
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 0x14003e6d0
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x14003e690
movsxd rax, dword [rsp + 0x38]
test rax, rax
jne 0x14003e6d5
mov eax, dword [rsp + 0x3c]
add r15, rax
cmp r15, rbp
je 0x14003e6c0
jbe 0x14003e650
jmp 0x14003e732
mov r15, r14
mov r14, rdi
mov rdi, qword [rsp + 0x28]
jmp 0x14003e5fd
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.14009d39c
mov rcx, rsi
call fcn.14009d39c
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 0x14003e6fa
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r15
mov rdx, rbp
call dbg.slice_index_order_fail
jmp 0x14003e75a
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, rbp
call dbg.slice_end_index_len_fail
ud2
Function at 0x1400423a0
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 0x1400423c8
dec ecx
mov edx, 1
call fcn.14009d0a4
cmp qword [rsi + 8], 0
jne 0x1400423e3
jmp 0x1400423fb
mov rcx, rdi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
mov edx, 1
call fcn.14009d0a4
cmp qword [rsi + 8], 0
je 0x1400423fb
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400423fb
lock dec qword [rax]
jne 0x1400423fb
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
je 0x140042419
dec ecx
jmp 0x140042423
mov rcx, rdi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.14009d0a4

Function at 0x1400424f0
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 0x140042507
dec ecx
jmp 0x140042511
mov rcx, rdi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
mov edx, 1
call fcn.14009d0a4
mov edx, 0x20
mov r8d, 8
mov rcx, rsi
call sym.__rust_dealloc
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x140042539
dec ecx
jmp 0x140042543
mov rcx, rdi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.14009d0a4

Function at 0x1400425f0
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 0x140042618
dec ecx
mov edx, 1
call fcn.14009d0a4
cmp qword [rsi + 8], 0
jne 0x140042633
jmp 0x14004264b
mov rcx, rdi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
mov edx, 1
call fcn.14009d0a4
cmp qword [rsi + 8], 0
je 0x14004264b
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14004264b
lock dec qword [rax]
jne 0x14004264b
lea rcx, [rsi + 0x10]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
mov edx, 0x18
mov r8d, 8
mov rcx, rsi
call sym.__rust_dealloc
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x140042669
dec ecx
jmp 0x140042673
mov rcx, rdi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.14009d0a4
Function at 0x140042740
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 0x140042757
dec ecx
jmp 0x140042761
mov rcx, rdi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
mov edx, 1
call fcn.14009d0a4
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call sym.__rust_dealloc
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x140042789
dec ecx
jmp 0x140042793
mov rcx, rdi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.14009d0a4

Function at 0x140042840
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 0x140042868
dec ecx
mov edx, 1
call fcn.14009d0a4
cmp qword [rsi + 8], 0
jne 0x140042883
jmp 0x14004289b
mov rcx, rdi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
mov edx, 1
call fcn.14009d0a4
cmp qword [rsi + 8], 0
je 0x14004289b
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14004289b
lock dec qword [rax]
jne 0x14004289b
lea rcx, [rsi + 0x10]
call dbg.drop_slow<std::sync::mpmc::context::Inner, alloc::alloc::Global>
mov edx, 0x18
mov r8d, 8
mov rcx, rsi
call sym.__rust_dealloc
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x1400428b9
dec ecx
jmp 0x1400428c3
mov rcx, rdi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.14009d0a4

Function at 0x140043c90
Capabilities:
Create 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.std::sys::pal::windows::to_u16s::inner::h28b1c0cf754b0e0c
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
cmp rax, rbx
je 0x140043d4f
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 dbg.get_long_path
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rdi, rbx
je 0x140043d4f
mov rcx, rsi
xor edx, edx
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x140043d24
test rdi, rdi
je 0x140043d20
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call sym.__rust_dealloc
xor esi, esi
jmp 0x140043d4f
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x140043d4c
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 0x140044180
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.std::sys::pal::windows::to_u16s::inner::h28b1c0cf754b0e0c
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
cmp rax, rbx
je 0x14004423d
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 dbg.get_long_path
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rdi, rbx
je 0x14004423d
mov rcx, rsi
call sub.KERNEL32.dll_DeleteFileW
test eax, eax
je 0x140044212
test rdi, rdi
je 0x14004420e
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call sym.__rust_dealloc
xor esi, esi
jmp 0x14004423d
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x14004423a
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 0x140044250
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.std::sys::pal::windows::to_u16s::inner::h28b1c0cf754b0e0c
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
cmp rax, r12
je 0x1400443b5
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 dbg.get_long_path
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
cmp rsi, r12
jne 0x1400442cd
mov rbx, rdi
jmp 0x1400443b5
lea rcx, [rsp + 0x20]
mov rdx, r15
mov r8, r14
call sym.std::sys::pal::windows::to_u16s::inner::h28b1c0cf754b0e0c
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
cmp rax, r12
je 0x14004439c
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 dbg.get_long_path
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
cmp r14, r12
je 0x14004439c
mov rcx, rdi
mov rdx, rbx
mov r8d, 1
call sub.KERNEL32.dll_MoveFileExW
test eax, eax
je 0x140044370
test r14, r14
je 0x140044353
add r14, r14
mov r8d, 2
mov rcx, rbx
mov rdx, r14
call sym.__rust_dealloc
test rsi, rsi
je 0x14004436c
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
xor ebx, ebx
jmp 0x1400443b5
call sub.KERNEL32.dll_GetLastError
mov r15d, eax
shl r15, 0x20
or r15, 2
test r14, r14
je 0x140044399
add r14, r14
mov r8d, 2
mov rcx, rbx
mov rdx, r14
call sym.__rust_dealloc
mov rbx, r15
test rsi, rsi
je 0x1400443b5
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 0x1400443f0
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.std::sys::pal::windows::to_u16s::inner::h28b1c0cf754b0e0c
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
cmp rax, rbx
je 0x1400444ad
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 dbg.get_long_path
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rdi, rbx
je 0x1400444ad
mov rcx, rsi
call sub.KERNEL32.dll_RemoveDirectoryW
test eax, eax
je 0x140044482
test rdi, rdi
je 0x14004447e
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call sym.__rust_dealloc
xor esi, esi
jmp 0x1400444ad
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x1400444aa
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 0x1400464f0
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.std::sys::pal::windows::to_u16s::inner::h28b1c0cf754b0e0c
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
cmp rax, r14
je 0x1400465b4
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 dbg.get_long_path
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
cmp rdi, r14
je 0x1400465b4
mov rcx, rsi
mov edx, ebx
call sub.KERNEL32.dll_SetFileAttributesW
test eax, eax
je 0x140046589
test rdi, rdi
je 0x140046585
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call sym.__rust_dealloc
xor esi, esi
jmp 0x1400465b4
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x1400465b1
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 0x1400468a0
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.std::sys::pal::windows::to_u16s::inner::h28b1c0cf754b0e0c
mov rax, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
cmp rax, r12
je 0x14004690b
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 dbg.get_long_path
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
cmp rbx, r12
jne 0x140046927
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.std::sys::pal::windows::to_u16s::inner::h28b1c0cf754b0e0c
mov rax, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
cmp rax, r12
je 0x140046980
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 dbg.get_long_path
mov r15, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
cmp r15, r12
jne 0x1400469a9
mov qword [rsi + 8], r14
mov qword [rsi], 1
test rbx, rbx
je 0x140046916
add rbx, rbx
mov r8d, 2
mov rcx, rdi
mov rdx, rbx
call sym.__rust_dealloc
jmp 0x140046916
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [dbg.callback]
lea r9, [rsp + 0x30]
mov rcx, rdi
mov rdx, r14
call sub.KERNEL32.dll_CopyFileExW
test eax, eax
je 0x1400469f5
mov rax, qword [rsp + 0x30]
mov qword [rsi + 8], rax
mov qword [rsi], 0
test r15, r15
jne 0x140046a16
jmp 0x14004698b
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
test r15, r15
je 0x14004698b
add r15, r15
mov r8d, 2
mov rcx, r14
mov rdx, r15
call sym.__rust_dealloc
jmp 0x14004698b

Function at 0x140047180
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 0x1400471cf
mov eax, dword [rsp + 0x34]
mov qword [rsi], 1
mov qword [rsi + 8], rax
jmp 0x140047221
call sub.KERNEL32.dll_GetLastError
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x38], rcx
cmp eax, 0x6d
je 0x1400471f5
cmp eax, 0x3e5
jne 0x140047216
mov rax, rsi
jmp 0x140047203
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 0x140047221
mov qword [rsi + 8], rcx
mov qword [rsi], 2
mov rax, rsi
add rsp, 0x40
pop rsi
ret
Function at 0x1400474b0
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 [0x1400a77f0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1400474f4
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 0x140047551
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140047560
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140047597
cmp eax, 0x103
je 0x1400475a1
test eax, eax
js 0x14004757d
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140047597
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, str._tx_n_
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::hcf9d8f8698a0cf44
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call sym.core::ptr::drop_in_place_core::result::Result____std::io::error::Error__::h5de9cf5e862b8b59
mov ecx, 7
int 0x29
ud2
Function at 0x140047610
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 [0x1400a77f0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140047654
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 0x1400476b8
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400476ee
test eax, eax
js 0x1400476c9
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400476e1
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, str._tx_n_
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::hcf9d8f8698a0cf44
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call sym.core::ptr::drop_in_place_core::result::Result____std::io::error::Error__::h5de9cf5e862b8b59
mov ecx, 7
int 0x29
ud2

Function at 0x140047d10
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 0x140047d64
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140047dfa
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x140047d77
cmp eax, 0x2739
jne 0x140047dc5
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 0x140047dc0
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x140047dda
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x140047dfa
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140047dfa
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 0x140047e10
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x48
cmp word [rdx], 0
je 0x140047e36
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 0x140047e4b
mov eax, dword [rdx + 2]
movzx edx, word [rdx + 6]
mov r8d, 0x10
mov r10w, 2
Function at 0x140047ea0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x450
mov ebx, r9d
mov r14, r8
mov r15, rdx
mov rsi, rcx
mov dword [rsp + 0x40], 1
mov rdi, qword [rcx]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov edx, 0x8004667e
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x140047f02
cmp word [r15], 0
je 0x140047f17
movups xmm0, xmmword [r15 + 4]
mov eax, dword [r15 + 0x14]
mov edx, dword [r15 + 0x18]
movzx ecx, word [r15 + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
mov r9d, 0x2ceb0017
mov eax, dword [r15 + 2]
movzx ecx, word [r15 + 6]
mov r8d, 0x10
mov r9w, 2
mov ecx, 0x570f0002
invalid
rol cx, 8

Function at 0x140048330
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 0x140048363
cdqe
jmp 0x140048371
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x140048379
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14004838a
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 0x1400483a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rdx, qword [rdx + 8]
mov rsi, qword [rdi + 0x10]
mov rax, rdx
sub rax, rsi
jb 0x14004841a
mov rcx, qword [rcx]
cmp rax, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, rax
mov rdx, qword [rdi]
add rdx, rsi
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x1400483fb
cdqe
add rsi, rax
mov qword [rdi + 0x10], rsi
mov rax, qword [rdi + 0x18]
cmp rax, rsi
cmova rsi, rax
mov qword [rdi + 0x18], rsi
xor eax, eax
jmp 0x140048413
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14004840b
xor eax, eax
jmp 0x140048413
shl rax, 0x20
or rax, 2
add rsp, 0x28
pop rdi
pop rsi
ret
lea r8, str._rustc_7cf61ebde7b22796c69757901dd346d0fe70bd97librarycore_srcio_borrowed_buf.rs_rustc_7cf61ebde7b22796c69757901dd346d0fe70bd97library_alloc_srccollections_btree_navigate.rs
mov rcx, rsi
call dbg.slice_start_index_len_fail
int3

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

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov rsi, rcx
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0
mov rcx, qword [rdx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea rdx, [rsp + 0x3c]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x38]
mov rdx, rax
call sub.WS2_32.dll_WSARecv
test eax, eax
je 0x140048492
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x1400484a3
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400484b6
mov eax, dword [rsp + 0x38]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400484b6
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x40
pop rsi
ret
Function at 0x1400484c0
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
mov r9d, 2
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x1400484f6
cdqe
jmp 0x140048504
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14004850c
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14004851d
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