joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004a3f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
movabs r14, 0x8000000000000000
lea rcx, [rsp + 0x40]
call sym.std::sys::pal::windows::to_u16s::inner::h4c9a51427fa9952c
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
cmp rcx, r14
jne 0x14004a42d
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
jmp 0x14004a45a
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call sym.std::sys::pal::windows::args::from_wide_to_user_path::h0b242e3f6b641f98
mov rdi, qword [rsp + 0x28]
cmp rdi, r14
jne 0x14004a473
lea rcx, [rsp + 0x30]
call sym.core::ptr::drop_in_place_std::io::error::Error_::ha5de4730a10cc339
mov qword [rsi], r14
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rbx, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
mov rcx, rbx
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x14004a497
mov qword [rsi], rdi
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
jmp 0x14004a467
mov qword [rsi], r14
test rdi, rdi
je 0x14004a467
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp sym.__rust_dealloc
Function at 0x14004c100
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x14129ac48]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14004c1c3
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [sym.std::sys::pal::windows::thread::Thread::new::thread_start::h7d40d75b5c69b3da]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x14004c1b6
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x14004c18f
mov r8, qword [r14 + 0x10]
mov rcx, rbx
call sym.__rust_dealloc
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call sym.__rust_dealloc
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::ha700c182da133e1c
ud2

Function at 0x14004c460
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x14004c4f0
mov rax, qword [sym.std::sys::pal::windows::thread_local_key::on_tls_callback::h4ba559d6dbb0b45c]
mov dword [rsp + 0x2c], 0
lea rdi, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rdi
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x14004c531
cmp dword [rsp + 0x2c], 0
je 0x14004c515
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14004c557
mov ebx, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1412a8158]
nop dword [rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1412a8158], rsi
jne 0x14004c4d0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
mov eax, ebx
jmp 0x14004c529
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x14004c5a1
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14004c51a
mov eax, dword [rsp + 0x28]
jmp 0x14004c529
mov eax, dword [rsi + 0x18]
jmp 0x14004c527
mov ecx, dword [rsp + 0x28]
mov esi, eax
call sub.KERNEL32.dll_TlsFree
mov eax, esi
dec eax
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rdx, [0x14127cd78]
lea r9, [0x14127d4e8]
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call sym.core::panicking::assert_failed::h8ffd437d9df69bb7
mov rcx, rdi
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, [0x14127d488]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x1412780a8]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, [0x14127d4d0]
lea rcx, [rsp + 0x30]
call sym.core::panicking::panic_fmt::he2608bd87643dbc4
lea rax, [0x14127d488]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x1412780a8]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call sym.core::panicking::assert_failed::h65065b40208b6a99
int3
Function at 0x14004c5e0
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 0x14004c5f8
test edx, edx
jne 0x14004c76f
mov rbx, qword [0x1412a8158]
test rbx, rbx
je 0x14004c76f
xor r14d, r14d
jmp 0x14004c619
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14004c64d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14004c7ba
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14004c610
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140097654
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x14004c610
test r14b, 1
je 0x14004c76f
mov rbx, qword [0x1412a8158]
test rbx, rbx
je 0x14004c76f
xor r14d, r14d
jmp 0x14004c679
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14004c6ad
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14004c7ba
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14004c670
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140097654
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x14004c670
test r14b, 1
je 0x14004c76f
mov rbx, qword [0x1412a8158]
test rbx, rbx
je 0x14004c76f
xor r14d, r14d
jmp 0x14004c6d9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14004c70d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14004c7ba
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14004c6d0
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140097654
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x14004c6d0
test r14b, 1
je 0x14004c76f
mov rbx, qword [0x1412a8158]
test rbx, rbx
je 0x14004c76f
xor r14d, r14d
jmp 0x14004c739
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14004c769
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14004c7ba
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14004c730
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140097654
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x14004c730
test r14b, 1
jne 0x14004c77b
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rbx, qword [0x1412a8158]
jmp 0x14004c788
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14004c76f
mov esi, dword [rbx + 0x18]
mov r14, qword [rbx]
test r14, r14
je 0x14004c7ba
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14004c784
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140097654
mov rcx, rdi
call r14
jmp 0x14004c784
lea rcx, [0x14127d520]
call sym.core::option::unwrap_failed::hc0851016c6838662
ud2
Function at 0x1400502a0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov qword [rsp + 0x38], rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400502b9
dec ecx
jmp 0x1400502c3
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h07a33ae87c46ead8
mov ecx, eax
mov edx, 1
call fcn.140097654
mov rcx, qword [rsp + 0x38]
cmp qword [rcx + 8], 0
je 0x1400502fa
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1400502fa
lock dec qword [rax]
jne 0x1400502fa
lea rax, [rcx + 0x10]
mov rdi, rcx
mov rcx, rax
call sym.alloc::sync::Arc_T_A_::drop_slow::hc72eedd0a1b3284b
mov rcx, rdi
mov edx, 0x18
mov r8d, 8
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140050315
dec ecx
jmp 0x14005031f
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h07a33ae87c46ead8
mov ecx, eax
xor edx, edx
call fcn.140097654
nop
add rsp, 0x78
pop rdi
pop rsi
ret

Function at 0x1400503c0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400503d7
dec ecx
jmp 0x1400503e1
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h07a33ae87c46ead8
mov ecx, eax
mov edx, 1
call fcn.140097654
mov edx, 0x20
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140050409
dec ecx
jmp 0x140050413
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h07a33ae87c46ead8
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.140097654

Function at 0x1400504c0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov qword [rsp + 0x38], rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400504d9
dec ecx
jmp 0x1400504e3
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h07a33ae87c46ead8
mov ecx, eax
mov edx, 1
call fcn.140097654
mov rcx, qword [rsp + 0x38]
cmp qword [rcx + 8], 0
je 0x14005051a
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14005051a
lock dec qword [rax]
jne 0x14005051a
lea rax, [rcx + 0x10]
mov rdi, rcx
mov rcx, rax
call sym.alloc::sync::Arc_T_A_::drop_slow::h7d297c64500a3644
mov rcx, rdi
mov edx, 0x18
mov r8d, 8
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140050535
dec ecx
jmp 0x14005053f
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h07a33ae87c46ead8
mov ecx, eax
xor edx, edx
call fcn.140097654
nop
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x1400505e0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400505f7
dec ecx
jmp 0x140050601
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h07a33ae87c46ead8
mov ecx, eax
mov edx, 1
call fcn.140097654
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140050629
dec ecx
jmp 0x140050633
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h07a33ae87c46ead8
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.140097654

Function at 0x1400506e0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov qword [rsp + 0x38], rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400506f9
dec ecx
jmp 0x140050703
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h07a33ae87c46ead8
mov ecx, eax
mov edx, 1
call fcn.140097654
mov rcx, qword [rsp + 0x38]
cmp qword [rcx + 8], 0
je 0x14005073a
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14005073a
lock dec qword [rax]
jne 0x14005073a
lea rax, [rcx + 0x10]
mov rdi, rcx
mov rcx, rax
call sym.alloc::sync::Arc_T_A_::drop_slow::h5b9ed3ea51fafdab
mov rcx, rdi
mov edx, 0x18
mov r8d, 8
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140050755
dec ecx
jmp 0x14005075f
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h07a33ae87c46ead8
mov ecx, eax
xor edx, edx
call fcn.140097654
nop
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x140050a40
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x200
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rsp + 0x26], ax
mov rax, qword [0x1412a8138]
cmp rax, 3
jne 0x140050b4c
lea rax, [rsp + 0x26]
mov qword [rsp + 0x30], rax
cmp rdi, 0x17f
ja 0x140050b6e
lea rbx, [rsp + 0x80]
mov rcx, rbx
mov r8, rdi
call sym.memcpy
mov byte [rsp + rdi + 0x80], 0
inc rdi
lea rcx, [rsp + 0x38]
mov rdx, rbx
mov r8, rdi
call sym.core::ffi::c_str::CStr::from_bytes_with_nul::h518fce09c1f71cfb
cmp qword [rsp + 0x38], 0
je 0x140050ad2
lea rax, [0x14127b648]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140050b3e
mov rcx, qword [rsp + 0x40]
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]
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x140050b23
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x140050b37
mov rax, qword [rsp + 0x28]
movzx ecx, word [rsp + 0x26]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov rax, rsi
add rsp, 0x200
pop rbx
pop rdi
pop rsi
ret
mov rbx, rdx
call sym.std::sync::once_lock::OnceLock_T_::initialize::he7228bcc2ad88f29
mov rdx, rbx
lea rax, [rsp + 0x26]
mov qword [rsp + 0x30], rax
cmp rdi, 0x17f
jbe 0x140050a88
lea r9, [rsp + 0x30]
mov rcx, rsi
mov r8, rdi
call sym.std::sys::pal::common::small_c_string::run_with_cstr_allocating::hd9cbd9d75e4fc846
jmp 0x140050b3e

Function at 0x140050b80
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov eax, 1
test rcx, rcx
jne 0x140050c32
mov rax, qword [0x1412a8138]
cmp rax, 3
jne 0x140050c58
mov rsi, rdx
mov rcx, rdx
mov edx, 1
call sym.std::sys::pal::windows::net::Socket::new::hcd1973642841914a
test rax, rax
je 0x140050bc1
mov eax, 1
jmp 0x140050c32
cmp word [rsi], 0
je 0x140050be3
movups xmm0, xmmword [rsi + 4]
mov eax, dword [rsi + 0x14]
mov r9d, dword [rsi + 0x18]
movzx ecx, word [rsi + 0x1c]
mov r8d, 0x1c
mov r10w, 0x17
jmp 0x140050bf8
mov eax, dword [rsi + 2]
movzx ecx, word [rsi + 6]
mov r8d, 0x10
mov r10w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x2c], r10w
mov word [rsp + 0x2e], cx
mov dword [rsp + 0x30], eax
movups xmmword [rsp + 0x34], xmm0
mov dword [rsp + 0x44], r9d
lea rax, [rsp + 0x2c]
mov rsi, rdx
mov rcx, rdx
mov rdx, rax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x140050c39
xor eax, eax
mov rdx, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call sub.WS2_32.dll_closesocket
mov rdx, rdi
jmp 0x140050bba
mov rsi, rdx
call sym.std::sync::once_lock::OnceLock_T_::initialize::he7228bcc2ad88f29
mov rdx, rsi
jmp 0x140050ba5
Function at 0x140050fc0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0xb0
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x2c], pe_nt_image_headers64
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x2c]
mov rcx, rax
call sub.WS2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x14005106f
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x30]
cmp ecx, 2
je 0x14005107e
cmp ecx, 0x17
jne 0x1400510a5
cmp eax, 0x1b
jbe 0x1400510be
movzx eax, word [rsp + 0x32]
rol ax, 8
movups xmm0, xmmword [rsp + 0x38]
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x48]
mov word [rsi], 1
movups xmmword [rsi + 4], xmm0
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
add rsp, 0xb0
pop rsi
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x1400510ac
cmp eax, 0xf
jbe 0x1400510d6
movzx eax, word [rsp + 0x32]
rol ax, 8
mov ecx, dword [rsp + 0x34]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
add rsp, 0xb0
pop rsi
ret
lea rax, [0x14127dc50]
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb0
pop rsi
ret
lea rcx, [0x14127dbe0]
lea r8, [0x14127dc28]
mov edx, 0x43
call sym.core::panicking::panic::hef3431a3c19424e4
lea rcx, [0x14127db81]
lea r8, [0x14127dbc8]
mov edx, 0x42
call sym.core::panicking::panic::hef3431a3c19424e4
int3

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

Disassembly:
push rsi
sub rsp, 0x50
mov rax, r8
cmp r8, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, rax
cmp word [r9], 0
je 0x1400512ee
movups xmm0, xmmword [r9 + 4]
mov eax, dword [r9 + 0x14]
mov r11d, dword [r9 + 0x18]
movzx r10d, word [r9 + 0x1c]
mov r9d, 0x1c
mov si, 0x17
jmp 0x140051304
mov eax, dword [r9 + 2]
movzx r10d, word [r9 + 6]
mov r9d, 0x10
mov si, 2
xorps xmm0, xmm0
rol r10w, 8
mov word [rsp + 0x34], si
mov word [rsp + 0x36], r10w
mov dword [rsp + 0x38], eax
movups xmmword [rsp + 0x3c], xmm0
mov dword [rsp + 0x4c], r11d
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r9d, r9d
call sub.WS2_32.dll_sendto
cmp eax, 0xffffffff
je 0x14005134c
movsxd rdx, eax
xor eax, eax
add rsp, 0x50
pop rsi
ret
call sub.WS2_32.dll_WSAGetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x50
pop rsi
ret
Function at 0x140051370
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x48
mov rax, r8
test rdx, rdx
je 0x140051381
add rsp, 0x48
ret
cmp word [rax], 0
je 0x1400513a3
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 0x1400513b8
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 0x1400513ee
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 0x140055ca0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x38], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 7
mov qword [rsp + 0x54], 0
mov word [rsp + 0x5c], 0
mov byte [rsp + 0x58], 1
lea r8, [rsp + 0x38]
mov rcx, rdx
mov rdx, rax
call sym.std::sys::pal::windows::fs::File::open::h60b9ea54d13c2b6b
mov rdi, rdx
test rax, rax
je 0x140055d30
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x88], rdi
call sym.core::ptr::drop_in_place_std::io::error::Error_::ha5de4730a10cc339
mov qword [rsi], 0
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsp + 0x38]
mov rdx, rdi
call sym.std::sys::pal::windows::fs::File::file_attr::h3407b2e4a5c085d9
cmp dword [rsp + 0x38], 2
jne 0x140055d5f
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x80], 2
jmp 0x140055dab
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmm2, xmmword [rsp + 0x58]
movups xmm3, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xc0], rax
movaps xmmword [rsp + 0xb0], xmm3
movaps xmmword [rsp + 0xa0], xmm2
movaps xmmword [rsp + 0x90], xmm1
cmp qword [rsp + 0x80], 2
jne 0x140055dd7
lea rcx, [rsp + 0x88]
call sym.core::ptr::drop_in_place_std::io::error::Error_::ha5de4730a10cc339
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.KERNEL32.dll_CloseHandle
mov r12, qword [rsp + 0xb8]
test rdi, rdi
je 0x140055e35
mov qword [rsp + 0x80], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x140055eb1
mov rbx, qword [rsp + 0x80]
jmp 0x140055e37
xor ebx, ebx
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 0x140055ea0
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 sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x140055ea0
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x140055edd
mov qword [rsi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x140055edd
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x38], 1
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call sym.core::ptr::drop_in_place_std::io::error::Error_::ha5de4730a10cc339
mov qword [rsi], 0
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
jmp 0x140055d1f
Function at 0x140057e00
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 [0x14009a070]
test ecx, ecx
je 0x140057e30
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140057e49
cmp qword [rax + 8], 0
je 0x140057e49
add rax, 0x10
jmp 0x140057f14
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h7e09b80de39a6d21
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h07a33ae87c46ead8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140057e20
mov ecx, dword [0x14009a070]
test ecx, ecx
je 0x140057ef5
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140057f12
test rax, rax
jne 0x140057ebb
mov rax, qword [0x14129ac48]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140057f34
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h7e09b80de39a6d21
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x14009a070]
test ecx, ecx
je 0x140057f1b
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.140097654
mov rax, rdi
xor ecx, ecx
test rsi, rsi
je 0x140057edb
mov rdx, qword [rsi]
mov qword [rsi], 0
cmp rdx, 1
jne 0x140057edb
mov rdx, qword [rsi + 8]
mov ecx, dword [rsi + 0x10]
jmp 0x140057edd
xor edx, edx
mov qword [rax + 8], 1
lea r8, [rax + 0x10]
mov qword [rax + 0x10], rdx
mov byte [rax + 0x18], cl
mov rax, r8
jmp 0x140057f14
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h7e09b80de39a6d21
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h07a33ae87c46ead8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140057e68
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h7e09b80de39a6d21
mov rdi, rax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h07a33ae87c46ead8
mov ecx, eax
mov rax, rdi
jmp 0x140057ead
mov ecx, 8
mov edx, 0x20
call sym.alloc::alloc::handle_alloc_error::ha700c182da133e1c
int3