joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005d210
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, ecx
mov dword [esp + 8], 0xffffffff
push ebx
push esi
xor ecx, ecx
mov dword [esp + 0xc], eax
test byte [edx + 0x1c], 0x80
mov ebx, dword [eax + 8]
push edi
mov dword [esp + 0x24], ebx
jne 0x1005d23d
xor edi, edi
jmp 0x1005d254
mov edi, dword [edx + 8]
test edi, edi
je 0x1005d254
mov eax, dword [edi + 0x38]
and al, 3
cmp al, 2
je 0x1005d254
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x1005d244
mov esi, dword [edx + 8]
test esi, esi
je 0x1005d394
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], edx
nop dword [eax]
cmp dword [ebp + 0x10], 0
je 0x1005d27f
cmp dword [edx], 0
je 0x1005d37e
cmp esi, edi
je 0x1005d37e
cmp eax, dword [ebp + 0x14]
je 0x1005d37e
push dword [esp + 0x14]
lea eax, [esp + 0x24]
mov edx, esi
push ecx
mov ecx, dword [esp + 0x18]
push eax
push 1
push 0
push dword [ebp + 8]
call fcn.1005d3a0
add esp, 0x18
mov edx, eax
test byte [esi + 0x38], 8
mov dword [esp + 0x14], edx
je 0x1005d2c1
movzx ecx, word [esi + 0x32]
jmp 0x1005d2c5
movzx ecx, word [esi + 0x34]
movzx eax, cx
mov ecx, dword [ebx + 0x74]
mov dword [esp + 0x1c], eax
cmp dword [ebx + 0x78], ecx
jg 0x1005d2ea
push eax
push edx
push dword [ebp + 0xc]
mov edx, 0x8a
mov ecx, ebx
call fcn.10029250
add esp, 0xc
jmp 0x1005d31c
mov edx, dword [ebp + 0xc]
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x8a
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0x74]
test eax, eax
jle 0x1005d333
lea ecx, [eax + eax*4]
mov edx, 1
mov eax, dword [ebx + 0x70]
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [esp + 0x20]
test edx, edx
je 0x1005d375
mov eax, dword [esp + 0x10]
not edx
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x1005d361
push edx
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 8]
call fcn.10029c70
add esp, 4
jmp 0x1005d375
mov ebx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x40]
mov eax, dword [ebx + 8]
mov ebx, dword [esp + 0x24]
mov eax, dword [eax + 0x74]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp + 0xc]
mov ecx, esi
mov edx, dword [esp + 0x18]
mov esi, dword [esi + 0x14]
add edx, 4
inc eax
mov dword [esp + 0x18], edx
mov dword [ebp + 0xc], eax
test esi, esi
jne 0x1005d270
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100e0aa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edx
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [ecx], eax
test edi, edi
je 0x100e0c03
mov ebx, dword [ebp + 0xc]
lea esi, [eax + 0xd]
lea edx, [ebx - 1]
test edx, edx
js 0x100e0af7
mov ebx, dword [ebp + 8]
nop word [eax + eax]
movsx ecx, byte [edx + ebx]
lea eax, [esi*8]
xor ecx, eax
xor esi, ecx
sub edx, 1
jns 0x100e0ae0
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esp + 0xc]
lea eax, [esi*8]
xor eax, esi
xor eax, ecx
and eax, 0x1ff
lea eax, [edi + eax*4]
mov edi, dword [eax]
mov dword [esp + 0x14], eax
test edi, edi
je 0x100e0b7e
cmp dword [edi + 8], ecx
jne 0x100e0b77
cmp dword [edi + 4], ebx
jne 0x100e0b77
mov edx, dword [edi]
mov ecx, ebx
mov esi, dword [ebp + 8]
sub ecx, 4
jb 0x100e0b41
nop
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x100e0b46
add edx, 4
add esi, 4
sub ecx, 4
jae 0x100e0b30
cmp ecx, 0xfffffffc
je 0x100e0b8e
mov al, byte [edx]
cmp al, byte [esi]
jne 0x100e0b73
cmp ecx, 0xfffffffd
je 0x100e0b8e
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x100e0b73
cmp ecx, 0xfffffffe
je 0x100e0b8e
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x100e0b73
cmp ecx, 0xffffffff
je 0x100e0b8e
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x100e0b8e
mov ecx, dword [esp + 0xc]
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x100e0b18
lea edi, [ebx + 0x10]
xor esi, esi
call sym.sqlite3.dll_sqlite3_initialize
test eax, eax
je 0x100e0ba0
jmp 0x100e0bb0
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.100049e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x100e0bcc
test edi, edi
je 0x100e0bbf
mov eax, 7
mov dword [esp + 0x10], eax
jmp 0x100e0bc1
xor eax, eax
test esi, esi
jne 0x100e0bd8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [esp + 0xc]
lea eax, [esi + 0x10]
push ebx
push dword [ebp + 8]
mov dword [esi], eax
push eax
mov dword [esi + 4], ebx
mov dword [esi + 8], edx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [ecx]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x10]
mov dword [ecx], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10102f40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], edx
cmp ecx, 0x80
jge 0x10102f61
lea edx, [ecx - 0x41]
cmp edx, 0x19
lea eax, [ecx + 0x20]
cmova eax, ecx
mov esp, ebp
pop ebp
ret
cmp ecx, 0x10000
jge 0x1010300f
push ebx
xor eax, eax
mov dword [ebp - 8], 0xffffffff
push esi
mov ebx, 0xa2
mov dword [ebp - 4], eax
push edi
add eax, ebx
mov esi, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
movzx edx, word [edi*4 + 0x10112060]
lea eax, [edi + 1]
sub esi, edx
mov edx, edi
cmovs edx, dword [ebp - 8]
test esi, esi
mov dword [ebp - 8], edx
cmovs eax, dword [ebp - 4]
mov dword [ebp - 4], eax
lea eax, [edi - 1]
cmovs ebx, eax
mov eax, dword [ebp - 4]
cmp ebx, eax
jge 0x10102f81
mov ebx, dword [ebp - 8]
movzx edx, word [edx*4 + 0x10112060]
pop edi
pop esi
movzx eax, byte [ebx*4 + 0x10112063]
add eax, edx
cmp ecx, eax
jge 0x10102ff6
movzx eax, byte [ebx*4 + 0x10112062]
xor edx, ecx
and edx, eax
test edx, 1
jne 0x10102ff6
shr eax, 1
movzx eax, word [eax*2 + 0x10113518]
add eax, ecx
movzx ecx, ax
mov eax, dword [ebp - 0xc]
pop ebx
test eax, eax
je 0x1010301d
xor edx, edx
cmp eax, 2
sete dl
call fcn.10102b10
mov esp, ebp
pop ebp
ret
lea eax, [ecx - 0x10400]
cmp eax, 0x27
lea eax, [ecx + 0x28]
jbe 0x1010301f
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x403800
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x403814
inc dword [0x4ae3e8]
add dword [0x4aa988], 0xe8
mov edx, dword [0x4aa988]
push esi
push edi
mov ecx, 0x3a
mov esi, 0x4acf30
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc]
mov esi, edx
mov dword [esi + 0x2c], ecx
test al, al
je 0x403843
push 0
mov eax, 0x4af230
call fcn.004176b0
cmp dword [0x4ae41c], 0
mov dword [0x4af858], 0
mov dword [0x4af85c], 0
je 0x40387b
mov eax, dword [0x4ababc]
test eax, eax
je 0x40386f
mov eax, dword [eax]
test eax, eax
jne 0x403874
mov eax, 0x49b8bd
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [esp + 0x10], 0
jne 0x4038ff
or ecx, 0xffffffff
cmp byte [esi + 0xce], 0
jne 0x4038aa
xor eax, eax
cmp byte [esp + 0x14], 0x65
sete al
mov byte [esi + 0xce], al
test al, al
je 0x4038aa
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4af864], 0
je 0x4038bc
cmp dword [0x4af860], 0
jne 0x4038c5
cmp byte [esi + 0xce], 0
je 0x4038ff
cmp byte [esi + 0xce], 0
mov byte [esi + 0xcc], 0
jne 0x4038ff
cmp dword [0x4af864], 0
jge 0x4038e7
pop edi
mov dword [esi + 0xc0], ecx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xbc], eax
mov edx, dword [0x4af864]
mov dword [esi + 0xc0], edx
pop edi
pop esi
ret
Function at 0x404800
Capabilities:
Write clipboard data

Disassembly:
cmp dword [0x4af220], 0
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
je 0x404818
pop ebp
xor eax, eax
pop ebx
ret 4
push esi
test ebp, ebp
je 0x404865
cmp ebx, 0xffffffff
jne 0x404832
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404827
sub eax, edx
mov ebx, eax
test ebx, ebx
je 0x404865
push edi
lea edi, [ebx + 1]
mov esi, 0x4af214
call fcn.00404880
pop edi
test eax, eax
jne 0x40484f
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [0x4af220]
push ebx
push ebp
push eax
mov esi, eax
call fcn.0048ab90
add esp, 0xc
mov byte [esi + ebx], 0
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 1
mov ecx, 0x4af214
jmp fcn.004048f0

Function at 0x404ad0
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x108
test esi, esi
je 0x404ae0
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x404baf
push 0x104
lea ecx, [esp + 4]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameA]
push 0xb
lea edx, [esp + 4]
push str.Link_Source
push edx
call fcn.0048828d
add esp, 0xc
test eax, eax
je 0x404ba6
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.00487ed1
add esp, 8
test eax, eax
je 0x404ba6
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.00487ed1
add esp, 8
test eax, eax
je 0x404ba6
lea edx, [esp]
push str.Native
push edx
call fcn.00487ed1
add esp, 8
test eax, eax
je 0x404ba6
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.00487ed1
add esp, 8
test eax, eax
je 0x404ba6
lea ecx, [esp]
push str.MSDEVColumnSelect
push ecx
call fcn.00487ed1
add esp, 8
test eax, eax
je 0x404b9c
lea edx, [esp]
push str.MSDEVLineSelect
push edx
call fcn.00487ed1
add esp, 8
test eax, eax
jne 0x404bb3
test esi, esi
je 0x404ba6
mov dword [esi], 1
xor eax, eax
add esp, 0x108
ret
mov byte [esp], 0
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
add esp, 0x108
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [ecx + 0x18], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
jne 0x404c5a
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
mov edi, eax
mov eax, dword [0x4ae274]
push eax
call ebx
test eax, eax
jne 0x404c4f
mov eax, dword [0x4aa8f8]
cmp eax, 0xffffffff
je 0x404c1f
test eax, eax
je 0x404c66
call esi
mov ecx, dword [0x4aa8f8]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x404c66
push 1
push 0x8000012f
mov dword [0x4aa8fc], 0
call fcn.00401420
mov edx, dword [0x4ae274]
add esp, 8
push edx
mov dword [0x4aa8fc], 1
call ebx
test eax, eax
je 0x404c00
mov eax, dword [esp + 0xc]
mov dword [eax + 0x18], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4091c0
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 [0x4ae3a4], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x4091e4
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4ae3a8], 0
je 0x4091f3
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x409400
test al, al
jne 0x409236
cmp byte [ebp + 0xc], al
jne 0x409236
push 0x4ad178
push 0
push 0
push 0x4094f0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4aeaa4], eax
test eax, eax
je 0x4092c7
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 [0x4ad178]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
test eax, eax
jne 0x40926c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x409246
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 0x4092d3
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x40933a
cmp dword [esp + 0x2c], 0
je 0x4092e2
mov byte [esp + 0x1f], 1
call fcn.00409870
test al, al
jne 0x4092e2
cmp byte [ebp + 0xc], al
jne 0x4093ce
mov byte [ebp + 8], al
jmp 0x409281
call fcn.00409890
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x40931e
call fcn.00409870
test al, al
jne 0x40933a
cmp byte [ebp + 0xc], 0
jne 0x4093c7
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4ae3a4], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
je 0x409372
test byte [esp + 0x1e], 1
jne 0x40938b
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4aea9c], eax
jmp 0x40938b
mov ecx, dword [0x4aeaa4]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x409352
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x4092e2
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x409281
mov edx, dword [0x4aeaa4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [0x4aeaa4], 0
call fcn.00409890
jmp 0x4092f2
test byte [esp + 0x1e], 1
je 0x40938b
mov eax, dword [0x4aea9c]
push eax
call edi
mov dword [0x4aea9c], 0
cmp dword [0x4ae3a8], 0
je 0x4093ad
test byte [esp + 0x1e], 2
jne 0x4093c7
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4aeaa0], eax
jmp 0x4093c7
test byte [esp + 0x1e], 2
je 0x4093c7
mov ecx, dword [0x4aeaa0]
push ecx
call edi
mov dword [0x4aeaa0], 0
cmp byte [esp + 0x1f], 0
je 0x409400
fldz
sub esp, 8
fstp qword [esp]
mov dword [0x4aa8fc], 0
push 0
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.
call fcn.004797d0
add esp, 0x18
mov dword [0x4aa8fc], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40aee0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x80c
cmp byte [0x4afa40], 0
push ebx
push ebp
mov ebp, dword [esp + 0x81c]
push esi
push edi
jne 0x40b050
cmp dword [0x4aeac0], 0
jne 0x40af12
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4aeac0], eax
mov ebx, 1
add dword [0x4afa44], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x4afa44]
mov esi, dword [0x4aa910]
mov ecx, eax
sub ecx, dword [0x4aeac0]
mov dword [0x4aeac4], eax
cmp edx, dword [0x4aa90c]
jbe 0x40af48
cmp ecx, esi
jb 0x40afac
xor edx, edx
cmp ecx, esi
jbe 0x40af65
mov dword [0x4afa44], 0
mov dword [0x4aeac0], eax
test edx, edx
jne 0x40b050
mov esi, dword [esp + 0x820]
mov cl, byte [esi + 0xf]
push 0
mov byte [0x4af82d], cl
mov ecx, dword [ebp]
add byte [ebp + 0x16], bl
push 0
push str.call
push ecx
xor eax, eax
xor edx, edx
call fcn.0046ce30
dec byte [ebp + 0x16]
add esp, 0x10
test eax, eax
jne 0x40b01e
mov byte [ebp + 0x1b], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80c
ret 8
push ecx
push edx
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 + 0x24]
call fcn.00474a60
add esp, 0xc
call fcn.00409e10
fldz
sub esp, 8
fstp qword [esp]
push 0
push 0
mov eax, edi
push 4
push eax
mov byte [0x4afa40], bl
mov dword [0x4aa8fc], 0
call fcn.004797d0
add esp, 0x18
cmp eax, 7
jne 0x40b005
push 0
push 4
push 0x4af230
call fcn.00417a00
mov eax, dword [0x4aeac4]
mov dword [0x4aa8fc], ebx
mov byte [0x4afa40], 0
mov edx, ebx
jmp 0x40af4e
cmp byte [ebp + 0x1b], 0
je 0x40b050
mov byte [ebp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0xc]
cmp eax, 0x3e8
ja 0x40b050
movzx edx, word [esi + 4]
mov eax, dword [0x4ae274]
push 0
push edx
push 0x312
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80c
ret 8
Function at 0x4109f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov cl, byte [esp + 4]
sub esp, 0x34
cmp dword [0x4aeb48], 2
push ebx
push ebp
push esi
sete bl
push edi
mov esi, eax
test bl, bl
je 0x410a2d
lea eax, [esp + 0x14]
test cl, cl
jns 0x410a1c
mov byte [esp + 0x14], 0x30
lea eax, [esp + 0x15]
push 0xa
push eax
movzx eax, cl
push eax
call fcn.00487b62
add esp, 0xc
jmp 0x410a4d
push 1
lea ecx, [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0x54]
push edx
push 8
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x410b03
test esi, esi
jle 0x410b03
mov ebp, esi
cmp dword [0x4aeb48], 0
jne 0x410aba
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4af86c]
mov ecx, dword [0x4aa988]
cmp eax, dword [ecx + 0xb8]
jbe 0x410aba
push 0
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x410ab3
push 1
push 0xffffffffffffffff
mov dword [0x4aa8fc], 0
call fcn.00401420
add esp, 8
mov dword [0x4aa8fc], 1
call esi
mov dword [0x4af86c], eax
test bl, bl
je 0x410ac9
lea eax, [esp + 0x14]
call fcn.00410b10
jmp 0x410ada
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x10]
push eax
call fcn.0040f090
add esp, 4
cmp dword [0x4aeb48], 2
jne 0x410aee
mov ecx, dword [0x4aa988]
mov esi, dword [ecx + 0x60]
jmp 0x410af7
mov edx, dword [0x4aa988]
mov esi, dword [edx + 0x5c]
call fcn.004129c0
dec ebp
jne 0x410a57
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x410b10
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
cmp dword [0x4aeb48], 0
push ebx
push esi
push edi
mov esi, eax
je 0x410b2b
mov al, byte [0x4ad189]
jmp 0x410c50
cmp dword [0x4ae3a4], 0
je 0x410b3e
mov al, byte [0x4ae271]
jmp 0x410c50
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [esp + 0x13], 0
call edi
mov ecx, 0x8000
test cx, ax
je 0x410b5f
mov byte [esp + 0xf], 0x10
push 0xa1
call edi
mov edx, 0x8000
test dx, ax
je 0x410b75
or byte [esp + 0xf], 0x20
push 0xa2
call edi
mov ecx, 0x8000
test cx, ax
je 0x410b8b
or byte [esp + 0xf], 1
push 0xa3
call edi
mov edx, 0x8000
test dx, ax
je 0x410ba1
or byte [esp + 0xf], 2
push 0xa4
call edi
mov ecx, 0x8000
test cx, ax
je 0x410bb7
or byte [esp + 0xf], 4
push 0xa5
call edi
mov edx, 0x8000
test dx, ax
je 0x410bcd
or byte [esp + 0xf], 8
push 0x5b
call edi
mov ecx, 0x8000
test cx, ax
je 0x410be0
or byte [esp + 0xf], 0x40
push 0x5c
call edi
mov edx, 0x8000
test dx, ax
je 0x410bf3
or byte [esp + 0xf], 0x80
cmp dword [0x4ae3a4], 0
je 0x410c4c
mov bl, byte [esp + 0xf]
not bl
and bl, byte [0x4ae271]
je 0x410c4c
mov cl, byte [0x4ae273]
mov al, bl
not al
and byte [0x4ae271], al
and byte [0x4ae272], al
and cl, al
mov al, cl
mov byte [0x4ae273], cl
mov ecx, 0x4ae298
call fcn.00413560
mov eax, dword [0x4ad17c]
test eax, eax
je 0x410c4c
test byte [eax + 8], bl
je 0x410c4c
mov dword [0x4ad17c], 0
mov al, byte [esp + 0xf]
mov byte [esp + 0x10], al
mov ecx, dword [esp + 0x10]
push 1
and al, 0xc4
push 0
or al, 4
movzx edx, al
push 0
push ecx
push edx
mov eax, 0xffc3d44f
call fcn.00412d80
mov al, byte [esi]
add esp, 0x14
cmp al, 0x30
jl 0x410ca7
lea ebx, [ebx]
cmp al, 0x39
jg 0x410ca7
push 0xffc3d44d
push 0
add al, 0x30
push 0
movzx eax, al
push 0
push eax
push 2
call fcn.00410f40
mov al, byte [esi + 1]
inc esi
add esp, 0x18
cmp al, 0x30
jge 0x410c80
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
call fcn.00410f40
add esp, 0x18
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x412250
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 0x412431
mov edi, dword [ebp]
cmp edi, 0x80000000
je 0x412431
mov edx, dword [0x4aeb48]
cmp edx, 2
jne 0x4122c5
movzx ebx, byte [esp + 0x24]
neg ebx
sbb ebx, ebx
and ebx, 0x80000000
push 0
or ebx, 1
call fcn.00412610
add esp, 4
call fcn.00412a90
cmp byte [esp + 0x24], 0
je 0x412431
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 0x41231a
cmp edx, 1
jne 0x412300
cmp dword [0x4ad18c], 0x80000000
jne 0x4122ee
push 0x4ad18c
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x4ad18c]
add dword [esi], eax
mov ecx, dword [0x4ad190]
add dword [ebp], ecx
jmp 0x41233f
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 0x41233f
mov edx, dword [0x4aa988]
movzx eax, word [edx + 0xd0]
shr eax, 2
and eax, 3
cmp eax, 2
je 0x41233f
push eax
mov edi, ebp
mov ebx, esi
call fcn.00475d20
add esp, 4
cmp dword [0x4aeb48], 1
jne 0x412358
mov eax, dword [esi]
mov dword [0x4ad18c], eax
mov ecx, dword [ebp]
mov dword [0x4ad190], 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 0x41241b
cmp eax, 0x64
jle 0x4123b3
mov dword [esp + 0x20], 0x64
jmp 0x4123b7
test eax, eax
je 0x41241b
cmp dword [0x4aeb48], 1
je 0x41241b
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.004542b0
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.00412440
add esp, 4
call fcn.00412a90
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret