joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f4b90
Capabilities:
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rbp - 4], eax
mov dword [rsp + 0x20], 4
lea r9, [rbp - 4]
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400f4bc8
xor eax, eax
jmp 0x1400f4bd5
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbp
ret

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

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, qword [rcx]
mov rcx, qword [rax]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
je 0x1400f4c14
movsxd rdx, eax
xor ecx, ecx
jmp 0x1400f4c37
call sub.ws2_32.dll_WSAGetLastError
xor edx, edx
mov ecx, 0
cmp eax, 0x274a
je 0x1400f4c37
shl rax, 0x20
or rax, 2
mov ecx, 1
mov rdx, rax
mov rax, rcx
add rsp, 0x20
pop rbp
ret

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

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, qword [rcx]
mov rcx, qword [rax]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
je 0x1400f4c74
movsxd rdx, eax
xor eax, eax
jmp case.0x1400ea131.273
call sub.ws2_32.dll_WSAGetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x20
pop rbp
ret

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

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

Function at 0x1400f8020
Capabilities:
Initialize winsock library

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x1f0
lea rbp, [rsp + 0x80]
mov rax, qword [rcx]
mov rdi, qword [rax]
mov qword [rax], 0
test rdi, rdi
je 0x1400f8083
lea rsi, [rbp - 0x60]
mov r8d, 0x198
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov cx, 0x202
mov rdx, rsi
call sub.ws2_32.dll_WSAStartup
mov dword [rbp + 0x16c], eax
test eax, eax
jne 0x1400f808f
lea rax, [0x1401298b4]
mov qword [rdi], rax
add rsp, 0x1f0
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.library_std_src_synconce.rs
call sym.core::option::unwrap_failed::h9762a13207486022
mov qword [rbp + 0x138], 0
lea rdx, [0x14019e498]
lea r9, str.library_std_src_syspalwindows_net.rs
lea rcx, [rbp + 0x16c]
lea r8, [rbp + 0x138]
call sym.core::panicking::assert_failed::h6e198971118ba248
int3
Function at 0x1400f88a0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov rbx, r9
mov rsi, rcx
lea rcx, [rbp - 0x28]
call sym.__str_as_alloc::ffi::c_str::CString::new::SpecNewImpl_::spec_new_impl::h7b19936b9aa543f3
mov rax, qword [rbp - 0x28]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x1400f8927
mov rdi, qword [rbp - 0x20]
mov r14, qword [rbp - 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x58], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x1400f895d
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1400f8971
lea rcx, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rcx
mov qword [rsi], 1
test rax, rax
je 0x1400f8991
mov r8, qword [rbp - 0x20]
mov rcx, qword [0x1401ec128]
xor edx, edx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.140129b24
mov rcx, qword [rbx]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test r14, r14
je 0x1400f8991
mov rcx, qword [0x1401ec128]
xor edx, edx
mov r8, rdi
call fcn.140129b24
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret

Function at 0x1400fd0f0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14019e3f8]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x1400fd158
mov rcx, rsi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x1400fd165
xor edx, edx
xor eax, eax
jmp 0x1400fd18e
cmp eax, 0x103
je 0x1400fd198
test eax, eax
js 0x1400fd178
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1400fd18e
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x14019e460]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call sym._ZN3std2io5Write9write_fmt17hee8ce487ac8d947dE.llvm.16992393060595779045
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call sym._ZN4core3ptr81drop_in_place_LT_core..result..Result_LT__LP__RP__C_std..io..error..Error_GT__GT_17h661b318c1148fbcaE.llvm.16992
mov ecx, 7
int 0x29
ud2
Function at 0x1400fd1f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14019e3f8]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x1400fd228
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x1400fd284
mov rcx, rsi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rbp]
cmp eax, 0x103
je 0x1400fd2b0
test eax, eax
js 0x1400fd290
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1400fd2a6
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x14019e460]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call sym._ZN3std2io5Write9write_fmt17hee8ce487ac8d947dE.llvm.16992393060595779045
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call sym._ZN4core3ptr81drop_in_place_LT_core..result..Result_LT__LP__RP__C_std..io..error..Error_GT__GT_17h661b318c1148fbcaE.llvm.16992
mov ecx, 7
int 0x29
ud2

Function at 0x1400fd300
Capabilities:
Create udp socket

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov edi, edx
cmp word [rcx], 0
mov eax, 2
mov r14d, 0x17
cmove r14d, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor ebx, ebx
mov ecx, r14d
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400fd3da
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x1400fd366
mov esi, eax
cmp eax, 0x2726
jne 0x1400fd3cd
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, r14d
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x1400fd3c6
mov rsi, rax
xor ebx, ebx
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
jne 0x1400fd3da
call sub.kernel32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call fcn.1401298ec
mov ebx, 1
mov rsi, rdi
jmp 0x1400fd3da
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov ebx, 1
mov rax, rbx
mov rdx, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x1400fe6a0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1400fe806
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x1400fe6dd
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1400fe7f0
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x1400fe7d3
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rbp + 4], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rbp + 4]
mov r8d, eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x1400fe73b
mov eax, dword [rbp + 4]
mov ecx, 2
test rax, rax
je 0x1400fe77d
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x1400fe781
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x40], rax
movabs rcx, 0xffffffff00000000
and rcx, rax
movabs rdx, 0x6d00000000
cmp rcx, rdx
je 0x1400fe785
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x1400fe7af
lea rax, [rbp - 8]
jmp 0x1400fe791
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1400fe7b5
mov qword [rbp - 8], 1
lea rax, [rbp - 0x10]
mov qword [rax], 0
lea rcx, [rbp - 0x40]
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h1101bbc27c16f6e8E.llvm.16992393060595779045
mov rcx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
cmp rcx, 2
jne 0x1400fe7c0
mov qword [rsi + 8], rax
mov al, 1
mov byte [rsi], al
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop rbp
ret
test rcx, rcx
jne 0x1400fe724
mov ecx, 1
jmp 0x1400fe72e
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::hdee5353af6aa9e75
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x1400fe6ea
mov r8d, 0x10
mov rcx, rbx
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::hdee5353af6aa9e75
mov rax, qword [rbx]
jmp 0x1400fe6dd
mov qword [rbp - 0x40], 0
lea rdx, [rbp - 0x40]
mov rcx, rdi
call sym.core::panicking::assert_failed::hae71d55743d4ba48
int3
Function at 0x140101fb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rbp - 0x28]
call sym._ZN3std3sys3pal7windows7to_u16s5inner17h89be131796146338E.llvm.16992393060595779045
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
cmp rcx, rbx
jne 0x140101fee
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], rbx
jmp 0x140102014
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rdx
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x40]
call sym.std::sys::pal::windows::args::from_wide_to_user_path::hddbd847bbbb7fc48
mov r14, qword [rbp - 0x10]
cmp r14, rbx
jne 0x14010202d
lea rcx, [rbp - 8]
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h1101bbc27c16f6e8E.llvm.16992393060595779045
mov qword [rsi], rbx
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rdi, qword [rbp - 8]
mov r15, qword [rbp]
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x14010204f
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x140102020
mov qword [rsi], rbx
test r14, r14
je 0x140102020
mov rcx, qword [0x1401ec128]
xor edx, edx
mov r8, rdi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
jmp fcn.140129b24
Function at 0x140103560
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x1401c96c8]
movzx eax, byte [rax]
mov r8d, 0x10
xor edx, edx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h54baaa069cfd9f2e
test rax, rax
je 0x140103624
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._ZN3std3sys3pal7windows6thread6Thread3new12thread_start17h41f4962570e673caE.llvm.16992393060595779045]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x140103616
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x1401035f1
mov r8, qword [r14 + 0x10]
mov rcx, rbx
call sym.__rdl_dealloc
mov rcx, qword [0x1401ec128]
xor edx, edx
mov r8, rsi
call fcn.140129b24
call sub.kernel32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::hd693885652fa1428
ud2
Function at 0x140103850
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov rsi, rcx
cmp qword [rcx], 0
je 0x1401038e0
mov rax, qword [sym.std::sys::pal::windows::thread_local_key::on_tls_callback::h7de7f354ec791acb]
mov dword [rbp], 0
lea rdi, [rsi + 0x10]
mov r8, rbp
mov rcx, rdi
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rbp + 4], eax
cmp eax, 1
jne 0x14010391f
cmp dword [rbp], 0
je 0x140103903
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140103942
mov ebx, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1401ec150]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1401ec150], rsi
jne 0x1401038c0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
mov eax, ebx
jmp 0x140103916
call sub.kernel32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x140103984
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140103908
mov eax, dword [rbp + 4]
jmp 0x140103916
mov eax, dword [rsi + 0x18]
jmp 0x140103914
mov ecx, dword [rbp + 4]
mov esi, eax
call sub.kernel32.dll_TlsFree
mov eax, esi
dec eax
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x30], 0
lea rdx, [0x14019e6b0]
lea r9, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rbp + 4]
lea r8, [rbp - 0x30]
call sym.core::panicking::assert_failed::h6e198971118ba248
mov rcx, rdi
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
mov qword [rbp - 0x20], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
lea rdx, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rbp - 0x30]
call sym.core::panicking::panic_fmt::hef8d393888d5abbc
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
mov qword [rbp - 0x20], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
lea rcx, [rbp + 4]
lea rdx, [rbp - 0x30]
call sym.core::panicking::assert_failed::h2e32f8735df046c0
int3
Function at 0x1401039c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
cmp edx, 3
je 0x1401039de
test edx, edx
jne 0x140103b5f
mov rbx, qword [0x1401ec150]
test rbx, rbx
je 0x140103b5f
xor r14d, r14d
jmp 0x140103a09
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140103a3d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x140103bab
dec esi
mov ecx, esi
call fcn.140129bfc
test rax, rax
je 0x140103a00
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140129c04
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140103a00
test r14b, 1
je 0x140103b5f
mov rbx, qword [0x1401ec150]
test rbx, rbx
je 0x140103b5f
xor r14d, r14d
jmp 0x140103a69
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140103a9d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x140103bab
dec esi
mov ecx, esi
call fcn.140129bfc
test rax, rax
je 0x140103a60
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140129c04
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140103a60
test r14b, 1
je 0x140103b5f
mov rbx, qword [0x1401ec150]
test rbx, rbx
je 0x140103b5f
xor r14d, r14d
jmp 0x140103ac9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140103afd
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x140103bab
dec esi
mov ecx, esi
call fcn.140129bfc
test rax, rax
je 0x140103ac0
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140129c04
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140103ac0
test r14b, 1
je 0x140103b5f
mov rbx, qword [0x1401ec150]
test rbx, rbx
je 0x140103b5f
xor r14d, r14d
jmp 0x140103b29
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140103b59
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x140103bab
dec esi
mov ecx, esi
call fcn.140129bfc
test rax, rax
je 0x140103b20
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140129c04
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140103b20
test r14b, 1
jne 0x140103b6c
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rbx, qword [0x1401ec150]
jmp 0x140103b79
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140103b5f
mov esi, dword [rbx + 0x18]
mov r14, qword [rbx]
test r14, r14
je 0x140103bab
dec esi
mov ecx, esi
call fcn.140129bfc
test rax, rax
je 0x140103b75
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140129c04
mov rcx, rdi
call r14
jmp 0x140103b75
lea rcx, str.library_std_src_syspalwindows_thread_local_key.rs
call sym.core::option::unwrap_failed::h9762a13207486022
ud2
Function at 0x140106520
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x14010653d
dec ecx
jmp 0x140106547
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
mov edx, 1
call fcn.140129c04
mov rcx, qword [0x1401ec128]
xor edx, edx
mov r8, rdi
call fcn.140129b24
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x14010656d
dec ecx
jmp 0x140106577
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
xor edx, edx
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp fcn.140129c04

Function at 0x1401065b0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov qword [rbp - 8], rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1401065ce
dec ecx
jmp 0x1401065d8
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
mov edx, 1
call fcn.140129c04
mov r8, qword [rbp - 8]
cmp qword [r8 + 8], 0
je 0x14010660b
mov rax, qword [r8 + 0x10]
test rax, rax
je 0x14010660b
lock dec qword [rax]
jne 0x14010660b
lea rcx, [r8 + 0x10]
mov rdi, r8
call sym._ZN5alloc4sync16Arc_LT_T_C_A_GT_9drop_slow17hf2862ae8173c2487E.llvm.16992393060595779045
mov r8, rdi
mov rcx, qword [0x1401ec128]
xor edx, edx
call fcn.140129b24
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140106624
dec ecx
jmp 0x14010662e
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
xor edx, edx
add rsp, 0x30
pop rdi
pop rsi
pop rbp
jmp fcn.140129c04

Function at 0x140106660
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov qword [rbp - 8], rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x14010667e
dec ecx
jmp 0x140106688
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
mov edx, 1
call fcn.140129c04
mov r8, qword [rbp - 8]
cmp qword [r8 + 8], 0
je 0x1401066bb
mov rax, qword [r8 + 0x10]
test rax, rax
je 0x1401066bb
lock dec qword [rax]
jne 0x1401066bb
lea rcx, [r8 + 0x10]
mov rdi, r8
call sym._ZN5alloc4sync16Arc_LT_T_C_A_GT_9drop_slow17h5b4d1ff3152dafd5E.llvm.16992393060595779045
mov r8, rdi
mov rcx, qword [0x1401ec128]
xor edx, edx
call fcn.140129b24
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1401066d4
dec ecx
jmp 0x1401066de
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
xor edx, edx
add rsp, 0x30
pop rdi
pop rsi
pop rbp
jmp fcn.140129c04
Function at 0x140106890
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x208
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x186], ax
mov rax, qword [0x1401ec130]
cmp rax, 3
jne 0x1401069c0
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
ja 0x1401069d0
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call sym.memcpy
mov byte [rbp + rdi - 0x60], 0
inc rdi
lea rcx, [rbp + 0x158]
mov rdx, rbx
mov r8, rdi
call sym.core::ffi::c_str::CStr::from_bytes_with_nul::h994f8e8419622d56
cmp qword [rbp + 0x158], 0
je 0x140106931
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1401069b1
mov rcx, qword [rbp + 0x160]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x120], xmm0
movaps xmmword [rbp + 0x140], xmm0
movaps xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0x128], 1
mov qword [rbp + 0x178], 0
lea r8, [rbp + 0x120]
lea r9, [rbp + 0x178]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x140106992
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1401069aa
mov rax, qword [rbp + 0x178]
movzx ecx, word [rbp + 0x186]
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, 0x208
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rbx, rdx
call sym._ZN3std4sync9once_lock17OnceLock_LT_T_GT_10initialize17hfdabfdb958aa94c1E.llvm.16992393060595779045
mov rdx, rbx
jmp 0x1401068cc
lea r9, [rbp + 0x170]
mov rcx, rsi
mov r8, rdi
call sym.std::sys::pal::common::small_c_string::run_with_cstr_allocating::h09843c947f45b630
jmp 0x1401069b1
Function at 0x140106b20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x60], xmm0
mov dword [rbp + 0x34], pe_nt_image_headers64
lea rdx, [rbp - 0x60]
lea r8, [rbp + 0x34]
mov rcx, rax
call sub.ws2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x140106bc9
mov eax, dword [rbp + 0x34]
movzx ecx, word [rbp - 0x60]
cmp ecx, 2
je 0x140106bd8
cmp ecx, 0x17
jne 0x140106bf6
cmp eax, 0x1b
jbe 0x140106c10
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov edx, dword [rbp - 0x48]
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [rbp + 0x24], xmm0
mov word [rsi], 1
movups xmm0, xmmword [rbp + 0x22]
movups xmmword [rsi + 2], xmm0
movzx r8d, word [rbp + 0x32]
mov word [rsi + 0x12], r8w
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
jmp 0x140106c06
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x140106bfd
cmp eax, 0xf
jbe 0x140106c28
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
jmp 0x140106c06
lea rax, str.invalid_argumenth
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb8
pop rsi
pop rbp
ret
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in6___
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len___mem::size_of::_c::sockaddr_in___
mov edx, 0x3a
call sym.core::panicking::panic::hf6fd3ad2f9225230
lea rcx, [0x14019f1b9]
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len___mem::size_of::_c::sockaddr_in___
mov edx, 0x39
call sym.core::panicking::panic::hf6fd3ad2f9225230
int3