joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001b950
Capabilities:
Set socket configuration

Disassembly:
push esi
push eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov ecx, dword [ecx]
mov dword [esp], eax
mov eax, esp
push 4
push eax
push 0xa
push 0
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x1001b98f
call dword [sym.imp.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
ret

Function at 0x1001ba10
Capabilities:
Set socket configuration

Disassembly:
push esi
push eax
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x14]
mov esi, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp], ecx
mov ecx, esp
push 4
push ecx
push 0xb
push 0x29
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x1001ba50
call dword [sym.imp.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
ret

Function at 0x1001bac0
Capabilities:
Set socket configuration

Disassembly:
push esi
sub esp, 8
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edx, dword [edx]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov ecx, esp
push 8
push ecx
push 0xc
push 0
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x1001bb0d
call dword [sym.imp.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
ret

Function at 0x1001bb20
Capabilities:
Set socket configuration

Disassembly:
push esi
sub esp, 0x14
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
movups xmm0, xmmword [ecx]
mov edx, dword [edx]
movups xmmword [esp], xmm0
mov dword [esp + 0x10], eax
mov eax, esp
push 0x14
push eax
push 0xc
push 0x29
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x1001bb6d
call dword [sym.imp.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
ret

Function at 0x1001bb80
Capabilities:
Set socket configuration

Disassembly:
push esi
sub esp, 8
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edx, dword [edx]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov ecx, esp
push 8
push ecx
push 0xd
push 0
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x1001bbcd
call dword [sym.imp.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
ret
Function at 0x1001bbe0
Capabilities:
Set socket configuration

Disassembly:
push esi
sub esp, 0x14
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
movups xmm0, xmmword [ecx]
mov edx, dword [edx]
movups xmmword [esp], xmm0
mov dword [esp + 0x10], eax
mov eax, esp
push 0x14
push eax
push 0xd
push 0x29
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x1001bc2d
call dword [sym.imp.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
ret

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

Disassembly:
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, closesocket
cmp eax, 0x7fffffff
cmovb edx, eax
push 0
push edx
push dword [esp + 0x18]
push dword [ecx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1001bc78
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov byte [esi], 0
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov eax, esi
pop esi
ret

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

Disassembly:
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, closesocket
cmp eax, 0x7fffffff
cmovb edx, eax
push 0
push edx
push dword [esp + 0x18]
push dword [ecx]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1001bce0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
xor eax, eax
cmp ecx, 0x274a
jne 0x1001bcea
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
ret
mov byte [esi], 0
mov dword [esi + 4], ecx
mov eax, esi
pop esi
ret

Function at 0x10020380
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
sub esp, 0x20
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
xorps xmm0, xmm0
mov edi, esp
mov dword [esp], 0
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x1c], edi
lea edi, [esp + 0xc]
mov ecx, dword [ecx]
push 0x1002fde0
push edi
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x100203eb
mov edi, dword [sym.imp.KERNEL32.dll_SleepEx]
nop dword [eax]
push 1
push 0xffffffffffffffff
call edi
cmp dword [esp], 0
je 0x100203d0
mov eax, dword [esp + 4]
test eax, eax
je 0x100203f9
mov dword [esi + 4], eax
xor eax, eax
jmp 0x10020402
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x10020404
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov al, 4
mov byte [esi], al
mov eax, esi
add esp, 0x20
pop esi
pop edi
ret
Function at 0x10020410
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
sub esp, 0x20
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
xorps xmm0, xmm0
mov edi, esp
mov ecx, dword [ecx]
mov ecx, dword [ecx]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x1c], edi
mov dword [esp], 0
lea edi, [esp + 0xc]
push 0x1002fde0
push edi
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x1002047b
mov edi, dword [sym.imp.KERNEL32.dll_SleepEx]
nop dword [eax + eax]
push 1
push 0xffffffffffffffff
call edi
cmp dword [esp], 0
je 0x10020460
mov eax, dword [esp + 4]
test eax, eax
je 0x10020489
mov dword [esi + 4], eax
xor eax, eax
jmp 0x10020492
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x10020494
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov al, 4
mov byte [esi], al
mov eax, esi
add esp, 0x20
pop esi
pop edi
ret

Function at 0x100204c0
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
sub esp, 0x20
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
xorps xmm0, xmm0
mov edi, esp
mov dword [esp], 0
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x1c], edi
lea edi, [esp + 0xc]
mov ecx, dword [ecx]
push 0x1002fde0
push edi
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x1002052f
mov edi, dword [sym.imp.KERNEL32.dll_SleepEx]
nop dword [eax]
push 1
push 0xffffffffffffffff
call edi
cmp dword [esp], 0
je 0x10020510
mov edi, dword [esp + 4]
test edi, edi
jne 0x10020537
mov edi, dword [esp + 8]
mov ecx, 4
jmp 0x10020550
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, edi
call fcn.100379e0
xor ecx, ecx
cmp al, 0xb
jne 0x10020550
mov dword [esi + 4], 0
mov byte [esi], 4
jmp 0x10020555
mov dword [esi], ecx
mov dword [esi + 4], edi
mov eax, esi
add esp, 0x20
pop esi
pop edi
ret

Function at 0x10020f20
Capabilities:
Terminate process

Disassembly:
push ebx
push edi
push esi
push eax
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov ebx, dword [eax + 0x18]
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x10020f41
mov byte [esi], 4
jmp 0x10020f85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 5
jne 0x10020f7f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10020f64
cmp eax, 0x102
je 0x10020f3c
jmp 0x10020f79
mov eax, esp
mov dword [esp], 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x10020f3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], edi
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
ret
Function at 0x10023a20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1038
call fcn.1006ee20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x1003c960
mov ebx, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], edx
lea esi, [ebp - 0x1044]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x1000
push 0
push esi
call fcn.1006fd10
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push 0x1002fde0
push eax
push 0x1000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x10023b74
mov esi, dword [sym.imp.KERNEL32.dll_SleepEx]
mov dword [ebp - 0x20], ebx
push 1
push 0xffffffffffffffff
call esi
cmp dword [ebp - 0x30], 0
je 0x10023aaa
cmp dword [ebp - 0x2c], 0
jne 0x10023b85
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x10023b85
cmp edi, 0x1000
ja 0x10023bbf
xor ebx, ebx
nop dword [eax]
mov eax, edi
sub eax, ebx
jb 0x10023ba7
xorps xmm0, xmm0
lea edx, [ebp - 0x30]
lea ecx, [ebp + ebx - 0x1044]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], edx
push 0x1002fde0
lea edx, [ebp - 0x44]
push edx
push eax
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x10023b7c
nop dword [eax]
push 1
push 0xffffffffffffffff
call esi
cmp dword [ebp - 0x30], 0
je 0x10023b20
cmp dword [ebp - 0x2c], 0
jne 0x10023b82
add ebx, dword [ebp - 0x28]
cmp ebx, edi
jne 0x10023ae0
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x1002fde0
lea eax, [ebp - 0x44]
push eax
push 0x1000
lea eax, [ebp - 0x1044]
push eax
mov ebx, dword [ebp - 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x10023aaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10023b85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push dword [ebp - 0x24]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1038
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 0x10081e18
push edi
push ebx
call sym.kso.dll_core::slice::index::slice_index_order_fail::hcccd9689ed1eb632
add esp, 0xc
jmp 0x10023bd9
mov dword [ebp - 0x10], 0
push 0x10081e18
push 0x1000
push edi
call sym.kso.dll_core::slice::index::slice_end_index_len_fail::h3099cda8f6e1d372
add esp, 0xc
ud2
Function at 0x100295d0
Capabilities:
Create directory

Disassembly:
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [esp + 0xc]
push dword [esp + 0x34]
call fcn.100380b0
add esp, 4
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp ecx, 0x80000000
je 0x1002962b
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
mov ecx, esp
lea edx, [esp + 0x18]
push 1
call fcn.1002e720
add esp, 4
mov ebx, dword [esp]
mov edi, dword [esp + 4]
cmp ebx, 0x80000000
jne 0x10029637
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov dword [esi], edi
add esp, 0x24
pop esi
pop edi
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1002964d
mov byte [esi], 4
test ebx, ebx
jne 0x1002965d
jmp 0x10029630
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x10029630
add ebx, ebx
push 2
push ebx
push edi
call sym.kso.dll___rust_dealloc
add esp, 0x30
pop esi
pop edi
pop ebx
ret
Function at 0x10029b10
Capabilities:
Delete file

Disassembly:
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0xc]
push dword [esp + 0x3c]
call fcn.100380b0
add esp, 4
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp ecx, 0x80000000
je 0x10029b71
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
mov ecx, esp
lea edx, [esp + 0x18]
push 1
call fcn.1002e720
add esp, 4
mov ebx, dword [esp]
mov edi, dword [esp + 4]
cmp ebx, 0x80000000
jne 0x10029b7f
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov dword [esi], edi
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x10029b93
mov byte [esi], 4
test ebx, ebx
jne 0x10029ba3
jmp 0x10029b76
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x10029b76
add ebx, ebx
push 2
push ebx
push edi
call sym.kso.dll___rust_dealloc
add esp, 0xc
jmp 0x10029b76
Function at 0x10029bc0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x1003cb40
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
mov dword fs:[0], ecx
lea ecx, [ebp - 0x3c]
push eax
call fcn.100380b0
add esp, 4
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
cmp ecx, 0x80000000
je 0x10029c3d
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], edx
lea edx, [ebp - 0x48]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x30]
push 1
call fcn.1002e720
add esp, 4
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
cmp eax, 0x80000000
jne 0x10029c55
mov eax, dword [ebp - 0x28]
mov dword [ebx + 4], eax
mov dword [ebx], edx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x3c]
push esi
call fcn.100380b0
add esp, 4
mov ecx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
cmp ecx, 0x80000000
jne 0x10029c8a
mov ebx, dword [ebp + 8]
jmp 0x10029cb7
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x48]
push 1
call fcn.1002e720
add esp, 4
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp + 8]
cmp edi, 0x80000000
jne 0x10029cdc
mov eax, dword [ebp - 0x28]
mov dword [ebx + 4], eax
mov dword [ebx], esi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10029c42
add eax, eax
push 2
push eax
push dword [ebp - 0x20]
call sym.kso.dll___rust_dealloc
add esp, 0xc
jmp 0x10029c42
push 1
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x10029cf5
mov byte [ebx], 4
test edi, edi
jne 0x10029d05
jmp 0x10029cbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebx], 0
mov dword [ebx + 4], eax
test edi, edi
je 0x10029cbc
add edi, edi
push 2
push edi
push esi
call sym.kso.dll___rust_dealloc
add esp, 0xc
jmp 0x10029cbc
Function at 0x10029d50
Capabilities:
Delete directory

Disassembly:
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0xc]
push dword [esp + 0x3c]
call fcn.100380b0
add esp, 4
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp ecx, 0x80000000
je 0x10029db1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
mov ecx, esp
lea edx, [esp + 0x18]
push 1
call fcn.1002e720
add esp, 4
mov ebx, dword [esp]
mov edi, dword [esp + 4]
cmp ebx, 0x80000000
jne 0x10029dbf
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov dword [esi], edi
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x10029dd3
mov byte [esi], 4
test ebx, ebx
jne 0x10029de3
jmp 0x10029db6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x10029db6
add ebx, ebx
push 2
push ebx
push edi
call sym.kso.dll___rust_dealloc
add esp, 0xc
jmp 0x10029db6

Function at 0x1002b520
Capabilities:
Set file attributes

Disassembly:
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0xc]
push dword [esp + 0x3c]
call fcn.100380b0
add esp, 4
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp ecx, 0x80000000
je 0x1002b581
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
mov ecx, esp
lea edx, [esp + 0x18]
push 1
call fcn.1002e720
add esp, 4
mov ebx, dword [esp]
mov edi, dword [esp + 4]
cmp ebx, 0x80000000
jne 0x1002b58f
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov dword [esi], edi
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
ret
push dword [esp + 0x40]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1002b5a7
mov byte [esi], 4
test ebx, ebx
jne 0x1002b5b7
jmp 0x1002b586
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x1002b586
add ebx, ebx
push 2
push ebx
push edi
call sym.kso.dll___rust_dealloc
add esp, 0xc
jmp 0x1002b586
Function at 0x1002b8c0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov esi, esp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], esp
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0x1003cbe0
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
lea ecx, [esi + 0x38]
mov eax, dword fs:[0]
mov dword [esi + 0x38], eax
mov dword fs:[0], ecx
lea ecx, [esi + 0x24]
push ebx
call fcn.100380b0
add esp, 4
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
cmp ecx, 0x80000000
je 0x1002b944
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
lea edx, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
push 1
call fcn.1002e720
add esp, 4
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
cmp eax, 0x80000000
jne 0x1002b963
mov eax, dword [esi + 0x20]
mov dword [edi + 8], eax
mov dword [edi + 4], edx
mov dword [edi], 1
mov eax, dword [esi + 0x38]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp + 0x18]
mov dword [esi], edx
mov edx, dword [ebp + 0x14]
mov dword [esi + 4], eax
mov dword [esi + 0x40], 0
lea ecx, [esi + 0x24]
push edi
call fcn.100380b0
add esp, 4
mov ecx, dword [esi + 0x24]
mov edi, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
cmp ecx, 0x80000000
je 0x1002b9bc
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
lea edx, [esi + 8]
push 1
call fcn.1002e720
add esp, 4
mov ebx, dword [esi + 0x18]
mov edi, dword [esi + 0x1c]
cmp ebx, 0x80000000
jne 0x1002b9ed
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
mov dword [ecx + 4], edi
mov dword [ecx], 1
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
test eax, eax
je 0x1002b950
add eax, eax
push 2
push eax
push dword [esi]
call sym.kso.dll___rust_dealloc
add esp, 0xc
jmp 0x1002b950
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
push 0
push 0
lea eax, [esi + 8]
push eax
push 0x1002ba90
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x1002ba30
mov eax, dword [esi + 8]
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov dword [edx], 0
test ebx, ebx
jne 0x1002ba4a
jmp 0x1002b9cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov byte [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx], 1
test ebx, ebx
je 0x1002b9cb
add ebx, ebx
push 2
push ebx
push edi
call sym.kso.dll___rust_dealloc
add esp, 0xc
jmp 0x1002b9cb
Function at 0x1002bfc0
Capabilities:
Read file on windows

Disassembly:
push ebx
push edi
push esi
push eax
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov dword [esp], 0
mov ebx, esp
push edx
push ebx
push ecx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002c00b
mov eax, dword [esp]
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
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x1002c026
cmp eax, 0x3e5
jne 0x1002c036
mov dword [esi + 4], 0
jmp 0x1002bffe
mov dword [esi + 4], 1
mov dword [esi + 8], 0
jmp 0x1002bffe
mov dword [esi + 4], 0
mov dword [esi + 8], eax
mov eax, 1
jmp 0x1002c000

Function at 0x1002c160
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 0x1002c1a4
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 0x1002c1aa
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 dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1002c1df
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x1002c1ef
mov dword [esi + 4], 0
jmp 0x1002c201
cmp eax, 0x103
je 0x1002c21b
test eax, eax
js 0x1002c20c
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 dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x1002c204
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x10081a78
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 fcn.10019480
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.100047d0
mov ecx, 7
int 0x29
ud2