joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008790
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 0x1400087e8
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 0x1400087f4
lea rax, [0x1400a23f8]
mov qword [rdi], rax
add rsp, 0x1f8
pop rdi
pop rsi
ret
lea rcx, str.8j_n_
call sym.core::option::unwrap_failed::h33810b69b67c35d3
mov qword [rsp + 0x30], 0
lea rax, str._Users_elyzianfields_.rustup_toolchains_nightly_aarch64_apple_darwin_lib_rustlib_src_rust_library_std_src_sys_pal_windows_net.rs
mov qword [rsp + 0x20], rax
lea r8, [0x1400a6d00]
lea rdx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
xor ecx, ecx
call sym.core::panicking::assert_failed::h6b22719950514560
int3

Function at 0x14000e430
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 0x14000e488
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 0x14000e494
lea rax, [0x1400a23f8]
mov qword [rdi], rax
add rsp, 0x1f8
pop rdi
pop rsi
ret
lea rcx, str.8j_n_
call sym.core::option::unwrap_failed::h33810b69b67c35d3
mov qword [rsp + 0x30], 0
lea rax, str._Users_elyzianfields_.rustup_toolchains_nightly_aarch64_apple_darwin_lib_rustlib_src_rust_library_std_src_sys_pal_windows_net.rs
mov qword [rsp + 0x20], rax
lea r8, [0x1400a6d00]
lea rdx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
xor ecx, ecx
call sym.core::panicking::assert_failed::h6b22719950514560
int3

Function at 0x140013540
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14001359e
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14001359e
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14001359e
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14001359e
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x1400135e1
mov dword [rsp + 0x34], r9d
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1006
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400135cf
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x38
ret
Function at 0x1400135f0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14001364e
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14001364e
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14001364e
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14001364e
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x140013691
mov dword [rsp + 0x34], r9d
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1005
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14001367f
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x38
ret

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

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
mov r9d, 2
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x1400137f4
movsxd rdx, eax
xor ecx, ecx
mov rax, rcx
add rsp, 0x28
ret
call sub.WS2_32.dll_WSAGetLastError
xor edx, edx
mov ecx, 0
cmp eax, 0x274a
je 0x1400137ec
shl rax, 0x20
or rax, 2
mov ecx, 1
mov rdx, rax
mov rax, rcx
add rsp, 0x28
ret

Function at 0x140013820
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
xor esi, esi
xor eax, eax
cmp r8d, 0x3b9aca00
cmove edx, esi
setne al
mov word [rsp + 0x2c], ax
mov word [rsp + 0x2e], dx
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov edx, 0xffff
mov r8d, pe_nt_image_headers64
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x140013874
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x140013900
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
movzx eax, dl
mov dword [rsp + 0x34], eax
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 6
mov r8d, 1
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140013937
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

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

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x1400139f1
movsxd rdx, eax
xor ecx, ecx
mov rax, rcx
add rsp, 0x28
ret
call sub.WS2_32.dll_WSAGetLastError
xor edx, edx
mov ecx, 0
cmp eax, 0x274a
je 0x1400139e9
shl rax, 0x20
or rax, 2
mov ecx, 1
mov rdx, rax
mov rax, rcx
add rsp, 0x28
ret
Function at 0x140013a20
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 0x140013a9a
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 0x140013a7b
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 0x140013a93
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x140013a8b
xor eax, eax
jmp 0x140013a93
shl rax, 0x20
or rax, 2
add rsp, 0x28
pop rdi
pop rsi
ret
lea r8, [0x1400a8ee8]
mov rcx, rsi
call sym.core::slice::index::slice_start_index_len_fail::h295f0edd96b9440a
int3

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

Disassembly:
sub rsp, 0x48
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 0
mov rcx, qword [rcx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
call sub.WS2_32.dll_WSARecv
test eax, eax
je 0x140013b08
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x140013b13
xor edx, edx
xor eax, eax
add rsp, 0x48
ret
mov edx, dword [rsp + 0x40]
xor eax, eax
add rsp, 0x48
ret
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x48
ret

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

Disassembly:
sub rsp, 0x28
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
mov rcx, qword [rcx]
xor r9d, r9d
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x140013b5e
movsxd rdx, eax
xor eax, eax
add rsp, 0x28
ret
call sub.WS2_32.dll_WSAGetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x28
ret

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

Disassembly:
push rsi
sub rsp, 0x40
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov dword [rsp + 0x3c], 0
mov rcx, qword [rcx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
call sub.WS2_32.dll_WSASend
mov esi, eax
cmp esi, 0xffffffff
jne 0x140013bca
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
xor ecx, ecx
cmp esi, 0xffffffff
sete cl
mov edx, dword [rsp + 0x3c]
cmove rdx, rax
mov rax, rcx
add rsp, 0x40
pop rsi
ret

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

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rcx, qword [rax]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x140013c24
movsxd rdx, eax
xor ecx, ecx
mov rax, rcx
add rsp, 0x28
ret
call sub.WS2_32.dll_WSAGetLastError
xor edx, edx
mov ecx, 0
cmp eax, 0x274a
je 0x140013c1c
shl rax, 0x20
or rax, 2
mov ecx, 1
mov rdx, rax
mov rax, rcx
add rsp, 0x28
ret
Function at 0x140013c50
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 0x140013ccd
mov rcx, qword [rcx]
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 0x140013cae
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 0x140013cc6
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x140013cbe
xor eax, eax
jmp 0x140013cc6
shl rax, 0x20
or rax, 2
add rsp, 0x28
pop rdi
pop rsi
ret
lea r8, [0x1400a8ee8]
mov rcx, rsi
call sym.core::slice::index::slice_start_index_len_fail::h295f0edd96b9440a
int3

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

Disassembly:
sub rsp, 0x48
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov rax, qword [rcx]
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 0
mov rcx, qword [rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
call sub.WS2_32.dll_WSARecv
test eax, eax
je 0x140013d3b
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x140013d46
xor edx, edx
xor eax, eax
add rsp, 0x48
ret
mov edx, dword [rsp + 0x40]
xor eax, eax
add rsp, 0x48
ret
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x48
ret

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

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
cmp r8, 0x7fffffff
mov ecx, 0x7fffffff
cmovae r8, rcx
mov rcx, qword [rax]
xor r9d, r9d
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x140013d91
movsxd rdx, eax
xor eax, eax
add rsp, 0x28
ret
call sub.WS2_32.dll_WSAGetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x28
ret

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

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [rcx]
mov ecx, 0xffffffff
cmp r8, rcx
cmovae r8, rcx
mov dword [rsp + 0x3c], 0
mov rcx, qword [rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
call sub.WS2_32.dll_WSASend
mov esi, eax
cmp esi, 0xffffffff
jne 0x140013dfd
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
xor ecx, ecx
cmp esi, 0xffffffff
sete cl
mov edx, dword [rsp + 0x3c]
cmove rdx, rax
mov rax, rcx
add rsp, 0x40
pop rsi
ret

Function at 0x140013ee0
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov dword [rsp + 0x2c], edx
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 4
xor esi, esi
lea r9, [rsp + 0x2c]
xor edx, edx
mov r8d, 4
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x140013f1c
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret
Function at 0x140013fa0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
movzx eax, dl
mov dword [rsp + 0x34], eax
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0x29
mov r8d, 0x1b
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140013fd7
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x1400140e0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
movzx eax, dl
mov dword [rsp + 0x24], eax
mov rcx, qword [rcx]
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x140014109
xor eax, eax
add rsp, 0x28
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret

Function at 0x140016ca0
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 0x140016cef
mov eax, dword [rsp + 0x2c]
mov qword [rsi], 1
mov qword [rsi + 8], rax
jmp 0x140016d56
call fcn.1400a21b8
shl rax, 0x20
or rax, 2
movabs rcx, 0xffffffff00000000
and rcx, rax
movabs rdx, 0x6d00000000
cmp rcx, rdx
je 0x140016d2c
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x140016d4b
mov rcx, rsi
jmp 0x140016d3a
mov qword [rsi], 1
mov rcx, rsi
add rcx, 8
mov qword [rcx], 0
mov rcx, rax
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h169a66b91825197bE.llvm.10650325038555959818
jmp 0x140016d56
mov qword [rsi + 8], rax
mov qword [rsi], 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret
Function at 0x140016f50
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0xa0
mov rsi, rcx
movups xmm0, xmmword [0x1400a8f00]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140016f85
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0x78], rcx
test r9, r9
mov qword [rsp + 0x70], r9
lea rcx, [rsp + 0x78]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call fcn.1400a2320
cmp eax, 0x103
jne 0x140016fdf
mov rcx, rsi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140016fea
xor edx, edx
jmp 0x140016ffa
cmp eax, 0x103
je 0x140017024
test eax, eax
js 0x140017005
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xa0
pop rsi
ret
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x80], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x88], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x70]
call sym.std::io::Write::write_fmt::hb368b22810348682
mov rcx, rax
call sym._ZN4core3ptr81drop_in_place_LT_core..result..Result_LT__LP__RP__C_std..io..error..Error_GT__GT_17hedcdf40f0248a366E.llvm.10650
mov ecx, 7
int 0x29
ud2
Function at 0x140017080
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xa0
mov rsi, rcx
movups xmm0, xmmword [0x1400a8f00]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x1400170b5
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0x78], rcx
test r9, r9
mov qword [rsp + 0x70], r9
lea rcx, [rsp + 0x78]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call fcn.1400a2318
cmp eax, 0x103
jne 0x140017116
mov rcx, rsi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140017149
test eax, eax
js 0x14001712a
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xa0
pop rsi
ret
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x80], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x88], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x70]
call sym.std::io::Write::write_fmt::hb368b22810348682
mov rcx, rax
call sym._ZN4core3ptr81drop_in_place_LT_core..result..Result_LT__LP__RP__C_std..io..error..Error_GT__GT_17hedcdf40f0248a366E.llvm.10650
mov ecx, 7
int 0x29
ud2

Function at 0x1400173b0
Capabilities:
Connect socket

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [rdx]
mov rax, qword [rdx + 8]
mov rcx, qword [rcx]
mov rdx, qword [rdx + 0x10]
mov r8d, dword [rdx]
mov rdx, rax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x1400173dd
mov dword [rsi + 4], eax
xor eax, eax
jmp 0x1400173f3
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov dword [rsi], eax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x140017400
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov edi, edx
cmp word [rcx], 0
mov eax, 2
mov ebp, 0x17
cmove ebp, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor ebx, ebx
mov ecx, ebp
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400174cf
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x14001745c
mov esi, eax
cmp eax, 0x2726
jne 0x1400174c2
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x1400174bb
mov rsi, rax
xor ebx, ebx
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
jne 0x1400174cf
call fcn.1400a21b8
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call sub.WS2_32.dll_closesocket
mov ebx, 1
mov rsi, rdi
jmp 0x1400174cf
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov ebx, 1
mov rax, rbx
mov rdx, rsi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x1400174e0
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x48
cmp word [rdx], 0
je 0x140017506
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 0x14001751b
mov eax, dword [rdx + 2]
movzx edx, word [rdx + 6]
mov r8d, 0x10
mov r10w, 2
xorps xmm0, xmm0
rol dx, 8
mov word [rsp + 0x2c], r10w
mov word [rsp + 0x2e], dx
mov dword [rsp + 0x30], eax
movups xmmword [rsp + 0x34], xmm0
mov dword [rsp + 0x44], r9d
mov rcx, qword [rcx]
lea rdx, [rsp + 0x2c]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x140017551
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 0x140017570
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x440
mov ebp, r9d
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov dword [rsp + 0x30], 1
mov rbx, qword [rcx]
lea r8, [rsp + 0x30]
mov rcx, rbx
mov edx, 0x8004667e
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x1400175cc
cmp word [rdi], 0
je 0x1400175de
movups xmm0, xmmword [rdi + 4]
mov eax, dword [rdi + 0x14]
mov edx, dword [rdi + 0x18]
movzx ecx, word [rdi + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x1400175f3
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x14001769f
mov eax, dword [rdi + 2]
movzx ecx, word [rdi + 6]
mov r8d, 0x10
mov r9w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x30], r9w
mov word [rsp + 0x32], cx
mov dword [rsp + 0x34], eax
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x48], edx
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x140017625
xor edi, edi
jmp 0x140017634
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov rcx, rbx
mov edx, 0x8004667e
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x140017676
test rdi, rdi
je 0x140017698
mov rcx, rdi
call sym._ZN3std2io5error5Error4kind17h499288bf4732feceE.llvm.10650325038555959818
cmp al, 0xd
jne 0x14001769c
test r14, r14
jne 0x1400176ad
test ebp, ebp
jne 0x1400176ad
lea rax, str.cannot_set_a_0_duration_timeout
jmp 0x140017688
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x14001769f
mov rcx, rdi
mov rsi, rax
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h169a66b91825197bE.llvm.10650325038555959818
mov rax, rsi
jmp 0x14001769f
xor eax, eax
jmp 0x14001769f
mov rax, rdi
add rsp, 0x440
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
cmp r14, 0x7fffffff
mov eax, 0x7fffffff
cmovb rax, r14
mov ecx, ebp
imul rcx, rcx, 0x10624dd3
shr rcx, 0x26
mov dword [rsp + 0x28], eax
test rax, rax
mov eax, 1
cmovne eax, ecx
cmp ebp, 0x3e8
cmovae eax, ecx
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x40]
mov r8d, 0x1f8
xor edx, edx
call sub.msvcrt.dll_memset
mov qword [rsp + 0x238], 1
mov qword [rsp + 0x240], rbx
lea rcx, [rsp + 0x248]
mov r8d, 0x1f8
xor edx, edx
call sub.msvcrt.dll_memset
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x238]
lea r9, [rsp + 0x30]
mov ecx, 1
xor edx, edx
call sub.WS2_32.dll_select
test eax, eax
je 0x14001776d
cmp eax, 0xffffffff
jne 0x14001777c
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x140017688
lea rsi, str.connection_timed_out
mov rcx, rdi
jmp 0x14001768e
cmp dword [rsp + 0x238], 1
jne 0x140017790
xor esi, esi
mov rcx, rdi
jmp 0x14001768e
mov rcx, rsi
call sym.std::sys::pal::windows::net::Socket::take_error::h17b50017f93d7f92
mov rcx, rax
mov rax, rdx
test rcx, rcx
jne 0x140017688
test rax, rax
jne 0x140017688
jmp 0x140017786
Function at 0x140017840
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x140017871
movsxd rdx, eax
xor ecx, ecx
mov rax, rcx
add rsp, 0x28
ret
call sub.WS2_32.dll_WSAGetLastError
xor edx, edx
mov ecx, 0
cmp eax, 0x274a
je 0x140017869
shl rax, 0x20
or rax, 2
mov ecx, 1
mov rdx, rax
mov rax, rcx
add rsp, 0x28
ret

Function at 0x1400178a0
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 0x14001791a
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 0x1400178fb
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 0x140017913
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14001790b
xor eax, eax
jmp 0x140017913
shl rax, 0x20
or rax, 2
add rsp, 0x28
pop rdi
pop rsi
ret
lea r8, [0x1400a8ee8]
mov rcx, rsi
call sym.core::slice::index::slice_start_index_len_fail::h295f0edd96b9440a
int3

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

Disassembly:
sub rsp, 0x48
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 0
mov rcx, qword [rcx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
call sub.WS2_32.dll_WSARecv
test eax, eax
je 0x140017988
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x140017993
xor edx, edx
xor eax, eax
add rsp, 0x48
ret
mov edx, dword [rsp + 0x40]
xor eax, eax
add rsp, 0x48
ret
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x48
ret

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

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
mov r9d, 2
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x1400179e4
movsxd rdx, eax
xor ecx, ecx
mov rax, rcx
add rsp, 0x28
ret
call sub.WS2_32.dll_WSAGetLastError
xor edx, edx
mov ecx, 0
cmp eax, 0x274a
je 0x1400179dc
shl rax, 0x20
or rax, 2
mov ecx, 1
mov rdx, rax
mov rax, rcx
add rsp, 0x28
ret