joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d30
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x464178
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4a527c]
test eax, eax
jne 0x404ddb
mov eax, dword [0x480520]
push esi
mov dword [esp + 4], eax
push 0x104
push 0x104
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.0043d3cd
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call fcn.0043d41c
push str.winhlp32.exe
lea ecx, [esp + 8]
call fcn.0043d379
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x404dc2
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x404dc2
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [0x4a527c], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.0043cf9d
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x404df0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x404e52
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x405060
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x214]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push ebx
push 0
push 0
push ebp
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x405149
lea eax, [esp + 0x10]
push eax
push str..htm
push OleUIPasteSpecialA
call fcn.00404df0
add esp, 0xc
test eax, eax
jne 0x405149
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push str._shellopencommand
push ecx
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
push OleUIPasteSpecialA
call fcn.00404df0
add esp, 0xc
test eax, eax
jne 0x405149
lea ecx, [esp + 0x10]
push str.__1_
push ecx
call fcn.00425b5e
mov esi, eax
add esp, 8
test esi, esi
jne 0x405123
lea edx, [esp + 0x10]
push 0x47f6ac
push edx
call fcn.00425b5e
mov esi, eax
add esp, 8
test esi, esi
jne 0x405123
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x405126
mov byte [esi], 0
push 0x47f6a8
push esi
call edi
push ebp
push esi
call edi
lea ecx, [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x409d10
Capabilities:
Stop service

Disassembly:
mov eax, dword [0x47f180]
sub esp, 0x1c
cmp eax, 0xffffffff
push esi
push edi
mov esi, ecx
je 0x409d0a
push 0x469dd0
call fcn.0040c0c0
test eax, eax
je 0x409cb0
mov ecx, esi
call fcn.00450dfd
mov ecx, eax
call fcn.0040cdf0
mov ecx, esi
call fcn.00450dfd
mov ecx, dword [eax + 0x3c]
call fcn.00401f60
mov eax, dword [0x47f180]
cmp eax, 0xffffffff
je 0x409d0a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xf003f
push str.ServicesActive
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x409d0a
push 0x10030
push str.Apsm
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
test edi, edi
je 0x409d0a
lea eax, [esp + 8]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call esi
pop edi
pop esi
add esp, 0x1c
ret
jmp 0x409c70
Function at 0x409d20
Capabilities:
Create service
Delete service
Start service
Stop service

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x464ae0
push eax
mov eax, dword [0x47f180]
mov dword fs:[0], esp
sub esp, 0x24
push ebp
or ebp, 0xffffffff
push esi
cmp eax, ebp
push edi
jne 0x409ec1
push 0xf003f
push str.ServicesActive
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x409d81
push eax
push eax
push str.You_must_have_administrative_priviledges_to_install_Apsm_device_driver
call fcn.004478e0
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov eax, dword [0x480520]
push ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], 0
call fcn.00455e45
mov eax, dword [eax + 4]
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.004018e0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 1
call fcn.0043d0d6
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 0
call fcn.0043cf9d
lea edx, [esp + 0x14]
push 1
push edx
lea ecx, [esp + 0x18]
call fcn.004383bb
mov eax, dword [eax]
push 0x47f99c
push eax
call fcn.00425d9e
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call fcn.0043cf9d
test bl, bl
pop ebx
je 0x409e05
push 0x47f99c
lea ecx, [esp + 0x10]
call fcn.0043d379
push str.Apsm.sys
lea ecx, [esp + 0x10]
call fcn.0043d379
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
push 0
push 0
push eax
push 0
push 3
push 1
push 0x200f01ff
push str.Apsm
push str.Apsm
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
call edi
test esi, esi
push 0
push 0
jne 0x409e5d
push str.Unexpected_error._Cannot_create_service
call fcn.004478e0
jmp 0x409eb4
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x409e9c
push 0
push 0x40000080
push 3
push 0
push 3
push 0xe0000000
push str..Apsm
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, ebp
mov dword [0x47f180], eax
jne 0x409eb1
lea ecx, [esp + 0x14]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 0
push 0
push str.Cannot_start_device._Apsm.sys_maybe_not_found
call fcn.004478e0
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], ebp
call fcn.0043cf9d
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x409ee0
Capabilities:
Delete service
Stop service

Disassembly:
mov eax, dword [0x47f180]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x409ef4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
push 0xf003f
push str.ServicesActive
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x409f50
push 0x10030
push str.Apsm
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
call edi
test esi, esi
je 0x409f50
lea eax, [esp + 8]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call edi
mov dword [0x47f180], 0xffffffff
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x40a6d0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x464b57
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov dword [esp + 0xc], 0
mov eax, dword [0x4a5280]
mov ebx, 1
push str.English
push eax
mov dword [esp + 0x20], ebx
call fcn.00425d9e
add esp, 8
test eax, eax
jne 0x40a747
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.0043cd12
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], 0
call fcn.0043cf9d
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, dword [0x480520]
push edi
mov dword [esp + 0xc], ecx
mov edx, dword [0x4a5290]
mov eax, dword [esp + 0x28]
push edx
push 0x3e8
push 0x3e8
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
mov esi, eax
mov edi, eax
call fcn.0043d3cd
push eax
push esi
push edi
push str.String
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.0043d41c
push 0x47f9ec
push 0x47f9e8
lea ecx, [esp + 0x14]
call fcn.00438258
mov esi, dword [esp + 0x24]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0043cd12
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x1c], bl
call fcn.0043cf9d
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 0
call fcn.0043cf9d
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40a960
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x464be0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
push str.Language
lea ecx, [esp + 0x14]
call fcn.0043d00b
push str.Info
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0
call fcn.0043d00b
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 1
call fcn.0041d954
push str.Language.ini
lea eax, [esp + 0xc]
push 0x4a5284
push eax
mov byte [esp + 0x4c], 2
call fcn.0043d232
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 3
call fcn.0041da17
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x40], 2
call fcn.0043cf9d
test esi, esi
je 0x40aadc
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
mov dword [esp + 0x14], 0xe01
lea ecx, [esp + 0x28]
call fcn.0041dc37
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], eax
call fcn.0041dbfe
test eax, eax
jne 0x40aacd
mov edx, dword [esp + 0x28]
push 0x10
lea ecx, [esp + 0x2c]
call dword [edx + 0x38]
test eax, eax
jne 0x40aacd
mov eax, dword [0x480520]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 4
push ecx
lea ecx, [esp + 0x2c]
call fcn.0041dd06
mov eax, dword [eax]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
push eax
push 0x104
push 0x104
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 5
call fcn.0043d3cd
push eax
push 0x485264
push esi
push edi
call ebp
test eax, eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 4
setne bl
call fcn.0043cf9d
test bl, bl
je 0x40aab4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, ecx
push edx
push eax
mov eax, dword [esp + 0x5c]
inc ecx
push 0
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0043d41c
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 2
call fcn.0043cf9d
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40aa00
pop edi
pop ebp
pop ebx
lea ecx, [esp + 0x1c]
call fcn.0041d9cd
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 1
call fcn.0041d991
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 0
call fcn.0043cf9d
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0xffffffff
call fcn.0043cf9d
mov ecx, dword [esp + 0x38]
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret
Function at 0x40cda0
Capabilities:
Resume thread

Disassembly:
push esi
push 0
mov esi, ecx
push 0
push 1
push 0
mov dword [esi + 0x50], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 4
push 0
push 0
push esi
push 0x40c7b0
mov dword [esi + 0x4c], eax
call fcn.0043c027
mov dword [esi + 0x50], eax
mov dword [eax + 0x24], 0
mov eax, dword [esi + 0x50]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
ret

Function at 0x40da40
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
xor edi, edi
lea ebx, [esi + 0x10]
mov dword [esp + 0x14], edi
push ebx
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x20c0]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call ebp
cmp dword [esp + 0x24], edi
je 0x40db51
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x24]
cmp edx, 0x2000
jbe 0x40daa1
mov edx, 0x2000
mov ecx, 0x800
xor eax, eax
lea edi, [esi + 0xb8]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x20c0]
lea edi, [esi + 0x44]
lea eax, [esp + 0x10]
push edi
push eax
lea eax, [esi + 0xb8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40daf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
mov dword [esp + 0x14], eax
jne 0x40daf8
mov eax, dword [esi + 0x20c0]
lea edx, [esp + 0x10]
push 1
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push ebx
call ebp
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0xa8]
mov eax, dword [esi + 0xa4]
mov dword [esi + 0xb4], ecx
push edx
push esi
mov ecx, dword [eax + 0x1c]
push 0x407
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x20c0]
lea edx, [esp + 0x20]
lea eax, [esp + 0x14]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push ebx
call ebp
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40da89
xor edi, edi
mov edx, dword [esi + 0xa8]
mov eax, dword [esi + 0xa4]
mov dword [esi + 0xb4], edi
push edx
mov ecx, dword [eax + 0x1c]
push esi
push 0x407
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x411730
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0xc
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4118a8
push ebx
push esi
push edi
mov ecx, ebp
call fcn.00411ab0
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ebx, dword [ebp + 0x5c]
mov edx, dword [ebp + 0x58]
sub ebx, edx
inc ebx
push ebx
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, dword [ebp + 0x58]
mov edx, dword [ebp + 0x3c]
mov ecx, ebx
add esi, edx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x18]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp + 0x54], 1
je 0x41180e
lea ecx, [ebx + ebx*2]
push ecx
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor esi, esi
test ebx, ebx
jle 0x411805
mov edx, dword [ebp + 0x58]
mov edi, dword [ebp + 0x3c]
add edx, esi
xor ecx, ecx
mov cl, byte [edx + edi]
shr ecx, 4
inc eax
mov dl, byte [ecx + str.0123456789ABCDEF]
mov byte [eax - 1], dl
mov ecx, dword [ebp + 0x58]
mov edx, dword [ebp + 0x3c]
add ecx, esi
mov cl, byte [ecx + edx]
and ecx, 0xf
inc eax
inc eax
inc esi
mov dl, byte [ecx + str.0123456789ABCDEF]
cmp esi, ebx
mov byte [eax - 2], dl
mov byte [eax - 1], 0x20
jl 0x4117c5
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x411880
push ebx
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, dword [ebp + 0x58]
mov edx, dword [ebp + 0x3c]
mov ecx, ebx
add esi, edx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x10], eax
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
jle 0x411871
jmp 0x41184d
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [eax]
push ecx
call fcn.00426349
add esp, 4
test eax, eax
jne 0x411865
mov edx, dword [esp + 0x10]
mov byte [edx], 0x2e
mov ecx, dword [esp + 0x10]
inc ecx
dec ebx
mov dword [esp + 0x10], ecx
jne 0x411849
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, dword [esp + 0x14]
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push edi
push 1
call esi
mov edx, dword [0x4a5520]
mov ecx, dword [esp + 0x18]
and edx, 0xffff
push ecx
push edx
call esi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xc
ret
Function at 0x411910
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
push esi
push 0xfffffffffffffff0
mov eax, dword [ebx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, ebx
mov esi, eax
call fcn.0043d8ca
test eax, eax
je 0x411a6c
and esi, 0x800
cmp esi, 0x800
je 0x411a6c
mov ecx, dword [ebx + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x411a6c
mov edx, dword [0x4a5520]
push ebp
mov ebp, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
and edx, 0xffff
push edi
push edx
call ebp
test eax, eax
je 0x41198c
mov eax, dword [0x4a5520]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
mov dword [esp + 0x10], edi
jmp 0x4119a6
push 1
call ebp
test eax, eax
je 0x411a64
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [esp + 0x10], eax
mov edi, eax
test edi, edi
je 0x411a64
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebx + 0x50]
push 1
mov esi, eax
mov dword [esp + 0x18], ecx
call ebp
test eax, eax
je 0x4119d2
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov edi, eax
dec edi
jmp 0x4119d6
mov edi, dword [esp + 0x14]
mov ecx, ebx
call fcn.00411ab0
mov ebp, dword [ebx + 0x58]
cmp ebp, 0xffffffff
jne 0x4119fc
cmp dword [ebx + 0x54], 3
jne 0x4119ee
inc dword [ebx + 0x50]
mov ebp, dword [ebx + 0x50]
push edi
push ebp
mov ecx, ebx
call fcn.00411b50
jmp 0x411a1c
mov edx, dword [ebx + 0x5c]
mov ecx, ebx
push edx
push ebp
call fcn.00411ae0
push edi
push ebp
mov ecx, ebx
call fcn.00411b50
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, ebx
call fcn.00411320
mov eax, dword [ebx + 0x44]
lea ecx, [edi + ebp]
cmp ecx, eax
jbe 0x411a2a
sub eax, ebp
mov edi, eax
mov ecx, edi
mov edi, dword [ebx + 0x3c]
mov edx, ecx
add edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, edx
and ecx, 3
push 0x105
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x1c]
push 0
push 0
push ecx
mov dword [ebx + 0x50], eax
call dword [sym.imp.USER32.dll_RedrawWindow]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
Function at 0x413050
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0x124
mov eax, dword [0x4b5528]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
cmp eax, ebx
mov dword [esp + 0x1c], ecx
mov edi, 1
je 0x4131c8
push eax
call dword [sym.imp.ole32.dll_OleIsCurrentClipboard]
test eax, eax
jne 0x4131c8
mov ax, word [0x4b60d4]
lea edx, [esp + 0x20]
mov word [esp + 0x20], ax
mov eax, dword [0x4b5528]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x30], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x4130ef
mov eax, dword [0x4b5528]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x24]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x14]
mov esi, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x4130f3
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
cmp esi, 0xffff
jbe 0x41312a
shr esi, 0xa
push esi
lea edx, [esp + 0x38]
push str.There_is__u_Kb_of_data_currently_in_the_Clipboard._nWould_you_like_to_leave_this_data_for_other_applications_
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x34]
push ebx
push 0x24
push eax
call fcn.004478e0
cmp eax, 6
jne 0x4131bc
mov eax, dword [0x4b5528]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x24]
mov word [esp + 0x24], di
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x34], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
push ebx
call dword [sym.imp.ole32.dll_OleSetClipboard]
cmp dword [esp + 0x14], ebx
jne 0x41319a
lea eax, [esp + 0x34]
push str.Failed_to_allocate_sufficient_memory_to_complete_this_operation._nClipboard_contents_has_been_cleared.
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x34]
push ebx
push 0x30
push ecx
call fcn.004478e0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
mov ecx, dword [esp + 0x14]
push ecx
push edi
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4131c8
cmp eax, 7
jne 0x4131c8
push ebx
call dword [sym.imp.ole32.dll_OleSetClipboard]
mov ecx, dword [esp + 0x1c]
push ebx
call fcn.00413870
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
Function at 0x4195a0
Capabilities:
Get file attributes
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov al, byte [ebx]
push edi
cmp al, 0x2a
mov edi, ecx
je 0x4195d6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4195d1
mov dword [edi + 0x104], 2
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 0xc
cmp byte [ebx], 0x2a
jne 0x4195d8
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x4195f7
mov byte [esp + 0x20], 1
mov eax, OleUIPasteSpecialA
mov dword [esp + 0x18], 2
jmp 0x41961b
mov al, byte [esp + 0x20]
test al, al
je 0x41960e
mov eax, OleUIPasteSpecialA
mov dword [esp + 0x18], 2
jmp 0x41961b
mov eax, 0xc0000000
mov dword [esp + 0x18], 4
push 0
push 0x80
push 3
push 0
push 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41965b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ax, 0x20
jne 0x4196e6
mov dword [edi + 0x104], 3
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 0xc
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41968c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x104], 6
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 0xc
mov al, byte [esp + 0x1c]
test al, al
je 0x41971f
test ebp, ebp
jne 0x4196c3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x20]
push 1
and ecx, 0xff
push ecx
push ebp
push ebp
push esi
mov ecx, edi
call fcn.004191a0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
push edx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x4196fa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x104], 0x17
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 0xc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ebp
push 0
push ecx
push esi
mov ecx, edi
call fcn.004191a0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
push ebp
call fcn.00416cc0
add esp, 4
test eax, eax
jne 0x419747
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x104], 1
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 0xc
push ebp
push 0
push eax
call fcn.00416ce0
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41972c
lea edx, [esp + 0x18]
push 0
push edx
push ebp
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ebp
push ecx
push 0
push 0
mov ecx, edi
call fcn.004191a0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc