joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4040e0
Capabilities:
Check for time delay via gettickcount
Read clipboard data

Disassembly:
lea eax, [esi - 0xc000]
sub esp, 0x108
cmp eax, 0x3fff
ja 0x40417d
push 0x104
lea ecx, [esp + 4]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameA]
push 0xb
lea edx, [esp + 4]
push str.Link_Source
push edx
call fcn.004819bb
add esp, 0xc
test eax, eax
je 0x404174
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.00480f51
add esp, 8
test eax, eax
je 0x404174
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.00480f51
add esp, 8
test eax, eax
je 0x404174
lea edx, [esp]
push str.Native
push edx
call fcn.00480f51
add esp, 8
test eax, eax
je 0x404174
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.00480f51
add esp, 8
test eax, eax
jne 0x404181
xor eax, eax
add esp, 0x108
ret
mov byte [esp], 0
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call ebp
mov edi, dword [sym.imp.USER32.dll_GetClipboardData]
push esi
mov ebx, eax
call edi
test eax, eax
jne 0x404210
jmp 0x4041a0
cmp esi, 0xf
je 0x40420e
lea ecx, [esp + 0xc]
push str.OwnerLink
push ecx
call fcn.00480f51
add esp, 8
test eax, eax
je 0x40420e
mov eax, dword [0x4a23a0]
cmp eax, 0xffffffff
je 0x4041da
test eax, eax
je 0x40420e
call ebp
mov edx, dword [0x4a23a0]
add edx, ebx
sub edx, eax
cmp edx, 5
jle 0x40420e
push 1
push 0x8000012f
mov dword [0x4a23a4], 0
call fcn.00401280
add esp, 8
push esi
mov dword [0x4a23a4], 1
call edi
test eax, eax
je 0x4041a0
pop edi
pop ebp
pop ebx
add esp, 0x108
ret
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x404220
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0
je 0x404232
mov eax, 1
ret 4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov ecx, dword [0x4a5c70]
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
push ecx
mov edi, eax
call ebx
test eax, eax
jne 0x4042a0
mov eax, dword [0x4a23a0]
cmp eax, 0xffffffff
je 0x404271
test eax, eax
je 0x4042b6
call esi
mov edx, dword [0x4a23a0]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x4042b6
push 1
push 0x8000012f
mov dword [0x4a23a4], 0
call fcn.00401280
mov eax, dword [0x4a5c70]
add esp, 8
push eax
mov dword [0x4a23a4], 1
call ebx
test eax, eax
je 0x404252
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword [ecx + 0x18], 1
mov eax, 1
pop ebx
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
Function at 0x4073e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
cmp byte [0x4a4b7a], 0
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
je 0x40749b
mov al, byte [0x4a4b82]
cmp al, 0xa0
je 0x407406
cmp al, 0x10
jne 0x40749b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4a4b7c]
cmp eax, 0x16
jae 0x40749b
test ebp, 0x100
jne case.0x407437.13
movzx eax, byte [esp + 0x14]
add eax, 0xfffffff4
cmp eax, 0x22
ja case.0x407437.13
movzx eax, byte [eax + 0x407644]
jmp dword [eax*4 + 0x40763c]
mov cl, 1
jmp 0x407444
xor cl, cl
cmp byte [0x4a4b7b], 0
jne 0x407461
xor ecx, ecx
nop
cmp byte [ecx + 0x4a4b64], 0
jne 0x40746c
inc ecx
cmp ecx, 0x16
jl 0x407450
jmp 0x40749b
cmp byte [esp + 0x1c], 0
je 0x407475
test cl, cl
je 0x40749b
mov byte [0x4a4b83], 1
jmp 0x407479
test cl, cl
je 0x40749b
mov cl, byte [0x4a4a87]
mov dl, byte [0x4a4a86]
mov al, byte [0x4a4a85]
mov byte [0x4a5c6f], cl
mov byte [0x4a5ca0], dl
mov byte [0x4a5d30], al
mov cl, byte [0x4a5c6f]
movzx esi, byte [esp + 0x14]
mov dl, byte [0x4a5ca0]
mov al, byte [0x4a5d30]
mov byte [0x4a4a87], cl
lea ecx, [esi + esi*8]
mov byte [0x4a4a86], dl
mov edx, dword [0x4a65a8]
shl ecx, 5
mov bl, byte [ecx + edx + 4]
mov byte [0x4a4a85], al
test bl, bl
je case.default.0x407612
cmp dword [edi + 0x10], 0xffc3d44f
setne dl
test byte [edi + 8], 0x10
mov byte [esp + 0xf], dl
je 0x4074f2
xor al, al
jmp 0x407507
mov eax, dword [esp + 0x1c]
push eax
mov al, byte [esp + 0x18]
call fcn.004076a0
mov dl, byte [esp + 0x13]
add esp, 4
cmp byte [esp + 0x1c], 0
mov byte [esp + 0x18], al
je 0x4075de
cmp byte [esp + 0x20], 0
jne 0x407531
mov cl, bl
not cl
and byte [0x4a5c6d], cl
test dl, dl
je 0x407531
and byte [0x4a5c6e], cl
cmp byte [esp + 0x18], 0
je case.default.0x407612
not bl
and byte [0x4a5c6f], bl
lea ecx, [esi - 0xa0]
mov byte [esi + 0x4a5c90], 0
cmp ecx, 5
ja case.default.0x407612
jmp dword [ecx*4 + 0x407668]
mov cl, byte [0x4a5d31]
mov byte [0x4a5ca0], cl
jmp case.default.0x407612
mov dl, byte [0x4a5d30]
mov byte [0x4a5ca0], dl
jmp case.default.0x407612
mov al, byte [0x4a5d33]
mov byte [0x4a5ca1], al
jmp case.default.0x407612
mov cl, byte [0x4a5d32]
mov byte [0x4a5ca1], cl
jmp case.default.0x407612
mov dl, byte [0x4a5d35]
mov byte [0x4a5ca2], dl
jmp case.default.0x407612
mov al, byte [0x4a5d34]
mov byte [0x4a5ca2], al
test byte [edi + 8], 0x10
mov al, byte [esp + 0x14]
mov ecx, dword [esp + 0x1c]
pop esi
mov word [0x4a4b80], bp
pop ebp
mov byte [0x4a4b82], al
mov byte [0x4a4b7b], cl
pop ebx
je 0x407620
xor al, al
mov byte [0x4a4b7a], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4a4b7c], eax
pop ecx
ret
cmp byte [esp + 0x20], 0
jne 0x4075f5
or byte [0x4a5c6d], bl
test dl, dl
je 0x4075f5
or byte [0x4a5c6e], bl
test al, al
je case.default.0x407612
or byte [0x4a5c6f], bl
lea ecx, [esi - 0xa0]
mov al, 0x80
mov byte [esi + 0x4a5c90], al
cmp ecx, 5
ja case.default.0x407612
jmp dword [ecx*4 + 0x407680]
mov byte [0x4a5ca0], al
jmp case.default.0x407612
push ecx
call fcn.004076a0
add esp, 4
mov byte [0x4a4b7a], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4a4b7c], eax
pop ecx
ret
Function at 0x4076a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp al, 0xa0
je 0x4076af
cmp al, 0x10
jne case.0x407706.13
cmp byte [esp + 8], 0
jne case.0x407706.13
cmp byte [0x4a4b83], 0
je 0x4076db
xor eax, eax
cmp byte [eax + 0x4a4b64], 0
jne 0x4076db
inc eax
cmp eax, 0x16
jl 0x4076c1
mov byte [0x4a4b83], 0
xor al, al
pop esi
ret
cmp byte [0x4a4b7b], 0
je case.0x407706.13
test dword [0x4a4b80], 0x100
jne case.0x407706.13
movzx eax, byte [0x4a4b82]
add eax, 0xfffffff4
cmp eax, 0x22
ja case.0x407706.13
movzx eax, byte [eax + 0x407730]
jmp dword [eax*4 + 0x407728]
call esi
sub eax, dword [0x4a4b7c]
cmp eax, 0x16
jb 0x4076d7
call esi
mov dword [0x4a84d0], eax
mov al, 1
pop esi
ret
Function at 0x408540
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
xor al, al
cmp dword [0x4a5da0], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x408564
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4a5da4], 0
je 0x408573
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x408780
test al, al
jne 0x4085b6
cmp byte [ebp + 0xc], al
jne 0x4085b6
push 0x4a4b60
push 0
push 0
push 0x408850
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4a8504], eax
test eax, eax
je 0x408647
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
movzx ebx, byte [ebp + 8]
xor eax, eax
xor esi, esi
cmp byte [ebp + 0xc], al
sete al
mov edi, eax
mov ecx, dword [0x4a4b60]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
test eax, eax
jne 0x4085ec
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x4085c6
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [esp + 0x1f], 0
call edi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, eax
cmp byte [ebp + 8], 0
je 0x408653
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x4086ba
cmp dword [esp + 0x2c], 0
je 0x408662
mov byte [esp + 0x1f], 1
call fcn.00408bf0
test al, al
jne 0x408662
cmp byte [ebp + 0xc], al
jne 0x40874e
mov byte [ebp + 8], al
jmp 0x408601
call fcn.00408c10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x40869e
call fcn.00408bf0
test al, al
jne 0x4086ba
cmp byte [ebp + 0xc], 0
jne 0x408747
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4a5da0], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
je 0x4086f2
test byte [esp + 0x1e], 1
jne 0x40870b
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4a6594], eax
jmp 0x40870b
mov ecx, dword [0x4a8504]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x4086d2
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x408662
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x408601
mov edx, dword [0x4a8504]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [0x4a8504], 0
call fcn.00408c10
jmp 0x408672
test byte [esp + 0x1e], 1
je 0x40870b
mov eax, dword [0x4a6594]
push eax
call edi
mov dword [0x4a6594], 0
cmp dword [0x4a5da4], 0
je 0x40872d
test byte [esp + 0x1e], 2
jne 0x408747
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4a6598], eax
jmp 0x408747
test byte [esp + 0x1e], 2
je 0x408747
mov ecx, dword [0x4a6598]
push ecx
call edi
mov dword [0x4a6598], 0
cmp byte [esp + 0x1f], 0
je 0x408780
fldz
push 0
sub esp, 8
fstp qword [esp]
push 0
push 0x10000
push str.Warning:_The_keyboard_and_or_mouse_hook_could_not_be_activated__some_parts_of_the_script_will_not_function.
mov dword [0x4a23a4], 0
call fcn.00472bb0
add esp, 0x18
mov dword [0x4a23a4], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409e00
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x838
cmp byte [0x4a8508], 0
push esi
push edi
jne 0x409fb6
cmp dword [0x4a65b0], 0
jne 0x409e2f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4a65b0], eax
mov edi, 1
add dword [0x4a850c], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x4a850c]
mov esi, dword [0x4a23b8]
mov ecx, eax
sub ecx, dword [0x4a65b0]
mov dword [0x4a65b4], eax
cmp edx, dword [0x4a23b4]
jbe 0x409ee6
cmp ecx, esi
jae 0x409ee6
push ecx
push edx
mov dword [esp + 0x44], edi
push str._u_hotkeys_have_been_received_in_the_last__ums._n_nDo_you_want_to_continue__n_see_MaxHotkeysPerInterval_in_the_help_file_
mov esi, 0x800
lea edi, [esp + 0x4c]
call fcn.0046e530
add esp, 0xc
call fcn.00408fd0
fldz
push 0
sub esp, 8
fstp qword [esp]
push 0
mov eax, edi
push 4
push eax
mov byte [0x4a8508], 1
mov dword [0x4a23a4], 0
call fcn.00472bb0
add esp, 0x18
cmp eax, 7
jne 0x409eca
push 0
xor eax, eax
push 0x4a7ce0
lea ecx, [eax + 1]
call fcn.00415170
mov eax, dword [0x4a65b4]
mov edx, dword [esp + 0x3c]
mov dword [0x4a23a4], 1
mov byte [0x4a8508], 0
jmp 0x409eec
xor edx, edx
cmp ecx, esi
jbe 0x409f03
mov dword [0x4a850c], 0
mov dword [0x4a65b0], eax
test edx, edx
jne 0x409fb6
mov esi, dword [ebp + 8]
mov cl, byte [esi + 0x11]
mov byte [0x4a829d], cl
cmp byte [esi + 0x1a], 0
je 0x409f7a
cmp byte [esi + 0x1b], 0
je 0x409f7a
mov byte [esp + 0x3b], 1
call fcn.0040b8e0
mov ecx, dword [0x4a2440]
inc byte [ebx + 0x1f]
mov eax, dword [ebx]
mov esi, dword [ecx + 0x9c]
push 0
push 0
mov dword [ecx + 0x9c], eax
mov ecx, dword [eax + 4]
push 1
call fcn.00423c00
mov edx, dword [0x4a2440]
mov dword [edx + 0x9c], esi
dec byte [ebx + 0x1f]
cmp byte [esp + 0x3b], 0
mov edi, eax
je 0x409f6a
mov esi, dword [ebp + 8]
call fcn.0040b810
test edi, edi
jne 0x409f81
mov byte [ebx + 0x24], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov byte [esp + 0x3b], 0
jmp 0x409f25
cmp byte [ebx + 0x24], 0
je 0x409fb6
mov byte [ebx + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 4]
cmp eax, 0x3e8
ja 0x409fb6
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
mov edx, dword [0x4a5c70]
push 0
push ecx
push 0x312
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40e4a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x2c
push esi
mov esi, eax
lea eax, [esp + 4]
test cl, cl
jns 0x40e4b7
mov byte [esp + 4], 0x30
lea eax, [esp + 5]
push 0xa
push eax
movzx eax, cl
push eax
call fcn.00480be2
add esp, 0xc
test esi, esi
jle 0x40e570
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, esi
jmp 0x40e4e0
cmp dword [0x4a75d0], 0
jne 0x40e53d
call edi
sub eax, dword [0x4a82d4]
mov ecx, dword [0x4a2440]
cmp eax, dword [ecx + 0xb4]
jbe 0x40e53d
push 0
push 0
push 0
push 0
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40e536
push 1
push 0xffffffffffffffff
mov dword [0x4a23a4], 0
call fcn.00401280
add esp, 8
mov dword [0x4a23a4], 1
call edi
mov dword [0x4a82d4], eax
lea eax, [esp + 0xc]
call fcn.0040e580
cmp dword [0x4a75d0], 2
jne 0x40e559
mov eax, dword [0x4a2440]
mov esi, dword [eax + 0x60]
jmp 0x40e562
mov ecx, dword [0x4a2440]
mov esi, dword [ecx + 0x5c]
call fcn.004104b0
dec ebp
jne 0x40e4e0
pop edi
pop ebp
pop esi
add esp, 0x2c
ret

Function at 0x40e580
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
cmp dword [0x4a75d0], 0
push esi
mov esi, eax
je 0x40e597
mov al, byte [0x4a4b95]
jmp 0x40e68e
cmp dword [0x4a5da0], 0
je 0x40e5aa
mov al, byte [0x4a5c6d]
jmp 0x40e68e
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call edi
mov ecx, 0x8000
test cx, ax
je 0x40e5c7
mov bl, 0x10
push 0xa1
call edi
mov edx, 0x8000
test dx, ax
je 0x40e5db
or bl, 0x20
push 0xa2
call edi
mov ecx, 0x8000
test cx, ax
je 0x40e5ef
or bl, 1
push 0xa3
call edi
mov edx, 0x8000
test dx, ax
je 0x40e603
or bl, 2
push 0xa4
call edi
mov ecx, 0x8000
test cx, ax
je 0x40e617
or bl, 4
push 0xa5
call edi
mov edx, 0x8000
test dx, ax
je 0x40e62b
or bl, 8
push 0x5b
call edi
mov ecx, 0x8000
test cx, ax
je 0x40e63c
or bl, 0x40
push 0x5c
call edi
mov edx, 0x8000
test dx, ax
je 0x40e64d
or bl, 0x80
cmp dword [0x4a5da0], 0
je 0x40e68a
mov al, bl
not al
and al, byte [0x4a5c6d]
je 0x40e68a
mov cl, byte [0x4a5c6f]
not al
and byte [0x4a5c6d], al
and byte [0x4a5c6e], al
and cl, al
mov al, cl
mov byte [0x4a5c6f], cl
mov ecx, 0x4a5c90
call fcn.00411060
pop edi
mov al, bl
pop ebx
mov byte [esp + 4], al
mov ecx, dword [esp + 4]
push 1
and al, 0xc4
push 0
or al, 4
movzx edx, al
push 0
push ecx
push edx
mov eax, 0xffc3d44f
call fcn.00410860
mov al, byte [esi]
add esp, 0x14
cmp al, 0x30
jl 0x40e6df
cmp al, 0x39
jg 0x40e6df
push 0xffc3d44d
push 0
add al, 0x30
push 0
movzx eax, al
push 0
push eax
push 2
call fcn.0040e970
mov al, byte [esi + 1]
inc esi
add esp, 0x18
cmp al, 0x30
jge 0x40e6b8
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
call fcn.0040e970
add esp, 0x18
pop esi
pop ecx
ret
Function at 0x40fd40
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, eax
mov eax, dword [esi]
push edi
cmp eax, 0x80000000
je 0x40ff21
mov edi, dword [ebp]
cmp edi, 0x80000000
je 0x40ff21
mov edx, dword [0x4a75d0]
cmp edx, 2
jne 0x40fdb5
movzx ebx, byte [esp + 0x24]
neg ebx
sbb ebx, ebx
and ebx, 0x80000000
push 0
or ebx, 1
call fcn.00410100
add esp, 4
call fcn.00410580
cmp byte [esp + 0x24], 0
je 0x40ff21
mov dword [esi], SysReAllocString
mov dword [ebp], CreateStatusWindowA
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
or dword [ecx], 0x8001
cmp byte [esp + 0x24], 0
je 0x40fe0a
cmp edx, 1
jne 0x40fdf0
cmp dword [0x4a4b98], 0x80000000
jne 0x40fdde
push 0x4a4b98
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x4a4b98]
add dword [esi], eax
mov ecx, dword [0x4a4b9c]
add dword [ebp], ecx
jmp 0x40fe2f
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add dword [esi], eax
add dword [ebp], ecx
jmp 0x40fe2f
mov edx, dword [0x4a2440]
movzx eax, word [edx + 0xcc]
shr eax, 2
and eax, 3
cmp eax, 2
je 0x40fe2f
push eax
mov edi, ebp
mov ebx, esi
call fcn.0046f7f0
add esp, 4
cmp dword [0x4a75d0], 1
jne 0x40fe48
mov eax, dword [esi]
mov dword [0x4a4b98], eax
mov ecx, dword [ebp]
mov dword [0x4a4b9c], ecx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call ebx
push 1
mov edi, eax
call ebx
mov ecx, dword [esi]
mov ebx, eax
mov eax, ecx
shl eax, 0x10
cdq
idiv edi
xor edx, edx
test ecx, ecx
setns dl
lea eax, [eax + edx*2 - 1]
mov dword [esi], eax
mov ecx, dword [ebp]
mov eax, ecx
shl eax, 0x10
cdq
idiv ebx
xor edx, edx
test ecx, ecx
setns dl
lea edx, [edx + edx - 1]
add edx, eax
mov eax, dword [esp + 0x20]
mov dword [ebp], edx
test eax, eax
js 0x40ff0b
cmp eax, 0x64
jle 0x40fea3
mov dword [esp + 0x20], 0x64
jmp 0x40fea7
test eax, eax
je 0x40ff0b
cmp dword [0x4a75d0], 1
je 0x40ff0b
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp]
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
mov eax, ecx
shl eax, 0x10
cdq
idiv ebx
mov esi, dword [esp + 0x1c]
xor edx, edx
test ecx, ecx
setns dl
mov ebx, eax
lea ebx, [ebx + edx*2 - 1]
mov eax, esi
shl eax, 0x10
cdq
idiv edi
mov ecx, eax
xor eax, eax
test esi, esi
setns al
lea ecx, [ecx + eax*2 - 1]
mov eax, ebx
call fcn.00450840
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esi]
push 0x8001
xor ecx, ecx
call fcn.0040ff30
add esp, 4
call fcn.00410580
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x410360
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
sub esp, 8
cmp dword [0x4a75d0], 1
push ebx
jne 0x410427
xor bl, bl
cmp dword [0x4a5da0], 0
mov byte [esp + 8], bl
je 0x410386
mov bl, 1
mov byte [esp + 8], bl
cmp dword [0x4a5da4], 0
je 0x410396
or bl, 2
mov byte [esp + 8], bl
test bl, bl
je 0x4103b1
mov al, byte [0x4a4b94]
not al
and al, bl
movzx ecx, al
push 1
push ecx
call fcn.00408540
add esp, 8
mov edx, dword [0x4a4bac]
mov eax, dword [0x4a4ba8]
push 0x1c
push edx
push eax
call dword [0x4a84d4]
test bl, bl
je 0x4104a5
mov cl, byte [0x4a4b94]
and cl, bl
test cl, 1
je 0x41040e
push 1
call fcn.00410f60
mov dl, byte [esp + 0x18]
mov cl, al
xor cl, dl
mov bl, cl
and bl, dl
not bl
and bl, byte [0x4a5c6f]
and cl, al
or bl, cl
add esp, 4
mov byte [0x4a5c6f], bl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [0x4a4a18], eax
mov edx, dword [esp + 8]
pop ebx
add esp, 8
mov dword [esp + 8], 1
mov dword [esp + 4], edx
jmp fcn.00408540
mov eax, dword [0x4a5c68]
push 0
push eax
push 0x40e700
push 1
mov dword [0x4a4ba0], 0
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x4a5da8], eax
test eax, eax
je 0x4104a5
mov byte [0x4a5d90], 1
push 1
push 0x8000012f
mov dword [0x4a23a4], 0
call fcn.00401280
add esp, 8
cmp dword [0x4a5da8], 0
mov dword [0x4a23a4], 1
jne 0x410456
mov eax, dword [0x4a4bac]
mov ecx, dword [0x4a4ba8]
cmp dword [eax + ecx*8 - 8], 0
mov byte [0x4a5d90], 0
jne 0x4104a5
mov ecx, dword [eax + ecx*8 - 4]
mov edx, dword [esp + 0x10]
mov dword [edx], ecx
pop ebx
add esp, 8
ret

Function at 0x410670
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov eax, dword [0x4a6584]
test eax, eax
je 0x41075d
mov ecx, dword [0x4a6588]
imul ecx, ecx, 0x70
add eax, ecx
mov cl, byte [esp + 8]
mov byte [eax + 5], dl
mov dx, word [esp + 0xc]
mov byte [eax], cl
mov word [eax + 2], dx
push esi
mov byte [eax + 4], 0x69
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [0x4a84cc]
mov dword [0x4a658c], eax
mov dword [esp + 4], ecx
fild dword [esp + 4]
jns 0x4106c3
fadd dword [0x49c630]
fdiv qword [0x49c628]
mov edx, dword [0x4a6588]
mov ecx, dword [0x4a6584]
mov dword [0x4a84cc], eax
imul edx, edx, 0x70
fstp dword [esp + 4]
fld dword [esp + 4]
fstp dword [edx + ecx + 8]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x410722
mov edx, dword [0x4a6588]
mov eax, dword [0x4a6584]
imul edx, edx, 0x70
cmp esi, dword [0x4a6590]
je 0x41071b
push 0x64
lea ecx, [edx + eax + 0xc]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x410739
mov byte [edx + eax + 0xc], 0
jmp 0x410739
mov ecx, dword [0x4a6588]
mov edx, dword [0x4a6584]
imul ecx, ecx, 0x70
mov dword [ecx + edx + 0xc], 0x412f4e
mov eax, dword [0x4a6588]
inc eax
mov dword [0x4a6590], esi
mov dword [0x4a6588], eax
pop esi
cmp eax, dword [0x4a23a8]
jl 0x41075d
mov dword [0x4a6588], 0
pop ecx
ret
Function at 0x410760
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
movzx eax, bl
push esi
push eax
call ebp
and al, 1
movsx esi, al
neg esi
sbb esi, esi
add esi, 2
cmp edi, 1
je 0x410789
cmp edi, 2
jne 0x410855
cmp esi, edi
je 0x410855
cmp bl, 0x90
jne 0x4107b0
push 0xffc3d44d
push 0
push 0
push 0
push 0x90
push 1
call fcn.0040e970
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 2
call fcn.0040e970
add esp, 0x18
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4a7c80]
sete al
mov byte [esp + 0xb], al
test al, al
je 0x410806
push 1
push 0xffffffffffffffff
mov dword [0x4a23a4], 0
call fcn.00401280
add esp, 8
mov dword [0x4a23a4], 1
cmp bl, 0x14
jne 0x410855
cmp edi, 2
jne 0x410855
push 0x14
call ebp
test al, 1
je 0x410855
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push edi
call fcn.0040e970
add esp, 0x18
cmp byte [esp + 0xb], 0
je 0x410855
push 1
push 0xffffffffffffffff
mov dword [0x4a23a4], 0
call fcn.00401280
add esp, 8
mov dword [0x4a23a4], 1
mov eax, esi
pop esi
pop ebp
pop ecx
ret

Function at 0x410f60
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x4a5da0], 0
je 0x410f76
cmp byte [esp + 4], 0
jne 0x410f76
mov al, byte [0x4a5c6d]
ret
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x410f93
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x410fa7
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x410fbb
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x410fcf
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x410fe3
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x410ff7
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x411008
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x411019
or bl, 0x80
cmp dword [0x4a5da0], 0
je 0x411056
mov al, bl
not al
and al, byte [0x4a5c6d]
je 0x411056
mov cl, byte [0x4a5c6f]
not al
and byte [0x4a5c6d], al
and byte [0x4a5c6e], al
and cl, al
mov al, cl
mov byte [0x4a5c6f], cl
mov ecx, 0x4a5c90
call fcn.00411060
pop esi
mov al, bl
pop ebx
ret

Function at 0x411420
Capabilities:
Get keyboard layout

Disassembly:
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x411435
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
jmp 0x411437
xor eax, eax
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
xor eax, eax
call fcn.00411460
xor ecx, ecx
add esp, 4
cmp eax, 3
sete al
ret