joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c8860
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 0x1400c8877
dec ecx
jmp 0x1400c8881
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h082b3a5bc3552b62
mov ecx, eax
mov edx, 1
call fcn.140145d58
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400c88a9
dec ecx
jmp 0x1400c88b3
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h082b3a5bc3552b62
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.140145d58

Function at 0x1400c8960
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 0x1400c8977
dec ecx
jmp 0x1400c8981
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h082b3a5bc3552b62
mov ecx, eax
mov edx, 1
call fcn.140145d58
mov edx, 0x20
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400c89a9
dec ecx
jmp 0x1400c89b3
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h082b3a5bc3552b62
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.140145d58

Function at 0x1400c8a60
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov qword [rsp + 0x38], rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400c8a79
dec ecx
jmp 0x1400c8a83
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h082b3a5bc3552b62
mov ecx, eax
mov edx, 1
call fcn.140145d58
mov rdi, qword [rsp + 0x38]
cmp qword [rdi + 8], 0
je 0x1400c8aad
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1400c8aad
lock dec qword [rcx]
jne 0x1400c8aad
call dbg.drop_slow<std::sync::mpmc::context::Inner>
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400c8acb
dec ecx
jmp 0x1400c8ad5
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h082b3a5bc3552b62
mov ecx, eax
xor edx, edx
call fcn.140145d58
nop
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x1400c8b80
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov qword [rsp + 0x38], rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400c8b99
dec ecx
jmp 0x1400c8ba3
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h082b3a5bc3552b62
mov ecx, eax
mov edx, 1
call fcn.140145d58
mov rdi, qword [rsp + 0x38]
cmp qword [rdi + 8], 0
je 0x1400c8bcd
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1400c8bcd
lock dec qword [rcx]
jne 0x1400c8bcd
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, 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 0x1400c8beb
dec ecx
jmp 0x1400c8bf5
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h082b3a5bc3552b62
mov ecx, eax
xor edx, edx
call fcn.140145d58
nop
add rsp, 0x78
pop rdi
pop rsi
ret

Function at 0x1400ca410
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::h9c171d403b3dfa06
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x1400ca4c5
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 0x1400ca4c5
mov rcx, rdi
xor edx, edx
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
je 0x1400ca49a
test rsi, rsi
je 0x1400ca496
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
xor esi, esi
jmp 0x1400ca4c5
call fcn.140145b70
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x1400ca4c2
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 0x1400ca850
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::h9c171d403b3dfa06
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x1400ca903
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 0x1400ca903
mov rcx, rdi
call sub.kernel32.dll_DeleteFileW
test eax, eax
je 0x1400ca8d8
test rsi, rsi
je 0x1400ca8d4
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
xor esi, esi
jmp 0x1400ca903
call fcn.140145b70
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x1400ca900
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 0x1400ca910
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::h9c171d403b3dfa06
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
test rax, rax
je 0x1400caa6a
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 0x1400caa20
lea rcx, [rsp + 0x20]
mov rdx, r15
mov r8, r14
call sym.std::sys::windows::to_u16s::inner::h9c171d403b3dfa06
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
test rax, rax
je 0x1400caa51
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 0x1400caa51
mov rcx, rdi
mov rdx, r14
mov r8d, 1
call sub.kernel32.dll_MoveFileExW
test eax, eax
je 0x1400caa25
test rbx, rbx
je 0x1400caa03
add rbx, rbx
mov r8d, 2
mov rcx, r14
mov rdx, rbx
call sym.__rust_dealloc
test rsi, rsi
je 0x1400caa1c
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
xor ebx, ebx
jmp 0x1400caa6a
mov rbx, rsi
jmp 0x1400caa6a
call fcn.140145b70
mov r15d, eax
shl r15, 0x20
or r15, 2
test rbx, rbx
je 0x1400caa4e
add rbx, rbx
mov r8d, 2
mov rcx, r14
mov rdx, rbx
call sym.__rust_dealloc
mov rbx, r15
test rsi, rsi
je 0x1400caa6a
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 0x1400caaa0
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::h9c171d403b3dfa06
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x1400cab53
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 0x1400cab53
mov rcx, rdi
call sub.kernel32.dll_RemoveDirectoryW
test eax, eax
je 0x1400cab28
test rsi, rsi
je 0x1400cab24
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
xor esi, esi
jmp 0x1400cab53
call fcn.140145b70
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x1400cab50
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 0x1400ccc50
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::h9c171d403b3dfa06
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x1400ccd08
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 0x1400ccd08
mov rcx, rdi
mov edx, ebx
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
je 0x1400cccdd
test rsi, rsi
je 0x1400cccd9
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
xor esi, esi
jmp 0x1400ccd08
call fcn.140145b70
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x1400ccd05
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 0x1400ccfd0
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::h9c171d403b3dfa06
mov rax, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
test rax, rax
je 0x1400cd0e0
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 0x1400cd0e0
mov r8, qword [rsp + 0xb0]
lea rcx, [rsp + 0x30]
mov rdx, r14
call sym.std::sys::windows::to_u16s::inner::h9c171d403b3dfa06
mov rax, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
test rax, rax
je 0x1400cd0ed
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 0x1400cd0ed
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [sym.std::sys::windows::fs::copy::callback::h44251caf9e1f404d]
lea r9, [rsp + 0x30]
mov rcx, rbx
mov rdx, r15
call sub.kernel32.dll_CopyFileExW
test eax, eax
je 0x1400cd0fa
mov rax, qword [rsp + 0x30]
mov qword [rsi + 8], rax
mov qword [rsi], 0
test r14, r14
jne 0x1400cd117
jmp 0x1400cd12b
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp 0x1400cd144
mov qword [rsi + 8], r14
mov qword [rsi], 1
jmp 0x1400cd12b
call fcn.140145b70
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
test r14, r14
je 0x1400cd12b
add r14, r14
mov r8d, 2
mov rcx, r15
mov rdx, r14
call sym.__rust_dealloc
test rdi, rdi
je 0x1400cd144
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 0x1400cda60
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 0x1400cdaaf
mov eax, dword [rsp + 0x34]
mov qword [rsi], 1
mov qword [rsi + 8], rax
jmp 0x1400cdb01
call fcn.140145b70
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x38], rcx
cmp eax, 0x6d
je 0x1400cdad5
cmp eax, 0x3e5
jne 0x1400cdaf6
mov rax, rsi
jmp 0x1400cdae3
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 0x1400cdb01
mov qword [rsi + 8], rcx
mov qword [rsi], 2
mov rax, rsi
add rsp, 0x40
pop rsi
ret

Function at 0x1400cdd90
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 [0x14015f078]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1400cddd4
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 0x1400cde31
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1400cde40
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400cde77
cmp eax, 0x103
je 0x1400cde81
test eax, eax
js 0x1400cde5d
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400cde77
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, [0x14015f0e0]
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::h49c976f1272baaf4
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call sym.core::ptr::drop_in_place_core::result::Result____std::io::error::Error__::h2e33fb3b50b79c78
mov ecx, 7
int 0x29
ud2
Function at 0x1400cdef0
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 [0x14015f078]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1400cdf34
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 0x1400cdf98
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400cdfce
test eax, eax
js 0x1400cdfa9
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400cdfc1
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 byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x14015f0e0]
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::h49c976f1272baaf4
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call sym.core::ptr::drop_in_place_core::result::Result____std::io::error::Error__::h2e33fb3b50b79c78
mov ecx, 7
int 0x29
ud2

Function at 0x1400ce5d0
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 0x1400ce624
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400ce6ba
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x1400ce637
cmp eax, 0x2739
jne 0x1400ce685
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 0x1400ce680
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
je 0x1400ce69a
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x1400ce6ba
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400ce6ba
call fcn.140145b70
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call fcn.140145970
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400cec00
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 0x1400cec33
cdqe
jmp 0x1400cec41
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x1400cec49
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400cec5a
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 0x1400cec70
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 0x1400cecea
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 0x1400ceccb
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 0x1400cece3
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x1400cecdb
xor eax, eax
jmp 0x1400cece3
shl rax, 0x20
or rax, 2
add rsp, 0x28
pop rdi
pop rsi
ret
lea r8, [0x14015c6f0]
mov rcx, rsi
call dbg.slice_start_index_len_fail
ud2

Function at 0x1400ced00
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 0x1400ced62
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x1400ced73
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400ced86
mov eax, dword [rsp + 0x38]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400ced86
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 0x1400ced90
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 0x1400cedc6
cdqe
jmp 0x1400cedd4
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x1400ceddc
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400ceded
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 0x1400cee00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0xc8
mov r10, r8
mov rsi, rcx
mov eax, dword [rsp + 0x100]
xorps xmm0, xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x3c], pe_nt_image_headers64
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
lea rcx, [rsp + 0x3c]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov rcx, rdx
mov rdx, r10
mov r9d, eax
call sub.ws2_32.dll_recvfrom
cmp eax, 0xffffffff
je 0x1400ceecb
mov ecx, dword [rsp + 0x3c]
movzx edx, word [rsp + 0x40]
cmp edx, 0x17
je 0x1400cef23
cmp edx, 2
jne 0x1400cef1a
cmp ecx, 0x10
jb 0x1400ceff4
mov edx, dword [rsp + 0x44]
movzx ecx, word [rsp + 0x42]
rol cx, 8
movzx ecx, cx
shl rcx, 0x20
or rcx, rdx
xor edi, edi
jmp 0x1400cef55
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x1400cef7f
mov eax, dword [rsp + 0x3c]
movzx ecx, word [rsp + 0x40]
cmp ecx, 0x17
je 0x1400cef92
cmp ecx, 2
jne 0x1400cef1a
cmp eax, 0x10
jb 0x1400ceff4
mov ecx, dword [rsp + 0x44]
movzx eax, word [rsp + 0x42]
rol ax, 8
movzx eax, ax
shl rax, 0x20
or rax, rcx
xor r11d, r11d
jmp 0x1400cefc0
lea rax, str.invalid_argument
jmp 0x1400cef87
cmp ecx, 0x1c
jb 0x1400cf00e
movzx edx, word [rsp + 0x42]
rol dx, 8
mov r8d, dword [rsp + 0x44]
mov r9d, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x48]
shl rcx, 0x10
mov r10, qword [rsp + 0x4c]
mov di, 1
mov r11d, dword [rsp + 0x54]
cdqe
mov qword [rsi], rax
mov word [rsi + 8], di
mov dword [rsi + 0xa], ecx
shr rcx, 0x20
mov word [rsi + 0xe], cx
mov qword [rsi + 0x10], r10
mov dword [rsi + 0x18], r11d
mov dword [rsi + 0x1c], r8d
mov dword [rsi + 0x20], r9d
mov word [rsi + 0x24], dx
jmp 0x1400cefea
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov word [rsi + 8], 2
jmp 0x1400cefea
cmp eax, 0x1c
jb 0x1400cf00e
movzx ecx, word [rsp + 0x42]
rol cx, 8
mov edx, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x58]
mov eax, dword [rsp + 0x48]
shl rax, 0x10
mov r9, qword [rsp + 0x4c]
mov r11w, 1
mov r10d, dword [rsp + 0x54]
mov qword [rsi], 0
mov word [rsi + 8], r11w
mov dword [rsi + 0xa], eax
shr rax, 0x20
mov word [rsi + 0xe], ax
mov qword [rsi + 0x10], r9
mov dword [rsi + 0x18], r10d
mov dword [rsi + 0x1c], edx
mov dword [rsi + 0x20], r8d
mov word [rsi + 0x24], cx
add rsp, 0xc8
pop rdi
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
lea r8, [0x1401604b0]
mov edx, 0x42
call dbg.panic
ud2
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___library_std_src_sys_common_net.rs
lea r8, [0x140160450]
mov edx, 0x43
call dbg.panic
ud2