joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457590
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x18]
mov eax, dword [esi]
test eax, eax
je 0x4575a7
dec eax
jmp 0x4575b0
push esi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h0e07b267238be613
add esp, 4
push 1
push eax
call sub.KERNEL32.dll_TlsSetValue
push 8
push 0x20
push edi
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [esi]
test eax, eax
je 0x4575ce
dec eax
jmp 0x4575d7
push esi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h0e07b267238be613
add esp, 4
push 0
push eax
call sub.KERNEL32.dll_TlsSetValue
add esp, 0x2c
pop esi
pop edi
pop ebp
ret

Function at 0x457670
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x457686
dec eax
jmp 0x45768f
push esi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h0e07b267238be613
add esp, 4
push 1
push eax
call sub.KERNEL32.dll_TlsSetValue
cmp dword [edi + 4], 0
je 0x4576b1
mov eax, dword [edi + 8]
test eax, eax
je 0x4576b1
lock dec dword [eax]
jne 0x4576b1
lea ecx, [edi + 8]
call dbg.drop_slow<std::sync::mpmc::context::Inner, alloc::alloc::Global>
push 4
push 0xc
push edi
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [esi]
test eax, eax
je 0x4576c7
dec eax
jmp 0x4576d0
push esi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h0e07b267238be613
add esp, 4
push 0
push eax
call sub.KERNEL32.dll_TlsSetValue
add esp, 0x2c
pop esi
pop edi
pop ebp
ret

Function at 0x4588c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [ebp - 0x24]
push dword [ebp + 8]
call sym.std::sys::pal::windows::to_u16s::inner::h1c3101dfdc85d063
add esp, 4
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp ecx, 0x80000000
je 0x458914
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
push 1
call dbg.get_long_path
add esp, 4
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
cmp ebx, 0x80000000
jne 0x458921
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov dword [esi], edi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push 0
push edi
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x458936
mov byte [esi], 4
test ebx, ebx
jne 0x458945
jmp 0x458919
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x458919
add ebx, ebx
push 2
push ebx
push edi
call sym.___rust_dealloc
add esp, 0x30
jmp 0x45891c
Function at 0x458d20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push dword [ebp + 0x10]
call sym.std::sys::pal::windows::to_u16s::inner::h1c3101dfdc85d063
add esp, 4
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp ecx, 0x80000000
je 0x458d78
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
push 1
call dbg.get_long_path
add esp, 4
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
cmp ebx, 0x80000000
jne 0x458d87
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov dword [esi], edi
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call sub.KERNEL32.dll_DeleteFileW
test eax, eax
je 0x458d9a
mov byte [esi], 4
test ebx, ebx
jne 0x458da9
jmp 0x458d7d
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x458d7d
add ebx, ebx
push 2
push ebx
push edi
call sym.___rust_dealloc
add esp, 0xc
jmp 0x458d7d

Function at 0x458dc0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
push dword [ebp + 0x10]
call sym.std::sys::pal::windows::to_u16s::inner::h1c3101dfdc85d063
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
cmp ecx, 0x80000000
je 0x458e18
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x38]
push 1
call dbg.get_long_path
add esp, 4
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
cmp ebx, 0x80000000
jne 0x458e27
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
mov dword [esi], edi
mov eax, esi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x2c]
push dword [ebp + 0x18]
call sym.std::sys::pal::windows::to_u16s::inner::h1c3101dfdc85d063
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
cmp ecx, 0x80000000
je 0x458e72
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x20]
push 1
call dbg.get_long_path
add esp, 4
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
cmp eax, 0x80000000
jne 0x458e8b
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
mov dword [esi], edx
test ebx, ebx
je 0x458e1d
add ebx, ebx
push 2
push ebx
push edi
call sym.___rust_dealloc
add esp, 0xc
jmp 0x458e1d
mov dword [ebp - 0x14], eax
push 1
mov dword [ebp - 0x10], edx
push edx
push edi
call sub.KERNEL32.dll_MoveFileExW
test eax, eax
je 0x458eaa
mov byte [esi], 4
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x458ebc
jmp 0x458e77
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x458e77
add eax, eax
push 2
push eax
push dword [ebp - 0x10]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x458e77
Function at 0x458ef0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push dword [ebp + 0x10]
call sym.std::sys::pal::windows::to_u16s::inner::h1c3101dfdc85d063
add esp, 4
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp ecx, 0x80000000
je 0x458f48
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
push 1
call dbg.get_long_path
add esp, 4
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
cmp ebx, 0x80000000
jne 0x458f57
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov dword [esi], edi
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call sub.KERNEL32.dll_RemoveDirectoryW
test eax, eax
je 0x458f6a
mov byte [esi], 4
test ebx, ebx
jne 0x458f79
jmp 0x458f4d
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x458f4d
add ebx, ebx
push 2
push ebx
push edi
call sym.___rust_dealloc
add esp, 0xc
jmp 0x458f4d

Function at 0x45ac10
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push dword [ebp + 0x10]
call sym.std::sys::pal::windows::to_u16s::inner::h1c3101dfdc85d063
add esp, 4
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp ecx, 0x80000000
je 0x45ac68
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
push 1
call dbg.get_long_path
add esp, 4
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
cmp ebx, 0x80000000
jne 0x45ac77
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov dword [esi], edi
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [ebp + 0x14]
push edi
call sub.KERNEL32.dll_SetFileAttributesW
test eax, eax
je 0x45ac8d
mov byte [esi], 4
test ebx, ebx
jne 0x45ac9c
jmp 0x45ac6d
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x45ac6d
add ebx, ebx
push 2
push ebx
push edi
call sym.___rust_dealloc
add esp, 0xc
jmp 0x45ac6d
Function at 0x45af00
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x20]
push dword [ebp + 0x10]
call sym.std::sys::pal::windows::to_u16s::inner::h1c3101dfdc85d063
add esp, 4
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
cmp ecx, 0x80000000
je 0x45af64
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
lea ecx, [esp + 0x14]
mov edx, esp
push 1
call dbg.get_long_path
add esp, 4
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
cmp edi, 0x80000000
jne 0x45af7a
mov eax, dword [esp + 0x1c]
mov dword [esi + 8], eax
mov dword [esi + 4], ebx
mov dword [esi], 1
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebp + 0x14]
lea ecx, [esp + 0x20]
push dword [ebp + 0x18]
call sym.std::sys::pal::windows::to_u16s::inner::h1c3101dfdc85d063
add esp, 4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
cmp ecx, 0x80000000
je 0x45afce
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov edx, esp
lea ecx, [esp + 0x14]
push 1
call dbg.get_long_path
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
cmp eax, 0x80000000
jne 0x45afee
mov eax, dword [esp + 0x1c]
mov dword [esi + 8], eax
mov dword [esi + 4], edx
mov dword [esi], 1
test edi, edi
je 0x45af70
add edi, edi
push 2
push edi
push ebx
call sym.___rust_dealloc
add esp, 0xc
jmp 0x45af70
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0
mov dword [esp], 0
push 0
push 0
lea eax, [esp + 8]
push eax
push dbg.callback
mov dword [esp + 0x1c], edx
push edx
push ebx
call sub.KERNEL32.dll_CopyFileExW
test eax, eax
je 0x45b03b
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi], 0
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x45b055
jmp 0x45afda
call sub.KERNEL32.dll_GetLastError
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45afda
add eax, eax
push 2
push eax
push dword [esp + 0x14]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x45afda
Function at 0x45b410
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 0x10]
call 0x45b421
pop eax
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 4]
mov edi, dword [esi + 8]
mov eax, ecx
sub eax, edi
jb 0x45b508
mov ecx, dword [ebp + 0xc]
mov ebx, dword [esi]
mov edx, dword [ecx]
add ebx, edi
sub esp, 8
lea ecx, [ebp - 0x18]
push 0
push 0
push eax
push ebx
call dbg.synchronous_read
add esp, 0x18
movzx edx, byte [ebp - 0x18]
cmp edx, 4
jne 0x45b477
add edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [esi + 8], edi
mov byte [ecx], 4
mov eax, dword [esi + 0xc]
cmp eax, edi
cmova edi, eax
mov dword [esi + 0xc], edi
jmp 0x45b4fe
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
add eax, dword [edx*4 + 0x45b540]
jmp eax
mov eax, ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4bcc88
push ecx
push edi
call dbg.slice_start_index_len_fail
mov ebx, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x45b52c
push dword [esi + 8]
push eax
push dword [ebp - 0x10]
call sym.___rust_dealloc
add esp, 0xc
push 4
push 0xc
push edi
call sym.___rust_dealloc
add esp, 0xc
push ebx
call sym.__Unwind_Resume
nop
je 0x45b542
add byte [eax], al
xchg ecx, eax
add byte [eax], al
add byte [ebp], ah
add byte [eax], al
add byte gs:[eax], al
add byte [ebp - 0x77], dl
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
lea ebx, [ebp - 0x10]
push edx
push ebx
push ecx
push eax
push dword [edi]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x45b59a
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], 1
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi], eax
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x6d
je 0x45b5b4
cmp eax, 0x3e5
jne 0x45b5c4
mov dword [esi + 4], 0
jmp 0x45b58c
mov dword [esi + 4], 1
mov dword [esi + 8], 0
jmp 0x45b58c
mov dword [esi + 4], 0
mov dword [esi + 8], eax
mov eax, 1
jmp 0x45b58e
Function at 0x45b810
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x45b854
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x45b85a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x45b88d
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x45b89d
mov dword [esi + 4], 0
jmp 0x45b8af
cmp eax, 0x103
je 0x45b8c8
test eax, eax
js 0x45b8ba
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x45b8b2
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x4c0470
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call dbg.write_fmt<std::sys::pal::windows::stdio::Stderr>
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call dbg.drop_in_place<core::option::Option<std::io::error::Error>>
mov ecx, 7
int 0x29
ud2
Function at 0x45b930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x45b974
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x45b97a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x45b9b4
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x45b9d8
test eax, eax
js 0x45b9c3
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov al, 4
jmp 0x45b9ce
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x4c0470
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call dbg.write_fmt<std::sys::pal::windows::stdio::Stderr>
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call dbg.drop_in_place<core::option::Option<std::io::error::Error>>
mov ecx, 7
int 0x29
ud2

Function at 0x45bf00
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, 0x17
cmp word [eax], 0
mov eax, 2
cmove ebx, eax
push 0x81
push 0
push 0
push 0
push edi
push ebx
call sub.WS2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x45bf44
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x45bf57
cmp eax, 0x2739
jne 0x45bf80
push 1
push 0
push 0
push 0
push edi
push ebx
call sub.WS2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x45bf88
mov edi, eax
push 0
push 1
push eax
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x45bf98
mov dword [esi + 4], edi
jmp 0x45bf3a
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x45bf3d
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x45bf3d
call sub.KERNEL32.dll_GetLastError
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
jmp 0x45bf3d
Function at 0x45bfd0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
cmp word [ecx], 0
je 0x45bffd
movups xmm0, xmmword [ecx + 4]
mov ebx, dword [ecx + 0x18]
lea edi, [ecx + 0x14]
add ecx, 0x1c
mov edx, 0x1c
mov ax, 0x17
jmp 0x45c00f
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 0x45c043
mov byte [esi], 4
jmp 0x45c051
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 0x45c3f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi + 4]
mov ebx, dword [edi + 8]
mov eax, ecx
sub eax, ebx
jb 0x45c45c
cmp eax, 0x7fffffff
mov edx, 0x7fffffff
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmovb edx, eax
mov eax, dword [edi]
add eax, ebx
push 0
push edx
push eax
push dword [ecx]
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x45c43e
add eax, ebx
mov dword [edi + 8], eax
mov ecx, dword [edi + 0xc]
cmp ecx, eax
cmova eax, ecx
mov dword [edi + 0xc], eax
jmp 0x45c44a
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x45c454
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x45c44d
push 0x4bcc88
push ecx
push ebx
call dbg.slice_start_index_len_fail
nop dword [eax + eax]

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, 0x7fffffff
cmp eax, 0x7fffffff
cmovb edx, eax
push 2
push edx
push dword [ebp + 0x10]
push dword [ecx]
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
jne 0x45c51d
call sub.WS2_32.dll_WSAGetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x274a
jne 0x45c528
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
pop ebp
ret
mov byte [esi], 0
mov dword [esi + 4], ecx
mov eax, esi
pop esi
pop ebp
ret
Function at 0x45c540
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov edi, 0x7fffffff
pxor xmm0, xmm0
lea ebx, [esp + 8]
lea eax, [esp + 0x20]
mov dword [esp + 8], pe_nt_image_headers32
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
cmp ecx, 0x7fffffff
cmovb edi, ecx
mov ecx, dword [ebp + 0x10]
push ebx
push eax
push ecx
push edi
push dword [ebp + 8]
push edx
call sub.WS2_32.dll_recvfrom
cmp eax, 0xffffffff
je 0x45c60e
movzx edx, word [esp + 0x20]
mov ecx, dword [esp + 8]
cmp edx, 0x17
je 0x45c67a
cmp edx, 2
jne 0x45c667
cmp ecx, 0xf
jbe 0x45c70d
movzx edx, word [esp + 0x22]
mov ecx, dword [esp + 0x24]
rol dx, 8
mov dword [esp + 0xc], ecx
movd xmm0, ecx
mov word [esp + 0x10], dx
pslld xmm0, 0x10
movups xmm1, xmmword [esp + 0xe]
jmp 0x45c6a2
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x45c6b9
movzx ecx, word [esp + 0x20]
mov eax, dword [esp + 8]
cmp ecx, 0x17
je 0x45c6c8
cmp ecx, 2
jne 0x45c667
cmp eax, 0xf
jbe 0x45c70d
movzx ecx, word [esp + 0x22]
mov eax, dword [esp + 0x24]
rol cx, 8
mov dword [esp + 0xc], eax
movd xmm0, eax
mov word [esp + 0x10], cx
pslld xmm0, 0x10
movups xmm1, xmmword [esp + 0xe]
jmp 0x45c6ec
mov byte [esp + 0xe], 2
mov eax, 0x4c13f8
mov ecx, dword [esp + 0xe]
mov dword [esi + 8], ecx
jmp 0x45c6bd
cmp ecx, 0x1b
jbe 0x45c71e
movzx ecx, word [esp + 0x22]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
movups xmm1, xmmword [esp + 0x28]
mov ebx, 1
movd xmm0, ebx
rol cx, 8
mov dword [esi], eax
movd dword [esi + 4], xmm0
movups xmmword [esi + 8], xmm1
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edx
mov word [esi + 0x20], cx
jmp 0x45c705
mov byte [esi + 8], 0
mov dword [esi + 0xc], eax
mov word [esi + 4], 2
jmp 0x45c705
cmp eax, 0x1b
jbe 0x45c71e
movzx eax, word [esp + 0x22]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
movups xmm1, xmmword [esp + 0x28]
mov edi, 1
movd xmm0, edi
rol ax, 8
mov dword [esi], 0
movd dword [esi + 4], xmm0
movups xmmword [esi + 8], xmm1
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ecx
mov word [esi + 0x20], ax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
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
push 0x4c13d8
push 0x43
push 0x4c1394
call dbg.panic
nop