joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f82c0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x1401967f8]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x1400f82f8
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 0x1400f8354
mov rcx, rsi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rbp]
cmp eax, 0x103
je 0x1400f8380
test eax, eax
js 0x1400f8360
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1400f8376
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, [0x140196860]
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 0x1400f83d0
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 0x1400f84aa
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x1400f8436
mov esi, eax
cmp eax, 0x2726
jne 0x1400f849d
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 0x1400f8496
mov rsi, rax
xor ebx, ebx
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
jne 0x1400f84aa
call sub.kernel32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call fcn.1401239bc
mov ebx, 1
mov rsi, rdi
jmp 0x1400f84aa
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 0x1400f9770
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 0x1400f98d6
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x1400f97ad
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1400f98c0
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x1400f98a3
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 0x1400f980b
mov eax, dword [rbp + 4]
mov ecx, 2
test rax, rax
je 0x1400f984d
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x1400f9851
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 0x1400f9855
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x1400f987f
lea rax, [rbp - 8]
jmp 0x1400f9861
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1400f9885
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 0x1400f9890
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 0x1400f97f4
mov ecx, 1
jmp 0x1400f97fe
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 0x1400f97ba
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 0x1400f97ad
mov qword [rbp - 0x40], 0
lea rdx, [rbp - 0x40]
mov rcx, rdi
call sym.core::panicking::assert_failed::hae71d55743d4ba48
int3
Function at 0x1400fd080
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 0x1400fd0be
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], rbx
jmp 0x1400fd0e4
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 0x1400fd0fd
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 0x1400fd11f
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x1400fd0f0
mov qword [rsi], rbx
test r14, r14
je 0x1400fd0f0
mov rcx, qword [0x1401e4128]
xor edx, edx
mov r8, rdi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
jmp fcn.140123bf4
Function at 0x1400fe630
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 [0x1401c1748]
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 0x1400fe6f4
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 0x1400fe6e6
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x1400fe6c1
mov r8, qword [r14 + 0x10]
mov rcx, rbx
call sym.__rdl_dealloc
mov rcx, qword [0x1401e4128]
xor edx, edx
mov r8, rsi
call fcn.140123bf4
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 0x1400fe920
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 0x1400fe9b0
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 0x1400fe9ef
cmp dword [rbp], 0
je 0x1400fe9d3
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400fea12
mov ebx, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1401e4150]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1401e4150], rsi
jne 0x1400fe990
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
mov eax, ebx
jmp 0x1400fe9e6
call sub.kernel32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x1400fea54
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x1400fe9d8
mov eax, dword [rbp + 4]
jmp 0x1400fe9e6
mov eax, dword [rsi + 0x18]
jmp 0x1400fe9e4
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, [0x140196ab0]
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 0x1400fea90
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 0x1400feaae
test edx, edx
jne 0x1400fec2f
mov rbx, qword [0x1401e4150]
test rbx, rbx
je 0x1400fec2f
xor r14d, r14d
jmp 0x1400fead9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1400feb0d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x1400fec7b
dec esi
mov ecx, esi
call fcn.140123ccc
test rax, rax
je 0x1400fead0
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140123cd4
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x1400fead0
test r14b, 1
je 0x1400fec2f
mov rbx, qword [0x1401e4150]
test rbx, rbx
je 0x1400fec2f
xor r14d, r14d
jmp 0x1400feb39
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1400feb6d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x1400fec7b
dec esi
mov ecx, esi
call fcn.140123ccc
test rax, rax
je 0x1400feb30
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140123cd4
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x1400feb30
test r14b, 1
je 0x1400fec2f
mov rbx, qword [0x1401e4150]
test rbx, rbx
je 0x1400fec2f
xor r14d, r14d
jmp 0x1400feb99
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1400febcd
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x1400fec7b
dec esi
mov ecx, esi
call fcn.140123ccc
test rax, rax
je 0x1400feb90
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140123cd4
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x1400feb90
test r14b, 1
je 0x1400fec2f
mov rbx, qword [0x1401e4150]
test rbx, rbx
je 0x1400fec2f
xor r14d, r14d
jmp 0x1400febf9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1400fec29
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x1400fec7b
dec esi
mov ecx, esi
call fcn.140123ccc
test rax, rax
je 0x1400febf0
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140123cd4
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x1400febf0
test r14b, 1
jne 0x1400fec3c
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rbx, qword [0x1401e4150]
jmp 0x1400fec49
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1400fec2f
mov esi, dword [rbx + 0x18]
mov r14, qword [rbx]
test r14, r14
je 0x1400fec7b
dec esi
mov ecx, esi
call fcn.140123ccc
test rax, rax
je 0x1400fec45
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140123cd4
mov rcx, rdi
call r14
jmp 0x1400fec45
lea rcx, str.library_std_src_syspalwindows_thread_local_key.rs
call sym.core::option::unwrap_failed::h9762a13207486022
ud2
Function at 0x1401015f0
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 0x14010160d
dec ecx
jmp 0x140101617
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
mov edx, 1
call fcn.140123cd4
mov rcx, qword [0x1401e4128]
xor edx, edx
mov r8, rdi
call fcn.140123bf4
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x14010163d
dec ecx
jmp 0x140101647
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.140123cd4

Function at 0x140101680
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 0x14010169e
dec ecx
jmp 0x1401016a8
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
mov edx, 1
call fcn.140123cd4
mov r8, qword [rbp - 8]
cmp qword [r8 + 8], 0
je 0x1401016db
mov rax, qword [r8 + 0x10]
test rax, rax
je 0x1401016db
lock dec qword [rax]
jne 0x1401016db
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 [0x1401e4128]
xor edx, edx
call fcn.140123bf4
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1401016f4
dec ecx
jmp 0x1401016fe
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.140123cd4

Function at 0x140101730
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 0x14010174e
dec ecx
jmp 0x140101758
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
mov edx, 1
call fcn.140123cd4
mov r8, qword [rbp - 8]
cmp qword [r8 + 8], 0
je 0x14010178b
mov rax, qword [r8 + 0x10]
test rax, rax
je 0x14010178b
lock dec qword [rax]
jne 0x14010178b
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 [0x1401e4128]
xor edx, edx
call fcn.140123bf4
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1401017a4
dec ecx
jmp 0x1401017ae
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.140123cd4
Function at 0x140101960
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 [0x1401e4130]
cmp rax, 3
jne 0x140101a90
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
ja 0x140101aa0
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 0x140101a01
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140101a81
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 0x140101a62
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x140101a7a
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 0x14010199c
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 0x140101a81
Function at 0x140101bf0
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 0x140101c99
mov eax, dword [rbp + 0x34]
movzx ecx, word [rbp - 0x60]
cmp ecx, 2
je 0x140101ca8
cmp ecx, 0x17
jne 0x140101cc6
cmp eax, 0x1b
jbe 0x140101ce0
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 0x140101cd6
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x140101ccd
cmp eax, 0xf
jbe 0x140101cf8
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 0x140101cd6
lea rax, str.invalid_argumenthv
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, [0x1401975b9]
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
Function at 0x1401060b0
Capabilities:
Read file via mapping

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe0
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x50], xmm6
mov rax, r8
mov rsi, rcx
mov dword [rbp - 0x40], 0
xorps xmm6, xmm6
movups xmmword [rbp - 0x38], xmm6
mov dword [rbp - 0x28], 7
mov qword [rbp - 0x24], 0
mov word [rbp - 0x1c], 0
mov byte [rbp - 0x20], 1
lea r8, [rbp - 0x40]
mov rcx, rdx
mov rdx, rax
call sym._ZN3std3sys3pal7windows2fs4File4open17h5f3455c4c015c021E.llvm.16992393060595779045
mov rdi, rdx
test rax, rax
je 0x14010612e
mov qword [rbp + 0x10], rax
lea rcx, [rbp + 0x18]
mov qword [rbp + 0x18], rdi
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h1101bbc27c16f6e8E.llvm.16992393060595779045
mov qword [rsi], 0
jmp 0x1401062ca
movaps xmmword [rbp + 0x30], xmm6
movaps xmmword [rbp + 0x20], xmm6
movaps xmmword [rbp + 0x10], xmm6
mov dword [rbp + 0x40], 0
lea rdx, [rbp + 0x10]
mov rcx, rdi
call sub.kernel32.dll_GetFileInformationByHandle
test eax, eax
je 0x1401061d0
test byte [rbp + 0x11], 4
je 0x14010617a
mov qword [rbp + 8], 0
lea r8, [rbp + 8]
mov rcx, rdi
mov edx, 9
mov r9d, 8
call sub.kernel32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x1401061d0
mov r12d, dword [rbp + 0x30]
mov r15d, dword [rbp + 0x34]
test rdi, rdi
je 0x140106216
mov qword [rbp + 0x10], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp + 0x10]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x140106299
mov rbx, qword [rbp + 0x10]
jmp 0x140106218
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 2
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h1101bbc27c16f6e8E.llvm.16992393060595779045
mov qword [rsi], 0
mov rcx, rdi
movaps xmm6, xmmword [rbp + 0x50]
add rsp, 0xe0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp fcn.140123aac
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 0x140106288
mov r14, rax
shl r12, 0x20
or r12, r15
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.140123aac
test r15, r15
je 0x140106288
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x1401062c2
mov qword [rsi], 0
mov rcx, rbx
call fcn.140123aac
jmp 0x1401062c2
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x40], 1
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x38], rax
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h1101bbc27c16f6e8E.llvm.16992393060595779045
mov qword [rsi], 0
mov rcx, rdi
call fcn.140123aac
movaps xmm6, xmmword [rbp + 0x50]
add rsp, 0xe0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
Function at 0x140108120
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x1401297b8]
test ecx, ecx
je 0x1401081e8
dec ecx
call fcn.140123ccc
cmp rax, 2
jb 0x140108156
cmp qword [rax + 8], 0
je 0x140108156
add rax, 0x10
jmp 0x1401081e1
mov ecx, dword [0x1401297b8]
test ecx, ecx
je 0x1401081fb
dec ecx
call fcn.140123ccc
cmp rax, 1
je 0x1401081df
test rax, rax
jne 0x1401081c2
mov rax, qword [0x1401c1748]
movzx eax, byte [rax]
mov r8d, 0x20
xor edx, edx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h54baaa069cfd9f2e
test rax, rax
je 0x140108224
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h5a628db256e6f7e2
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x1401297b8]
test ecx, ecx
je 0x14010820e
dec ecx
mov rdx, rax
mov rsi, rax
call fcn.140123cd4
mov rax, rsi
mov qword [rax + 8], 1
mov rcx, rax
add rax, 0x10
mov qword [rcx + 0x10], 0
mov byte [rcx + 0x18], 0
jmp 0x1401081e1
xor eax, eax
add rsp, 0x28
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h5a628db256e6f7e2
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
jmp 0x14010813b
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h5a628db256e6f7e2
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
jmp 0x140108166
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h5a628db256e6f7e2
mov rsi, rax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
mov rax, rsi
jmp 0x1401081b4
mov ecx, 8
mov edx, 0x20
call sym.alloc::alloc::handle_alloc_error::hd693885652fa1428
int3