joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c790
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 0
lea edi, [ebp - 0xc]
push 0
push 0
push 0
push edi
push ecx
push eax
push dword [edx]
call sub.WS2_32.dll_WSASend
cmp eax, 0xffffffff
je 0x45c7cc
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x45c7da
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebp
ret

Function at 0x45c7f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edi, dword [ebp + 0x18]
xor esi, esi
cmp edi, 0x3b9aca00
je 0x45c867
mov eax, dword [ebp + 0x14]
mov ebx, 0x3e8
mul ebx
mov esi, eax
mov eax, dword [ebp + 0x10]
seto cl
mul ebx
mov ebx, edx
mov dword [ebp - 0x10], eax
add ebx, esi
mov esi, 0xffffffff
setb al
or al, cl
jne 0x45c867
mov ecx, 0x431bde83
mov eax, edi
mul ecx
mov eax, dword [ebp - 0x10]
shr edx, 0x12
add eax, edx
adc ebx, 0
jb 0x45c867
mov dword [ebp - 0x10], eax
imul eax, edx, 0xf4240
xor ecx, ecx
sub edi, eax
mov eax, dword [ebp - 0x10]
setne cl
add eax, ecx
adc ebx, 0
jb 0x45c867
xor esi, esi
neg ebx
sbb esi, esi
or esi, eax
je 0x45c8ae
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], esi
lea edx, [ebp - 0x14]
mov ecx, dword [ecx]
push 4
push edx
push eax
push 0xffff
push ecx
call sub.WS2_32.dll_setsockopt
mov esi, dword [ebp + 8]
mov cl, 4
cmp eax, 0xffffffff
jne 0x45c8a2
call sub.WS2_32.dll_WSAGetLastError
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [ebp + 8]
mov byte [esi], 2
mov dword [esi + 4], 0x4c0544
jmp 0x45c8a4

Function at 0x45c9a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
movzx ecx, byte [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push ecx
push 0x8004667e
push dword [eax]
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x45c9cc
mov byte [esi], 4
jmp 0x45c9da
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 4
pop esi
pop ebp
ret

Function at 0x45c9f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push eax
xor ecx, ecx
xor edx, edx
cmp dword [ebp + 0x18], 0x3b9aca00
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
setne bl
je 0x45ca0f
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax]
mov dl, bl
mov word [ebp - 0xc], dx
mov word [ebp - 0xa], cx
lea ecx, [ebp - 0xc]
push 4
push ecx
push pe_nt_image_headers32
push 0xffff
push eax
call sub.WS2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x45ca4c
call sub.WS2_32.dll_WSAGetLastError
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
mov eax, esi
add esp, 4
pop esi
pop ebx
pop ebp
ret
Function at 0x45cae0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push 4
push ecx
push 1
push 6
push eax
call sub.WS2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x45cb1f
call sub.WS2_32.dll_WSAGetLastError
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
mov eax, esi
add esp, 4
pop esi
pop ebp
ret

Function at 0x45d750
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
add ecx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x20]
call dbg.from_iter<u16, std::sys_common::wtf8::EncodeWide>
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x14]
jne 0x45d78a
lea ecx, [ebp - 0x14]
call dbg.reserve_for_push<u16, alloc::alloc::Global>
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov word [edi + edx*2], 0
push edi
call sub.KERNEL32.dll_SetCurrentDirectoryW
test eax, eax
je 0x45d7c1
mov byte [esi], 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x45d7b8
add eax, eax
push 2
push eax
push edi
call sym.___rust_dealloc
add esp, 0xc
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x45d7aa
jmp 0x45d7b8
Function at 0x45eec0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 4]
mov ebx, dword [esi + 8]
mov eax, ecx
sub eax, ebx
jb 0x45ef72
mov ecx, dword [esi]
xorps xmm0, xmm0
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], edi
lea edi, [ebp - 0x30]
add ecx, ebx
push sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17ha10796af46e13059E_12
push edi
push eax
push ecx
push edx
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x45ef33
nop dword [eax]
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x45ef10
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x45ef53
mov ecx, edi
call dbg.decode_error_kind
cmp al, 0xb
jne 0x45ef45
jmp 0x45ef64
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov ecx, edi
call dbg.decode_error_kind
cmp al, 0xb
je 0x45ef64
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], edi
mov dword [eax], 0
jmp 0x45ef6a
add ebx, dword [ebp - 0x14]
mov dword [esi + 8], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
cmova ebx, eax
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 0x10]
mov byte [eax], 4
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4bcc88
push ecx
push ebx
call dbg.slice_start_index_len_fail
nop

Function at 0x45f5f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
cmp dword [edx], 0
mov edi, edx
jne 0x45f6c2
mov ebx, dword [edi + 0xc]
mov esi, ecx
mov edx, dword [ebx]
test edx, edx
jne 0x45f61c
mov eax, dword [ebx + 8]
xor edx, edx
lea ecx, [eax + 0xf]
cmp ecx, 0xf
jbe 0x45f691
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x45f6ac
mov ecx, dword [edi + 8]
sub edx, eax
add eax, dword [ebx + 4]
mov dword [ebp - 0x24], 0
lea ebx, [ebp - 0x24]
push ecx
push ebx
push edx
push eax
push dword [edi + 0x10]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x45f657
mov eax, dword [ebp - 0x24]
mov ecx, 2
test eax, eax
jne 0x45f674
jmp 0x45f668
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
je 0x45f66f
cmp eax, 0x6d
jne 0x45f686
mov word [esi], 4
jmp 0x45f67e
mov ecx, 1
mov dword [edi], ecx
mov dword [edi + 4], eax
mov word [esi], 0x104
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi], 0
mov dword [esi + 4], eax
jmp 0x45f67e
mov edx, eax
mov ecx, ebx
push 0x10
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h0c47efcc3265e9e9
add esp, 4
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
cmp edx, eax
jne 0x45f627
mov ecx, ebx
push 1
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h0c47efcc3265e9e9
add esp, 4
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
jmp 0x45f627
lea edx, [ebp - 0x24]
mov ecx, edi
mov dword [ebp - 0x24], 0
call dbg.assert_failed<std::sys::pal::windows::pipe::State, std::sys::pal::windows::pipe::State>
nop word cs:[eax + eax]
nop dword [eax]
Function at 0x463860
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
call sym.std::sys::pal::windows::to_u16s::inner::h1c3101dfdc85d063
add esp, 4
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
cmp edx, 0x80000000
jne 0x463899
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], 0x80000000
jmp 0x4638b8
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x30], eax
call dbg.from_wide_to_user_path
mov edi, dword [ebp - 0x18]
cmp edi, 0x80000000
jne 0x4638cb
lea ecx, [ebp - 0x18]
call dbg.drop_in_place<core::result::Result<alloc::vec::Vec<u16, alloc::alloc::Global>, std::io::error::Error>>
mov dword [esi], 0x80000000
add esp, 0x28
jmp 0x463907
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push ebx
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4638ef
mov eax, dword [ebp - 0x1c]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
add esp, 0x28
jmp 0x463907
test edi, edi
mov dword [esi], 0x80000000
je 0x4638ea
add edi, edi
push 2
push edi
push ebx
call sym.___rust_dealloc
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x464490
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov esi, ecx
xorps xmm0, xmm0
movaps xmmword [esp], xmm0
mov eax, esp
push 0x10
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x4644d5
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov dword [esi + 0xc], edi
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov byte [esp + 0x20], 0
mov dword [esp + 0x24], eax
lea edi, [esp + 0x20]
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 0x4c0964
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], sym.__LT_std..io..error..Error_u20_as_u20_core..fmt..Display_GT_::fmt::h12ee7560cc3570d1
mov dword [esp + 0x34], 1
lea eax, [esp + 0x28]
push 0x4c0994
push eax
call dbg.panic_fmt
add esp, 8
ud2
Function at 0x4650e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [0x4d8218]
mov ebx, dword [ebp + 0x10]
movzx eax, byte [eax]
push 4
push 8
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x46517b
mov esi, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], ecx
push 0
push 0x10000
push esi
push dbg.thread_start
push eax
push 0
call sub.KERNEL32.dll_CreateThread
test eax, eax
je 0x465133
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x465171
mov ebx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [ebx]
mov dword [ebp - 0x10], ecx
push ecx
call eax
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x465159
push dword [ebx + 8]
push eax
push dword [ebp - 0x10]
call sym.___rust_dealloc
add esp, 0xc
push 4
push 8
push esi
call sym.___rust_dealloc
add esp, 0xc
call sub.KERNEL32.dll_GetLastError
mov byte [edi], 0
mov dword [edi + 4], eax
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, ebx
mov ebx, dword [ebp + 0x14]
push 8
push 4
call dbg.handle_alloc_error
add esp, 8
ud2

Function at 0x4653c0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0
je 0x465430
lea ebx, [edi + 0xc]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push ebx
call sub.KERNEL32.dll_InitOnceBeginInitialize
cmp eax, 1
mov dword [ebp - 0x10], eax
jne 0x46546a
cmp dword [ebp - 0x14], 0
je 0x465451
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x465487
mov esi, eax
inc eax
mov dword [edi], eax
mov eax, dword [0x4f1124]
mov dword [edi + 8], eax
lock cmpxchg dword [0x4f1124], edi
jne 0x465410
mov byte [0x4f1120], 1
push 0
push 0
push ebx
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x465460
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x4654c2
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [edi], ecx
jne 0x465455
mov esi, dword [ebp - 0x10]
jmp 0x465460
mov esi, dword [edi]
jmp 0x46545f
mov esi, eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_TlsFree
dec esi
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x10]
mov edx, 0x4c07f4
push 0x4c0e18
push eax
call dbg.assert_failed<i32, i32>
push 0
push 4
push ebx
call sub.KERNEL32.dll_InitOnceComplete
mov dword [ebp - 0x2c], 0x4c0dcc
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0x4bcb70
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x2c]
push 0x4c0e08
push eax
call dbg.panic_fmt
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x4c0dcc
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0x4bcb70
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call dbg.assert_failed<u32, u32>
Function at 0x4680f0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1b4
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
movzx eax, word [eax + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [0x4f110c]
cmp eax, 3
jne 0x4681d6
cmp ebx, 0x17f
ja 0x4681e7
lea esi, [ebp - 0x1c0]
push ebx
push edi
push esi
call sym._memcpy
add esp, 0xc
mov byte [ebp + ebx - 0x1c0], 0
inc ebx
lea eax, [ebp - 0x20]
push ebx
push esi
push eax
call dbg.from_bytes_with_nul
add esp, 0xc
cmp dword [ebp - 0x20], 0
je 0x468175
mov esi, dword [ebp + 8]
mov eax, dword [0x4bf510]
mov ecx, dword [0x4bf514]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x4681f7
mov eax, dword [ebp - 0x1c]
xorps xmm0, xmm0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 1
push ecx
push edx
push 0
push eax
call sub.WS2_32.dll_getaddrinfo
mov esi, dword [ebp + 8]
test eax, eax
je 0x4681c0
call sub.WS2_32.dll_WSAGetLastError
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x4681f7
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x10]
mov word [esi + 0xc], ax
xor eax, eax
mov dword [esi], eax
jmp 0x4681f7
call dbg.initialize<unsafe extern "system" fn() -> i32, std::sync::once_lock::{impl#0}::get_or_init::{closure_env#0}<unsafe extern "system" fn() -> i32, std::sys::pal::windows::net::init::{closure_env#0}>, !>
cmp ebx, 0x17f
jbe 0x468128
mov ecx, esi
mov edx, edi
push dword [ebp - 0x10]
push ebx
call dbg.run_with_cstr_allocating<std::sys_common::net::LookupHost, std::sys_common::net::{impl#6}::try_from::{closure_env#0}>
add esp, 8
mov eax, esi
add esp, 0x1b4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x468210
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
movzx ecx, byte [eax]
cmp cl, 4
jne 0x468276
mov ebx, dword [eax + 4]
mov eax, dword [0x4f110c]
cmp eax, 3
jne 0x468325
lea edi, [ebp - 0x30]
push 1
push ebx
push edi
call sym.std::sys::pal::windows::net::Socket::new::h9ab1e451293c2b86
add esp, 0xc
movzx eax, byte [ebp - 0x30]
cmp al, 4
jne 0x468292
mov eax, dword [ebp - 0x2c]
cmp word [ebx], 0
mov dword [ebp - 0x14], eax
je 0x4682ab
mov ecx, dword [ebx + 0x18]
movups xmm0, xmmword [ebx + 4]
lea eax, [ebx + 0x14]
add ebx, 0x1c
mov dx, 0x17
mov dword [ebp - 0x10], ecx
mov ecx, 0x1c
jmp 0x4682c0
movzx edx, byte [eax + 3]
movzx edi, word [eax + 1]
mov eax, dword [eax + 4]
mov byte [esi + 3], dl
mov word [esi + 1], di
mov byte [esi], cl
mov dword [esi + 4], eax
jmp 0x46831b
movzx ecx, byte [ebp - 0x2d]
movzx edi, word [ebp - 0x2f]
mov edx, dword [ebp - 0x2c]
mov byte [esi + 3], cl
mov word [esi + 1], di
mov byte [esi], al
mov dword [esi + 4], edx
jmp 0x46831b
lea eax, [ebx + 2]
add ebx, 6
mov ecx, 0x10
mov dx, 2
xorps xmm0, xmm0
lea edi, [ebp - 0x30]
movzx ebx, word [ebx]
mov eax, dword [eax]
mov word [ebp - 0x30], dx
rol bx, 8
mov word [ebp - 0x2e], bx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], eax
push ecx
push edi
mov edi, dword [ebp - 0x14]
push edi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x4682f6
mov dword [esi + 4], edi
mov byte [esi], 4
jmp 0x46831b
call sub.WS2_32.dll_WSAGetLastError
mov ecx, eax
mov edx, eax
shr eax, 0x18
mov byte [esi], 0
shr ecx, 8
shl edx, 0x18
mov byte [esi + 7], al
mov dword [esi + 1], edx
mov word [esi + 5], cx
push edi
call sub.WS2_32.dll_closesocket
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
call dbg.initialize<unsafe extern "system" fn() -> i32, std::sync::once_lock::{impl#0}::get_or_init::{closure_env#0}<unsafe extern "system" fn() -> i32, std::sys::pal::windows::net::init::{closure_env#0}>, !>
jmp 0x468238
Function at 0x468760
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0xa0
xorps xmm0, xmm0
mov esi, ecx
lea eax, [esp + 0xc]
mov dword [esp + 0xc], pe_nt_image_headers32
lea ecx, [esp + 0x10]
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
push eax
push ecx
push edx
call sub.WS2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x468805
movzx ecx, word [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp ecx, 2
je 0x46881d
cmp ecx, 0x17
jne 0x468841
cmp eax, 0x1b
jbe 0x468857
movzx eax, word [esp + 0x12]
movups xmm0, xmmword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov word [esi], 1
rol ax, 8
movups xmmword [esi + 4], xmm0
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], edx
mov word [esi + 0x1c], ax
lea esp, [ebp - 4]
pop esi
pop ebp
ret
call sub.WS2_32.dll_WSAGetLastError
mov byte [esi + 4], 0
mov byte [esi + 7], 0
mov word [esi + 5], 0
mov dword [esi + 8], eax
jmp 0x46884c
cmp eax, 0xf
jbe 0x468868
movzx ecx, word [esp + 0x12]
mov eax, dword [esp + 0x14]
mov word [esi], 0
rol cx, 8
mov dword [esi + 2], eax
mov word [esi + 6], cx
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov byte [esi + 4], 2
mov dword [esi + 8], 0x4c13f8
mov word [esi], 2
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push 0x4c13d8
push 0x43
push 0x4c1394
call dbg.panic
push 0x4c1384
push 0x42
push str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
call dbg.panic
nop dword [eax]

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov ecx, 0x7fffffff
cmp eax, 0x7fffffff
cmovb ecx, eax
cmp word [edi], 0
je 0x468b0a
movups xmm0, xmmword [edi + 4]
mov edx, dword [edi + 0x18]
lea eax, [edi + 0x14]
add edi, 0x1c
mov ebx, 0x1c
mov si, 0x17
jmp 0x468b1c
lea eax, [edi + 2]
add edi, 6
mov ebx, 0x10
mov si, 2
xorps xmm0, xmm0
movzx edi, word [edi]
mov eax, dword [eax]
mov word [ebp - 0x28], si
rol di, 8
mov word [ebp - 0x26], di
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], edx
push ebx
push eax
push 0
push ecx
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push dword [eax]
call sub.WS2_32.dll_sendto
cmp eax, 0xffffffff
je 0x468b5c
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov byte [ecx], 4
jmp 0x468b74
call sub.WS2_32.dll_WSAGetLastError
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
mov byte [ecx + 3], 0
mov word [ecx + 1], 0
mov dword [ecx + 4], eax
mov eax, ecx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x468b80
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
movzx ecx, byte [eax]
cmp cl, 4
jne 0x468bb8
mov ecx, dword [eax + 4]
cmp word [ecx], 0
je 0x468bd1
movups xmm0, xmmword [ecx + 4]
mov ebx, dword [ecx + 0x18]
lea edi, [ecx + 0x14]
add ecx, 0x1c
mov edx, 0x1c
mov ax, 0x17
jmp 0x468be3
movzx edx, byte [eax + 3]
movzx edi, word [eax + 1]
mov eax, dword [eax + 4]
mov byte [esi + 3], dl
mov word [esi + 1], di
mov byte [esi], cl
mov dword [esi + 4], eax
jmp 0x468c25
lea edi, [ecx + 2]
add ecx, 6
mov edx, 0x10
mov ax, 2
xorps xmm0, xmm0
movzx ecx, word [ecx]
mov edi, dword [edi]
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
rol cx, 8
mov word [ebp - 0x26], cx
mov dword [ebp - 0x24], edi
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], ebx
push edx
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x468c17
mov byte [esi], 4
jmp 0x468c25
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x468e10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 8]
cmp dword [eax], 2
jne 0x468e92
mov esi, dword [eax + 0x24]
test esi, esi
je 0x468eb7
mov ecx, dword [ebp + 0xc]
mov ebx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
nop word cs:[eax + eax]
nop
push esi
push ebx
lea eax, [ebp - 0x1c]
push eax
call dbg.from_utf8
add esp, 0xc
cmp dword [ebp - 0x1c], 0
je 0x468e9e
mov dword [ebp - 0x20], ebx
movzx eax, byte [ebp - 0x13]
mov edi, dword [ebp - 0x18]
movzx ebx, byte [ebp - 0x14]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x10]
push 3
push 0x4bf79c
call sym.__LT_str_u20_as_u20_core..fmt..Display_GT_::fmt::h92f8771ed7772fe0
add esp, 0xc
test al, al
jne 0x468eb3
test bl, 1
je 0x468eb7
add edi, dword [ebp - 0x24]
cmp esi, edi
jb 0x468ec1
mov ebx, dword [ebp - 0x20]
add ebx, edi
sub esi, edi
jne 0x468e40
jmp 0x468eb7
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
jmp sym.__LT_rustc_demangle..Demangle_u20_as_u20_core..fmt..Display_GT_::fmt::ha01f6ab4bd18eb69
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call sym.__LT_str_u20_as_u20_core..fmt..Display_GT_::fmt::h92f8771ed7772fe0
add esp, 0xc
test al, al
je 0x468eb7
mov al, 1
jmp 0x468eb9
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4bfd44
push esi
push edi
call dbg.slice_start_index_len_fail
nop dword [eax]