joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c5dcc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4c5dde
add esp, 0xfffffff0
call fcn.004746d0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00435d38
mov eax, dword [0x62ab08]
mov dword [eax + 4], ebx
mov dword [eax], 0x4c6208
mov eax, dword [0x62ab0c]
mov dword [eax + 4], ebx
mov dword [eax], 0x4c6214
mov eax, ebx
call fcn.004c6220
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x41c7a4]
call fcn.00474170
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41c7a4]
call fcn.00474170
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41c7a4]
call fcn.00474170
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41c7a4]
call fcn.00474170
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x41c7a4]
call fcn.00474170
mov dword [ebx + 0x78], eax
push 0
call sub.USER32.DLL_GetDC
mov esi, eax
push 0x5a
push esi
call sub.GDI32.DLL_GetDeviceCaps
mov dword [ebx + 0x44], eax
push esi
push 0
call sub.USER32.DLL_ReleaseDC
mov eax, dword [ebx + 0x5c]
push eax
mov eax, 0x4c0c44
push eax
push 0
push 0
call sub.USER32.DLL_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x4a3920]
call fcn.004a9e84
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x4a3920]
call fcn.004a9e84
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4a3920]
call fcn.004a9e84
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x4a3920]
call fcn.004a9e84
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4a3920]
call fcn.004a9e84
mov dword [ebx + 0x8c], eax
mov eax, ebx
call fcn.004c6778
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4c65e8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4c65e8
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4c65e8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4c65e8
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4c65e8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4c5f55
call fcn.00474728
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4c6388
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c6533
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4c6514
mov dl, 1
mov eax, dword [0x41f91c]
call fcn.0042cfe8
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
call fcn.00475c34
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4c6503
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004f18dc
test al, al
je 0x4c64f6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4c6544
lea eax, [ebp - 0x394]
call fcn.0045ace8
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x4c64f6
xor eax, eax
push ebp
push 0x4c64ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4c65b4
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x4c64d8
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.004769dc
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
jne 0x4c64d8
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.004769dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c64f6
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4c63f9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.0042cf24
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c653a
lea eax, [ebp - 0x3a0]
call fcn.00475c34
ret

Function at 0x4c7090
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x630f60]
cmp byte [eax + 0xad], 0
jne 0x4c7102
cmp dword [0x630f78], 0
jne 0x4c70c2
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x61e270]
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExW
mov dword [0x630f78], eax
cmp dword [0x630f74], 0
jne 0x4c70dd
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventW
mov dword [0x630f74], eax
cmp dword [0x630f7c], 0
jne 0x4c7102
push esp
push 0
push 0
mov eax, dword [0x61e378]
push eax
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x630f7c], eax
pop edx
ret
Function at 0x4c7418
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4c742f
add esp, 0xfffffff0
call fcn.004746d0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00435d38
mov eax, dword [0x62aac8]
cmp byte [eax], 0
jne 0x4c745c
push 0
call sub.OLE32.DLL_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x62ab10]
cmp word [eax + 2], 0
jne 0x4c7476
mov eax, dword [0x62ab10]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004c94e0
mov eax, dword [0x62ab14]
cmp word [eax + 2], 0
jne 0x4c7490
mov eax, dword [0x62ab14]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004c96e4
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x4a3920]
call fcn.004a9e84
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4c9c5c
mov dl, 1
mov eax, dword [0x41c7a4]
call fcn.00474170
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41c7a4]
call fcn.00474170
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x4a801c]
call fcn.004b33dc
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4c7670
mov eax, dword [0x62aac0]
mov eax, dword [eax]
push eax
call sub.USER32.DLL_LoadIconW
mov edx, eax
mov eax, esi
call fcn.004b3870
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4c9f44
mov dl, 1
mov eax, dword [0x41c7a4]
call fcn.00474170
mov dword [ebx + 0x98], eax
push 0x100
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x62aac0]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0045aae4
test eax, eax
je 0x4c75a1
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0045a82c
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0045aac8
test eax, eax
je 0x4c75b9
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.USER32.DLL_CharNextW
push eax
call sub.USER32.DLL_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, 0x100
call fcn.004769dc
push ebx
push 0x4c8ecc
call fcn.004bd120
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x62aac8]
cmp byte [eax], 0
jne 0x4c760a
mov eax, ebx
call fcn.004c77e4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004ca170
mov eax, ebx
call fcn.004cada0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4c7667
call fcn.00474728
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c7ab0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4c7b52
cmp dword [ebx + 0x94], 0
jne 0x4c7b4c
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4c79fc
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4c7b4c
push 3
mov eax, dword [esp + 4]
push eax
call sub.USER32.DLL_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_GetWindowLongW
test al, 8
je 0x4c7b12
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4c7b4c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00428970
push eax
call sub.USER32.DLL_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4c7b21
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4c7d70
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x630f60]
cmp dword [eax + 0x170], 0
je 0x4c7ed5
test bl, bl
jne 0x4c7e23
cmp dword [esi + 0x9c], 0
jne 0x4c7e18
mov eax, esi
call fcn.004cabf0
push eax
push 0x4c7c7c
call sub.USER32.DLL_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4c7de9
mov eax, dword [0x630f60]
cmp byte [eax + 0xd3], 0
je 0x4c7de9
mov eax, dword [esi + 0xd8]
call fcn.00477b10
mov edi, eax
cmp edi, 0
jl 0x4c7de9
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.USER32.DLL_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4c7dd2
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4c7e18
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00428970
push eax
call sub.USER32.DLL_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4c7df8
inc dword [esi + 0x9c]
jmp 0x4c7ed5
cmp dword [esi + 0x9c], 0
jle 0x4c7ed5
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4c7ed5
cmp dword [esi + 0x44], 0
je 0x4c7e80
mov eax, dword [0x630f60]
cmp byte [eax + 0xd3], 0
je 0x4c7e80
mov eax, dword [esi + 0xd8]
call fcn.00477b10
mov edi, eax
cmp edi, 0
jl 0x4c7e80
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.USER32.DLL_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4c7e69
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4c7eaf
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00428970
push eax
call sub.USER32.DLL_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4c7e8f
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4baff8]
call fcn.00477cd0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4c8b18
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4c8b83
cmp byte [ebx + 0xd3], 0
jne 0x4c8b83
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.USER32.DLL_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00475d9c
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4c8b70
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4c8b90
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00475ff4
jmp 0x4c8b90
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00475ff4
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4ca358
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4ca3c6
mov eax, esi
call fcn.004eb7e0
test al, al
je 0x4ca3c6
mov eax, dword [ebx + 0x84]
call fcn.004eb434
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4ca3c6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4ca3ba
push 0
mov eax, dword [ebx + 0x84]
call fcn.004eb434
push eax
call sub.USER32.DLL_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004e23b0
jmp 0x4ca3c6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004ca190
pop esi
pop ebx
ret

Function at 0x4d1fa4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00475d18
xor eax, eax
push ebp
push 0x4d20e3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.USER32.DLL_OpenClipboard
test eax, eax
je 0x4d20b6
xor edx, edx
push ebp
push 0x4d20af
push dword fs:[edx]
mov dword fs:[edx], esp
mov esi, dword [ebp - 4]
mov eax, esi
test eax, eax
je 0x4d1ff1
sub eax, 4
mov eax, dword [eax]
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4d2084
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov ebx, eax
xor edx, edx
push ebp
push 0x4d2073
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
test eax, eax
je 0x4d2036
sub eax, 4
mov eax, dword [eax]
mov esi, eax
add esi, esi
mov eax, dword [ebp - 4]
call fcn.00476928
lea ecx, [esi + 2]
mov edx, ebx
call fcn.004737bc
call sub.USER32.DLL_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 0xd
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d207a
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
mov ecx, dword [0x62b068]
mov dl, 1
mov eax, dword [0x453760]
call fcn.0045ea34
call fcn.004753f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d20ea
lea eax, [ebp - 4]
call fcn.00475c34
ret
Function at 0x4dfa40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x631028], 0
je 0x4dfb81
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x62aafc]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x4dfb81
mov eax, dword [0x63102c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x631028]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4dfb50
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x631028]
call fcn.00428970
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4dfb48
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1ea], 0
je 0x4dfb48
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x5c]
test al, al
je 0x4dfb48
mov eax, dword [ebp - 0x14]
call fcn.004eb434
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4dfb48
push ebp
call fcn.004df9fc
pop ecx
test al, al
jne 0x4dfb48
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00474428
test al, al
je 0x4dfb48
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00474428
cmp byte [ebp - 1], 0
je 0x4dfb48
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.0046fdc8
test al, al
je 0x4dfb48
mov edx, dword [ebp - 0x14]
mov eax, dword [0x63102c]
call fcn.004df154
inc edi
dec ebx
jne 0x4dfaa5
mov eax, dword [0x63102c]
cmp dword [eax + 8], 0
jle 0x4dfb68
mov eax, dword [0x63102c]
call fcn.004df20c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4dfb81
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004df860
pop ecx
test al, al
jne 0x4dfb81
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e7fac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.USER32.DLL_GetMessagePos
call fcn.0046fdb0
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.004e1fc0
test ebx, ebx
jne 0x4e7fff
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004e7e28
mov ebx, eax
test ebx, ebx
je 0x4e80f5
cmp esi, ebx
je 0x4e8028
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x4e803d
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x4e8075
add eax, 0xffffff5f
sub eax, 2
jb 0x4e808d
dec eax
sub eax, 2
jb 0x4e80a1
dec eax
sub eax, 2
jb 0x4e8097
jmp 0x4e80ab
add eax, 0xfffffdff
sub eax, 2
jb 0x4e808d
dec eax
sub eax, 2
jb 0x4e80a1
dec eax
sub eax, 2
jb 0x4e8097
jmp 0x4e80ab
mov byte [esp + 0x120], 0
jmp 0x4e80b3
mov byte [esp + 0x120], 2
jmp 0x4e80b3
mov byte [esp + 0x120], 1
jmp 0x4e80b3
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.USER32.DLL_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004bd1d0
mov esi, eax
call fcn.004de840
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.004e39a8
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4e80f7
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x50b8e0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x50b9cd
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x50b99f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
xor edx, edx
push ebp
push 0x50b98e
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.004737bc
mov eax, dword [ebp - 4]
call fcn.0050b620
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.USER32.DLL_SetClipboardData
test eax, eax
jne 0x50b977
mov ecx, dword [0x62af6c]
mov dl, 1
mov eax, dword [0x41c328]
call fcn.0045ea34
call fcn.004753f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50b995
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret

Function at 0x50bbac
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x50bc54
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x50bc27
mov edx, ebx
mov eax, dword [0x4a65d4]
call fcn.004ae98c
test al, al
je 0x50bc17
movzx eax, bx
push eax
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov edi, eax
push edi
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004ae8a4
call fcn.004754e4
jmp 0x50bc5b
movzx eax, bx
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x50bbdf
mov ecx, dword [0x62b108]
mov dl, 1
mov eax, dword [0x50b534]
call fcn.0045ea34
call fcn.004753f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50bc5b
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x50bc64
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x50bcc0
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov edi, eax
push edi
mov ecx, esi
mov dx, 2
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50bcc7
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x50bcd0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x50bd25
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50bd2c
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x50bd9c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x50be11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0050b620
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.004ae968
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x50bdfb
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50be18
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x50be20
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x50be95
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0050b620
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x68]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x50be7f
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50be9c
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret