joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140102f00
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._ZN3std3sys7windows7to_u16s5inner17h2c0eb6cb6cd7c0ceE.llvm.7997682821320084952
mov rax, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
test rax, rax
je 0x140103010
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 sym.std::sys::windows::path::get_long_path::h8fe53c1e1d2a4007
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
test rbx, rbx
je 0x140103010
mov r8, qword [rsp + 0xb0]
lea rcx, [rsp + 0x30]
mov rdx, r14
call sym._ZN3std3sys7windows7to_u16s5inner17h2c0eb6cb6cd7c0ceE.llvm.7997682821320084952
mov rax, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
test rax, rax
je 0x14010301d
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 sym.std::sys::windows::path::get_long_path::h8fe53c1e1d2a4007
mov r15, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
test r15, r15
je 0x14010301d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [sym.std::sys::windows::fs::copy::callback::hb8c8b2b045fb208d]
lea r9, [rsp + 0x30]
mov rcx, rbx
mov rdx, r15
call sub.KERNEL32.dll_CopyFileExW
test eax, eax
je 0x14010302a
mov rax, qword [rsp + 0x30]
mov qword [rsi + 8], rax
mov qword [rsi], 0
test r14, r14
jne 0x140103047
jmp 0x14010305b
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp 0x140103074
mov qword [rsi + 8], r14
mov qword [rsi], 1
jmp 0x14010305b
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
test r14, r14
je 0x14010305b
add r14, r14
mov r8d, 2
mov rcx, r15
mov rdx, r14
call sym.__rust_dealloc
test rdi, rdi
je 0x140103074
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 0x1401031b0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140103235
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x140103276
cmp dword [rsp + 0x2c], 0
je 0x14010325a
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1401032a5
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1401cc100]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1401cc100], rsi
jne 0x140103210
mov byte [0x1401cc0f8], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x14010326c
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x1401032f1
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14010325f
mov edi, dword [rsp + 0x28]
jmp 0x14010326c
mov edi, dword [rsi + 0x18]
jmp 0x14010326a
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rax, str.library_std_src_syswindows_thread_local_key.rs
mov qword [rsp + 0x20], rax
lea r8, [0x14018b2e8]
lea rdx, [rsp + 0x28]
lea r9, [rsp + 0x30]
xor ecx, ecx
call sym.core::panicking::assert_failed::h3c5de362f29b677d
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, sym._ZN4core3ptr478drop_in_place_LT_std..sync..once..Once..call_once_force_LT_std..sync..once_lock..OnceLock_LT_unsafe_u20_extern_
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call sym.core::panicking::panic_fmt::hd016798b7a4db8ba
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, sym._ZN4core3ptr478drop_in_place_LT_std..sync..once..Once..call_once_force_LT_std..sync..once_lock..OnceLock_LT_unsafe_u20_extern_
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rax, str.library_std_src_syswindows_thread_local_key.rs
mov qword [rsp + 0x20], rax
lea r8, [0x14018b370]
lea rdx, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov cl, 1
call sym.core::panicking::assert_failed::hdcf12179dfbc4bb3
ud2
Function at 0x140103340
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
movzx eax, byte [0x1401cc0f8]
test al, al
je 0x1401034df
test edx, edx
je 0x140103367
cmp edx, 3
jne 0x1401034df
mov rbx, qword [0x1401cc100]
test rbx, rbx
je 0x1401034df
xor r14d, r14d
jmp 0x140103389
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1401033bd
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14010352a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140103380
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140165224
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140103380
test r14b, 1
je 0x1401034df
mov rbx, qword [0x1401cc100]
test rbx, rbx
je 0x1401034df
xor r14d, r14d
jmp 0x1401033e9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14010341d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14010352a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1401033e0
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140165224
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x1401033e0
test r14b, 1
je 0x1401034df
mov rbx, qword [0x1401cc100]
test rbx, rbx
je 0x1401034df
xor r14d, r14d
jmp 0x140103449
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14010347d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14010352a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140103440
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140165224
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140103440
test r14b, 1
je 0x1401034df
mov rbx, qword [0x1401cc100]
test rbx, rbx
je 0x1401034df
xor r14d, r14d
jmp 0x1401034a9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1401034d9
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14010352a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1401034a0
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140165224
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x1401034a0
test r14b, 1
jne 0x1401034eb
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rbx, qword [0x1401cc100]
jmp 0x1401034f8
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1401034df
mov esi, dword [rbx + 0x18]
mov r14, qword [rbx]
test r14, r14
je 0x14010352a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1401034f4
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140165224
mov rcx, rdi
call r14
jmp 0x1401034f4
lea rcx, [0x14018b0c8]
lea r8, str.library_std_src_syswindows_thread_local_key.rs
mov edx, 0x2b
call sym.core::panicking::panic::h297b186b0eb73132
ud2

Function at 0x140104150
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
mov rdx, rcx
lea rcx, sym.std::sys::common::thread_local::os_local::destroy_value::hc6c8d18371ddf1a8
jmp sym.std::sys::common::thread_local::os_local::Key_T_::get::hfcb2631f0da4221b
Function at 0x14010a5f0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x20], xmm6
mov rsi, r8
mov rdi, rcx
test r8, r8
je 0x14010a669
js 0x14010a7b7
mov r15, rdx
mov rax, qword [0x1401a3298]
movzx eax, byte [rax]
mov edx, 1
mov rcx, rsi
call sym.__rust_alloc
test rax, rax
je 0x14010a7be
mov r14, rax
mov rbx, rax
mov rcx, r14
mov rdx, r15
mov r8, rsi
call sym.memcpy
mov rcx, r14
cmp rsi, 8
jb 0x14010a76c
cmp rsi, 0x20
jae 0x14010a673
xor eax, eax
jmp 0x14010a706
mov ebx, 1
jmp 0x14010a78f
mov rax, rsi
and rax, 0xffffffffffffffe0
xor ecx, ecx
movdqa xmm0, xmmword [0x14018ba30]
movdqa xmm1, xmmword [0x14018ba40]
movdqa xmm2, xmmword [0x14018ba50]
nop word cs:[rax + rax]
movdqu xmm3, xmmword [rbx + rcx]
movdqu xmm4, xmmword [rbx + rcx + 0x10]
movdqa xmm5, xmm3
paddb xmm5, xmm0
movdqa xmm6, xmm4
paddb xmm6, xmm0
movdqa xmm7, xmm5
pminub xmm7, xmm1
pcmpeqb xmm7, xmm5
pand xmm7, xmm2
movdqa xmm5, xmm6
pminub xmm5, xmm1
pcmpeqb xmm5, xmm6
pand xmm5, xmm2
pxor xmm7, xmm3
pxor xmm5, xmm4
movdqu xmmword [rbx + rcx], xmm7
movdqu xmmword [rbx + rcx + 0x10], xmm5
add rcx, 0x20
cmp rax, rcx
jne 0x14010a6a0
cmp rax, rsi
je 0x14010a78f
test sil, 0x18
je 0x14010a766
mov rdx, rsi
and rdx, 0xfffffffffffffff8
lea rcx, [r14 + rdx]
movdqa xmm0, xmmword [0x14018ba60]
movdqa xmm1, xmmword [0x14018ba70]
movdqa xmm2, xmmword [0x14018ba80]
nop dword [rax]
movq xmm3, qword [rbx + rax]
movdqa xmm4, xmm3
paddb xmm4, xmm0
movdqa xmm5, xmm4
pmaxub xmm5, xmm1
pcmpeqb xmm5, xmm4
pandn xmm5, xmm2
pxor xmm5, xmm3
movq qword [rbx + rax], xmm5
add rax, 8
cmp rdx, rax
jne 0x14010a730
cmp rdx, rsi
jne 0x14010a76c
jmp 0x14010a78f
add rax, r14
mov rcx, rax
add r14, rsi
nop
movzx eax, byte [rcx]
lea edx, [rax - 0x61]
cmp dl, 0x1a
setb dl
shl dl, 5
xor dl, al
mov byte [rcx], dl
lea rax, [rcx + 1]
mov rcx, rax
cmp rax, r14
jne 0x14010a770
mov qword [rdi], rbx
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rsi
mov byte [rdi + 0x18], 0
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x20]
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call sym.alloc::raw_vec::capacity_overflow::haa41492991ace0dc
ud2
mov ecx, 1
mov rdx, rsi
call sym.alloc::alloc::handle_alloc_error::h8e8b408db101c68d
ud2
Function at 0x14010a8d0
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x80
mov r14, r9
mov rsi, rcx
lea rcx, [rsp + 0x30]
call sym.__str_as_alloc::ffi::c_str::CString::new::SpecNewImpl_::spec_new_impl::h976b5526367ea751
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14010a922
lea rax, [0x14018bc98]
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x14010a9bd
mov r8d, 1
jmp 0x14010a9b8
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
movzx ebp, word [r14]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call fcn.1401655c4
test eax, eax
je 0x14010a98e
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
jne 0x14010a9ac
jmp 0x14010a9bd
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
je 0x14010a9bd
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x80
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x14010abf0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov r9d, 0x40
xor r8d, r8d
call sym.___u8__as_object::read::read_ref::ReadRef_::read_bytes_at::h4e9d56dfaa22acb2
test rax, rax
je 0x14010acba
mov rcx, rdx
cmp rcx, 0x40
jb 0x14010acba
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14010acb8
mov r14d, dword [rax + 0x3c]
mov r9d, 0x88
mov rcx, rbx
mov rdx, rdi
mov r8, r14
call sym.___u8__as_object::read::read_ref::ReadRef_::read_bytes_at::h4e9d56dfaa22acb2
test rax, rax
je 0x14010acb8
cmp rdx, 0x88
jb 0x14010acb8
mov rsi, rax
cmp dword [rax], 0x4550
jne 0x14010acb8
movzx eax, word [rsi + 0x18]
cmp eax, 0x20b
jne 0x14010acb8
movzx r9d, word [rsi + 0x14]
cmp r9, 0x70
jb 0x14010acb8
add r14, 0x88
add r9, 0xffffffffffffff90
mov rcx, rbx
mov rdx, rdi
mov r8, r14
call sym.___u8__as_object::read::read_ref::ReadRef_::read_bytes_at::h4e9d56dfaa22acb2
test rax, rax
je 0x14010acb8
mov r8, rdx
mov r9d, dword [rsi + 0x84]
lea rcx, [rsp + 0x20]
mov rdx, rax
call sym.object::read::pe::data_directory::DataDirectories::parse::hd5e87e2d9cd01b4e
cmp qword [rsp + 0x20], 0
je 0x14010acc7
xor esi, esi
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rdx, qword [rsi + 0x30]
mov esi, 1
jmp 0x14010acba
Function at 0x14010c170
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 0x14010c19d
mov dword [rsi + 4], eax
xor eax, eax
jmp 0x14010c1b3
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 0x14010c1c0
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 0x14010c214
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14010c2a3
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x14010c227
cmp eax, 0x2739
jne 0x14010c26e
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 0x14010c269
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x14010c283
mov qword [rsi + 8], rdi
jmp 0x14010c208
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14010c2a3
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 0x14010c2b0
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x48
cmp word [rdx], 0
je 0x14010c2d6
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 0x14010c2eb
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 0x14010c321
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 0x14010c7d0
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.140165594
cmp eax, 0xffffffff
je 0x14010c803
cdqe
jmp 0x14010c811
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14010c819
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14010c82a
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 0x14010c840
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 0x14010c8ba
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.140165594
cmp eax, 0xffffffff
je 0x14010c89b
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 0x14010c8b3
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14010c8ab
xor eax, eax
jmp 0x14010c8b3
shl rax, 0x20
or rax, 2
add rsp, 0x28
pop rdi
pop rsi
ret
lea r8, [0x14018bed0]
mov rcx, rsi
call sym.core::slice::index::slice_start_index_len_fail::h36930cbd7fa4975d
ud2

Function at 0x14010c8d0
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 0x14010c932
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14010c943
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14010c956
mov eax, dword [rsp + 0x38]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14010c956
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 0x14010c960
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.140165594
cmp eax, 0xffffffff
je 0x14010c996
cdqe
jmp 0x14010c9a4
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14010c9ac
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14010c9bd
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 0x14010c9d0
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.14016558c
cmp eax, 0xffffffff
je 0x14010caa7
mov ecx, dword [rsp + 0x34]
movzx edx, word [rsp + 0x50]
cmp edx, 0x17
je 0x14010cb01
cmp edx, 2
jne 0x14010caf5
cmp ecx, 0xf
jbe 0x14010cc19
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 0x14010cb4c
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14010cb7f
mov eax, dword [rsp + 0x34]
movzx ecx, word [rsp + 0x50]
cmp ecx, 0x17
je 0x14010cb92
cmp ecx, 2
jne 0x14010caf5
cmp eax, 0xf
jbe 0x14010cc19
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 0x14010cbdc
lea rax, str.invalid_argument0
jmp 0x14010cb87
cmp ecx, 0x1b
jbe 0x14010cc33
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 0x14010cc0f
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov word [rsi + 8], 2
jmp 0x14010cc0f
cmp eax, 0x1b
jbe 0x14010cc33
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, [0x14018d7b8]
mov edx, 0x42
call sym.core::panicking::panic::h297b186b0eb73132
ud2
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x14018d818]
mov edx, 0x43
call sym.core::panicking::panic::h297b186b0eb73132
ud2
Function at 0x14010ccb0
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 0x14010cd01
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14010cd17
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 0x14010cd30
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r10d, r10d
cmp r8d, 0x3b9aca00
je 0x14010cd8e
mov r10d, 0x3e8
mov rax, rdx
mul r10
mov r10d, 0xffffffff
jo 0x14010cd8e
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14010cd8e
imul edx, edx, 0xf4240
xor r11d, r11d
sub r8d, edx
setne r11b
add rax, r11
jb 0x14010cd8e
mov r10d, 0xffffffff
cmp rax, r10
cmovb r10, rax
test r10, r10
je 0x14010cdd1
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 0x14010cdbf
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, [0x14018c350]
add rsp, 0x38
ret

Function at 0x14010cea0
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 0x14010cec9
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 0x14010cee0
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 0x14010cf34
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 0x14010cfc0
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 0x14010cff7
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret