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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push eax
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
lea edi, [ebp - 0xc]
mov edx, dword [edx]
mov edx, dword [edx]
mov dword [ebp - 0xc], 0
push 0
push 0
push 0
push edi
push ecx
push eax
push edx
call sub.ws2_32.dll_WSASend
cmp eax, 0xffffffff
je 0x1009064f
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x1009065d
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 0x100908d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, dword [ecx]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 4
push eax
push 4
push 0
push ecx
call sub.ws2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x1009090e
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 0x10090980
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 0x1b
push 0x29
push eax
call sub.ws2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x100909bf
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 0x10090ab0
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 ecx
push 0x8004667e
push eax
call sub.ws2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x10090add
mov byte [esi], 4
jmp 0x10090aeb
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 0x10090d90
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 0x20
push 0xffff
push eax
call sub.ws2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x10090dd2
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 0x10090e50
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 0xb
push 0
push eax
call sub.ws2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x10090e8f
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 0x10090f00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, dword [ecx]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 4
push eax
push 0xa
push 0
push ecx
call sub.ws2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x10090f3e
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 0x10090fb0
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 0xb
push 0x29
push eax
call sub.ws2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x10090fef
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 0x10091060
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov edx, dword [edx]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 8
push eax
push 0xc
push 0
push edx
call sub.ws2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x100910aa
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 ebp
ret

Function at 0x100910c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x14
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
movsd xmm0, qword [ecx]
movsd xmm1, qword [ecx + 8]
mov edx, dword [edx]
movsd qword [ebp - 0x10], xmm1
movsd qword [ebp - 0x18], xmm0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push 0x14
push eax
push 0xc
push 0x29
push edx
call sub.ws2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x10091116
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, 0x14
pop esi
pop ebp
ret
Function at 0x10091120
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov edx, dword [edx]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 8
push eax
push 0xd
push 0
push edx
call sub.ws2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x1009116a
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 ebp
ret

Function at 0x10091180
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x14
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
movsd xmm0, qword [ecx]
movsd xmm1, qword [ecx + 8]
mov edx, dword [edx]
movsd qword [ebp - 0x10], xmm1
movsd qword [ebp - 0x18], xmm0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push 0x14
push eax
push 0xd
push 0x29
push edx
call sub.ws2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x100911d6
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, 0x14
pop esi
pop ebp
ret

Function at 0x10095b90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x20
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
xorps xmm0, xmm0
lea edi, [ebp - 0x14]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], edi
lea edi, [ebp - 0x28]
push sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17hf7dee0df86c8513aE_12
push edi
push ecx
push eax
push dword [edx]
call sub.kernel32.dll_WriteFileEx
test eax, eax
je 0x10095bf6
nop
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x14], 1
jne 0x10095bd0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
sete al
jne 0x10095bec
mov ecx, dword [ebp - 0xc]
shl al, 2
mov dword [esi + 4], ecx
mov byte [esi], al
jmp 0x10095c01
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebp
ret
Function at 0x10095c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x20
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
xorps xmm0, xmm0
lea edi, [ebp - 0x14]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], edi
lea edi, [ebp - 0x28]
mov edx, dword [edx]
push sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17hf7dee0df86c8513aE_12
push edi
push ecx
push eax
push dword [edx]
call sub.kernel32.dll_WriteFileEx
test eax, eax
je 0x10095c76
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x14], 1
jne 0x10095c50
mov ecx, dword [ebp - 0x10]
test ecx, ecx
sete al
jne 0x10095c6c
mov ecx, dword [ebp - 0xc]
shl al, 2
mov dword [esi + 4], ecx
mov byte [esi], al
jmp 0x10095c81
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebp
ret

Function at 0x10095cf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x20
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
xorps xmm0, xmm0
lea edi, [ebp - 0x14]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], edi
lea edi, [ebp - 0x28]
push sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17hf7dee0df86c8513aE_12
push edi
push ecx
push eax
push dword [edx]
call sub.kernel32.dll_ReadFileEx
test eax, eax
je 0x10095d5d
nop
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x14], 1
jne 0x10095d30
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x10095d73
mov ecx, edi
call sym.std::sys::pal::windows::decode_error_kind::hee457e6c5b232542
cmp al, 0xb
jne 0x10095d6f
mov dword [esi + 4], 0
mov byte [esi], 4
jmp 0x10095d80
call sub.kernel32.dll_GetLastError
mov edi, eax
mov ecx, edi
call sym.std::sys::pal::windows::decode_error_kind::hee457e6c5b232542
cmp al, 0xb
je 0x10095d51
xor eax, eax
jmp 0x10095d78
mov edi, dword [ebp - 0xc]
mov al, 4
movzx eax, al
mov dword [esi + 4], edi
mov dword [esi], eax
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebp
ret

Function at 0x100965c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [eax + 0x18]
push 1
push edi
call sub.kernel32.dll_TerminateProcess
test eax, eax
je 0x100965e1
mov byte [esi], 4
jmp 0x10096624
call sub.kernel32.dll_GetLastError
cmp eax, 5
jne 0x1009661e
mov ebx, eax
push 0
push edi
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x10096602
cmp eax, 0x102
je 0x100965dc
jmp 0x10096617
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push edi
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x100965dc
call sub.kernel32.dll_GetLastError
mov eax, ebx
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100972a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x1ac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov esi, dword [eax]
mov dword [eax], 0
test esi, esi
je 0x100972f4
lea edi, [ebp - 0x1b4]
push 0x190
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push 0x202
call sub.ws2_32.dll_WSAStartup
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x100972fe
mov dword [esi], 0x100f3034
add esp, 0x1ac
pop esi
pop edi
pop ebp
ret
push 0x10161e14
call sym.core::option::unwrap_failed::h4002a2165d665d64
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0xc]
mov edx, 0x10162ea0
push 0x10162ec4
push eax
call sym.core::panicking::assert_failed::h6a7846da8fea5b10
nop dword [eax + eax]

Function at 0x10098320
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push edx
push eax
call sym.__LT__RF_str_u20_as_u20_alloc..ffi..c_str..CString..new..SpecNewImpl_GT_::spec_new_impl::hc0fc42e4f437b0f1
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov ecx, eax
neg ecx
jno 0x10098396
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 1
push eax
push ecx
push 0
push edi
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x100983c0
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 4], 0
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
jne 0x100983e0
jmp 0x100983ec
mov ecx, dword [0x10161fd8]
mov edx, dword [0x10161fdc]
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], 1
jae 0x100983ec
push 1
push eax
push dword [ebp - 0x1c]
call sym.___rust_dealloc
add esp, 0x40
jmp 0x100983ef
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax]
movzx eax, word [eax]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x100983ec
push 1
push ebx
push edi
call sym.___rust_dealloc
add esp, 0xc
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10098e80
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1024
call sym.__alloca
mov esi, edx
mov edi, ecx
lea ebx, [ebp - 0x1030]
push 0x1000
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17hf7dee0df86c8513aE_12
push eax
push 0x1000
push ebx
mov dword [ebp - 0x10], edi
push edi
call sub.kernel32.dll_ReadFileEx
test eax, eax
je 0x10098fa5
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x1c], 1
jne 0x10098ede
cmp dword [ebp - 0x18], 0
jne 0x10098fac
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10098fac
cmp ebx, 0x1000
ja 0x10098fd6
xor edi, edi
mov eax, ebx
sub eax, edi
jb 0x10098fc5
xorps xmm0, xmm0
lea edx, [ebp - 0x1c]
lea ecx, [ebp + edi - 0x1030]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], edx
push sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17hf7dee0df86c8513aE_12
lea edx, [ebp - 0x30]
push edx
push eax
push ecx
push esi
call sub.kernel32.dll_WriteFileEx
test eax, eax
je 0x10098fa7
nop word [eax + eax]
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x1c], 1
jne 0x10098f50
cmp dword [ebp - 0x18], 0
jne 0x10098fac
add edi, dword [ebp - 0x14]
cmp edi, ebx
jne 0x10098f10
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
push sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17hf7dee0df86c8513aE_12
lea eax, [ebp - 0x30]
push eax
push 0x1000
lea eax, [ebp - 0x1030]
push eax
push dword [ebp - 0x10]
call sub.kernel32.dll_ReadFileEx
test eax, eax
jne 0x10098ede
jmp 0x10098fa7
call sub.kernel32.dll_GetLastError
push dword [ebp - 0x10]
call sub.kernel32.dll_CloseHandle
push esi
call sub.kernel32.dll_CloseHandle
add esp, 0x1024
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x10163144
push ebx
push edi
call sym.core::slice::index::slice_index_order_fail::hcb31333d79b0be37
add esp, 0xc
jmp 0x10098fe9
push 0x10163144
push 0x1000
push ebx
call sym.core::slice::index::slice_end_index_len_fail::h31017dc9c470f2c8
add esp, 0xc
ud2
Function at 0x1009d1f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x25c
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov edi, dword [ebx + 0x258]
cmp edi, 0xffffffff
je 0x1009d2e6
movzx esi, word [ebx + 0x32]
mov eax, dword [ebx]
movzx ecx, word [ebx + 0x30]
mov dword [ebp - 0x14], esi
movzx esi, word [ebx + 0x34]
cmp eax, 1
mov dword [ebx], 0
mov word [ebp - 0xe], si
jne 0x1009d258
mov esi, dword [ebx + 0x254]
cmp cx, 0x2e
jne 0x1009d31a
cmp word [ebp - 0x14], 0
je 0x1009d258
mov eax, dword [ebp - 0x14]
xor eax, 0x2e
or ax, word [ebp - 0xe]
jne 0x1009d31a
lea esi, [ebp - 0x268]
push 0x250
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
push edi
call sub.kernel32.dll_FindNextFileW
test eax, eax
je 0x1009d2f1
mov ebx, dword [ebx + 0x254]
jmp 0x1009d29b
push esi
push edi
call sub.kernel32.dll_FindNextFileW
test eax, eax
je 0x1009d2f1
cmp word [ebp - 0x23c], 0x2e
jne 0x1009d2c1
movzx eax, word [ebp - 0x23a]
test ax, ax
je 0x1009d290
cmp ax, 0x2e
jne 0x1009d2c1
cmp word [ebp - 0x238], 0
je 0x1009d290
lock inc dword [ebx]
jle 0x1009d3a7
mov edi, dword [ebp + 8]
lea eax, [edi + 8]
push 0x250
push esi
push eax
call sub.msvcrt.dll_memcpy
mov edx, edi
add esp, 0xc
mov dword [edi + 4], ebx
jmp 0x1009d30e
mov dword [edx], 0
jmp 0x1009d39a
call sub.kernel32.dll_GetLastError
mov edx, dword [ebp + 8]
xor ecx, ecx
cmp eax, 0x12
je 0x1009d313
mov dword [edx + 4], 0
mov byte [edx + 8], 0
mov dword [edx + 0xc], eax
mov ecx, 1
mov dword [edx], ecx
jmp 0x1009d39a
mov word [ebp - 0x16], cx
lock inc dword [esi]
jle 0x1009d3a7
lea eax, [ebx + 4]
add ebx, 0x36
movsd xmm2, qword [eax + 0x18]
movsd xmm1, qword [eax + 0x10]
mov ecx, dword [eax + 0x28]
movsd xmm0, qword [eax + 0x20]
movsd qword [edx + 0x20], xmm2
movsd qword [edx + 0x18], xmm1
movsd xmm2, qword [eax]
movsd xmm1, qword [eax + 8]
mov dword [edx + 0x30], ecx
movsd qword [edx + 0x28], xmm0
lea eax, [edx + 0x3a]
movsd qword [edx + 0x10], xmm1
movsd qword [edx + 8], xmm2
push 0x21e
push ebx
push eax
mov edi, edx
call sub.msvcrt.dll_memcpy
mov edx, edi
add esp, 0xc
movzx eax, word [ebp - 0x16]
mov dword [edi + 4], esi
movzx ecx, word [ebp - 0xe]
mov word [edi + 0x34], ax
mov eax, dword [ebp - 0x14]
mov word [edi + 0x36], ax
mov word [edi + 0x38], cx
mov dword [edi], 1
mov eax, edx
add esp, 0x25c
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
Function at 0x1009dd10
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::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 0x1009dd60
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 0x1009dd6d
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
mov dword [esi + 4], ecx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp - 0x14]
push 0
push ebx
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
je 0x1009dd85
mov byte [esi], 4
test edi, edi
jne 0x1009dd94
jmp 0x1009dd65
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x1009dd65
add edi, edi
push 2
push edi
push ebx
call sym.___rust_dealloc
add esp, 0x30
jmp 0x1009dd68
Function at 0x1009e180
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::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 0x1009e1d4
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 0x1009e1e3
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_DeleteFileW
test eax, eax
je 0x1009e1f9
mov byte [esi], 4
test edi, edi
jne 0x1009e208
jmp 0x1009e1d9
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x1009e1d9
add edi, edi
push 2
push edi
push ebx
call sym.___rust_dealloc
add esp, 0xc
jmp 0x1009e1d9
Function at 0x1009e220
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::h36c7c454f9caa61a
add esp, 4
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov ecx, edx
neg ecx
mov ecx, dword [ebp - 0x24]
jo 0x1009e274
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::h1952ee698f680a9e
add esp, 4
mov edi, dword [ebp - 0x1c]
mov eax, edi
neg eax
jno 0x1009e283
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::h36c7c454f9caa61a
add esp, 4
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov ecx, edx
neg ecx
mov ecx, dword [ebp - 0x24]
jo 0x1009e2d1
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::h1952ee698f680a9e
add esp, 4
mov ebx, dword [ebp - 0x1c]
mov eax, ebx
neg eax
jno 0x1009e2ec
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
test edi, edi
je 0x1009e279
add edi, edi
push 2
push edi
push dword [ebp - 0x10]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x1009e279
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 0x1009e30a
mov byte [esi], 4
test ebx, ebx
jne 0x1009e319
jmp 0x1009e2d6
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x1009e2d6
add ebx, ebx
push 2
push ebx
push dword [ebp - 0x20]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x1009e2d6