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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4d4268]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
push edi
je 0x4407d3
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
inc edi
lea eax, [edi + edi]
call fcn.00473ad0
mov ebx, esp
test ebx, ebx
je 0x4407d3
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x134
call fcn.0042adfc
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0042ddab
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471f7b
leave
ret 0x10

Function at 0x44be53
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3b4], ebx
je 0x44bebb
cmp dword [ebp + 8], 0x100
jne 0x44beaa
cmp word [ebp + 0xc], 0xd
jne 0x44beaa
cmp byte [esi + 0x3ba], bl
je 0x44be91
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x44beaa
cmp byte [esi + 0x3bb], bl
jne 0x44beaa
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x44bea6
push ebx
push ebx
push ebx
push str.return
push esi
call fcn.0042ddab
xor eax, eax
jmp 0x44bebe
mov eax, dword [esi + 0x3b4]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x44d033
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x4d4268]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push ebx
mov ebx, dword [ebp + 0x19c]
push esi
push edi
mov edi, dword [ebp + 0x198]
mov esi, ecx
push 0
lea eax, [esi + 0x48]
push eax
push edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], 1
call fcn.0044cedd
add esp, 0xc
test eax, eax
jl 0x44d18d
lea eax, [esi + 0xbc]
push eax
push edi
call fcn.0044a62d
pop ecx
pop ecx
test eax, eax
jl 0x44d18d
mov ecx, edi
mov dword [esi + 0x14], 4
call fcn.0044b1c9
movzx eax, al
shl eax, 3
xor eax, dword [esi + 0x18]
and eax, 8
xor dword [esi + 0x18], eax
mov edx, dword [esi + 0x18]
call fcn.0044b366
mov dword [esi + 0x20], eax
test ebx, ebx
je 0x44d0d6
mov eax, dword [ebx + 0x20]
mov dword [esi + 0x14], eax
test eax, 0x100080
jne 0x44d0d6
or edx, 2
mov dword [esi + 0x18], edx
mov eax, dword [esi + 0x14]
test al, 1
je 0x44d0e1
push 3
jmp 0x44d0e7
test al, 2
je 0x44d0ef
push 2
pop eax
mov word [esi + 0xd4], ax
or dword [esi + 0x18], 0x20
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.00472b80
add esp, 0xc
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.Riched20.dll
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x7c]
push eax
call fcn.0040c5f3
mov dword [esi + 4], eax
test eax, eax
je 0x44d18d
push str.CreateTextServices
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44d18d
lea ecx, [ebp - 0x80]
push ecx
push esi
push 0
call eax
test eax, eax
jl 0x44d18d
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
add esi, 0x10
push esi
push 0x4b58ec
push eax
call dword [ecx]
mov edi, eax
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test edi, edi
jl 0x44d18d
test ebx, ebx
je 0x44d191
mov ebx, dword [ebx + 0x24]
test ebx, ebx
je 0x44d191
mov ecx, dword [esi]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x38]
test eax, eax
jge 0x44d191
xor eax, eax
jmp 0x44d194
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x18c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00471f7b
add ebp, 0x190
leave
ret 8
Function at 0x471f7b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d4268]
jne 0x471f85
repz ret
jmp fcn.0047cbbd

Function at 0x49a146
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0047cd4f
and dword [ebp - 4], 0
cmp dword [0x4d8598], 0
mov ebx, eax
jne 0x49a1f7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x49a2a8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x49a2a8
push eax
call fcn.0047ccdd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4d8598], eax
call esi
push eax
call fcn.0047ccdd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4d859c], eax
call esi
push eax
call fcn.0047ccdd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4d85a0], eax
call esi
push eax
call fcn.0047ccdd
pop ecx
mov dword [0x4d85a8], eax
test eax, eax
je 0x49a1f7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0047ccdd
pop ecx
mov dword [0x4d85a4], eax
mov eax, dword [0x4d85a4]
cmp eax, ebx
je 0x49a24f
cmp dword [0x4d85a8], ebx
je 0x49a24f
push eax
call fcn.0047cd58
push dword [0x4d85a8]
mov esi, eax
call fcn.0047cd58
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x49a24f
test edi, edi
je 0x49a24f
call esi
test eax, eax
je 0x49a246
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x49a246
test byte [ebp - 0xc], 1
jne 0x49a24f
or dword [ebp + 0x10], 0x200000
jmp 0x49a288
mov eax, dword [0x4d859c]
cmp eax, ebx
je 0x49a288
push eax
call fcn.0047cd58
pop ecx
test eax, eax
je 0x49a288
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x49a288
mov eax, dword [0x4d85a0]
cmp eax, ebx
je 0x49a288
push eax
call fcn.0047cd58
pop ecx
test eax, eax
je 0x49a288
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d8598]
call fcn.0047cd58
pop ecx
test eax, eax
je 0x49a2a8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x49a2aa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403700
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x403714
inc dword [0x4ac43c]
add dword [0x4a8978], 0xe8
mov edx, dword [0x4a8978]
push esi
push edi
mov ecx, 0x3a
mov esi, 0x4aaf90
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 0x403743
push 0
mov eax, 0x4ad268
call fcn.00416d00
cmp dword [0x4ac470], 0
mov dword [0x4ad888], 0
mov dword [0x4ad88c], 0
je 0x40377b
mov eax, dword [0x4a9aac]
test eax, eax
je 0x40376f
mov eax, dword [eax]
test eax, eax
jne 0x403774
mov eax, 0x49a8ad
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
cmp byte [esp + 0x10], 0
jne 0x4037ff
or ecx, 0xffffffff
cmp byte [esi + 0xce], 0
jne 0x4037aa
xor eax, eax
cmp byte [esp + 0x14], 0x65
sete al
mov byte [esi + 0xce], al
test al, al
je 0x4037aa
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4ad894], 0
je 0x4037bc
cmp dword [0x4ad890], 0
jne 0x4037c5
cmp byte [esi + 0xce], 0
je 0x4037ff
cmp byte [esi + 0xce], 0
mov byte [esi + 0xcc], 0
jne 0x4037ff
cmp dword [0x4ad894], 0
jge 0x4037e7
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 [0x4ad894]
mov dword [esi + 0xc0], edx
pop edi
pop esi
ret
Function at 0x4045c0
Capabilities:
Write clipboard data

Disassembly:
cmp dword [0x4ad8ec], 0
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
je 0x4045d8
pop ebp
xor eax, eax
pop ebx
ret 4
push esi
test ebp, ebp
je 0x404625
cmp ebx, 0xffffffff
jne 0x4045f2
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4045e7
sub eax, edx
mov ebx, eax
test ebx, ebx
je 0x404625
push edi
lea edi, [ebx + 1]
mov esi, 0x4ad8e0
call fcn.00404640
pop edi
test eax, eax
jne 0x40460f
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [0x4ad8ec]
push ebx
push ebp
push eax
mov esi, eax
call fcn.00489e40
add esp, 0xc
mov byte [esi + ebx], 0
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 1
mov ecx, 0x4ad8e0
jmp fcn.004046b0

Function at 0x404890
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x108
test esi, esi
je 0x4048a0
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x40496f
push 0x104
lea ecx, [esp + 4]
push ecx
push edi
call dword [sym.imp.USER32.DLL_GetClipboardFormatNameA]
push 0xb
lea edx, [esp + 4]
push 0x49aa80
push edx
call fcn.00487920
add esp, 0xc
test eax, eax
je 0x404966
lea eax, [esp]
push 0x49aa8c
push eax
call fcn.00486ea1
add esp, 8
test eax, eax
je 0x404966
lea ecx, [esp]
push 0x49aa98
push ecx
call fcn.00486ea1
add esp, 8
test eax, eax
je 0x404966
lea edx, [esp]
push 0x49aaa4
push edx
call fcn.00486ea1
add esp, 8
test eax, eax
je 0x404966
lea eax, [esp]
push 0x49aaac
push eax
call fcn.00486ea1
add esp, 8
test eax, eax
je 0x404966
lea ecx, [esp]
push 0x49aabc
push ecx
call fcn.00486ea1
add esp, 8
test eax, eax
je 0x40495c
lea edx, [esp]
push 0x49aad0
push edx
call fcn.00486ea1
add esp, 8
test eax, eax
jne 0x404973
test esi, esi
je 0x404966
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 0x404990
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 0x404a1a
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
mov ebx, dword [sym.imp.USER32.DLL_OpenClipboard]
mov edi, eax
mov eax, dword [0x4ac2cc]
push eax
call ebx
test eax, eax
jne 0x404a0f
mov eax, dword [0x4a88e8]
cmp eax, 0xffffffff
je 0x4049df
test eax, eax
je 0x404a26
call esi
mov ecx, dword [0x4a88e8]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x404a26
push 1
push 0x8000012f
mov dword [0x4a88ec], 0
call fcn.004013c0
mov edx, dword [0x4ac2cc]
add esp, 8
push edx
mov dword [0x4a88ec], 1
call ebx
test eax, eax
je 0x4049c0
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 0x4089b0
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 [0x4ac3fc], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x4089d4
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4ac400], 0
je 0x4089e3
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x408bf0
test al, al
jne 0x408a26
cmp byte [ebp + 0xc], al
jne 0x408a26
push 0x4ab1d8
push 0
push 0
push 0x408ce0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x4acaf8], eax
test eax, eax
je 0x408ab7
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 [0x4ab1d8]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.DLL_PostThreadMessageA]
test eax, eax
jne 0x408a5c
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc esi
cmp esi, 0x32
jl 0x408a36
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 0x408ac3
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x408b2a
cmp dword [esp + 0x2c], 0
je 0x408ad2
mov byte [esp + 0x1f], 1
call fcn.00409000
test al, al
jne 0x408ad2
cmp byte [ebp + 0xc], al
jne 0x408bbe
mov byte [ebp + 8], al
jmp 0x408a71
call fcn.00409020
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x408b0e
call fcn.00409000
test al, al
jne 0x408b2a
cmp byte [ebp + 0xc], 0
jne 0x408bb7
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [0x4ac3fc], 0
mov esi, dword [sym.imp.KERNEL32.DLL_CreateMutexA]
je 0x408b62
test byte [esp + 0x1e], 1
jne 0x408b7b
push 0x49ba40
push 0
push 0
call esi
mov dword [0x4acaf0], eax
jmp 0x408b7b
mov ecx, dword [0x4acaf8]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x408b42
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x408ad2
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x408a71
mov edx, dword [0x4acaf8]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edx
call edi
mov dword [0x4acaf8], 0
call fcn.00409020
jmp 0x408ae2
test byte [esp + 0x1e], 1
je 0x408b7b
mov eax, dword [0x4acaf0]
push eax
call edi
mov dword [0x4acaf0], 0
cmp dword [0x4ac400], 0
je 0x408b9d
test byte [esp + 0x1e], 2
jne 0x408bb7
push 0x49ba4c
push 0
push 0
call esi
mov dword [0x4acaf4], eax
jmp 0x408bb7
test byte [esp + 0x1e], 2
je 0x408bb7
mov ecx, dword [0x4acaf4]
push ecx
call edi
mov dword [0x4acaf4], 0
cmp byte [esp + 0x1f], 0
je 0x408bf0
fldz
sub esp, 8
fstp qword [esp]
mov dword [0x4a88ec], 0
push 0
push 0
push 0x10000
push 0x49ba58
call fcn.00478840
add esp, 0x18
mov dword [0x4a88ec], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a510
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x804
cmp byte [0x4ada8c], 0
push ebx
push ebp
mov ebp, dword [esp + 0x814]
push esi
push edi
jne 0x40a67e
cmp dword [0x4acb14], 0
jne 0x40a542
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x4acb14], eax
mov ebx, 1
add dword [0x4ada90], ebx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, dword [0x4ada90]
mov esi, dword [0x4a8900]
mov ecx, eax
sub ecx, dword [0x4acb14]
mov dword [0x4acb18], eax
cmp edx, dword [0x4a88fc]
jbe 0x40a578
cmp ecx, esi
jb 0x40a5dc
xor ebx, ebx
cmp ecx, esi
jbe 0x40a595
mov dword [0x4ada90], 0
mov dword [0x4acb14], eax
test ebx, ebx
jne 0x40a67e
mov esi, dword [esp + 0x818]
mov cl, byte [esi + 0xf]
push 0
mov byte [0x4ad865], cl
mov ecx, dword [ebp]
inc byte [ebp + 0x16]
push 0
push 0x49a8a8
push ecx
xor eax, eax
xor edx, edx
call fcn.0046c120
dec byte [ebp + 0x16]
add esp, 0x10
test eax, eax
jne 0x40a64c
mov byte [ebp + 0x1b], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x804
ret 8
push ecx
push edx
push 0x49bf18
mov esi, 0x800
lea edi, [esp + 0x1c]
call fcn.00473d20
add esp, 0xc
call fcn.00409560
fldz
sub esp, 8
fstp qword [esp]
push 0
push 0
mov eax, edi
push 4
push eax
mov byte [0x4ada8c], bl
mov dword [0x4a88ec], 0
call fcn.00478840
add esp, 0x18
cmp eax, 7
jne 0x40a635
push 0
push 5
push 0x4ad268
call fcn.00417080
mov eax, dword [0x4acb18]
mov dword [0x4a88ec], ebx
mov byte [0x4ada8c], 0
jmp 0x40a57e
cmp byte [ebp + 0x1b], 0
je 0x40a67e
mov byte [ebp + 0x1b], 0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp + 0xc]
cmp eax, 0x3e8
ja 0x40a67e
movzx edx, word [esi + 4]
mov eax, dword [0x4ac2cc]
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, 0x804
ret 8
Function at 0x40ffa0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov cl, byte [esp + 4]
sub esp, 0x34
cmp dword [0x4acb4c], 2
push ebx
push ebp
push esi
sete bl
push edi
mov esi, eax
test bl, bl
je 0x40ffdd
lea eax, [esp + 0x14]
test cl, cl
jns 0x40ffcc
mov byte [esp + 0x14], 0x30
lea eax, [esp + 0x15]
push 0xa
push eax
movzx eax, cl
push eax
call fcn.00486b32
add esp, 0xc
jmp 0x40fffd
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 0x4100b3
test esi, esi
jle 0x4100b3
mov ebp, esi
cmp dword [0x4acb4c], 0
jne 0x41006a
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
sub eax, dword [0x4ad89c]
mov ecx, dword [0x4a8978]
cmp eax, dword [ecx + 0xb8]
jbe 0x41006a
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 0x410063
push 1
push 0xffffffffffffffff
mov dword [0x4a88ec], 0
call fcn.004013c0
add esp, 8
mov dword [0x4a88ec], 1
call esi
mov dword [0x4ad89c], eax
test bl, bl
je 0x410079
lea eax, [esp + 0x14]
call fcn.004100c0
jmp 0x41008a
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x10]
push eax
call fcn.0040e680
add esp, 4
cmp dword [0x4acb4c], 2
jne 0x41009e
mov ecx, dword [0x4a8978]
mov esi, dword [ecx + 0x60]
jmp 0x4100a7
mov edx, dword [0x4a8978]
mov esi, dword [edx + 0x5c]
call fcn.00411f70
dec ebp
jne 0x410007
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x4100c0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
cmp dword [0x4acb4c], 0
push ebx
push esi
push edi
mov esi, eax
je 0x4100db
mov al, byte [0x4ab1e9]
jmp 0x410200
cmp dword [0x4ac3fc], 0
je 0x4100ee
mov al, byte [0x4ac2c9]
jmp 0x410200
mov edi, dword [sym.imp.USER32.DLL_GetAsyncKeyState]
push 0xa0
mov byte [esp + 0x13], 0
call edi
mov ecx, 0x8000
test cx, ax
je 0x41010f
mov byte [esp + 0xf], 0x10
push 0xa1
call edi
mov edx, 0x8000
test dx, ax
je 0x410125
or byte [esp + 0xf], 0x20
push 0xa2
call edi
mov ecx, 0x8000
test cx, ax
je 0x41013b
or byte [esp + 0xf], 1
push 0xa3
call edi
mov edx, 0x8000
test dx, ax
je 0x410151
or byte [esp + 0xf], 2
push 0xa4
call edi
mov ecx, 0x8000
test cx, ax
je 0x410167
or byte [esp + 0xf], 4
push 0xa5
call edi
mov edx, 0x8000
test dx, ax
je 0x41017d
or byte [esp + 0xf], 8
push 0x5b
call edi
mov ecx, 0x8000
test cx, ax
je 0x410190
or byte [esp + 0xf], 0x40
push 0x5c
call edi
mov edx, 0x8000
test dx, ax
je 0x4101a3
or byte [esp + 0xf], 0x80
cmp dword [0x4ac3fc], 0
je 0x4101fc
mov bl, byte [esp + 0xf]
not bl
and bl, byte [0x4ac2c9]
je 0x4101fc
mov cl, byte [0x4ac2cb]
mov al, bl
not al
and byte [0x4ac2c9], al
and byte [0x4ac2ca], al
and cl, al
mov al, cl
mov byte [0x4ac2cb], cl
mov ecx, 0x4ac2f0
call fcn.00412b10
mov eax, dword [0x4ab1dc]
test eax, eax
je 0x4101fc
test byte [eax + 8], bl
je 0x4101fc
mov dword [0x4ab1dc], 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.00412330
mov al, byte [esi]
add esp, 0x14
cmp al, 0x30
jl 0x410257
lea ebx, [ebx]
cmp al, 0x39
jg 0x410257
push 0xffc3d44d
push 0
add al, 0x30
push 0
movzx eax, al
push 0
push eax
push 2
call fcn.004104f0
mov al, byte [esi + 1]
inc esi
add esp, 0x18
cmp al, 0x30
jge 0x410230
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
call fcn.004104f0
add esp, 0x18
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x411800
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 0x4119e1
mov edi, dword [ebp]
cmp edi, 0x80000000
je 0x4119e1
mov edx, dword [0x4acb4c]
cmp edx, 2
jne 0x411875
movzx ebx, byte [esp + 0x24]
neg ebx
sbb ebx, ebx
and ebx, 0x80000000
push 0
or ebx, 1
call fcn.00411bc0
add esp, 4
call fcn.00412040
cmp byte [esp + 0x24], 0
je 0x4119e1
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 0x4118ca
cmp edx, 1
jne 0x4118b0
cmp dword [0x4ab1ec], 0x80000000
jne 0x41189e
push 0x4ab1ec
call dword [sym.imp.USER32.DLL_GetCursorPos]
mov eax, dword [0x4ab1ec]
add dword [esi], eax
mov ecx, dword [0x4ab1f0]
add dword [ebp], ecx
jmp 0x4118ef
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 0x4118ef
mov edx, dword [0x4a8978]
movzx eax, word [edx + 0xd0]
shr eax, 2
and eax, 3
cmp eax, 2
je 0x4118ef
push eax
mov edi, ebp
mov ebx, esi
call fcn.00474fe0
add esp, 4
cmp dword [0x4acb4c], 1
jne 0x411908
mov eax, dword [esi]
mov dword [0x4ab1ec], eax
mov ecx, dword [ebp]
mov dword [0x4ab1f0], 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 0x4119cb
cmp eax, 0x64
jle 0x411963
mov dword [esp + 0x20], 0x64
jmp 0x411967
test eax, eax
je 0x4119cb
cmp dword [0x4acb4c], 1
je 0x4119cb
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.00453550
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.004119f0
add esp, 4
call fcn.00412040
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x411e20
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
sub esp, 8
cmp dword [0x4acb4c], 1
push ebx
jne 0x411ee7
xor bl, bl
cmp dword [0x4ac3fc], 0
mov byte [esp + 8], bl
je 0x411e46
mov bl, 1
mov byte [esp + 8], bl
cmp dword [0x4ac400], 0
je 0x411e56
or bl, 2
mov byte [esp + 8], bl
test bl, bl
je 0x411e71
mov al, byte [0x4ab1e8]
not al
and al, bl
movzx ecx, al
push 1
push ecx
call fcn.004089b0
add esp, 8
mov edx, dword [0x4ab200]
mov eax, dword [0x4ab1fc]
push 0x1c
push edx
push eax
call dword [sym.imp.USER32.DLL_SendInput]
test bl, bl
je 0x411f65
mov cl, byte [0x4ab1e8]
and cl, bl
test cl, 1
je 0x411ece
push 1
call fcn.004129e0
mov dl, byte [esp + 0x18]
mov cl, al
xor cl, dl
mov bl, cl
and bl, dl
not bl
and bl, byte [0x4ac2cb]
and cl, al
or bl, cl
add esp, 4
mov byte [0x4ac2cb], bl
call dword [sym.imp.USER32.DLL_GetForegroundWindow]
mov dword [0x4ab080], eax
mov edx, dword [esp + 8]
pop ebx
add esp, 8
mov dword [esp + 8], 1
mov dword [esp + 4], edx
jmp fcn.004089b0
mov eax, dword [0x4ac2c4]
push 0
push eax
push 0x410280
push 1
mov dword [0x4ab1f4], 0
call dword [sym.imp.USER32.DLL_SetWindowsHookExA]
mov dword [0x4ac404], eax
test eax, eax
je 0x411f65
mov byte [0x4ac2ee], 1
push 1
push 0x8000012f
mov dword [0x4a88ec], 0
call fcn.004013c0
add esp, 8
cmp dword [0x4ac404], 0
mov dword [0x4a88ec], 1
jne 0x411f16
mov eax, dword [0x4ab200]
mov ecx, dword [0x4ab1fc]
cmp dword [eax + ecx*8 - 8], 0
mov byte [0x4ac2ee], 0
jne 0x411f65
mov ecx, dword [eax + ecx*8 - 4]
mov edx, dword [esp + 0x10]
mov dword [edx], ecx
pop ebx
add esp, 8
ret

Function at 0x412130
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov eax, dword [0x4acae0]
test eax, eax
je 0x41221d
mov ecx, dword [0x4acae4]
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 [0x4ad8fc]
mov dword [0x4acae8], eax
mov dword [esp + 4], ecx
fild dword [esp + 4]
jns 0x412183
fadd dword [0x4a2e00]
fdiv qword [0x4a2df8]
mov edx, dword [0x4acae4]
mov ecx, dword [0x4acae0]
mov dword [0x4ad8fc], 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 0x4121e2
mov edx, dword [0x4acae4]
mov eax, dword [0x4acae0]
imul edx, edx, 0x70
cmp esi, dword [0x4acaec]
je 0x4121db
push 0x64
lea ecx, [edx + eax + 0xc]
push ecx
push esi
call dword [sym.imp.USER32.DLL_GetWindowTextA]
jmp 0x4121f9
mov byte [edx + eax + 0xc], 0
jmp 0x4121f9
mov ecx, dword [0x4acae4]
mov edx, dword [0x4acae0]
imul ecx, ecx, 0x70
mov dword [ecx + edx + 0xc], 0x412f4e
mov eax, dword [0x4acae4]
inc eax
mov dword [0x4acaec], esi
mov dword [0x4acae4], eax
pop esi
cmp eax, dword [0x4a88f0]
jl 0x41221d
mov dword [0x4acae4], 0
pop ecx
ret