joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b5a30
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::h9c1ce760b5043b66
add esp, 4
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
cmp edx, 0x80000000
je 0x100b5a88
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x38]
push 1
call sym.std::sys::path::windows::get_long_path::h78b4a6c417dc393d
add esp, 4
mov edi, dword [ebp - 0x1c]
cmp edi, 0x80000000
jne 0x100b5a97
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, esi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x2c]
push dword [ebp + 0x18]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
cmp edx, 0x80000000
je 0x100b5ae9
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x1c]
push 1
call sym.std::sys::path::windows::get_long_path::h78b4a6c417dc393d
add esp, 4
mov ebx, dword [ebp - 0x1c]
cmp ebx, 0x80000000
jne 0x100b5b04
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
test edi, edi
je 0x100b5a8d
add edi, edi
push 2
push edi
push dword [ebp - 0x10]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x100b5a8d
mov eax, dword [ebp - 0x18]
push 1
mov dword [ebp - 0x20], eax
push eax
push dword [ebp - 0x10]
call sub.kernel32.dll_MoveFileExW
test eax, eax
je 0x100b5b22
mov byte [esi], 4
test ebx, ebx
jne 0x100b5b31
jmp 0x100b5aee
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x100b5aee
add ebx, ebx
push 2
push ebx
push dword [ebp - 0x20]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x100b5aee
Function at 0x100b5b60
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::h9c1ce760b5043b66
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp edx, 0x80000000
je 0x100b5bb8
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
push 1
call sym.std::sys::path::windows::get_long_path::h78b4a6c417dc393d
add esp, 4
mov edi, dword [ebp - 0x18]
cmp edi, 0x80000000
jne 0x100b5bc7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp - 0x14]
push ebx
call sub.kernel32.dll_RemoveDirectoryW
test eax, eax
je 0x100b5bdd
mov byte [esi], 4
test edi, edi
jne 0x100b5bec
jmp 0x100b5bbd
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x100b5bbd
add edi, edi
push 2
push edi
push ebx
call sym.___rust_dealloc
add esp, 0xc
jmp 0x100b5bbd

Function at 0x100b6e80
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::h9c1ce760b5043b66
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp edx, 0x80000000
je 0x100b6ed8
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
push 1
call sym.std::sys::path::windows::get_long_path::h78b4a6c417dc393d
add esp, 4
mov edi, dword [ebp - 0x18]
cmp edi, 0x80000000
jne 0x100b6ee7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp - 0x14]
push dword [ebp + 0x14]
push ebx
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
je 0x100b6f00
mov byte [esi], 4
test edi, edi
jne 0x100b6f0f
jmp 0x100b6edd
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x100b6edd
add edi, edi
push 2
push edi
push ebx
call sym.___rust_dealloc
add esp, 0xc
jmp 0x100b6edd
Function at 0x100b7160
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x28]
push dword [ebp + 0x10]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
cmp edx, 0x80000000
je 0x100b71c7
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x18]
lea edx, [esp + 8]
push 1
call sym.std::sys::path::windows::get_long_path::h78b4a6c417dc393d
add esp, 4
mov ebx, dword [esp + 0x18]
cmp ebx, 0x80000000
jne 0x100b71dd
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi], 1
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], eax
lea ecx, [esp + 0x28]
push dword [ebp + 0x18]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
cmp edx, 0x80000000
je 0x100b723d
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
lea edx, [esp + 8]
lea ecx, [esp + 0x18]
push 1
call sym.std::sys::path::windows::get_long_path::h78b4a6c417dc393d
add esp, 4
mov edi, dword [esp + 0x18]
cmp edi, 0x80000000
jne 0x100b7263
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi], 1
test ebx, ebx
je 0x100b71d3
add ebx, ebx
push 2
push ebx
push dword [esp + 0xc]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x100b71d3
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
push 0
push 0
lea ecx, [esp + 0x10]
push ecx
push sym.__ZN3std3sys3pal7windows2fs4copy8callback17hf82e7c09f77d929dE_52
mov dword [esp + 0x34], eax
push eax
push dword [esp + 0x18]
call sub.kernel32.dll_CopyFileExW
test eax, eax
je 0x100b72b1
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi], 0
test edi, edi
jne 0x100b72c7
jmp 0x100b7249
call sub.kernel32.dll_GetLastError
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], 1
test edi, edi
je 0x100b7249
add edi, edi
push 2
push edi
push dword [esp + 0x2c]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x100b7249
Function at 0x100b7b50
Capabilities:
Read file on windows

Disassembly:
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 0x100b7b9a
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 0x100b7bb6
cmp eax, 0x3e5
jne 0x100b7bc8
lea eax, [esi + 4]
mov dword [eax], 0
jmp 0x100b7b8c
lea eax, [esi + 8]
mov dword [esi + 4], 1
mov dword [eax], 0
jmp 0x100b7b8c
mov dword [esi + 4], 0
mov dword [esi + 8], eax
mov eax, 1
jmp 0x100b7b8e

Function at 0x100b7e10
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 0x100b7e54
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 0x100b7e5a
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 0x100b7e8d
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x100b7e9d
mov dword [esi + 4], 0
jmp 0x100b7eaf
cmp eax, 0x103
je 0x100b7ec8
test eax, eax
js 0x100b7eba
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 0x100b7eb2
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x10178c08
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 esi, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push esi
call sym.std::io::Write::write_fmt::h0f5c472207d58d98
add esp, 0xc
mov ecx, esi
call sym.core::ptr::drop_in_place_LT_core..result..Result_LT__LP__RP__C_std..io..error..Error_GT__GT_::h1766f469e1f57437
mov ecx, 7
int 0x29
ud2
Function at 0x100b7f30
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 0x100b7f74
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 0x100b7f7a
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 0x100b7fb4
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x100b7fd5
test eax, eax
js 0x100b7fc0
mov eax, dword [esp + 0xc]
mov bl, 4
jmp 0x100b7fc8
xor ebx, ebx
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov dword [esi + 4], eax
mov byte [esi], bl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x10178c08
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 esi, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push esi
call sym.std::io::Write::write_fmt::h0f5c472207d58d98
add esp, 0xc
mov ecx, esi
call sym.core::ptr::drop_in_place_LT_core..result..Result_LT__LP__RP__C_std..io..error..Error_GT__GT_::h1766f469e1f57437
mov ecx, 7
int 0x29
ud2

Function at 0x100b84a0
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 0x100b84e4
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 0x100b84f7
cmp eax, 0x2739
jne 0x100b8520
push 1
push 0
push 0
push 0
push edi
push ebx
call sub.ws2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x100b8528
mov edi, eax
push 0
push 1
push eax
call sub.kernel32.dll_SetHandleInformation
test eax, eax
je 0x100b8538
mov dword [esi + 4], edi
jmp 0x100b84da
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x100b84dd
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x100b84dd
call sub.kernel32.dll_GetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
push edi
call sub.ws2_32.dll_closesocket
jmp 0x100b84dd
Function at 0x100b8550
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov ecx, dword [ebp + 0x10]
cmp word [ecx], 0
je 0x100b857c
movups xmm0, xmmword [ecx + 4]
mov edi, dword [ecx + 0x18]
lea edx, [ecx + 0x14]
mov ax, 0x17
mov esi, 0x1c
mov ebx, 0x1c
jmp 0x100b8590
lea edx, [ecx + 2]
xorps xmm0, xmm0
mov ebx, 0x10
mov ax, 2
mov esi, 6
movzx ecx, word [ecx + esi]
mov edx, dword [edx]
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
rol cx, 8
mov word [ebp - 0x26], cx
mov dword [ebp - 0x24], edx
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], edi
push ebx
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
call sub.ws2_32.dll_connect
cmp eax, 0xffffffff
je 0x100b85c8
mov eax, dword [ebp + 8]
mov byte [eax], 4
jmp 0x100b85db
call sub.ws2_32.dll_WSAGetLastError
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, ecx
mov dword [ecx], 0
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100b8960
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, 0x7fffffff
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov ebx, dword [edi + 8]
sub eax, ebx
cmp eax, 0x7fffffff
cmovb ecx, eax
mov eax, dword [edi]
add eax, ebx
push 0
push ecx
push eax
push dword [edx]
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
je 0x100b89aa
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 0x100b89b6
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x100b89c0
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 0x100b89b9

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
lea edi, [ebp - 0x14]
lea ebx, [ebp - 0x10]
push 0
push 0
push edi
push ebx
push ecx
push eax
push dword [edx]
call sub.ws2_32.dll_WSARecv
test eax, eax
je 0x100b8a21
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x100b8a2c
mov dword [esi + 4], 0
jmp 0x100b8a27
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x100b8a32
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x100b8a40
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 0x100b8a7d
call sub.ws2_32.dll_WSAGetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x274a
jne 0x100b8a88
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
pop ebp
ret
mov dword [esi + 4], ecx
mov dword [esi], 0
mov eax, esi
pop esi
pop ebp
ret
Function at 0x100b8d60
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 0x100b8d9c
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x100b8daa
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 0x100b8dc0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov ecx, dword [ebp + 0x18]
xor esi, esi
cmp ecx, 0x3b9aca00
je 0x100b8e4a
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ebx, 0x3e8
mul ebx
mov esi, eax
mov eax, edi
seto byte [ebp - 0xd]
mul ebx
mov ebx, edx
mov edi, eax
add ebx, esi
mov esi, 0xffffffff
setb al
or al, byte [ebp - 0xd]
jne 0x100b8e4a
mov edx, 0x431bde83
mov eax, ecx
mul edx
mov eax, edi
shr edx, 0x12
add eax, edx
mov eax, ebx
adc eax, 0
jb 0x100b8e4a
imul eax, edx, 0xf4240
sub ecx, eax
add edi, edx
adc ebx, 0
xor eax, eax
test ecx, ecx
setne al
add eax, edi
mov eax, ebx
adc eax, 0
jb 0x100b8e4a
xor eax, eax
test ecx, ecx
setne al
add edi, eax
adc ebx, 0
xor esi, esi
neg ebx
sbb esi, esi
or esi, edi
je 0x100b8e91
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 0x100b8e85
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 eax, dword [0x10178c88]
mov ecx, dword [0x10178c8c]
mov dword [esi + 4], ecx
mov dword [esi], eax
jmp 0x100b8e87

Function at 0x100b8f90
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 0x100b8fbc
mov byte [esi], 4
jmp 0x100b8fca
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 0x100b8fe0
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 0x100b8fff
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 0x100b903c
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 0x100b90d0
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 0x100b910f
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 0x100b9cf0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
add ecx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov word [ebp - 0x1c], 0
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x24]
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_iter17hd17698b25
mov ebx, dword [ebp - 0x10]
cmp ebx, dword [ebp - 0x18]
jne 0x100b9d28
lea ecx, [ebp - 0x18]
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::grow_one::h6756b7192074e1c7
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov word [edi + ebx*2], 0
push edi
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
je 0x100b9d60
mov byte [esi], 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100b9d56
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 ebx
pop ebp
ret
call sub.kernel32.dll_GetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x100b9d48
jmp 0x100b9d56
Function at 0x100b9da0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push dword [ebp + 0x10]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edi, dword [ebp - 0x1c]
cmp edi, 0x80000000
jne 0x100b9dd3
movsd xmm0, qword [ebp - 0x18]
movsd qword [esi], xmm0
jmp 0x100b9e3e
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1c]
push dword [ebp + 0x18]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov ebx, dword [ebp - 0x1c]
cmp ebx, 0x80000000
jne 0x100b9e00
movsd xmm0, qword [ebp - 0x18]
movsd qword [esi], xmm0
jmp 0x100b9e2a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
push eax
push dword [ebp - 0x10]
call sub.kernel32.dll_SetEnvironmentVariableW
test eax, eax
je 0x100b9e48
mov byte [esi], 4
test ebx, ebx
je 0x100b9e2a
add ebx, ebx
push 2
push ebx
push dword [ebp - 0x20]
call sym.___rust_dealloc
add esp, 0xc
test edi, edi
je 0x100b9e3e
add edi, edi
push 2
push edi
push dword [ebp - 0x10]
call sym.___rust_dealloc
add esp, 0xc
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.kernel32.dll_GetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
test ebx, ebx
jne 0x100b9e1a
jmp 0x100b9e2a

Function at 0x100b9e80
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push dword [ebp + 0x10]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edi, dword [ebp - 0x18]
cmp edi, 0x80000000
jne 0x100b9eb3
movsd xmm0, qword [ebp - 0x14]
movsd qword [esi], xmm0
jmp 0x100b9ed7
mov ebx, dword [ebp - 0x14]
push 0
push ebx
call sub.kernel32.dll_SetEnvironmentVariableW
test eax, eax
je 0x100b9ee1
mov byte [esi], 4
test edi, edi
je 0x100b9ed7
add edi, edi
push 2
push edi
push ebx
call sym.___rust_dealloc
add esp, 0xc
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.kernel32.dll_GetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
test edi, edi
jne 0x100b9ec9
jmp 0x100b9ed7