joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100677e0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x100678eb
mov rsi, rcx
mov rbx, qword [rdi + 0x28]
mov rax, qword [rbx]
test rax, rax
jne 0x10067817
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x100678b0
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x100678ce
sub rax, rdx
add rdx, qword [rbx + 8]
mov rbx, qword [rdi + 0x20]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
mov r8d, eax
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x1006786d
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x10067889
jmp 0x1006787e
call fcn.100d8c94
cmp eax, 0x3e5
je 0x10067884
cmp eax, 0x6d
jne 0x100678a0
mov byte [rsi + 1], 0
jmp 0x10067894
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x10067896
mov r8d, 0x10
mov rcx, rbx
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h70b37f0617af3d95
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x10067824
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h70b37f0617af3d95
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x10067824
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call dbg.assert_failed<std::sys::windows::pipe::State, std::sys::windows::pipe::State>
ud2
Function at 0x1006be90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rcx
lea rcx, [rsp + 0x20]
call dbg.maybe_verbatim
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x1006bed4
mov rbx, qword [rsp + 0x20]
mov r14, qword [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1006bf2f
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x1006bf25
mov rbx, qword [rsp + 0x20]
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x1006bf1d
lea rdi, [rbx - 1]
mov rcx, qword [rbx - 1]
mov rax, qword [rbx + 7]
call qword [rax]
mov rax, qword [rbx + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1006bf0a
mov r8, qword [rax + 0x10]
mov rcx, qword [rdi]
call sym.__rust_dealloc
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov qword [rsi + 8], 0
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov qword [rsi + 8], 0
test rbx, rbx
je 0x1006bf25
add rbx, rbx
mov r8d, 2
mov rcx, rdi
mov rdx, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
jmp sym.__rust_dealloc

Function at 0x1006c9d0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1006ca06
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call fcn.100d8c94
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::h26c9af03b99da041]
mov qword [rsp + 0x48], rax
lea rax, [0x10561c78]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call dbg.panic_fmt
ud2

Function at 0x1006d610
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rbx, r8
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], r8
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1006d6d3
mov rsi, rax
mov qword [rax], rdi
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [dbg.thread_start]
xor ebx, ebx
xor ecx, ecx
mov rdx, r14
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1006d6c6
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
call qword [rax]
mov rax, qword [rsi + 8]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1006d69f
mov r8, qword [rax + 0x10]
mov rcx, qword [rsi]
call sym.__rust_dealloc
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call sym.__rust_dealloc
call fcn.100d8c94
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 0x10
mov edx, 8
call dbg.handle_alloc_error
ud2
Function at 0x1006d960
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x1006d9de
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 0x1006da1f
cmp dword [rsp + 0x2c], 0
je 0x1006da03
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1006da47
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x105a71a0]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x105a71a0], rsi
jne 0x1006d9c0
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x1006da15
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x1006da9d
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x1006da08
mov edi, dword [rsp + 0x28]
jmp 0x1006da15
mov edi, dword [rsi + 0x18]
jmp 0x1006da13
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 + 0x40], 0
lea rdx, [0x105621c0]
lea r9, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call dbg.assert_failed<i32, i32>
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 + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x30], 0
lea rax, str.capacity_overflow
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call dbg.panic_fmt
ud2
mov qword [rsp + 0x30], 0
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rax, str.capacity_overflow
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call dbg.assert_failed<u32, u32>
ud2
Function at 0x1006daf0
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
cmp edx, 3
je 0x1006db08
test edx, edx
jne 0x1006dc7e
mov rbx, qword [0x105a71a0]
test rbx, rbx
je 0x1006dc7e
xor r14d, r14d
jmp 0x1006db29
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1006db5c
mov esi, dword [rbx + 0x18]
mov rdi, qword [rbx]
test rdi, rdi
je 0x1006dcc8
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1006db20
mov r15, rax
mov ecx, esi
xor edx, edx
call fcn.100d8ac4
mov rcx, r15
call rdi
mov r14b, 1
jmp 0x1006db20
test r14b, 1
je 0x1006dc7e
mov rbx, qword [0x105a71a0]
test rbx, rbx
je 0x1006dc7e
xor r14d, r14d
jmp 0x1006db89
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1006dbbc
mov esi, dword [rbx + 0x18]
mov rdi, qword [rbx]
test rdi, rdi
je 0x1006dcc8
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1006db80
mov r15, rax
mov ecx, esi
xor edx, edx
call fcn.100d8ac4
mov rcx, r15
call rdi
mov r14b, 1
jmp 0x1006db80
test r14b, 1
je 0x1006dc7e
mov rbx, qword [0x105a71a0]
test rbx, rbx
je 0x1006dc7e
xor r14d, r14d
jmp 0x1006dbe9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1006dc1c
mov esi, dword [rbx + 0x18]
mov rdi, qword [rbx]
test rdi, rdi
je 0x1006dcc8
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1006dbe0
mov r15, rax
mov ecx, esi
xor edx, edx
call fcn.100d8ac4
mov rcx, r15
call rdi
mov r14b, 1
jmp 0x1006dbe0
test r14b, 1
je 0x1006dc7e
mov rbx, qword [0x105a71a0]
test rbx, rbx
je 0x1006dc7e
xor r14d, r14d
jmp 0x1006dc49
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1006dc78
mov esi, dword [rbx + 0x18]
mov rdi, qword [rbx]
test rdi, rdi
je 0x1006dcc8
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1006dc40
mov r15, rax
mov ecx, esi
xor edx, edx
call fcn.100d8ac4
mov rcx, r15
call rdi
mov r14b, 1
jmp 0x1006dc40
test r14b, 1
jne 0x1006dc8a
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rbx, qword [0x105a71a0]
jmp 0x1006dc97
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1006dc7e
mov esi, dword [rbx + 0x18]
mov rdi, qword [rbx]
test rdi, rdi
je 0x1006dcc8
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1006dc93
mov r14, rax
mov ecx, esi
xor edx, edx
call fcn.100d8ac4
mov rcx, r14
call rdi
jmp 0x1006dc93
lea rcx, [0x1055ccb0]
lea r8, str.library_std_src_syswindows_thread_local_key.rs
mov edx, 0x2b
call dbg.panic
ud2
Function at 0x100701f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov ecx, dword [0x100f6150]
test ecx, ecx
je 0x10070223
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1007023c
mov rbx, rax
cmp qword [rax], 0
je 0x1007023c
add rbx, 8
jmp 0x1007034c
lea rcx, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
call sym.std::sys::windows::thread_local_key::StaticKey::init::hfcbb047e39b8e62f
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x10070211
mov ecx, dword [0x100f6150]
test ecx, ecx
je 0x1007032d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1007034a
mov rdi, rax
test rax, rax
jne 0x100702bc
mov qword [rsp + 0x20], 0
lea rax, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
mov qword [rsp + 0x38], rax
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1007036a
mov rdi, rax
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, dword [0x100f6150]
test ecx, ecx
je 0x10070357
dec ecx
mov rdx, rdi
call fcn.100d8ac4
test rsi, rsi
je 0x100702fa
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
mov qword [rsi], 0
test rdx, rdx
je 0x100702fa
cmp rdx, 1
jne 0x100702e3
mov rdx, rcx
jmp 0x100702fe
test rcx, rcx
je 0x100702fa
xor eax, eax
lock dec qword [rcx]
mov edx, 0
jne 0x100702fe
call dbg.drop_slow<std::thread::Inner>
xor eax, eax
xor edx, edx
lea rbx, [rdi + 8]
cmp qword [rdi], 0
mov rcx, qword [rdi + 0x10]
mov qword [rdi], 1
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rdx
je 0x1007034c
test rcx, rcx
je 0x1007034c
lock dec qword [rcx]
jne 0x1007034c
call dbg.drop_slow<std::thread::Inner>
jmp 0x1007034c
lea rcx, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
call sym.std::sys::windows::thread_local_key::StaticKey::init::hfcbb047e39b8e62f
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1007025b
xor ebx, ebx
mov rax, rbx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
call sym.std::sys::windows::thread_local_key::StaticKey::init::hfcbb047e39b8e62f
mov ecx, eax
jmp 0x100702b4
mov ecx, 0x20
mov edx, 8
call dbg.handle_alloc_error
ud2
Function at 0x10070670
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1f0
mov rsi, rcx
mov rdi, qword [rdx]
mov rbx, qword [rdx + 8]
movzx r14d, word [rdx + 0x10]
mov rax, qword [0x105a7178]
cmp rax, 3
jne 0x10070765
cmp rbx, 0x17f
ja 0x10070777
lea rbp, [rsp + 0x70]
mov rcx, rbp
mov rdx, rdi
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov byte [rsp + rbx + 0x70], 0
inc rbx
lea rcx, [rsp + 0x28]
mov rdx, rbp
mov r8, rbx
call dbg.from_bytes_with_nul
cmp qword [rsp + 0x28], 0
je 0x100706f4
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x10070788
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x20]
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x1007074c
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
jmp 0x10070788
mov rax, qword [rsp + 0x20]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], r14w
xor eax, eax
mov qword [rsi], rax
jmp 0x10070788
call dbg.initialize<unsafe extern "system" fn() -> i32, std::sync::once_lock::{impl#0}::get_or_init::{closure_env#0}<unsafe extern "system" fn() -> i32, std::sys::windows::net::init::{closure_env#0}>, !>
cmp rbx, 0x17f
jbe 0x100706aa
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
mov r9d, r14d
call dbg.run_with_cstr_allocating<std::sys_common::net::LookupHost, std::sys_common::net::{impl#6}::try_from::{closure_env#0}>
mov rax, rsi
add rsp, 0x1f0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x100707a0
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm6
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x100707be
mov qword [rsi + 8], rbx
jmp 0x100707f3
mov rax, qword [0x105a7178]
cmp rax, 3
jne 0x100708f9
lea rcx, [rsp + 0x20]
mov rdx, rbx
mov r8d, 1
call sym.std::sys::windows::net::Socket::new::h4ba433c22a911f38
cmp qword [rsp + 0x20], 0
mov rdi, qword [rsp + 0x28]
je 0x1007080b
mov qword [rsi + 8], rdi
mov qword [rsi], 1
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
ret
cmp word [rbx], 0
je 0x10070862
movups xmm0, xmmword [rbx + 4]
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x2c], xmm1
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sym.core::net::socket_addr::SocketAddrV6::port::h3dfc10ea8823d885
mov ebx, eax
lea rcx, [rsp + 0x20]
call sym.core::net::socket_addr::SocketAddrV6::ip::hb22f92b3d7212fa0
movups xmm6, xmmword [rax]
lea rcx, [rsp + 0x20]
call dbg.flowinfo
mov ebp, eax
lea rcx, [rsp + 0x20]
call sym.core::net::socket_addr::SocketAddrV6::scope_id::habe707d2d1d9ec23
rol bx, 8
mov r8d, 0x1c
mov cx, 0x17
jmp 0x1007089b
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
mov word [rsp + 0x24], cx
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x20]
call sym.core::net::socket_addr::SocketAddrV4::port::hd413292bdf5ce6bf
mov ebx, eax
lea rcx, [rsp + 0x20]
call sym.core::net::socket_addr::SocketAddrV4::ip::h32024a7ceb7f741e
rol bx, 8
mov ebp, dword [rax]
xorps xmm6, xmm6
mov r8d, 0x10
mov cx, 2
mov word [rsp + 0x20], cx
mov word [rsp + 0x22], bx
mov dword [rsp + 0x24], ebp
movups xmmword [rsp + 0x28], xmm6
mov dword [rsp + 0x38], eax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x100708d4
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x100707fa
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call fcn.100d8ecc
jmp 0x100707fa
call dbg.initialize<unsafe extern "system" fn() -> i32, std::sync::once_lock::{impl#0}::get_or_init::{closure_env#0}<unsafe extern "system" fn() -> i32, std::sys::windows::net::init::{closure_env#0}>, !>
jmp 0x100707cf
Function at 0x10071320
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
movaps xmmword [rsp + 0x50], xmm6
mov r14, r8
mov r15, rdx
mov r12, rcx
mov rax, qword [rsp + 0xc0]
cmp r9, 0x7fffffff
mov ebx, 0x7fffffff
cmovb rbx, r9
cmp word [rax], 0
je 0x100713a7
movups xmm0, xmmword [rax + 4]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x3c], xmm1
movaps xmmword [rsp + 0x30], xmm0
lea rsi, [rsp + 0x30]
mov rcx, rsi
call sym.core::net::socket_addr::SocketAddrV6::port::h3dfc10ea8823d885
mov ebp, eax
rol bp, 8
mov rcx, rsi
call sym.core::net::socket_addr::SocketAddrV6::ip::hb22f92b3d7212fa0
movups xmm6, xmmword [rax]
mov rcx, rsi
call dbg.flowinfo
mov edi, eax
mov rcx, rsi
call sym.core::net::socket_addr::SocketAddrV6::scope_id::habe707d2d1d9ec23
mov edx, 0x1c
mov cx, 0x17
jmp 0x100713e0
mov ecx, dword [rax + 2]
movzx eax, word [rax + 6]
mov word [rsp + 0x34], ax
mov dword [rsp + 0x30], ecx
lea rdi, [rsp + 0x30]
mov rcx, rdi
call sym.core::net::socket_addr::SocketAddrV4::port::hd413292bdf5ce6bf
mov ebp, eax
rol bp, 8
mov rcx, rdi
call sym.core::net::socket_addr::SocketAddrV4::ip::h32024a7ceb7f741e
mov edi, dword [rax]
xorps xmm6, xmm6
mov edx, 0x10
mov cx, 2
mov word [rsp + 0x30], cx
mov word [rsp + 0x32], bp
mov dword [rsp + 0x34], edi
movups xmmword [rsp + 0x38], xmm6
mov dword [rsp + 0x48], eax
mov rcx, qword [r15]
mov dword [rsp + 0x28], edx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rdx, r14
mov r8d, ebx
xor r9d, r9d
call sub.WS2_32.dll_sendto
cmp eax, 0xffffffff
je 0x1007142c
cdqe
mov qword [r12 + 8], rax
mov qword [r12], 0
jmp 0x10071446
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [r12 + 8], rax
mov qword [r12], 1
mov rax, r12
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x10071460
Capabilities:
Connect socket

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm6
mov rax, r8
test rdx, rdx
jne 0x10071545
mov r14, rcx
cmp word [rax], 0
je 0x100714d1
movups xmm0, xmmword [rax + 4]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x2c], xmm1
movaps xmmword [rsp + 0x20], xmm0
lea rsi, [rsp + 0x20]
mov rcx, rsi
call sym.core::net::socket_addr::SocketAddrV6::port::h3dfc10ea8823d885
mov edi, eax
rol di, 8
mov rcx, rsi
call sym.core::net::socket_addr::SocketAddrV6::ip::hb22f92b3d7212fa0
movups xmm6, xmmword [rax]
mov rcx, rsi
call dbg.flowinfo
mov ebx, eax
mov rcx, rsi
call sym.core::net::socket_addr::SocketAddrV6::scope_id::habe707d2d1d9ec23
mov r8d, 0x1c
mov cx, 0x17
jmp 0x1007150b
mov ecx, dword [rax + 2]
movzx eax, word [rax + 6]
mov word [rsp + 0x24], ax
mov dword [rsp + 0x20], ecx
lea rbx, [rsp + 0x20]
mov rcx, rbx
call sym.core::net::socket_addr::SocketAddrV4::port::hd413292bdf5ce6bf
mov edi, eax
rol di, 8
mov rcx, rbx
call sym.core::net::socket_addr::SocketAddrV4::ip::h32024a7ceb7f741e
mov ebx, dword [rax]
xorps xmm6, xmm6
mov r8d, 0x10
mov cx, 2
mov word [rsp + 0x20], cx
mov word [rsp + 0x22], di
mov dword [rsp + 0x24], ebx
movups xmmword [rsp + 0x28], xmm6
mov dword [rsp + 0x38], eax
mov rcx, qword [r14]
lea rdx, [rsp + 0x20]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x10071538
xor eax, eax
jmp 0x10071545
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x10071920
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x100f6170]
test ecx, ecx
je 0x1007194f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x10071968
cmp qword [rax], 0
je 0x10071968
add rax, 8
jmp 0x10071a1d
lea rcx, dbg.destroy_value_core::cell::Cell_usize__
call sym.std::sys::windows::thread_local_key::StaticKey::init::hfcbb047e39b8e62f
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x10071940
mov ecx, dword [0x100f6170]
test ecx, ecx
je 0x100719fe
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x10071a1b
mov rdi, rax
test rax, rax
jne 0x100719d0
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x10071a34
mov rdi, rax
mov qword [rax], 0
lea rax, dbg.destroy_value_core::cell::Cell_usize__
mov qword [rdi + 0x10], rax
mov ecx, dword [0x100f6170]
test ecx, ecx
je 0x10071a24
dec ecx
mov rdx, rdi
call fcn.100d8ac4
test rsi, rsi
je 0x100719eb
mov rax, qword [rsi]
mov qword [rsi], 0
cmp rax, 1
jne 0x100719eb
mov rcx, qword [rsi + 8]
jmp 0x100719ed
xor ecx, ecx
lea rax, [rdi + 8]
mov qword [rdi], 1
mov qword [rdi + 8], rcx
jmp 0x10071a1d
lea rcx, dbg.destroy_value_core::cell::Cell_usize__
call sym.std::sys::windows::thread_local_key::StaticKey::init::hfcbb047e39b8e62f
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x10071987
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell_usize__
call sym.std::sys::windows::thread_local_key::StaticKey::init::hfcbb047e39b8e62f
mov ecx, eax
jmp 0x100719c8
mov ecx, 0x18
mov edx, 8
call dbg.handle_alloc_error
ud2
Function at 0x10072040
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rax, r8
mov rdi, rcx
mov dword [rsp + 0x60], 0
mov word [rsp + 0x64], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x48], 0
movaps xmm0, xmmword [0x1055c700]
movups xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call dbg.open
mov rsi, rdx
test rax, rax
je 0x100720f1
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x100720e5
mov rbx, rsi
dec rbx
mov rcx, qword [rsi - 1]
mov rax, qword [rsi + 7]
call qword [rax]
mov rax, qword [rsi + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x100720d2
mov r8, qword [rax + 0x10]
mov rcx, qword [rbx]
call sym.__rust_dealloc
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call sym.__rust_dealloc
mov qword [rdi], 0
jmp 0x100722b4
lea rcx, [rsp + 0x40]
mov rdx, rsi
call dbg.file_attr
cmp dword [rsp + 0x40], 2
jne 0x1007216d
mov rbx, qword [rsp + 0x48]
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x1007214e
lea r14, [rbx - 1]
mov rcx, qword [rbx - 1]
mov rax, qword [rbx + 7]
call qword [rax]
mov rax, qword [rbx + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1007213b
mov r8, qword [rax + 0x10]
mov rcx, qword [r14]
call sym.__rust_dealloc
mov edx, 0x18
mov r8d, 8
mov rcx, r14
call sym.__rust_dealloc
mov qword [rdi], 0
mov rcx, rsi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.100d8de4
mov r12, qword [rsp + 0x68]
test rsi, rsi
je 0x100721c2
mov qword [rsp + 0x40], 0
call fcn.100d8cf4
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rsi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x1007221b
mov rbx, qword [rsp + 0x40]
xor eax, eax
test rax, rax
jne 0x100721cb
jmp 0x10072234
xor eax, eax
xor ebx, ebx
test rax, rax
je 0x10072234
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x1007220f
lea r14, [rbx - 1]
mov rcx, qword [rbx - 1]
mov rax, qword [rbx + 7]
call qword [rax]
mov rax, qword [rbx + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x100721fc
mov r8, qword [rax + 0x10]
mov rcx, qword [r14]
call sym.__rust_dealloc
mov edx, 0x18
mov r8d, 8
mov rcx, r14
call sym.__rust_dealloc
mov qword [rdi], 0
jmp 0x100722ac
call fcn.100d8c94
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov eax, 1
test rax, rax
jne 0x100721cb
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x1007229d
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call fcn.100d8de4
test r15, r15
je 0x1007229d
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x100722ac
mov qword [rdi], 0
mov rcx, rbx
call fcn.100d8de4
mov rcx, rsi
call fcn.100d8de4
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret