joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41359c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
push esi
push edi
push str.CCHQueue::Clear_Directory_Exclude
call fcn.0043d98d
lea eax, [ebp - 0xc]
mov dword [esp], 0x4a9890
push eax
call fcn.004137c3
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004066f3
lea ecx, [ebp - 0xc]
call fcn.00401085
lea eax, [ebp - 0x10]
push 0x4ac3ac
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004066f3
xor esi, esi
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x274]
mov dword [ebp - 0x278], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x413625
push str.INVALID_HANDLE_VALUE__in_CCHQueue::Clear_Directory_Exclude
call fcn.0043d497
pop ecx
jmp 0x413751
mov ecx, dword [ebp + 8]
push ebx
call fcn.0040624a
mov ebx, eax
mov al, byte [ebp + 0xb]
neg ebx
sbb bl, bl
mov dword [ebp - 0x14], esi
inc bl
mov byte [ebp - 0x28], al
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x278]
and eax, 0x10
cmp al, 0x10
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
setne byte [ebp - 1]
call fcn.004066f3
cmp byte [ebp - 1], 0
je 0x4136a0
test bl, bl
jne 0x41368b
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00413767
neg eax
sbb al, al
pop ecx
inc al
pop ecx
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x4136a0
lea eax, [ebp - 8]
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
call fcn.004144fe
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ecx, [ebp - 8]
mov edi, eax
call fcn.00401085
cmp edi, esi
jne 0x413648
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x28]
call fcn.0040624a
test eax, eax
pop ebx
je 0x413746
mov edi, dword [ebp - 0x24]
cmp edi, dword [ebp - 0x20]
je 0x413746
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
jl 0x4136f2
mov dword [ebp + 8], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x413704
mov ecx, dword [0x4a9450]
push eax
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
call fcn.00406638
push dword [ebp + 8]
call fcn.00412a0d
test eax, eax
pop ecx
je 0x413716
inc dword [ebp - 0x14]
jmp 0x413739
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push str.Cannot_delete_the:
push eax
call fcn.0040673f
push dword [ebp - 8]
call fcn.0043d497
pop ecx
lea ecx, [ebp - 8]
call fcn.00401085
lea ecx, [ebp + 8]
call fcn.00401085
add edi, 4
jmp 0x4136d7
lea ecx, [ebp - 0x28]
call fcn.00406217
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.00401085
lea ecx, [ebp - 0x10]
call fcn.00401085
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x414bd0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x414c59
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
jne 0x414c06
cmp ebx, esi
jmp 0x414c50
lea eax, [edi + 1]
push eax
call fcn.00490944
mov esi, eax
pop ecx
test esi, esi
je 0x414c4e
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414c47
mov eax, dword [ebp + 8]
cmp edi, eax
jne 0x414c47
and byte [eax + esi], 0
test ebx, ebx
je 0x414c43
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x414c5b
push esi
call fcn.0048e18e
pop ecx
test ebx, ebx
je 0x414c59
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x415102
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x20
call fcn.00490944
test eax, eax
pop ecx
je 0x415120
push 0
mov ecx, eax
call fcn.00415183
mov esi, eax
jmp 0x415122
xor esi, esi
test esi, esi
jne 0x41512a
xor eax, eax
jmp 0x415180
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x18], eax
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x416341
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x415176
push esi
call fcn.0048e18e
pop ecx
jmp 0x415126
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop esi
leave
ret

Function at 0x415869
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0xc
call fcn.00490944
test eax, eax
pop ecx
je 0x415891
mov ecx, dword [ebp + 8]
mov esi, eax
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
jmp 0x415893
xor esi, esi
test esi, esi
jne 0x41589b
xor eax, eax
jmp 0x4158c8
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x415779
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4158be
push esi
call fcn.0048e18e
pop ecx
jmp 0x415897
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop esi
leave
ret
Function at 0x415bbf
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push str..xml
push eax
call fcn.004116cf
push dword [ebp - 4]
push dword [ebp + 0xc]
call fcn.00415e0b
add esp, 0x10
test eax, eax
jne 0x415c7a
mov eax, dword [0x4a9450]
mov esi, str.Cannot_download_info_version_file_by_Download2
mov dword [ebp - 8], eax
mov eax, esi
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x415c08
xor eax, eax
jmp 0x415c0b
push esi
call edi
push esi
push eax
lea ecx, [ebp - 8]
call fcn.00406586
push dword [ebp - 8]
call fcn.0043d98d
push dword [ebp - 4]
push dword [ebp + 0xc]
call fcn.00428f43
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x415c4b
mov esi, str.Well_download_info_version_file_sucessfully_by_URLDownloadToFile_API_Wrapper
mov eax, esi
test eax, eax
je 0x415c3f
push esi
call edi
push esi
push eax
lea ecx, [ebp - 8]
call fcn.00406586
jmp 0x415c6c
mov esi, str.Ooops__cannot_download_info_version_file_by_URLDownloadToFile_API_Wrapper
mov eax, esi
test eax, eax
je 0x415c59
push esi
call edi
push esi
push eax
lea ecx, [ebp - 8]
call fcn.00406586
push dword [ebp - 8]
call fcn.0043d98d
pop ecx
lea ecx, [ebp - 8]
call fcn.00401085
pop edi
test ebx, ebx
pop ebx
je 0x415ccb
mov eax, dword [ebp - 4]
test eax, eax
mov esi, eax
je 0x415c98
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ah, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
mov esi, dword [ebp + 8]
lea ecx, [eax - 0xc]
jl 0x415caf
push ecx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x415cbf
mov ecx, dword [0x4a9450]
push eax
mov dword [esi], ecx
mov ecx, esi
call fcn.00406638
lea ecx, [ebp - 4]
call fcn.00401085
mov eax, esi
jmp 0x415cf9
push dword [ebp - 4]
call fcn.00411bc2
test al, al
pop ecx
je 0x415ce1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 8]
push 0x4bf5f0
call fcn.004064a9
lea ecx, [ebp - 4]
call fcn.00401085
mov eax, dword [ebp + 8]
pop esi
leave
ret

Function at 0x415d36
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push esi
push eax
push 0
push 0
push 0x415d67
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x415d5d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test esi, esi
setne al
pop esi
pop ecx
ret

Function at 0x415f0f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0xc
call fcn.00490944
test eax, eax
pop ecx
je 0x415f37
mov ecx, dword [ebp + 0x10]
mov esi, eax
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov cx, word [ebp + 0xc]
mov word [eax + 8], cx
jmp 0x415f39
xor esi, esi
test esi, esi
je 0x415f6a
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x415e7e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x415f63
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
jmp 0x415f6c
push esi
call fcn.0048e18e
pop ecx
xor eax, eax
pop esi
leave
ret
Function at 0x415f6f
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
lea eax, [ebp - 8]
push edi
push eax
call fcn.004150a5
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.00415bbf
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
xor ebx, ebx
add esp, 0xc
mov dword [ebp - 0xc], esi
cmp dword [eax - 8], ebx
jne 0x416005
cmp dword [esi + 0x10], ebx
jne 0x4160d7
push dword [ebp + 0xc]
call fcn.0040e2b6
push eax
lea ecx, [ebp - 0x128]
push dword [esi + 0x18]
call fcn.00414d55
mov edi, str.ERROR:_Cannot_load_information_from_official_web_site
mov eax, edi
test eax, eax
je 0x415fd5
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
lea ecx, [ebp - 0x11c]
call fcn.00406586
lea eax, [ebp - 0x128]
push eax
push ebx
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x128]
call fcn.00416121
jmp 0x4160d7
push eax
lea ecx, [ebp - 0x10]
call fcn.00402c58
mov edi, dword [ebp - 4]
cmp edi, ebx
je 0x416027
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ah, 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 0xc]
call fcn.0040e2b6
push eax
lea ecx, [ebp - 0x9c]
push dword [esi + 0x18]
call fcn.00414d55
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 4]
call fcn.00414b71
mov edi, eax
pop ecx
cmp edi, 2
pop ecx
je 0x416076
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0042a44d
push dword [ebp + 0xc]
call fcn.0044c3b8
add esp, 0xc
lea ecx, [ebp + 0xc]
call fcn.00401085
lea eax, [ebp - 0x54]
push 6
push eax
call fcn.00416185
pop ecx
cmp edi, ebx
pop ecx
je 0x4160b1
mov eax, edi
dec eax
dec eax
jne 0x4160ac
mov edi, str.ERROR:_Cannot_parse_information_file
mov eax, edi
test eax, eax
je 0x41609f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
lea ecx, [ebp - 0x90]
call fcn.00406586
cmp dword [esi + 0x10], ebx
jne 0x4160c4
lea eax, [ebp - 0x9c]
push eax
push ebx
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x9c]
call fcn.00416121
lea ecx, [ebp - 0x10]
call fcn.00402c8e
lea ecx, [ebp - 0xc]
call fcn.004160f4
lea ecx, [ebp - 4]
call fcn.00401085
lea ecx, [ebp - 8]
call fcn.00401085
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41620d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 8]
push esi
push eax
call fcn.0047b8d5
mov eax, dword [0x4a9450]
pop ecx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push str.Download_RSS:
push eax
call fcn.0040673f
push eax
lea ecx, [ebp - 0xc]
call fcn.004065e8
lea ecx, [ebp - 0x14]
call fcn.00401085
push dword [ebp - 0xc]
call fcn.0043d98d
pop ecx
lea ecx, [ebp - 0xc]
call fcn.00401085
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00411a7d
pop ecx
pop ecx
push eax
lea eax, [ebp - 8]
push str._utm
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004066f3
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040665f
lea ecx, [ebp - 0x14]
call fcn.00401085
lea ecx, [ebp - 0xc]
call fcn.00401085
lea eax, [ebp - 4]
push str..xml
push eax
call fcn.004116cf
lea eax, [ebp - 0x14]
push eax
call fcn.00416b95
push dword [eax]
push 0
push 0
push dword [ebp - 4]
push dword [ebp - 0x10]
call fcn.00428f25
add esp, 0x20
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.00401085
test esi, esi
pop esi
jne 0x4162f8
push dword [ebp - 4]
call fcn.00411bc2
test al, al
pop ecx
je 0x4162e9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 8]
push 0x4bf5f0
call fcn.004064a9
jmp 0x416304
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.00406383
lea ecx, [ebp - 4]
call fcn.00401085
lea ecx, [ebp - 0x10]
call fcn.00401085
lea ecx, [ebp - 8]
call fcn.00401085
mov eax, dword [ebp + 8]
leave
ret
Function at 0x416b1a
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea ecx, [ebp - 4]
push dword [ebp + 0x10]
call fcn.004064a9
push 0
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push dword [ebp + 0x14]
lea ecx, [ebp + 0x10]
movzx esi, ax
call fcn.004064a9
push 0x4a9724
push 0x4a9964
lea ecx, [ebp + 0x10]
call fcn.004091dc
push esi
push 0
push 0
lea eax, [ebp - 4]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push eax
call fcn.0046f9cd
mov ecx, dword [ebp + 8]
add esp, 0x18
lea eax, [ebp - 4]
push eax
call fcn.00406383
lea ecx, [ebp + 0x10]
call fcn.00401085
lea ecx, [ebp - 4]
call fcn.00401085
mov eax, dword [ebp + 8]
pop esi
leave
ret

Function at 0x416c0a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8d4
call fcn.0044a6a8
lea eax, [ebp - 4]
push eax
call fcn.0044c460
pop ecx
lea ecx, [ebp - 0x8d4]
call fcn.0040a89d
push 5
push 0
push 0
push dword [ebp - 4]
push str.open
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x416c5f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 4]
call fcn.00401085
push 1
pop eax
leave
ret
lea ecx, [ebp - 0x8d4]
call fcn.0040a8db
push eax
lea ecx, [ebp - 8]
call fcn.004064a9
push 0x10
push 0x4a95b4
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 8]
call fcn.00401085
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 4]
call fcn.00401085
xor eax, eax
leave
ret

Function at 0x416cd3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
call fcn.00416bfb
mov al, byte [ebp + 0xc]
xor esi, esi
neg al
pop ecx
sbb eax, eax
push 5
and eax, str._auto
push esi
push eax
push dword [ebp - 4]
push str.open
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jl 0x416d0d
push 1
pop esi
lea ecx, [ebp - 4]
call fcn.00401085
mov eax, esi
pop esi
leave
ret

Function at 0x417b45
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x38], 0x200
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [ebp - 0x2c]
lea ecx, [ebp + 0xc]
call fcn.004064a9
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp + 0xc]
call fcn.00401085
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x417ba5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
mov esi, str.TwinkiePaste.dll
je 0x417c56
mov eax, dword [0x4a9450]
push 0x106
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.00406846
test eax, eax
je 0x417bf0
mov eax, dword [ebp - 4]
mov dword [eax - 8], 0x106
mov eax, dword [ebp - 4]
and word [eax + 0x20c], 0
mov eax, dword [ebp - 4]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push eax
lea ecx, [ebp - 4]
call fcn.004068ae
mov eax, dword [ebp - 4]
cmp dword [eax - 8], 0
je 0x417c4e
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00417c91
add esp, 0xc
lea ecx, [ebp - 4]
push eax
call fcn.004065e8
lea ecx, [ebp - 0xc]
call fcn.00401085
push dword [ebp - 4]
call fcn.00411bc2
test al, al
pop ecx
je 0x417c4e
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.00406383
lea ecx, [ebp - 4]
jmp 0x417c86
lea ecx, [ebp - 4]
call fcn.00401085
lea eax, [ebp - 8]
push eax
call fcn.00411413
mov eax, esi
pop ecx
test eax, eax
je 0x417c6d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [ebp - 8]
call fcn.0040678b
mov ecx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.00406383
lea ecx, [ebp - 8]
call fcn.00401085
mov eax, dword [ebp + 8]
pop esi
leave
ret

Function at 0x419217
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push edi
mov edi, ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4192e2
push ebx
mov ecx, edi
call fcn.0041938d
push 0
call dword [sym.imp.USER32.dll_EnumClipboardFormats]
mov ebx, eax
test ebx, ebx
je 0x4192d8
push esi
cmp ebx, 0xe
mov dword [ebp - 0xd8], ebx
jbe 0x41926d
lea eax, [ebp - 0xd4]
push 0x64
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
test eax, eax
jne 0x419275
and word [ebp - 0xd4], 0
push ebx
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x4192c6
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push esi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00490944
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
push esi
push eax
call fcn.00490dc0
mov eax, dword [edi + 8]
lea ecx, [edi + 4]
add esp, 0x10
lea edx, [ebp - 0xd8]
mov eax, dword [eax]
push edx
push eax
lea eax, [ebp - 4]
push eax
call fcn.004193fd
push ebx
call dword [sym.imp.USER32.dll_EnumClipboardFormats]
mov ebx, eax
test ebx, ebx
jne 0x41924e
pop esi
call dword [sym.imp.USER32.dll_CloseClipboard]
push 1
pop eax
pop ebx
pop edi
leave
ret
Function at 0x4192e5
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
push ebp
mov ebp, ecx
cmp dword [ebp + 0xc], 0
je 0x4192fb
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x419302
xor eax, eax
jmp 0x41938a
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp + 8]
mov esi, dword [eax]
cmp esi, eax
je 0x419380
push ebx
push edi
mov eax, dword [esi + 8]
cmp word [esi + 0xc], 0
mov dword [esp + 0x10], eax
lea eax, [esi + 0xc]
je 0x419334
push eax
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
test eax, eax
jbe 0x419334
mov dword [esp + 0x10], eax
push dword [esi + 0xd4]
lea edi, [esi + 0xd4]
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [edi]
push dword [esi + 0xd8]
push eax
call fcn.00490dc0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, dword [esi]
cmp esi, dword [ebp + 8]
jne 0x419314
pop edi
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
push 1
pop eax
pop esi
pop ebp
pop ecx
ret

Function at 0x4194b8
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a18a0
push 0x4921d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41955d
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 0x10]
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x24], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00490dc0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebp - 0x28], eax
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
mov dword [ebp - 0x2c], eax
cmp eax, edi
je 0x419542
mov dword [ebp - 0x1c], 1
call fcn.0041958f
jmp 0x419550
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41958f
Capabilities:
Write clipboard data

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push 4
push 2
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4195d8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x4195d8
push esi
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0x10
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
pop ebx
ret
Function at 0x4195dc
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0xc], edi
je 0x4195f6
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4195fa
xor eax, eax
jmp 0x41963a
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [ebp + 8], eax
je 0x419632
mov ecx, dword [eax + 0xc]
add eax, 0x10
push ecx
push eax
call fcn.0041963e
pop ecx
test eax, eax
pop ecx
je 0x419622
push 1
pop edi
lea ecx, [ebp + 8]
call fcn.00419921
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 4]
jne 0x41960c
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x419654
Capabilities:
Write clipboard data

Disassembly:
push esi
push dword [esp + 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x419679
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x41967d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop esi
ret
push edi
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
call fcn.00490dc0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SetClipboardData]
mov edi, eax
test edi, edi
jne 0x4196ae
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
ret

Function at 0x41a170
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x41a188
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x41a18b
xor eax, eax
ret
push ebx
push esi
push edi
push 0xd
xor edi, edi
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
test ebx, ebx
je 0x41a1f5
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov esi, eax
test esi, esi
jbe 0x41a1f5
push 4
lea eax, [esi + 2]
push 0x1000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41a1e5
push esi
push eax
push edi
call fcn.00490dc0
add esp, 0xc
shr esi, 1
push ebx
and word [edi + esi*2], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x41a1f5
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor edi, edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
pop edi
pop esi
pop ebx
ret