joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400196d0
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, 0xb
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140019707
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 0x140019790
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov eax, dword [rdx]
mov edx, dword [r8]
shl rdx, 0x20
or rdx, rax
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 8
xor esi, esi
lea r9, [rsp + 0x28]
xor edx, edx
mov r8d, 0xc
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x1400197d9
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 0x1400197f0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x48
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], r8d
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 0x14
lea r9, [rsp + 0x30]
mov edx, 0x29
mov r8d, 0xc
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14001982d
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 0x140019840
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov eax, dword [rdx]
mov edx, dword [r8]
shl rdx, 0x20
or rdx, rax
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 8
xor esi, esi
lea r9, [rsp + 0x28]
xor edx, edx
mov r8d, 0xd
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x140019889
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 0x1400198a0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x48
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], r8d
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 0x14
lea r9, [rsp + 0x30]
mov edx, 0x29
mov r8d, 0xd
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400198dd
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 0x1400198f0
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x48
mov rax, r8
test rdx, rdx
je 0x140019901
add rsp, 0x48
ret
cmp word [rax], 0
je 0x140019923
movups xmm0, xmmword [rax + 4]
mov edx, dword [rax + 0x14]
mov r9d, dword [rax + 0x18]
movzx eax, word [rax + 0x1c]
mov r8d, 0x1c
mov r10w, 0x17
jmp 0x140019938
mov edx, dword [rax + 2]
movzx eax, word [rax + 6]
mov r8d, 0x10
mov r10w, 2
xorps xmm0, xmm0
rol ax, 8
mov word [rsp + 0x2c], r10w
mov word [rsp + 0x2e], ax
mov dword [rsp + 0x30], edx
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 0x14001996e
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 0x14001f9d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1078
call sym.___chkstk_ms
sub rsp, rax
movaps xmmword [rsp + 0x1060], xmm6
mov rsi, rdx
mov rdi, rcx
lea rbx, [rsp + 0x60]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rsp + 0x34], 0
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
lea r13, [rsp + 0x34]
mov qword [rsp + 0x58], r13
lea rbp, [sym._ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17h588f49992aad3645E.llvm.5209262893849974741]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x1000
call fcn.1400941f4
test eax, eax
je 0x14001fb6f
mov r14d, 0xffffffff
lea rbx, [rsp + 0x40]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x14001fa64
mov ecx, dword [rsp + 0x38]
test ecx, ecx
jne 0x14001fb76
mov r15d, dword [rsp + 0x3c]
test r15, r15
je 0x14001fbb2
cmp r15d, 0x1000
ja 0x14001fbf2
xor r12d, r12d
nop word cs:[rax + rax]
mov r8, r15
sub r8, r12
lea rdx, [rsp + r12]
add rdx, 0x60
cmp r8, r14
cmovae r8, r14
mov dword [rsp + 0x34], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rsi
mov r9, rbx
call fcn.1400940ec
test eax, eax
je 0x14001fb94
nop dword [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x14001fb00
mov ecx, dword [rsp + 0x38]
test ecx, ecx
jne 0x14001fb9b
mov eax, dword [rsp + 0x3c]
add r12, rax
cmp r12, r15
je 0x14001fb31
jbe 0x14001fab0
jmp 0x14001fbde
mov dword [rsp + 0x34], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rdi
lea rdx, [rsp + 0x60]
mov r8d, 0x1000
mov r9, rbx
call fcn.1400941f4
test eax, eax
jne 0x14001fa64
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
mov rbx, rcx
shl rbx, 0x20
or rbx, 2
call sym._ZN3std3sys3pal7windows17decode_error_kind17h6babb8f8d6c03d70E.llvm.5209262893849974741
cmp al, 0xb
jne 0x14001fbaa
mov rcx, rbx
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h14cde6b578e19753E.llvm.5209262893849974741
jmp 0x14001fbb2
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
shl rcx, 0x20
or rcx, 2
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h14cde6b578e19753E.llvm.11754568423107683009
jmp 0x14001fbb2
mov rcx, rbx
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h14cde6b578e19753E.llvm.11754568423107683009
mov rcx, rdi
call fcn.14009441c
mov rcx, rsi
call fcn.14009441c
movaps xmm6, xmmword [rsp + 0x1060]
add rsp, 0x1078
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, [0x1401080a8]
mov rcx, r12
mov rdx, r15
call sym.core::slice::index::slice_index_order_fail::h45d2375853bc76ce
jmp 0x14001fc06
lea r8, [0x1401080a8]
mov edx, 0x1000
mov rcx, r15
call sym.core::slice::index::slice_end_index_len_fail::h28c5568a35fadd59
ud2
Function at 0x14001ffa0
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 0x14001ffcd
mov dword [rsi + 4], eax
xor eax, eax
jmp 0x14001ffe3
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 0x14001fff0
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 0x140020044
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400200da
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x140020057
cmp eax, 0x2739
jne 0x1400200a5
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 0x1400200a0
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x1400200ba
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x1400200da
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400200da
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 0x1400200f0
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x48
cmp word [rdx], 0
je 0x140020116
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 0x14002012b
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 0x140020161
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 0x1400205f0
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 fcn.1400944e4
cmp eax, 0xffffffff
je 0x140020623
cdqe
jmp 0x140020631
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x140020639
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14002064a
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 0x140020660
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 0x1400206da
mov rcx, qword [rcx]
cmp rax, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, rax
mov rdx, qword [rdi]
add rdx, rsi
xor r9d, r9d
call fcn.1400944e4
cmp eax, 0xffffffff
je 0x1400206bb
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 0x1400206d3
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x1400206cb
xor eax, eax
jmp 0x1400206d3
shl rax, 0x20
or rax, 2
add rsp, 0x28
pop rdi
pop rsi
ret
lea r8, [0x140107878]
mov rcx, rsi
call sym.core::slice::index::slice_start_index_len_fail::hbd6084cc6531a7a6
int3

Function at 0x1400206f0
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 0x140020752
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x140020763
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140020776
mov eax, dword [rsp + 0x38]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140020776
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 0x140020780
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 fcn.1400944e4
cmp eax, 0xffffffff
je 0x1400207b6
cdqe
jmp 0x1400207c4
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x1400207cc
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400207dd
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 0x1400207f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov r10, r8
mov rsi, rcx
mov eax, dword [rsp + 0x110]
pxor xmm0, xmm0
movdqa xmmword [rsp + 0xc0], xmm0
movdqa xmmword [rsp + 0xb0], xmm0
movdqa xmmword [rsp + 0xa0], xmm0
movdqa xmmword [rsp + 0x90], xmm0
movdqa xmmword [rsp + 0x80], xmm0
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x34], pe_nt_image_headers64
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
lea rcx, [rsp + 0x34]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov rcx, rdx
mov rdx, r10
mov r9d, eax
call fcn.1400944ec
cmp eax, 0xffffffff
je 0x1400208c7
mov ecx, dword [rsp + 0x34]
movzx edx, word [rsp + 0x50]
cmp edx, 0x17
je 0x140020921
cmp edx, 2
jne 0x140020915
cmp ecx, 0xf
jbe 0x140020a39
movzx ecx, word [rsp + 0x52]
rol cx, 8
mov edx, dword [rsp + 0x54]
mov word [rsp + 0x3c], cx
mov dword [rsp + 0x38], edx
xor r10d, r10d
jmp 0x14002096c
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14002099f
mov eax, dword [rsp + 0x34]
movzx ecx, word [rsp + 0x50]
cmp ecx, 0x17
je 0x1400209b2
cmp ecx, 2
jne 0x140020915
cmp eax, 0xf
jbe 0x140020a39
movzx eax, word [rsp + 0x52]
rol ax, 8
mov ecx, dword [rsp + 0x54]
mov word [rsp + 0x3c], ax
mov dword [rsp + 0x38], ecx
xor r8d, r8d
jmp 0x1400209fc
lea rax, str.invalid_argument
jmp 0x1400209a7
cmp ecx, 0x1b
jbe 0x140020a51
movzx ecx, word [rsp + 0x52]
rol cx, 8
movdqu xmm0, xmmword [rsp + 0x58]
mov r9d, dword [rsp + 0x54]
mov r8d, dword [rsp + 0x68]
movq r10, xmm0
pshufd xmm1, xmm0, 0xee
movq rdx, xmm1
shld rdx, r10, 0x20
movdqu xmmword [rsp + 0x3a], xmm0
pshufd xmm0, xmm0, 0xff
movd r11d, xmm0
mov r10w, 1
cdqe
movzx edi, word [rsp + 0x3c]
mov word [rsi + 0xe], di
mov edi, dword [rsp + 0x38]
mov dword [rsi + 0xa], edi
mov dword [rsi + 0x18], r11d
mov dword [rsi + 0x1c], r9d
mov dword [rsi + 0x20], r8d
mov word [rsi + 0x24], cx
mov qword [rsi], rax
mov word [rsi + 8], r10w
mov qword [rsi + 0x10], rdx
jmp 0x140020a2f
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov word [rsi + 8], 2
jmp 0x140020a2f
cmp eax, 0x1b
jbe 0x140020a51
movzx eax, word [rsp + 0x52]
rol ax, 8
movdqu xmm0, xmmword [rsp + 0x58]
mov r9d, dword [rsp + 0x54]
mov edx, dword [rsp + 0x68]
movq r8, xmm0
pshufd xmm1, xmm0, 0xee
movq rcx, xmm1
shld rcx, r8, 0x20
movdqu xmmword [rsp + 0x3a], xmm0
pshufd xmm0, xmm0, 0xff
movd r10d, xmm0
mov r8w, 1
movzx r11d, word [rsp + 0x3c]
mov word [rsi + 0xe], r11w
mov r11d, dword [rsp + 0x38]
mov dword [rsi + 0xa], r11d
mov dword [rsi + 0x18], r10d
mov dword [rsi + 0x1c], r9d
mov dword [rsi + 0x20], edx
mov word [rsi + 0x24], ax
mov qword [rsi], 0
mov word [rsi + 8], r8w
mov qword [rsi + 0x10], rcx
add rsp, 0xd8
pop rdi
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x140107620]
mov edx, 0x42
call sym.core::panicking::panic::hd174330580e7869e
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x140107680]
mov edx, 0x43
call sym.core::panicking::panic::hd174330580e7869e
int3
Function at 0x140020ad0
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov rsi, rcx
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x3c], 0
mov rcx, qword [rdx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov rdx, rax
call sub.ws2_32.dll_WSASend
cmp eax, 0xffffffff
je 0x140020b21
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140020b37
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 rax, rsi
add rsp, 0x40
pop rsi
ret

Function at 0x140020b50
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r10d, r10d
cmp r8d, 0x3b9aca00
je 0x140020bae
mov r10d, 0x3e8
mov rax, rdx
mul r10
mov r10d, 0xffffffff
jo 0x140020bae
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x140020bae
imul edx, edx, 0xf4240
xor r11d, r11d
sub r8d, edx
setne r11b
add rax, r11
jb 0x140020bae
mov r10d, 0xffffffff
cmp rax, r10
cmovb r10, rax
test r10, r10
je 0x140020bf1
mov dword [rsp + 0x34], r10d
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 4
lea rax, [rsp + 0x34]
mov edx, 0xffff
mov r8d, r9d
mov r9, rax
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140020bdf
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 0x140020cc0
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 0x140020ce9
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 0x140020d00
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 0x140020d54
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 0x140020de0
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 0x140020e17
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 0x140020f20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call fcn.1400944e4
cmp eax, 0xffffffff
je 0x140020f56
cdqe
jmp 0x140020f64
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x140020f6c
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140020f7d
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 0x14002a1d0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rax, r8
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov rsi, rcx
mov rcx, qword [rdx]
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, [sym._ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17h588f49992aad3645E.llvm.5209262893849974741]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
mov rdx, rax
call fcn.1400941f4
test eax, eax
je 0x14002a256
nop dword [rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x14002a230
mov ecx, dword [rsp + 0x38]
test ecx, ecx
jne 0x14002a25d
mov edi, dword [rsp + 0x3c]
xor ecx, ecx
jmp 0x14002a286
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
mov rdi, rcx
shl rdi, 0x20
or rdi, 2
call sym._ZN3std3sys3pal7windows17decode_error_kind17h6babb8f8d6c03d70E.llvm.5209262893849974741
mov ecx, 1
cmp al, 0xb
jne 0x14002a286
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov rcx, rdi
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h14cde6b578e19753E.llvm.5209262893849974741
jmp 0x14002a28d
mov qword [rsi], rcx
mov qword [rsi + 8], rdi
mov rax, rsi
add rsp, 0x68
pop rdi
pop rsi
ret

Function at 0x14002a2a0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rdi, rdx
mov rdx, qword [rdx + 8]
mov rsi, qword [rdi + 0x10]
mov rax, rdx
sub rax, rsi
jb 0x14002a379
mov r8d, 0xffffffff
cmp rax, r8
cmovb r8, rax
mov rdx, qword [rdi]
add rdx, rsi
mov rcx, qword [rcx]
mov dword [rsp + 0x34], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x58], rax
lea rax, [sym._ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17h588f49992aad3645E.llvm.5209262893849974741]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
call fcn.1400941f4
test eax, eax
je 0x14002a34a
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x14002a310
mov ecx, dword [rsp + 0x38]
test ecx, ecx
jne 0x14002a351
mov eax, dword [rsp + 0x3c]
add rsi, rax
mov qword [rdi + 0x10], rsi
mov rax, qword [rdi + 0x18]
cmp rax, rsi
cmova rsi, rax
mov qword [rdi + 0x18], rsi
jmp 0x14002a36d
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
mov rsi, rcx
shl rsi, 0x20
or rsi, 2
call sym._ZN3std3sys3pal7windows17decode_error_kind17h6babb8f8d6c03d70E.llvm.5209262893849974741
cmp al, 0xb
jne 0x14002a36f
mov rcx, rsi
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h14cde6b578e19753E.llvm.5209262893849974741
xor esi, esi
mov rax, rsi
add rsp, 0x68
pop rdi
pop rsi
ret
lea r8, [0x140108d28]
mov rcx, rsi
call sym.core::slice::index::slice_start_index_len_fail::hbd6084cc6531a7a6
int3
Function at 0x14002a470
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, r8
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov rsi, rcx
mov rcx, qword [rdx]
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, [sym._ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17h588f49992aad3645E.llvm.5209262893849974741]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
mov rdx, rax
call fcn.1400940ec
test eax, eax
je 0x14002a503
nop dword [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x14002a4d0
movsxd rax, dword [rsp + 0x38]
test rax, rax
je 0x14002a51d
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x14002a527
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14002a52a
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 0x14002ab50
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14002aca1
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x14002ab87
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14002ac66
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14002ac84
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x14002abe8
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x14002ac19
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x14002ac1d
call sub.KERNEL32.dll_GetLastError
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x3e5
je 0x14002ac21
cmp eax, 0x6d
jne 0x14002ac4c
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
jmp 0x14002ac26
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x14002ac52
lea rax, [rsp + 0x30]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h14cde6b578e19753E.llvm.11506732742244318735
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x14002ac5c
cmp rax, 1
je 0x14002abd1
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x14002abdb
mov r8d, 0x10
mov rcx, rbx
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h42f6a05bb882e0bb
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14002ab94
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h42f6a05bb882e0bb
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x14002ab94
mov qword [rsp + 0x40], 0
lea rax, str.library_std_src_syspalwindowspipe.rs
mov qword [rsp + 0x20], rax
lea r8, [0x140108d40]
lea r9, [rsp + 0x40]
xor ecx, ecx
mov rdx, rdi
call sym.core::panicking::assert_failed::he279699684d6a111
int3