joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009e350
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::h36c7c454f9caa61a
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, edx
neg ecx
mov ecx, dword [ebp - 0x1c]
jo 0x1009e3a4
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::h1952ee698f680a9e
add esp, 4
mov edi, dword [ebp - 0x18]
mov eax, edi
neg eax
jno 0x1009e3b3
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 0x1009e3c9
mov byte [esi], 4
test edi, edi
jne 0x1009e3d8
jmp 0x1009e3a9
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x1009e3a9
add edi, edi
push 2
push edi
push ebx
call sym.___rust_dealloc
add esp, 0xc
jmp 0x1009e3a9

Function at 0x1009f740
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::h36c7c454f9caa61a
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, edx
neg ecx
mov ecx, dword [ebp - 0x1c]
jo 0x1009f794
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::h1952ee698f680a9e
add esp, 4
mov edi, dword [ebp - 0x18]
mov eax, edi
neg eax
jno 0x1009f7a3
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 0x1009f7bc
mov byte [esi], 4
test edi, edi
jne 0x1009f7cb
jmp 0x1009f799
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x1009f799
add edi, edi
push 2
push edi
push ebx
call sym.___rust_dealloc
add esp, 0xc
jmp 0x1009f799
Function at 0x1009fa20
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::h36c7c454f9caa61a
add esp, 4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, edx
neg ecx
mov ecx, dword [esp + 0x30]
jo 0x1009fa83
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::h1952ee698f680a9e
add esp, 4
mov ebx, dword [esp + 0x18]
mov eax, ebx
neg eax
jno 0x1009fa99
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::h36c7c454f9caa61a
add esp, 4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, edx
neg ecx
mov ecx, dword [esp + 0x30]
jo 0x1009faf5
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::h1952ee698f680a9e
add esp, 4
mov edi, dword [esp + 0x18]
mov eax, edi
neg eax
jno 0x1009fb1b
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 0x1009fa8f
add ebx, ebx
push 2
push ebx
push dword [esp + 0xc]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x1009fa8f
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.__ZN3std3sys3pal7windows2fs4copy8callback17h9d85a8a69320bfbbE_52
mov dword [esp + 0x34], eax
push eax
push dword [esp + 0x18]
call sub.kernel32.dll_CopyFileExW
test eax, eax
je 0x1009fb69
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 0x1009fb7f
jmp 0x1009fb01
call sub.kernel32.dll_GetLastError
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], 1
test edi, edi
je 0x1009fb01
add edi, edi
push 2
push edi
push dword [esp + 0x2c]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x1009fb01
Function at 0x100a0700
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 0x100a074a
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 0x100a0766
cmp eax, 0x3e5
jne 0x100a0778
lea eax, [esi + 4]
mov dword [eax], 0
jmp 0x100a073c
lea eax, [esi + 8]
mov dword [esi + 4], 1
mov dword [eax], 0
jmp 0x100a073c
mov dword [esi + 4], 0
mov dword [esi + 8], eax
mov eax, 1
jmp 0x100a073e

Function at 0x100a09c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov esi, ecx
mov ecx, dword [ebp + 0x14]
mov edi, edx
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
lea ebx, [esp + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x20], edx
xor edx, edx
test cl, 1
lea ecx, [esp + 0x20]
cmovne edx, ecx
mov ecx, dword [ebp + 0xc]
push 0
push edx
push ecx
push eax
push ebx
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x100a0a37
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x100a0a47
mov dword [esi + 4], 0
jmp 0x100a0a59
cmp eax, 0x103
je 0x100a0a72
test eax, eax
js 0x100a0a64
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 0x100a0a5c
lea eax, [esp + 4]
mov dword [esp + 0x2c], 0x10162e88
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea esi, [esp + 0x44]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x38], 0
push eax
push ecx
push esi
call sym.std::io::Write::write_fmt::h170a2f7748b08546
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_::hb6cf10ccff73e133
mov ecx, 7
int 0x29
ud2
Function at 0x100a0ad0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov esi, ecx
mov ecx, dword [ebp + 0x14]
mov edi, edx
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
lea ebx, [esp + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x20], edx
xor edx, edx
test cl, 1
lea ecx, [esp + 0x20]
cmovne edx, ecx
mov ecx, dword [ebp + 0xc]
push 0
push edx
push ecx
push eax
push ebx
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x100a0b4e
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x100a0b6f
test eax, eax
js 0x100a0b5a
mov eax, dword [esp + 0xc]
mov bl, 4
jmp 0x100a0b62
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 + 0x2c], 0x10162e88
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea esi, [esp + 0x44]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x38], 0
push eax
push ecx
push esi
call sym.std::io::Write::write_fmt::h170a2f7748b08546
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_::hb6cf10ccff73e133
mov ecx, 7
int 0x29
ud2

Function at 0x100a0fa0
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, 2
cmp byte [eax], 0
mov eax, 0x17
cmovne ebx, eax
push 0x81
push 0
push 0
push 0
push edi
push ebx
call sub.ws2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x100a0fe3
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 0x100a0ff6
cmp eax, 0x2739
jne 0x100a101f
push 1
push 0
push 0
push 0
push edi
push ebx
call sub.ws2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x100a1027
mov edi, eax
push 0
push 1
push eax
call sub.kernel32.dll_SetHandleInformation
test eax, eax
je 0x100a1037
mov dword [esi + 4], edi
jmp 0x100a0fd9
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x100a0fdc
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x100a0fdc
call sub.kernel32.dll_GetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
push edi
call sub.ws2_32.dll_closesocket
jmp 0x100a0fdc
Function at 0x100a1050
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov ecx, dword [ebp + 0x10]
test byte [ecx], 1
je 0x100a107b
movups xmm0, xmmword [ecx + 4]
mov edi, dword [ecx + 0x18]
lea edx, [ecx + 0x14]
mov ax, 0x17
mov esi, 0x1c
mov ebx, 0x1c
jmp 0x100a108f
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 0x100a10c7
mov eax, dword [ebp + 8]
mov byte [eax], 4
jmp 0x100a10da
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 0x100a1470
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 0x100a14ba
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 0x100a14c6
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x100a14d0
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 0x100a14c9

Function at 0x100a14e0
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 0x100a1531
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x100a153c
mov dword [esi + 4], 0
jmp 0x100a1537
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x100a1542
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 0x100a1550
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 0x100a158d
call sub.ws2_32.dll_WSAGetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x274a
jne 0x100a1598
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 0x100a1870
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 0x100a18ac
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x100a18ba
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 0x100a18d0
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 0x100a195a
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 0x100a195a
mov edx, 0x431bde83
mov eax, ecx
mul edx
mov eax, edi
shr edx, 0x12
add eax, edx
mov eax, ebx
adc eax, 0
jb 0x100a195a
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 0x100a195a
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 0x100a19a1
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 0x100a1995
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 [0x10162f00]
mov ecx, dword [0x10162f04]
mov dword [esi + 4], ecx
mov dword [esi], eax
jmp 0x100a1997

Function at 0x100a1aa0
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 0x100a1acc
mov byte [esi], 4
jmp 0x100a1ada
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 0x100a1af0
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 0x100a1b0f
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 0x100a1b4c
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 0x100a1be0
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 0x100a1c1f
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 0x100a2430
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x18], 0
movzx eax, byte [ecx + 0xc]
mov byte [ecx + 0xc], 0
movzx ebx, word [ecx + 8]
mov esi, dword [ecx]
mov byte [ebp - 0xd], al
mov eax, ecx
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x2c], ecx
mov edi, ebx
test bx, bx
je 0x100a24b2
nop word cs:[eax + eax]
xor ebx, ebx
mov word [eax + 8], 0
cmp di, 0x22
jne 0x100a257b
mov ecx, dword [ebp - 0x18]
xor cl, 1
mov dword [ebp - 0x18], ecx
mov edi, ebx
test bx, bx
jne 0x100a2490
cmp esi, dword [ebp - 0x2c]
je 0x100a25ca
lea ecx, [esi + 1]
mov dword [eax], ecx
movzx edx, byte [esi]
test dl, dl
js 0x100a24d0
mov edi, edx
jmp 0x100a2537
lea ecx, [esi + 2]
mov ebx, eax
mov edi, edx
mov dword [eax], ecx
and edi, 0x1f
movzx eax, byte [esi + 1]
and eax, 0x3f
cmp dl, 0xdf
jbe 0x100a2530
lea ecx, [esi + 3]
shl eax, 6
mov dword [ebx], ecx
movzx ebx, byte [esi + 2]
and ebx, 0x3f
or ebx, eax
cmp dl, 0xf0
jb 0x100a2540
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 4]
and edi, 7
shl ebx, 6
shl edi, 0x12
mov dword [eax], ecx
movzx eax, byte [esi + 3]
and eax, 0x3f
or eax, ebx
or edi, eax
cmp edi, 0xffff
ja 0x100a254d
mov eax, dword [ebp + 0xc]
jmp 0x100a2537
shl edi, 6
or edi, eax
mov eax, ebx
xor ebx, ebx
mov esi, ecx
jmp 0x100a2498
shl edi, 0xc
or edi, ebx
cmp edi, 0xffff
jbe 0x100a2522
mov edx, dword [ebp + 0xc]
lea eax, [edi + 0xff0000]
and edi, 0x3ff
mov esi, ecx
shr eax, 0xa
or edi, 0xdc00
or eax, 0xd800
mov ebx, edi
mov word [edx + 8], di
mov edi, eax
mov eax, edx
jmp 0x100a2498
movzx eax, di
cmp eax, 0x3b
jne 0x100a2589
test byte [ebp - 0x18], 1
je 0x100a25c3
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jne 0x100a259f
lea ecx, [ebp - 0x24]
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::grow_one::hb3bae065834a38fe
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov word [ecx + eax*2], di
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
test bx, bx
je 0x100a24b2
jmp 0x100a2490
mov eax, dword [ebp + 0xc]
mov byte [eax + 0xc], 1
mov ecx, dword [ebp - 0x14]
test ecx, ecx
setne al
or byte [ebp - 0xd], al
je 0x100a2606
lea eax, [ebp - 0x3c]
push ecx
push dword [ebp - 0x20]
push eax
call sym.__LT_std..ffi..os_str..OsString_u20_as_u20_std..os..windows..ffi..OsStringExt_GT_::from_wide::h63b25de594ca01f2
add esp, 0xc
mov esi, dword [ebp + 8]
movsd xmm0, qword [ebp - 0x3c]
movsd xmm1, qword [ebp - 0x34]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x100a2616
jmp 0x100a2626
mov esi, dword [ebp + 8]
mov dword [esi], 0x80000000
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100a2626
add eax, eax
push 2
push eax
push dword [ebp - 0x20]
call sym.___rust_dealloc
add esp, 0xc
mov eax, esi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100a2800
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_iter17h721c55fcc
mov ebx, dword [ebp - 0x10]
cmp ebx, dword [ebp - 0x18]
jne 0x100a2838
lea ecx, [ebp - 0x18]
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::grow_one::hb3bae065834a38fe
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 0x100a2870
mov byte [esi], 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100a2866
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 0x100a2858
jmp 0x100a2866

Function at 0x100a28b0
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::h36c7c454f9caa61a
add esp, 4
mov edi, dword [ebp - 0x1c]
mov eax, edi
neg eax
jno 0x100a28e1
movsd xmm0, qword [ebp - 0x18]
movsd qword [esi], xmm0
jmp 0x100a294a
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::h36c7c454f9caa61a
add esp, 4
mov ebx, dword [ebp - 0x1c]
mov eax, ebx
neg eax
jno 0x100a290c
movsd xmm0, qword [ebp - 0x18]
movsd qword [esi], xmm0
jmp 0x100a2936
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 0x100a2954
mov byte [esi], 4
test ebx, ebx
je 0x100a2936
add ebx, ebx
push 2
push ebx
push dword [ebp - 0x20]
call sym.___rust_dealloc
add esp, 0xc
test edi, edi
je 0x100a294a
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 0x100a2926
jmp 0x100a2936
Function at 0x100a2990
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::h36c7c454f9caa61a
add esp, 4
mov edi, dword [ebp - 0x18]
mov eax, edi
neg eax
jno 0x100a29c1
movsd xmm0, qword [ebp - 0x14]
movsd qword [esi], xmm0
jmp 0x100a29e5
mov ebx, dword [ebp - 0x14]
push 0
push ebx
call sub.kernel32.dll_SetEnvironmentVariableW
test eax, eax
je 0x100a29ef
mov byte [esi], 4
test edi, edi
je 0x100a29e5
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 0x100a29d7
jmp 0x100a29e5