joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404970
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e36a0
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.004ad6da
mov eax, dword [esp + 0x34]
xor ebx, ebx
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], ebx
call fcn.00404170
mov edx, dword [esp + 8]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
cmp eax, ebx
mov byte [esp + 0x2c], 1
jl 0x404ae9
cmp eax, ecx
jg 0x404ae9
cmp word [edx + eax*2], 0x5c
lea ecx, [esp + 8]
jne 0x4049da
push 0x4ec06c
jmp 0x4049df
push 0x4ebe9c
call fcn.00403bc0
mov ecx, dword [esp + 8]
push esi
push ebx
push ecx
lea ecx, [esp + 0x18]
call fcn.004ad76f
cmp eax, ebx
je 0x404a54
jmp 0x404a00
lea ecx, [esp + 0x10]
call fcn.004ad4a0
mov edx, dword [esp + 0x10]
push 0x10
lea ecx, [esp + 0x14]
mov esi, eax
call dword [edx + 0x38]
test eax, eax
je 0x404a29
lea ecx, [esp + 0x10]
call fcn.004ad69d
test eax, eax
je 0x404a9d
mov eax, dword [esp + 0x10]
push 0x10
lea ecx, [esp + 0x14]
call dword [eax + 0x38]
test eax, eax
jne 0x404a50
cmp dword [edi + 0x6c], ebx
je 0x404a50
mov edx, dword [esp + 0x10]
push 2
lea ecx, [esp + 0x14]
call dword [edx + 0x38]
test eax, eax
je 0x404a9d
cmp esi, ebx
jne 0x404a00
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 0x404a76
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.004ad700
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 0x404abf
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.004ad700
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 0x405980
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.00446c10
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 0x405a15
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 0x405a23
cmp esi, ebp
mov word [esi], di
jbe 0x405a15
push 0x5c
push edi
lea ecx, [esp + 0x20]
push ecx
call ebx
mov esi, eax
cmp esi, edi
jne 0x4059e0
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 0x405a60
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 + 0x515154]
test eax, eax
lea esi, [edi*4 + 0x515154]
jge 0x405af0
mov ecx, dword [edi*4 + 0x51514c]
push 0x104
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test edi, edi
je 0x405aad
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 0x405b00
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 0x405b25
push 0
call fcn.00405a60
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
push 0x2e
push eax
call fcn.004aec96
mov edx, eax
add esp, 8
test edx, edx
jne 0x405b40
mov edx, 0x4ec200
jmp 0x405b72
cmp word [edx + 2], 0
lea ecx, [edx + 2]
je 0x405b72
lea ebx, [ebx]
xor eax, eax
mov ax, word [ecx]
cmp ax, 0x61
jb 0x405b69
cmp ax, 0x7a
ja 0x405b69
and eax, 0xffdf
mov word [ecx], ax
add ecx, 2
cmp word [ecx], 0
jne 0x405b50
push 0x110
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 0x405d80
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.004c2d21
test eax, eax
je 0x405db4
lea ecx, [esi + 0x58]
call fcn.004c2ce1
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 0x405ddc
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 0x405dec
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x1c]
push eax
push 1
push 0x1003
push edx
call edi
push eax
call fcn.004c2d21
pop edi
mov eax, 1
pop esi
add esp, 0x2b4
ret

Function at 0x4062d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e37c8
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.00402140
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401ba0
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 0x406368
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 0x406d90
Capabilities:
Create thread
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp esi, 3
jne 0x406dac
mov esi, dword [0x517e44]
cmp word [esi], 0
je 0x406e7a
jmp 0x406e0a
cmp esi, 2
jne 0x406dba
mov byte [0x517e40], 0
pop esi
ret
mov eax, dword [0x517e34]
test eax, eax
je 0x406dd6
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x517e34], 0
cmp esi, 1
jne 0x406e02
mov eax, dword [0x517e30]
test eax, eax
je 0x406e7a
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x517e30], 0
mov byte [0x517e40], 0xc8
jmp 0x406e57
cmp esi, 0x10000
jb 0x406e7a
mov eax, dword [0x517e30]
test eax, eax
je 0x406e24
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x517e30], 0
test esi, esi
je 0x406e7a
cmp word [esi], 0
je 0x406e7a
mov eax, dword [0x517e3c]
test eax, eax
jg 0x406e7a
push 0x1b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
cmp eax, 0xffffffff
je 0x406e7a
push esi
mov ecx, 0x517e44
mov dword [0x517e30], eax
call fcn.00402d00
push 0x517e4c
push 0x10000
push 0
push 0x406100
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x517e34], eax
pop esi
ret
Function at 0x408ea0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4e39b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
lea eax, [esp + 0xc]
push eax
mov edi, ecx
call fcn.00407c20
mov esi, dword [esp + 0xc]
cmp word [esi], 0
mov dword [esp + 0x18], 0
je 0x408ee3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x408ef4
lea ecx, [edi + 0x60]
push ecx
lea ecx, [esp + 0x10]
call fcn.00402490
mov esi, dword [esp + 0xc]
mov edx, dword [0x517e3c]
inc edx
mov dword [0x517e3c], edx
mov eax, dword [esp + 0x20]
push esi
push eax
mov byte [esp + 0x20], 1
call fcn.0040a150
add esp, 8
test eax, eax
jle 0x408f2e
push 0
mov ecx, edi
call fcn.00406fe0
mov ecx, dword [edi + 0x6c]
push 0
add ecx, 0x5c
call fcn.00404f80
mov ecx, dword [0x517e3c]
dec ecx
lea eax, [esi - 0x10]
mov dword [0x517e3c], ecx
mov dword [esp + 0x18], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop edi
pop esi
jg 0x408f5f
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 0x408f70
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4e3b00
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.004c86da
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.00402490
mov esi, dword [esp + 0x24]
cmp word [esi], 0x2e
mov eax, dword [esp + 0x10]
mov edi, eax
jne 0x409002
cmp word [esi + 2], 0x2e
jne 0x409002
cmp word [esi + 4], 0
jne 0x409002
push 0x5c
push eax
call fcn.004aec96
add esp, 8
test eax, eax
je 0x409074
mov ecx, eax
sub ecx, edi
and ecx, 0xfffffffe
cmp ecx, 4
jle 0x409074
mov word [eax], 0
jmp 0x409074
push ebx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x18]
call fcn.00401ea0
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
jne 0x409030
test eax, eax
jge 0x409028
push 0x80070057
call fcn.00401430
cmp word [ecx], 0x5c
jne 0x409030
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 0x40904e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x409060
push 0x4ebe98
lea ecx, [esp + 0x14]
call fcn.00403bc0
push esi
call fcn.004aee31
add esp, 4
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.00402300
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4090ab
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004080a0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x1c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4090e6
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.0040ad20
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 0x4090f0
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 0x409116
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 8
Function at 0x409220
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
call fcn.004c94ce
xor esi, esi
cmp eax, esi
je 0x40923a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
cmp eax, esi
jne 0x40923e
xor eax, eax
jmp 0x409241
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 0x409290
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 0x4092be
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 0x409361
mov esi, dword [sym.imp.USER32.dll_GetClipboardData]
push 0xf
call esi
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
je 0x40935b
mov edx, dword [esp + 0x10]
push edx
call esi
test eax, eax
jne 0x4092fa
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
jmp 0x409301
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 0x40935b
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.004c38df
inc esi
cmp esi, ebx
jb 0x409330
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409420
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 0x40946d
cmp word [eax], 0xa
jne 0x409464
mov word [eax], 0
inc edx
add eax, 2
cmp word [eax], 0
jne 0x409458
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x409494
mov eax, dword [ecx]
cmp word [eax], 0
je 0x409494
lea ecx, [ecx]
cmp word [eax], 0xa
jne 0x40948b
mov word [eax], 0
add eax, 2
cmp word [eax], 0
jne 0x409480
test ecx, ecx
mov eax, dword [esi]
mov dword [esp + 0xc], eax
pop esi
je 0x4094a5
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 0x4094d0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4e3b40
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 0x40955e
push edi
call fcn.004c86da
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [0x51831c]
push esi
push eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x24], 1
call fcn.004023c0
mov edi, dword [esp + 0x18]
add esp, 0xc
push 0
push 0
push edi
call fcn.004d7335
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 0x409570
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x409570
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 0x40958b
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 0x409b70
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x4e3bf8
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.004c86da
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.00409ac0
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 0x409c78
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 0x409ca2
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 0x40a070
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4e3c58
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 0x40a108
call fcn.004c86da
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 4], eax
mov eax, dword [0x51831c]
push esi
push eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x1c], 0
call fcn.004023c0
mov esi, dword [esp + 0x10]
add esp, 0xc
push 0
push 0
push esi
call fcn.004d7335
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 0x40a0f6
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 0x40a120
call fcn.00404170
call fcn.004095a0
jmp 0x40a12a
call fcn.00404170
call fcn.004094d0
mov ecx, dword [esp + 0xc]
add esp, 4
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret

Function at 0x40a150
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x4e3c78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
lea ecx, [esp + 4]
call fcn.004c36f4
mov ecx, dword [esp + 0x28]
lea eax, [esp + 4]
push eax
push ecx
mov dword [esp + 0x28], 0
call fcn.00409370
mov ebx, eax
add esp, 8
test ebx, ebx
jg 0x40a1b5
lea ecx, [esp + 4]
mov dword [esp + 0x20], 0xffffffff
call fcn.004c3746
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov eax, dword [esp + 0xc]
test eax, eax
jg 0x40a1c2
jmp fcn.004c22a0
mov edx, dword [esp + 8]
mov eax, dword [edx]
movzx eax, word [eax]
cmp ax, 0x61
jb 0x40a1dc
cmp ax, 0x7a
jb 0x40a1dc
and eax, 0xffdf
push ebp
mov ebp, dword [esp + 0x30]
xor ecx, ecx
mov cx, word [ebp]
cmp cx, 0x61
push esi
jb 0x40a1fa
cmp cx, 0x7a
jb 0x40a1fa
and ecx, 0xffdf
xor edx, edx
cmp ax, cx
sete dl
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
inc edx
mov esi, edx
call edi
test ah, ah
jns 0x40a219
mov esi, 1
push 0x10
call edi
test ah, ah
pop edi
jns 0x40a227
mov esi, 2
push 0x200
push esi
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.00409e50
add esp, 0x10
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004c3746
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x40c8b0
Capabilities:
Terminate process

Disassembly:
mov al, byte [0x517e78]
test al, al
push esi
mov esi, ecx
jg 0x40c95d
push 0
call fcn.00406d90
mov al, byte [esi + 0xd4]
add esp, 4
test al, al
jle 0x40c8dc
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [esi + 0x1c]
push edi
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x7530
push 0x68
push eax
call edi
mov byte [esi + 0xd4], 1
mov ecx, dword [0x5184fc]
test ecx, ecx
je 0x40c913
mov edx, dword [ecx]
push str.THREAD__wait_OnExit
call dword [edx + 4]
mov ecx, dword [0x5184fc]
mov eax, dword [esi + 0xd8]
test eax, eax
push 0
jle 0x40c925
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 5
push 0xffffffffffffffff
push ecx
call fcn.0041660a
add esp, 0x10
mov dword [0x5184fc], 0
mov eax, dword [esi + 0x1c]
push 0x68
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esi + 0x1c]
push 0
push 0x64
push 0x68
push ecx
call edi
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
ret