joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49e4dc
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x49e504
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x49e515
push 2
call edi
test ax, ax
jge 0x49e515
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.00481058
cmp dword [esi + 0x30], ebx
jne 0x49e5ef
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00481058
cmp eax, dword [esp + 0x34]
jne 0x49e5ef
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x49e58b
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x49e5d0
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x49e5ef
cmp eax, 0x205
je 0x49e5ef
cmp eax, 0x201
je 0x49e5ef
cmp eax, 0x204
je 0x49e5ef
cmp eax, ebx
jne 0x49e5b6
cmp dword [esp + 0x1c], 0x1b
je 0x49e5ef
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x4f39ec]
jbe 0x49e5e5
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x49e548
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4