joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403760
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e7788
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
mov esi, dword [esp + 0x3c]
cmp byte [esi + 0x519158], 0xff
jne 0x40383d
push ebx
xor ebx, ebx
lea ecx, [esp + 8]
lea eax, [esi + 0x41]
push ecx
mov word [esp + 0xc], ax
mov word [esp + 0xe], 0x3a
mov word [esp + 0x10], bx
mov word [esp + 0x12], bx
mov word [esp + 0x14], bx
mov word [esp + 0x16], bx
mov word [esp + 0x18], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
sete al
cmp al, bl
mov byte [esi + 0x519158], al
je 0x403825
lea ecx, [esp + 0x18]
mov word [esp + 0xc], 0x5c
mov word [esp + 0xe], 0x4e
mov word [esp + 0x10], 0x55
mov word [esp + 0x12], 0x4c
call fcn.004b2394
push ebx
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], ebx
call fcn.004b2429
neg eax
sbb al, al
inc al
lea ecx, [esp + 0x18]
mov byte [esi + 0x519158], al
mov dword [esp + 0x38], 0xffffffff
call fcn.004b23ba
movsx eax, byte [esi + 0x519158]
pop ebx
pop esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
mov ecx, dword [esp + 0x2c]
movsx eax, byte [esi + 0x519158]
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret

Function at 0x403c30
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b4
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov esi, ecx
mov eax, dword [esi + 0x5c]
mov eax, dword [eax + 0x1c]
push 0
push 0x1108
push eax
call edi
push eax
call fcn.004c6ec1
test eax, eax
je 0x403c64
lea ecx, [esi + 0x60]
call fcn.004c6e81
mov eax, dword [esi + 0x68]
push 0x4001
push 0x2b4
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jne 0x403c9b
push str.Cannot_retrive_the_Handle_of_system_ImageList_
lea ecx, [esi + 0x70]
call fcn.00401fb0
pop edi
xor eax, eax
pop esi
add esp, 0x2b4
ret
mov dword [esi + 0x64], eax
lea eax, [esi + 0x60]
test eax, eax
mov esi, dword [esi + 0x5c]
je 0x403cab
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x1c]
push eax
push 0
push 0x1109
push edx
call edi
push eax
call fcn.004c6ec1
pop edi
mov eax, 1
pop esi
add esp, 0x2b4
ret
Function at 0x404cb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e7880
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
call fcn.004b2394
mov eax, dword [esp + 0x34]
xor ebx, ebx
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], ebx
call fcn.004044c0
mov edx, dword [esp + 8]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
cmp eax, ebx
mov byte [esp + 0x2c], 1
jl 0x404e29
cmp eax, ecx
jg 0x404e29
cmp word [edx + eax*2], 0x5c
lea ecx, [esp + 8]
jne 0x404d1a
push 0x4f0088
jmp 0x404d1f
push 0x4efeb4
call fcn.00403f10
mov ecx, dword [esp + 8]
push esi
push ebx
push ecx
lea ecx, [esp + 0x18]
call fcn.004b2429
cmp eax, ebx
je 0x404d94
jmp 0x404d40
lea ecx, [esp + 0x10]
call fcn.004b2270
mov edx, dword [esp + 0x10]
push 0x10
lea ecx, [esp + 0x14]
mov esi, eax
call dword [edx + 0x38]
test eax, eax
je 0x404d69
lea ecx, [esp + 0x10]
call fcn.004b2357
test eax, eax
je 0x404ddd
mov eax, dword [esp + 0x10]
push 0x10
lea ecx, [esp + 0x14]
call dword [eax + 0x38]
test eax, eax
jne 0x404d90
cmp dword [edi + 0x6c], ebx
je 0x404d90
mov edx, dword [esp + 0x10]
push 2
lea ecx, [esp + 0x14]
call dword [edx + 0x38]
test eax, eax
je 0x404ddd
cmp esi, ebx
jne 0x404d40
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x30], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404db6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.004b23ba
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x30], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404dff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.004b23ba
mov ecx, dword [esp + 0x28]
pop esi
pop edi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4
push 0x80070057
call fcn.00401430
int3
Function at 0x405d30
Capabilities:
Get disk information

Disassembly:
sub esp, 0x41c
mov edx, dword [esp + 0x420]
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
xor edi, edi
push 0x209
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov word [esp + 0x28], di
call fcn.00449fe0
add esp, 0x10
push 0x5c
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrRChrW]
push 0x5c
push edi
lea ecx, [esp + 0x20]
push ecx
mov ebp, eax
call ebx
mov esi, eax
cmp esi, edi
je 0x405dc5
lea ecx, [ecx]
push edi
push edi
lea edx, [esp + 0x18]
push edx
push edi
push edi
push edi
push edi
lea eax, [esp + 0x34]
push eax
mov word [esi + 2], di
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x405dd3
cmp esi, ebp
mov word [esi], di
jbe 0x405dc5
push 0x5c
push edi
lea ecx, [esp + 0x20]
push ecx
call ebx
mov esi, eax
cmp esi, edi
jne 0x405d90
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
shr eax, 0x13
pop ebp
and eax, 1
pop ebx
add esp, 0x41c
ret

Function at 0x405e10
Capabilities:
Get file system object information
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c0
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi*4 + 0x519168]
test eax, eax
lea esi, [edi*4 + 0x519168]
jge 0x405ea0
mov ecx, dword [edi*4 + 0x519160]
push 0x104
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test edi, edi
je 0x405e5d
mov word [esp + 0xc], 0x5c
mov word [esp + 0xe], 0
push 0x110
push 0x2b4
xor eax, eax
lea edx, [esp + 0x218]
push edx
mov dword [esp + 0x21c], 0
mov ecx, 0xac
lea edi, [esp + 0x220]
rep stosd dword es:[edi], eax
push 0x10
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0x214]
mov dword [esi], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405eb0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2bc
mov eax, dword [ebp + 0xc]
test eax, eax
push edi
je 0x405ed5
push 0
call fcn.00405e10
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
push 0x2e
push eax
call fcn.004b3956
mov edx, eax
add esp, 8
test edx, edx
jne 0x405ef0
mov edx, 0x4f0220
jmp 0x405f22
cmp word [edx + 2], 0
lea ecx, [edx + 2]
je 0x405f22
lea ebx, [ebx]
xor eax, eax
mov ax, word [ecx]
cmp ax, 0x61
jb 0x405f19
cmp ax, 0x7a
ja 0x405f19
and eax, 0xffdf
mov word [ecx], ax
add ecx, 2
cmp word [ecx], 0
jne 0x405f00
push 0x4010
xor eax, eax
mov dword [esp + 0xc], 0
mov ecx, 0xac
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push 0x2b4
lea ecx, [esp + 0x10]
push ecx
push 0x80
push edx
mov dword [esp + 0x20], 0xffffffff
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0xc]
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406120
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b4
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov esi, ecx
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0x1c]
push 0
push 0x1002
push eax
call edi
push eax
call fcn.004c6ec1
test eax, eax
je 0x406154
lea ecx, [esi + 0x58]
call fcn.004c6e81
mov eax, dword [esi + 0x50]
push 0x4001
push 0x2b4
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jne 0x40617c
pop edi
pop esi
add esp, 0x2b4
ret
mov dword [esi + 0x5c], eax
lea eax, [esi + 0x58]
test eax, eax
mov esi, dword [esi + 0x54]
je 0x40618c
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x1c]
push eax
push 1
push 0x1003
push edx
call edi
push eax
call fcn.004c6ec1
pop edi
mov eax, 1
pop esi
add esp, 0x2b4
ret

Function at 0x406670
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e79a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
movsx ax, byte [esp + 0x24]
push 1
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00402180
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401be0
mov edi, dword [esp + 0x34]
add eax, 0x10
add esp, 0x18
mov dword [edi], eax
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406708
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x407130
Capabilities:
Create thread
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp esi, 3
jne 0x40714c
mov esi, dword [0x51be44]
cmp word [esi], 0
je 0x40721a
jmp 0x4071aa
cmp esi, 2
jne 0x40715a
mov byte [0x51be40], 0
pop esi
ret
mov eax, dword [0x51be34]
test eax, eax
je 0x407176
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x51be34], 0
cmp esi, 1
jne 0x4071a2
mov eax, dword [0x51be30]
test eax, eax
je 0x40721a
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x51be30], 0
mov byte [0x51be40], 0xc8
jmp 0x4071f7
cmp esi, 0x10000
jb 0x40721a
mov eax, dword [0x51be30]
test eax, eax
je 0x4071c4
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x51be30], 0
test esi, esi
je 0x40721a
cmp word [esi], 0
je 0x40721a
mov eax, dword [0x51be3c]
test eax, eax
jg 0x40721a
push 0x1b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
cmp eax, 0xffffffff
je 0x40721a
push esi
mov ecx, 0x51be44
mov dword [0x51be30], eax
call fcn.00402d60
push 0x51be4c
push 0x10000
push 0
push 0x4064a0
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x51be34], eax
pop esi
ret
Function at 0x409410
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4e7cc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
mov esi, ecx
call fcn.004080d0
mov edi, dword [esp + 0x10]
xor ebx, ebx
cmp word [edi], bx
mov dword [esp + 0x1c], 0
je 0x409455
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40946b
lea ecx, [esi + 0x60]
push ecx
lea ecx, [esp + 0x14]
call fcn.004024d0
mov edi, dword [esp + 0x10]
mov ebx, 1
mov edx, dword [0x51be3c]
inc edx
mov dword [0x51be3c], edx
mov eax, dword [esp + 0x24]
push ebx
push edi
push eax
mov byte [esp + 0x28], 1
call fcn.0040a6c0
add esp, 0xc
test eax, eax
jle 0x4094a6
push 0
mov ecx, esi
call fcn.00407380
mov ecx, dword [esi + 0x6c]
push 0
add ecx, 0x5c
call fcn.004052c0
mov ecx, dword [0x51be3c]
dec ecx
lea eax, [edi - 0x10]
mov dword [0x51be3c], ecx
mov dword [esp + 0x1c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop edi
pop esi
pop ebx
jg 0x4094d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x4094f0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4e7ce0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x1c], 0
call fcn.004cc87a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
mov ebx, 1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], bl
call fcn.004024d0
mov esi, dword [esp + 0x24]
cmp word [esi], 0x2e
mov eax, dword [esp + 0x10]
mov edi, eax
jne 0x409582
cmp word [esi + 2], 0x2e
jne 0x409582
cmp word [esi + 4], 0
jne 0x409582
push 0x5c
push eax
call fcn.004b3956
add esp, 8
test eax, eax
je 0x4095f4
mov ecx, eax
sub ecx, edi
and ecx, 0xfffffffe
cmp ecx, 4
jle 0x4095f4
mov word [eax], 0
jmp 0x4095f4
push ebx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x18]
call fcn.00401ee0
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
jne 0x4095b0
test eax, eax
jge 0x4095a8
push 0x80070057
call fcn.00401430
cmp word [ecx], 0x5c
jne 0x4095b0
xor bl, bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4095ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x4095e0
push 0x4efeb0
lea ecx, [esp + 0x14]
call fcn.00403f10
push esi
call fcn.004b3af1
add esp, 4
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.00402340
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x409617
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.00408550
add esp, 8
jmp 0x409639
mov eax, dword [ebp + 0x68]
mov edx, dword [eax + 0x1c]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x496
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp + 0x6c]
push esi
call fcn.0040b340
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40965c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409682
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x409790
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
call fcn.004cd66e
xor esi, esi
cmp eax, esi
je 0x4097aa
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
cmp eax, esi
jne 0x4097ae
xor eax, eax
jmp 0x4097b1
mov eax, dword [eax + 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x44c
mov dword [esp + 0x14], str.properties
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
add esp, 0x3c
ret

Function at 0x409800
Capabilities:
List drag and drop files
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
push ebx
push esi
push edi
push str.Preferred_DropEffect
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
test eax, eax
jne 0x40982e
lea eax, [esp + 0x10]
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4098d1
mov esi, dword [sym.imp.USER32.dll_GetClipboardData]
push 0xf
call esi
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
je 0x4098cb
mov edx, dword [esp + 0x10]
push edx
call esi
test eax, eax
jne 0x40986a
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
jmp 0x409871
mov ecx, dword [eax]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
push 0
push 0
push 0xffffffffffffffff
push edi
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov ebx, eax
xor eax, eax
mov word [esp + 0x18], 0
mov ecx, 0x81
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
xor esi, esi
test ebx, ebx
stosw word es:[edi], ax
jbe 0x4098cb
mov edi, dword [ebp + 0xc]
nop
mov ecx, dword [esp + 0x14]
push 0x208
lea eax, [esp + 0x1c]
push eax
push esi
push ecx
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov eax, dword [edi + 8]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, edi
call fcn.004c7a7f
inc esi
cmp esi, ebx
jb 0x4098a0
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409990
Capabilities:
Move file

Disassembly:
sub esp, 0x20
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push esi
mov esi, dword [esp + 0x28]
mov word [esp + 0x20], ax
mov eax, dword [esi]
xor edx, edx
mov dword [esp + 4], 0
cmp word [eax], dx
je 0x4099dd
cmp word [eax], 0xa
jne 0x4099d4
mov word [eax], 0
inc edx
add eax, 2
cmp word [eax], 0
jne 0x4099c8
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x409a04
mov eax, dword [ecx]
cmp word [eax], 0
je 0x409a04
lea ecx, [ecx]
cmp word [eax], 0xa
jne 0x4099fb
mov word [eax], 0
add eax, 2
cmp word [eax], 0
jne 0x4099f0
test ecx, ecx
mov eax, dword [esi]
mov dword [esp + 0xc], eax
pop esi
je 0x409a15
mov ecx, dword [ecx]
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x2c]
xor ecx, ecx
cmp edx, 1
mov edx, dword [esp + 0x30]
setg cl
mov dword [esp + 4], eax
or ecx, edx
lea edx, [esp]
push edx
mov word [esp + 0x14], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
add esp, 0x20
ret

Function at 0x409a40
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4e7d20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x409ace
push edi
call fcn.004cc87a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [0x51c31c]
push esi
push eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x24], 1
call fcn.00402400
mov edi, dword [esp + 0x18]
add esp, 0xc
push 0
push 0
push edi
call fcn.004db4d5
lea eax, [edi - 0x10]
mov byte [esp + 0x18], 0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop edi
jg 0x409ae0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x409ae0
and eax, 0xfffffff8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x409afb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40a0e0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x4e7dd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
call fcn.004cc87a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x38], 0
call fcn.0040a030
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
add esp, 8
push 4
push 0x2042
mov esi, eax
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
push ebx
call edi
mov ecx, dword [esp + 0x3c]
xor edx, edx
test ecx, ecx
sete dl
push ebx
inc edx
mov dword [eax], edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esi + esi + 0x1c]
push eax
push 0x2042
mov dword [esp + 0x28], 0
call ebp
mov ebp, eax
push ebp
call edi
mov edx, eax
mov ecx, 0x14
mov dword [edx], ecx
xor ecx, ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x20]
mov dword [edx + 0xc], ecx
mov ecx, 1
mov dword [edx + 0x10], ecx
lea ecx, [esi + esi]
mov esi, dword [esp + 0x10]
mov edx, ecx
shr ecx, 2
add eax, 0x14
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push str.Preferred_DropEffect
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40a1e8
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, dword [sym.imp.USER32.dll_SetClipboardData]
push ebp
push 0xf
call edi
push ebx
push esi
call edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebp
pop ebx
jg 0x40a212
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x40a5e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4e7e38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40a678
call fcn.004cc87a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 4], eax
mov eax, dword [0x51c31c]
push esi
push eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x1c], 0
call fcn.00402400
mov esi, dword [esp + 0x10]
add esp, 0xc
push 0
push 0
push esi
call fcn.004db4d5
lea eax, [esi - 0x10]
mov dword [esp + 0x10], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a666
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret
test al, 0x10
push ecx
mov dword [esp + 8], esp
mov ecx, esp
push esi
je 0x40a690
call fcn.004044c0
call fcn.00409b10
jmp 0x40a69a
call fcn.004044c0
call fcn.00409a40
mov ecx, dword [esp + 0xc]
add esp, 4
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret