joyce8/EMBER2024-capa huggingface dataset:
Function at 0x660ace10
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x400
push ebp
mov dword [esp + 0x18], ebp
push dword [0x6610e6c0]
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebp
je 0x660acf0d
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
push ebp
push dword [esp + 0x20]
call ebx
mov esi, eax
mov eax, dword [esp + 0x10]
cmp esi, ebp
je 0x660aceab
cmp eax, ebp
je 0x660ace5d
cmp dword [esp + 0x14], ebp
jne 0x660aceab
push ebp
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp esi, dword [esp + 0x1c]
je 0x660acea6
cmp eax, dword [0x66110bf8]
jne 0x660acea6
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x660acea6
cmp dword [esp + 0x14], ebp
jne 0x660ace93
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x660ace93
mov dword [esp + 0x14], esi
cmp dword [esp + 0x10], ebp
jne 0x660acea6
push 4
push esi
call ebx
test eax, eax
jne 0x660acea6
mov dword [esp + 0x10], esi
push 2
push esi
jmp 0x660ace47
cmp eax, ebp
je 0x660aceff
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
mov dword [0x66110bfc], ecx
jne 0x660acec2
mov dword [0x66110bfc], eax
lea esi, [edi + 0x200]
push 0x50
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [0x66110c00]
push 0x200
neg eax
push edi
push ebp
sbb eax, eax
push ebp
add eax, 0xea64
push esi
push eax
call fcn.6607242c
push edi
push 0x1454
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push edi
push ebp
push dword [0x6610e6c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4

Function at 0x660acf16
Capabilities:
Create process on windows

Disassembly:
push dword [0x66110bfc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x660acf5a
xor eax, eax
push 3
push eax
push eax
push eax
push eax
push eax
push dword [0x66110bfc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [0x66110bfc]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x660acf67
push 9
push dword [0x66110bfc]
call dword [sym.imp.USER32.dll_ShowWindow]
ret
push 5
push 0x6605338c
call dword [sym.imp.KERNEL32.dll_WinExec]
ret

Function at 0x660ae8ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x660ae8de
push dword [ebp + 0xc]
push 0x146
call fcn.660ae86d
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
push edi
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x660ae8f4
push 7
pop eax
jmp 0x660ae8d7
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x660ae907
push edi
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebx], eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
neg eax
sbb eax, eax
and al, 0xf9
add eax, 7
jmp 0x660ae8d7
Function at 0x660b464d
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ecx, dword [eax]
dec ecx
dec ecx
je 0x660b468d
mov si, word [eax + 8]
mov eax, dword [eax + 4]
cmp si, 1
mov dword [ebp + 8], eax
je 0x660b4692
cmp si, 0xbf00
je 0x660b4692
cmp si, 0xbf01
je 0x660b4692
mov esi, 0x800a01cc
mov edi, dword [ebp + 8]
jmp 0x660b4722
push 1
pop esi
jmp 0x660b4666
call fcn.660143aa
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x660b4767
cmp si, 0xbf00
jne 0x660b4734
mov eax, dword [0x6610e7d0]
movzx eax, ax
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
test ebx, ebx
je 0x660b4755
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
cmp si, 0xbf00
push edi
jne 0x660b474b
lea eax, [ebp - 0x100]
push eax
call fcn.660c8fbe
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.6601b4b4
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, edi
neg esi
sbb esi, esi
and esi, 0x7ff8fff2
add esi, 0x8007000e
call dword [sym.imp.USER32.dll_CloseClipboard]
test esi, esi
jl 0x660b472b
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [0x6610e7cc]
cmp si, 0xbf01
je 0x660b46b6
mov eax, esi
jmp 0x660b46b6
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
jmp 0x660b46fc
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.6601b4b4
mov edi, eax
jmp 0x660b470a
mov esi, 0x800a0209
jmp 0x660b4685
Function at 0x660b4828
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
mov eax, dword [esp + 8]
and dword [esp], 0
push ebx
push ebp
mov ecx, dword [eax]
push esi
dec ecx
push edi
cmp ecx, 1
jne 0x660b486b
push ecx
pop edi
mov esi, dword [eax + 4]
cmp di, 1
je 0x660b4871
cmp di, 0xbf00
je 0x660b4871
cmp di, 0xbf01
je 0x660b4871
mov dword [esp + 0x10], 0x800a01cc
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov di, word [eax + 8]
jmp 0x660b4840
call fcn.660143aa
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x660b4922
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
inc eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x660b4918
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp di, 0xbf00
jne 0x660b48c3
push ebp
call fcn.660c9013
test eax, eax
jne 0x660b48f4
and dword [esp + 0x10], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [esp + 0x10], 0
jl 0x660b490f
cmp di, 0xbf00
jne 0x660b4900
mov edi, dword [0x6610e7d0]
movzx eax, di
push ebx
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x660b485f
push eax
call fcn.66071e7b
mov dword [esp + 0x10], eax
jmp 0x660b48c3
cmp di, 0xbf01
jne 0x660b48de
mov edi, dword [0x6610e7cc]
jmp 0x660b48de
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x660b48e9
mov dword [esp + 0x10], 0x8007000e
jmp 0x660b48e9
mov dword [esp + 0x10], 0x800a0209
jmp 0x660b485f

Function at 0x660b71f6
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov ax, word [0x6610e9e4]
push ebx
push ebp
push esi
push edi
push 1
pop esi
push eax
mov dword [esp + 0x14], esi
call fcn.6600e958
test eax, eax
je 0x660b721c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
push edi
push edi
push 0xe
push dword [ebx + 0xe4]
call ebp
mov esi, eax
inc esi
push esi
push edi
push dword [0x6610e6c0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x660b7214
push edi
push esi
push 0xd
push dword [ebx + 0xe4]
call ebp
push eax
push edi
call fcn.66086a02
test eax, eax
je 0x660b7267
and dword [esp + 0x10], 0
push edi
push 0
push dword [0x6610e6c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x10]
jmp 0x660b7214
Function at 0x660b8024
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov eax, dword [esi + 0xd8]
mov dword [ebp - 4], edi
cmp eax, edi
jne 0x660b8047
mov eax, 0x66004fa0
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x254]
push eax
call fcn.660bb42a
lea eax, [ebp - 0x254]
push 0x660865e0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call ebx
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
push esi
sete al
mov dword [ebp - 0xc], eax
call fcn.660b7e84
mov eax, dword [esi + 0x28]
push edi
push edi
push 0xb
push dword [esi + 0x3c]
mov eax, dword [eax]
push esi
call dword [eax + 0x10]
mov eax, dword [esi + 0x28]
push edi
push edi
push 0x184
push dword [esi + 0x3c]
mov eax, dword [eax]
push esi
call dword [eax + 0x10]
cmp dword [ebp + 8], 0xffffffff
je 0x660b8125
test byte [ebp - 0x14c], 0x10
je 0x660b8108
test byte [ebp - 0x14c], 2
jne 0x660b8108
cmp byte [ebp - 0x120], 0x2e
je 0x660b8108
lea eax, [ebp - 0x120]
push eax
push edi
push 0x180
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x14c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x660b80d7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0xc]
push esi
call fcn.660b7f4c
test eax, eax
je 0x660b817e
push dword [ebp + 0xc]
push esi
call fcn.660b7e4b
mov eax, dword [esi + 0x28]
push edi
push 1
push 0xb
push dword [esi + 0x3c]
mov eax, dword [eax]
push esi
call dword [eax + 0x10]
push 1
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp dword [ebp - 0xc], edi
je 0x660b8174
mov eax, dword [ebp - 8]
dec eax
dec eax
je 0x660b8174
dec eax
je 0x660b8174
push dword [ebp - 8]
call ebx
call fcn.66072549
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
mov dword [ebp - 4], 0x8007000e
jmp 0x660b813b

Function at 0x660b9479
Capabilities:
Get disk information

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x660b94ad
cmp eax, 2
je 0x660b94a9
cmp eax, 4
je 0x660b94a5
cmp eax, 5
je 0x660b94a1
cmp eax, 6
jne 0x660b94b2
push 7
pop eax
jmp 0x660b94af
push 5
jmp 0x660b949e
push 6
jmp 0x660b949e
push 3
jmp 0x660b949e
xor eax, eax
ret 4
push 4
jmp 0x660b949e
Function at 0x660bb49a
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_CharNextA]
push edi
mov edi, dword [ebp + 8]
push 1
mov dword [ebp - 8], edi
cmp byte [edi], 0
pop ebx
je 0x660bb54f
push edi
call esi
cmp byte [eax], 0x3a
jne 0x660bb54f
push dword [ebp + 0xc]
call esi
cmp byte [eax], 0x3a
jne 0x660bb55c
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
cmp al, byte [edi]
jne 0x660bb55c
push edi
call esi
push eax
call esi
mov dword [ebp - 8], eax
test ebx, ebx
je 0x660bb67c
push dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
lea eax, [ebp - 0x110]
push eax
jne 0x660bb560
call fcn.660bb461
and byte [eax], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x110]
push eax
call ebx
push dword [ebp - 8]
mov edx, eax
mov dword [ebp + 0xc], edx
call ebx
mov ecx, dword [ebp + 0xc]
add ecx, eax
cmp ecx, 0x104
jle 0x660bb567
mov eax, 0x800a017c
pop edi
pop esi
pop ebx
leave
ret 8
cmp byte [edi], 0x5c
jne 0x660bb4ee
push edi
call esi
cmp byte [eax], 0x5c
jne 0x660bb4ee
xor ebx, ebx
jmp 0x660bb4ee
call fcn.660bb42a
jmp 0x660bb51d
push dword [ebp - 8]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x110]
push eax
call esi
cmp byte [eax], 0x3a
jne 0x660bb5f9
mov al, byte [ebp - 0x110]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
and byte [ebp + 0xf], 0
xor ebx, ebx
push ebx
push ebx
mov byte [ebp + 0xc], al
mov byte [ebp + 0xd], 0x3a
mov byte [ebp + 0xe], 0x5c
call esi
mov edi, eax
push edi
push ebx
push dword [0x6610e6c0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
push ebx
push edi
call esi
dec edi
cmp eax, edi
je 0x660bb5cd
push 0x66053acc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp + 0xc]
push eax
call esi
test eax, eax
jne 0x660bb5e4
mov dword [ebp - 4], 0x800a0044
push ebx
call esi
push ebx
push 0
push dword [0x6610e6c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [ebp + 8]
cmp dword [ebp - 4], 0
jl 0x660bb674
lea eax, [ebp - 0x110]
push 0x105
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.6606f5d0
add esp, 0xc
test eax, eax
je 0x660bb691
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea eax, [ebp + esi - 0x218]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
cmp esi, 3
jbe 0x660bb666
cmp byte [eax], 0x5c
jne 0x660bb64f
and byte [eax], 0
lea eax, [ebp - 0x218]
push eax
call fcn.66074202
test eax, eax
jne 0x660bb666
mov dword [ebp - 4], 0x800a004c
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 4]
jmp 0x660bb548
push dword [ebp - 8]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x660bb577
mov dword [ebp - 4], 0x800a004c
jmp 0x660bb674
Function at 0x660bbbed
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov eax, dword [esi + 0xd8]
mov dword [ebp - 4], edi
cmp eax, edi
jne 0x660bbc10
mov eax, 0x66004fa0
push eax
lea eax, [ebp - 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x250]
push 0x105
push eax
lea eax, [ebp - 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x250]
push eax
call fcn.660bb42a
push edi
push edi
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x28]
push 0xb
push dword [esi + 0x3c]
mov eax, dword [eax]
push esi
call dword [eax + 0x10]
mov eax, dword [esi + 0x28]
push edi
push edi
push 0x184
push dword [esi + 0x3c]
mov eax, dword [eax]
push esi
call dword [eax + 0x10]
mov eax, dword [esi + 0xdc]
cmp eax, edi
mov ebx, eax
jne 0x660bbc7a
mov ebx, 0x660865e0
mov edi, ebx
mov al, byte [edi]
test al, al
je 0x660bbc91
cmp al, 0x3b
je 0x660bbc91
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
jmp 0x660bbc7c
mov al, byte [edi]
and byte [edi], 0
push ebx
mov byte [ebp + 8], al
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x660bbd39
mov dl, byte [ebp - 0x148]
test dl, 0x10
jne 0x660bbd20
mov eax, dword [esi + 0xd4]
xor ecx, ecx
test dl, 2
je 0x660bbcdd
test al, 2
je 0x660bbd20
push 1
pop ecx
test dl, 4
je 0x660bbce9
test al, 4
je 0x660bbd20
push 1
pop ecx
test al, 0x80
jne 0x660bbd02
test al, 1
je 0x660bbcf9
test dl, 1
je 0x660bbcf9
push 1
pop ecx
test al, 0x20
je 0x660bbd05
test dl, 0x20
je 0x660bbd05
push 1
pop ecx
test ecx, ecx
je 0x660bbd20
lea eax, [ebp - 0x11c]
push eax
push 0
push 0x180
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x148]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x660bbcbe
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [ebp + 8]
inc dword [ebp - 4]
test al, al
je 0x660bbd55
push edi
mov byte [edi], al
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
mov ebx, edi
jmp 0x660bbc7c
cmp dword [ebp - 4], 1
jle 0x660bbd63
push dword [ebp + 0xc]
call fcn.660bbd94
mov eax, dword [esi + 0x28]
push 0
push 1
push 0xb
push dword [esi + 0x3c]
mov eax, dword [eax]
push esi
call dword [eax + 0x10]
mov eax, dword [esi + 0x30]
test byte [eax + 0x20], 0x10
jne 0x660bbd8b
push 1
push 0
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8
Function at 0x660bbe41
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
push 0
push 0
push 0x31
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
test eax, eax
je 0x660bbe71
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push 0x100
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov esi, dword [sym.imp.GDI32.dll_GetTextExtentPointA]
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp + 0x10], eax
push eax
lea eax, [ebp - 0x144]
push eax
push edi
call esi
cmp dword [ebp - 8], 0
push 1
pop ebx
jne 0x660bbeba
lea eax, [ebp - 0x3c]
push eax
push ebx
push 0x66053ad0
push edi
call esi
mov eax, dword [ebp - 0x38]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [0x6610e7b4], 0
je 0x660bbfe9
mov eax, dword [ebp + 8]
test byte [eax + 0x27], 0x20
je 0x660bbfe9
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffc
mov dword [ebp - 0x24], eax
sub eax, dword [ebp - 0xc]
sub eax, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
and dword [ebp - 0x28], 0
mov dword [ebp - 0x20], eax
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
cdq
sub eax, edx
push 0x10
sar eax, 1
add dword [ebp - 0x18], eax
dec dword [ebp - 0x14]
dec dword [ebp - 0x10]
call esi
push 0xf
push eax
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.66027115
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 0x14
call esi
push 0xf
push eax
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.66027115
lea eax, [ebp - 0x44]
push ebx
mov ebx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x34]
push eax
push edi
push ebx
call fcn.66026c46
mov esi, dword [sym.imp.GDI32.dll_SetBkMode]
push 2
push edi
call esi
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x660bbf92
push reloc.OLEAUT32.dll_SafeArrayGetElemsize
push ebx
call fcn.6602143b
cmp eax, dword [ebp - 0x30]
jne 0x660bbf8a
push reloc.OLEAUT32.dll_SafeArrayGetDim
push ebx
call fcn.6602143b
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [0x6610e7b4], 0
je 0x660bbffe
test byte [ebx + 0x27], 0x20
je 0x660bbffe
push 0x20022
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x144]
push dword [ebp + 0x10]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextA]
cmp dword [ebp - 4], 0
je 0x660bbfcb
push dword [ebp - 4]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 8]
push edi
call esi
lea eax, [ebp - 0x44]
push 0
push eax
lea eax, [ebp - 0x34]
push eax
push edi
push ebx
call fcn.66026c46
pop edi
pop esi
pop ebx
leave
ret 0xc
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], 4
add eax, 8
mov dword [ebp - 0x24], eax
jmp 0x660bbef3
push 0x20
jmp 0x660bbfa6
Function at 0x660c9146
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
xor edi, edi
push 0x7f02
push edi
xor ebx, ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x10], eax
cmp dword [esi + 0xd1c], edi
mov ebp, dword [esi + 0xdfc]
mov dword [esi + 0xd20], 1
jne 0x660c9194
mov dword [esi + 0xdfc], edi
push 1
push edi
push edi
lea eax, [esp + 0x24]
push edi
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x660c92c1
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
mov eax, dword [esp + 0x1c]
je 0x660c91d0
cmp eax, 0x200
jae 0x660c92e6
cmp eax, 0x209
jbe 0x660c92e6
mov edx, dword [esp + 0x20]
cmp eax, 0x100
jne 0x660c91eb
cmp edx, 0x1b
jne 0x660c91eb
mov ebx, 0x11f
mov dword [esi + 0xd20], edi
cmp eax, 0x200
je 0x660c92e6
cmp eax, 0x202
je 0x660c92e6
cmp eax, 0x205
je 0x660c92e6
cmp eax, 0x208
je 0x660c92e6
mov ecx, 0xa0
cmp eax, ecx
je 0x660c92e6
cmp eax, 0xa2
je 0x660c92e6
cmp eax, 0xa5
je 0x660c92e6
cmp eax, 0xa8
je 0x660c92e6
cmp eax, ecx
jb 0x660c9250
cmp eax, 0xa9
jbe 0x660c926c
cmp eax, 0x100
jb 0x660c925e
cmp eax, 0x108
jbe 0x660c926c
cmp eax, 0x200
jb 0x660c92af
cmp eax, 0x209
ja 0x660c92af
cmp eax, 0x104
jne 0x660c92f1
cmp edx, 0x12
je 0x660c9340
cmp edx, 0x11
je 0x660c9340
cmp dword [esi + 0xd18], edi
lea ecx, [esi + 0xd18]
je 0x660c92f1
cmp edx, 0x10
je 0x660c92f1
cmp edx, 9
mov dword [ecx], edi
je 0x660c92a4
cmp edx, 0x1b
jne 0x660c92af
mov ebx, 0x11f
mov dword [esi + 0xd20], edi
cmp eax, 0x104
je 0x660c92c1
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esi + 0xd20], edi
je 0x660c92fd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x40]
jbe 0x660c92f1
mov ebx, 0x11e
mov dword [esi + 0xd20], edi
jmp 0x660c92f1
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esi + 0xd20], edi
jne 0x660c9194
cmp ebx, edi
mov dword [esi + 0xdfc], ebp
je 0x660c932e
push edi
push dword [esp + 0x40]
push dword [esi + 0xd34]
call sub.USER32.dll_DdeAbandonTransaction
test eax, eax
jne 0x660c932a
call fcn.660c9759
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc
mov eax, ebx
jmp 0x660c9320
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esi + 0xd30]
jmp 0x660c9320
mov dword [esi + 0xd18], 1
jmp 0x660c92f1
Function at 0x660ca4ca
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [ebx + 0x30]
push edi
and dword [eax], 0
mov esi, dword [ecx + 0x34]
mov edi, dword [esi + 0xd48]
test edi, edi
je 0x660ca518
mov eax, dword [esi + 0xd80]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 0x58]
test edx, edx
je 0x660ca514
mov edx, dword [edx + 0x74]
mov edx, dword [edx]
cmp byte [edx + 0x37], 0x1d
jne 0x660ca514
cmp dword [eax + 0x40], 0
jne 0x660ca514
cmp eax, ecx
jne case.default.0x660ca6a3
test edi, edi
jne 0x660ca57e
mov eax, dword [ebp + 0x14]
sub eax, 0xa1
je 0x660ca535
dec eax
dec eax
je 0x660ca535
sub eax, 0x15e
je 0x660ca535
dec eax
dec eax
jne case.default.0x660ca6a3
mov eax, dword [ebx + 0x24]
and eax, 8
cmp al, 8
jne case.default.0x660ca6a3
mov eax, dword [ebp + 0x1c]
movsx ecx, ax
shr eax, 0x10
cmp dword [ebp + 0x14], 0x201
mov dword [ebp - 8], ecx
movsx eax, ax
mov dword [ebp - 4], eax
je 0x660ca563
cmp dword [ebp + 0x14], 0x203
jne 0x660ca56d
lea eax, [ebp - 8]
push eax
push ebx
call fcn.6606ed4a
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
call fcn.660ca8b7
push 1
pop eax
jmp 0x660ca5bf
mov ebx, dword [esi + 0xd80]
mov eax, ebx
push dword [eax + 0x30]
call fcn.660221ba
mov edi, dword [ebp + 0x14]
cmp ebx, eax
je 0x660ca59d
cmp edi, 0x215
jne 0x660ca5b5
cmp dword [ebp + 0xc], ebx
jne 0x660ca5c6
cmp edi, 0x1012
je 0x660ca5af
cmp edi, 0x1f
jne 0x660ca5c6
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0
push esi
call fcn.660cacd3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x18
cmp edi, 0x14
ja 0x660ca60a
je 0x660ca644
cmp edi, 0xf
je 0x660ca644
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [esi + 0xd80]
jne case.default.0x660ca6a3
mov eax, dword [ebp + 0x1c]
movsx edx, ax
shr eax, 0x10
movsx eax, ax
mov dword [ebp - 4], eax
mov eax, 0xa0
cmp edi, eax
mov dword [ebp - 8], edx
ja 0x660ca658
je 0x660ca683
cmp edi, 0x20
jne case.default.0x660ca6a3
call fcn.660ca76c
jmp 0x660ca5bf
cmp edi, 0x85
je 0x660ca644
cmp edi, 0x88
je 0x660ca644
cmp edi, 0xff
jbe 0x660ca5d2
cmp edi, 0x102
jbe case.0x660ca6a3.513
cmp edi, 0x103
jbe 0x660ca5d2
cmp edi, 0x106
jbe case.0x660ca6a3.513
jmp 0x660ca5d2
cmp dword [esi + 0xd4c], 0
je 0x660ca5d2
push esi
call fcn.660ca827
jmp 0x660ca5d2
mov eax, 0x200
cmp edi, eax
ja 0x660ca694
je 0x660ca679
lea eax, [edi - 0xa1]
cmp eax, 8
ja case.default.0x660ca6a3
jmp dword [eax*4 + 0x660ca6f2]
lea eax, [ebp - 8]
push eax
push ecx
call fcn.6606ed4a
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call fcn.660caa1f
jmp case.0x660ca6a3.513
add edi, 0xfffffdff
cmp edi, 8
ja case.default.0x660ca6a3
jmp dword [edi*4 + 0x660ca716]
lea eax, [ebp - 8]
push eax
push ecx
call fcn.6606ed4a
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call edi
test ax, ax
jl case.0x660ca6a3.513
push 4
call edi
test ax, ax
jl case.0x660ca6a3.513
push 2
call edi
test ax, ax
jl case.0x660ca6a3.513
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call fcn.660cac3c
jmp case.0x660ca6a3.513