joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010d100
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call fcn.140165594
cmp eax, 0xffffffff
je 0x14010d136
cdqe
jmp 0x14010d144
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14010d14c
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14010d15d
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x14010d8f0
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x70
call sub.KERNEL32.dll_GetEnvironmentStringsW
test rax, rax
je 0x14010d908
mov rdx, rax
add rsp, 0x70
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x30], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::h92c8fb225a0334bf]
mov qword [rsp + 0x38], rax
lea rax, str.failure_getting_env_string_from_OS:
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
lea rdx, str.library_std_src_syswindowsos.rs
lea rcx, [rsp + 0x40]
call sym.core::panicking::panic_fmt::hd016798b7a4db8ba
ud2
Function at 0x14010de10
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor ebx, ebx
mov r14d, 0xffffffff
xor esi, esi
xor r15d, r15d
cmp r8, 0x201
jae 0x14010de90
jmp 0x14010de7f
jae 0x14010df34
cmp r8, 0x201
jae 0x14010de90
mov r12d, 0x200
lea r13, [rsp + 0x68]
mov rbp, r8
jmp 0x14010ded7
sub r8, r15
sub rsi, r15
cmp rsi, r8
jae 0x14010deb7
lea rcx, [rsp + 0x30]
mov rdx, r15
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::ha90210d6e50acf13
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rbx, qword [rsp + 0x38]
cmp rbx, r14
mov r15d, 0xffffffff
cmovb r15, rbx
mov qword [rsp + 0x40], r15
mov rsi, rbx
mov r12, r15
mov r13, qword [rsp + 0x20]
mov rbp, r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, ebp
mov rdx, r13
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov edi, eax
test eax, eax
jne 0x14010defb
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14010df92
mov r8d, edi
cmp rbp, r8
jne 0x14010de70
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14010dfb2
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x14010de7f
jmp 0x14010de90
cmp r12, r8
jb 0x14010dfcc
lea rcx, [rsp + 0x48]
mov rdx, r13
call sym.std::sys_common::wtf8::Wtf8Buf::from_wide::hf911d984dc21f658
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
mov rsi, qword [rsp + 0x28]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x14010df7b
add rbx, rbx
mov r8d, 2
mov rcx, qword [rsp + 0x20]
mov rdx, rbx
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rsi, qword [rsp + 0x28]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rbx, rbx
jne 0x14010df65
jmp 0x14010df7b
lea rcx, str.internal_error:_entered_unreachable_codeassertion_failed:_socket___sys::c::INVALID_SOCKET_as_RawSocketlibrary_std_srcoswindowsio_socket.rs
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call sym.core::panicking::panic::h297b186b0eb73132
jmp 0x14010dfe1
lea rax, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r12
mov r8, rax
call sym.core::slice::index::slice_end_index_len_fail::hdc10f6a9df671f4a
ud2
Function at 0x14010e020
Capabilities:
Set current directory

Disassembly:
push rsi
sub rsp, 0x50
add rdx, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdx
mov word [rsp + 0x48], 0
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x38]
call sym._ZN98__LT_alloc..vec..Vec_LT_T_GT__u20_as_u20_alloc..vec..spec_from_iter..SpecFromIter_LT_T_C_I_GT__GT_9from_iter17hafc6e9faea
mov rdx, qword [rsp + 0x30]
cmp rdx, qword [rsp + 0x28]
jne 0x14010e063
lea rcx, [rsp + 0x20]
call sym.alloc::raw_vec::RawVec_T_A_::reserve_for_push::hb8415605f7c2b515
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x20]
mov word [rax + rdx*2], 0
inc qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_SetCurrentDirectoryW
test eax, eax
je 0x14010e0a9
xor esi, esi
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x14010e0a0
mov rcx, qword [rsp + 0x20]
add rdx, rdx
mov r8d, 2
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x50
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rdx, qword [rsp + 0x28]
test rdx, rdx
jne 0x14010e08d
jmp 0x14010e0a0
Function at 0x14010e400
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rbx, r9
mov r14, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call sym._ZN3std3sys7windows7to_u16s5inner17h2c0eb6cb6cd7c0ceE.llvm.7997682821320084952
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
test rdi, rdi
je 0x14010e467
lea rcx, [rsp + 0x28]
mov rdx, r14
mov r8, rbx
call sym._ZN3std3sys7windows7to_u16s5inner17h2c0eb6cb6cd7c0ceE.llvm.7997682821320084952
mov r15, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
test r15, r15
je 0x14010e46c
mov rcx, rdi
mov rdx, r15
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
je 0x14010e471
xor ebx, ebx
test r14, r14
jne 0x14010e485
jmp 0x14010e499
mov rbx, rsi
jmp 0x14010e4b2
mov rbx, r14
jmp 0x14010e499
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test r14, r14
je 0x14010e499
add r14, r14
mov r8d, 2
mov rcx, r15
mov rdx, r14
call sym.__rust_dealloc
test rsi, rsi
je 0x14010e4b2
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
mov rax, rbx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14010e4f0
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call sym._ZN3std3sys7windows7to_u16s5inner17h2c0eb6cb6cd7c0ceE.llvm.7997682821320084952
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
test rbx, rbx
je 0x14010e52d
xor esi, esi
mov rcx, rbx
xor edx, edx
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
je 0x14010e532
test rdi, rdi
jne 0x14010e546
jmp 0x14010e55a
mov rsi, rdi
jmp 0x14010e55a
call sub.KERNEL32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
test rdi, rdi
je 0x14010e55a
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x140110cd0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x458
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov edi, 0x200
mov eax, 2
mov qword [rsp + 0x30], rax
xor eax, eax
mov qword [rsp + 0x28], rax
mov ebx, 0xffffffff
xor esi, esi
xor r15d, r15d
cmp rdi, 0x201
jae 0x140110d50
jmp 0x140110d3f
jae 0x140110e09
cmp rdi, 0x201
jae 0x140110d50
mov ebp, 0x200
lea r13, [rsp + 0x58]
mov r12, rdi
jmp 0x140110da4
sub rdi, r15
sub rsi, r15
cmp rsi, rdi
mov rsi, qword [rsp + 0x28]
jae 0x140110d7f
lea rcx, [rsp + 0x40]
mov rdx, r15
mov r8, rdi
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::ha90210d6e50acf13
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0x48]
cmp rsi, rbx
mov r15d, 0xffffffff
cmovb r15, rsi
mov qword [rsp + 0x50], r15
mov rax, rsi
mov qword [rsp + 0x28], rsi
mov rbp, r15
mov r13, qword [rsp + 0x30]
mov r12, r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, r13
mov edx, r12d
call sub.KERNEL32.dll_GetSystemDirectoryW
mov r14d, eax
test eax, eax
jne 0x140110dc6
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140110e40
mov edi, r14d
cmp r12, rdi
jne 0x140110d30
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140110ec4
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
mov ebx, 0xffffffff
cmovae r12, rax
mov rdi, r12
cmp rdi, 0x201
jb 0x140110d3f
jmp 0x140110d50
cmp rbp, rdi
jb 0x140110ede
test r14d, r14d
je 0x140110e69
lea r14, [rdi + rdi]
mov rax, qword [0x1401a3298]
movzx eax, byte [rax]
mov edx, 2
mov rcx, r14
call sym.__rust_alloc
test rax, rax
je 0x140110ef2
mov r15, rax
jmp 0x140110e72
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rsi, qword [rsp + 0x38]
mov qword [rsi + 8], rax
mov qword [rsi], 0
mov rdx, qword [rsp + 0x28]
test rdx, rdx
jne 0x140110e9a
jmp 0x140110ead
mov r15d, 2
xor r14d, r14d
mov rcx, r15
mov rdx, r13
mov r8, r14
call sym.memcpy
mov rsi, qword [rsp + 0x38]
mov qword [rsi], r15
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rdi
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x140110ead
add rdx, rdx
mov r8d, 2
mov rcx, qword [rsp + 0x30]
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x458
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.internal_error:_entered_unreachable_codeassertion_failed:_socket___sys::c::INVALID_SOCKET_as_RawSocketlibrary_std_srcoswindowsio_socket.rs
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call sym.core::panicking::panic::h297b186b0eb73132
jmp 0x140110eff
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, rdi
mov rdx, rbp
call sym.core::slice::index::slice_end_index_len_fail::hdc10f6a9df671f4a
jmp 0x140110eff
mov ecx, 2
mov rdx, r14
call sym.alloc::alloc::handle_alloc_error::h8e8b408db101c68d
ud2
Function at 0x1401127b0
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rax, r8
mov rsi, rcx
mov r10, qword [rsp + 0x60]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdx]
mov qword [rsp + 0x20], r10
lea r9, [rsp + 0x2c]
mov rdx, rax
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x1401127ff
mov eax, dword [rsp + 0x2c]
mov qword [rsi], 1
mov qword [rsi + 8], rax
jmp 0x140112856
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
lea rcx, [rax + 2]
movabs rdx, 0x6d00000000
cmp rax, rdx
je 0x14011282f
movabs rdx, 0x3e500000000
cmp rax, rdx
jne 0x14011284b
mov rax, rsi
jmp 0x14011283d
mov qword [rsi], 1
mov rax, rsi
add rax, 8
mov qword [rax], 0
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h5e3c89d72f40d3dcE.llvm.3884465614687036520
jmp 0x140112856
mov qword [rsi + 8], rcx
mov qword [rsi], 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x140112ae0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14018d240]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140112b24
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call fcn.14016554c
cmp eax, 0x103
jne 0x140112b81
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140112b90
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140112bc7
cmp eax, 0x103
je 0x140112bd1
test eax, eax
js 0x140112bad
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140112bc7
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call sym.std::io::Write::write_fmt::h2ce7f44c2c81dc14
mov rcx, rax
call sym._ZN4core3ptr81drop_in_place_LT_core..result..Result_LT__LP__RP__C_std..io..error..Error_GT__GT_17h88f7fe0d5ac9b47eE.llvm.38844
mov ecx, 7
int 0x29
ud2
Function at 0x140112c30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14018d240]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140112c74
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call fcn.140165544
cmp eax, 0x103
jne 0x140112cd8
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140112d0e
test eax, eax
js 0x140112ce9
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140112d01
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call sym.std::io::Write::write_fmt::h2ce7f44c2c81dc14
mov rcx, rax
call sym._ZN4core3ptr81drop_in_place_LT_core..result..Result_LT__LP__RP__C_std..io..error..Error_GT__GT_17h88f7fe0d5ac9b47eE.llvm.38844
mov ecx, 7
int 0x29
ud2

Function at 0x140113510
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x140113547
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call sym._ZN3std3sys7windows4rand12fallback_rng17h44b42e5ca75f0d21E.llvm.3884465614687036520
nop
add rsp, 0x38
ret

Function at 0x140113560
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 0x140113596
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
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::h92c8fb225a0334bf]
mov qword [rsp + 0x48], rax
lea rax, [0x14018d2d8]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call sym.core::panicking::panic_fmt::hd016798b7a4db8ba
ud2
Function at 0x140114220
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x34], r9d
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14011424a
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x140114260
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
movzx eax, word [rsp + 0x60]
mov word [rsp + 0x34], r9w
mov word [rsp + 0x36], ax
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140114295
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x140114620
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x200
mov rsi, rcx
mov rbx, qword [rdx]
mov rdi, qword [rdx + 8]
movzx ebp, word [rdx + 0x10]
mov word [rsp + 0x2e], bp
mov rax, qword [0x1401cc110]
cmp rax, 3
jne 0x14011471e
cmp rdi, 0x17f
ja 0x140114737
lea r14, [rsp + 0x80]
mov rcx, r14
mov rdx, rbx
mov r8, rdi
call sym.memcpy
mov byte [rsp + rdi + 0x80], 0
inc rdi
lea rcx, [rsp + 0x38]
mov rdx, r14
mov r8, rdi
call sym.core::ffi::c_str::CStr::from_bytes_with_nul::h2cac3b047b49d465
cmp qword [rsp + 0x38], 0
je 0x1401146ae
lea rax, [0x14018d1d0]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14011474a
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 + 0x30], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x30]
xor edx, edx
call fcn.1401655c4
test eax, eax
je 0x140114706
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 0x14011474a
mov rax, qword [rsp + 0x30]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
jmp 0x14011474a
lea rcx, [0x1401cc110]
call sym.std::sync::once_lock::OnceLock_T_::initialize::h0538811062f0f84b
cmp rdi, 0x17f
jbe 0x14011465e
lea r9, [rsp + 0x2e]
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call sym.std::sys::common::small_c_string::run_with_cstr_allocating::hfc9c6c0dd6b4519f
mov rax, rsi
add rsp, 0x200
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140114760
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x140114782
mov qword [rsi + 8], rbx
mov qword [rsi], 1
jmp 0x140114854
mov rax, qword [0x1401cc110]
cmp rax, 3
jne 0x14011485f
lea rcx, [rsp + 0x20]
mov rdx, rbx
mov r8d, 1
call sym.std::sys::windows::net::Socket::new::h041ce1978a12fcdf
cmp qword [rsp + 0x20], 0
mov rdi, qword [rsp + 0x28]
je 0x1401147c3
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp 0x140114854
cmp word [rbx], 0
je 0x1401147e4
movups xmm0, xmmword [rbx + 4]
mov eax, dword [rbx + 0x14]
mov edx, dword [rbx + 0x18]
movzx ecx, word [rbx + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x1401147f9
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
mov r8d, 0x10
mov r9w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x20], r9w
mov word [rsp + 0x22], cx
mov dword [rsp + 0x24], eax
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x140114834
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x140114854
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 sub.WS2_32.dll_closesocket
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1401cc110]
call sym.std::sync::once_lock::OnceLock_T_::initialize::h0538811062f0f84b
jmp 0x140114793

Function at 0x140114940
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14011499e
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14011499e
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14011499e
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14011499e
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x1401149e1
mov dword [rsp + 0x34], r9d
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1006
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1401149cf
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, [0x14018c350]
add rsp, 0x38
ret

Function at 0x1401149f0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x140114a4e
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x140114a4e
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x140114a4e
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x140114a4e
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x140114a91
mov dword [rsp + 0x34], r9d
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1005
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140114a7f
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, [0x14018c350]
add rsp, 0x38
ret
Function at 0x140114be0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
mov r9d, 2
call fcn.140165594
cmp eax, 0xffffffff
je 0x140114c16
cdqe
jmp 0x140114c24
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x140114c2c
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140114c3d
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call fcn.140165594
cmp eax, 0xffffffff
je 0x140114c83
cdqe
jmp 0x140114c91
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x140114c99
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140114caa
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rdx, qword [rdx + 8]
mov rsi, qword [rdi + 0x10]
mov rax, rdx
sub rax, rsi
jb 0x140114d3a
mov rcx, qword [rcx]
cmp rax, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, rax
mov rdx, qword [rdi]
add rdx, rsi
xor r9d, r9d
call fcn.140165594
cmp eax, 0xffffffff
je 0x140114d1b
cdqe
add rsi, rax
mov qword [rdi + 0x10], rsi
mov rax, qword [rdi + 0x18]
cmp rax, rsi
cmova rsi, rax
mov qword [rdi + 0x18], rsi
xor eax, eax
jmp 0x140114d33
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x140114d2b
xor eax, eax
jmp 0x140114d33
shl rax, 0x20
or rax, 2
add rsp, 0x28
pop rdi
pop rsi
ret
lea r8, [0x14018bed0]
mov rcx, rsi
call sym.core::slice::index::slice_start_index_len_fail::h36930cbd7fa4975d
ud2

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

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov rsi, rcx
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0
mov rcx, qword [rdx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea rdx, [rsp + 0x3c]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x38]
mov rdx, rax
call sub.WS2_32.dll_WSARecv
test eax, eax
je 0x140114db2
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x140114dc3
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140114dd6
mov eax, dword [rsp + 0x38]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140114dd6
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x40
pop rsi
ret