joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a70
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x403a84
inc dword [0x4d9880]
add dword [0x4d5b14], 0x108
mov edx, dword [0x4d5b14]
push esi
push edi
mov ecx, 0x42
mov esi, 0x4d8348
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 0x403ab3
push 0
mov eax, 0x4da728
call fcn.0041e5c0
cmp dword [0x4d98b4], 0
mov dword [0x4db220], 0
mov dword [0x4db224], 0
je 0x403aeb
mov eax, dword [0x4d6d34]
test eax, eax
je 0x403adf
mov eax, dword [eax]
test eax, eax
jne 0x403ae4
mov eax, 0x4b0cf8
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [esp + 0x10], 0
jne 0x403b6f
or ecx, 0xffffffff
cmp byte [esi + 0xee], 0
jne 0x403b1a
xor eax, eax
cmp byte [esp + 0x14], 0x65
sete al
mov byte [esi + 0xee], al
test al, al
je 0x403b1a
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4db22c], 0
je 0x403b2c
cmp dword [0x4db228], 0
jne 0x403b35
cmp byte [esi + 0xee], 0
je 0x403b6f
cmp byte [esi + 0xee], 0
mov byte [esi + 0xec], 0
jne 0x403b6f
cmp dword [0x4db22c], 0
jge 0x403b57
pop edi
mov dword [esi + 0xe0], ecx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xdc], eax
mov edx, dword [0x4db22c]
mov dword [esi + 0xe0], edx
pop edi
pop esi
ret
Function at 0x405160
Capabilities:
Write clipboard data

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jne 0x405184
push esi
call fcn.00405430
test eax, eax
jne 0x405184
push str.Cant_open_clipboard_for_writing.
call fcn.00405260
pop esi
pop ebx
pop ecx
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4051bd
cmp dword [esi + 0x18], ebx
je 0x4051af
cmp dword [esi + 8], ebx
je 0x4051a4
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
push 0x4afe04
call fcn.00405260
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp eax, ebx
je 0x4051f6
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x40521d
cmp word [ecx], bx
push eax
sete byte [esp + 0x13]
call edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
cmp byte [esp + 0xf], bl
je 0x40521d
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], ebx
je 0x405213
cmp dword [esi + 8], ebx
je 0x405208
mov ecx, dword [esi]
push ecx
call edi
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
mov edx, dword [esi + 4]
push edx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x405232
mov dword [esi + 4], ebx
jmp 0x4051f6
cmp dword [esi + 0x18], ebx
je 0x40524f
cmp dword [esi + 8], ebx
je 0x405244
mov eax, dword [esi]
push eax
call edi
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
push 0x4afe24
call fcn.00405260
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x405330
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
test esi, esi
je 0x405340
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x40540f
push 0x104
lea ecx, [esp + 4]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
push 0xb
lea edx, [esp + 4]
push str.Link_Source
push edx
call fcn.0049a3aa
add esp, 0xc
test eax, eax
je 0x405406
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.00499c29
add esp, 8
test eax, eax
je 0x405406
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.00499c29
add esp, 8
test eax, eax
je 0x405406
lea edx, [esp]
push str.Native
push edx
call fcn.00499c29
add esp, 8
test eax, eax
je 0x405406
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.00499c29
add esp, 8
test eax, eax
je 0x405406
lea ecx, [esp]
push str.MSDEVColumnSelect
push ecx
call fcn.00499c29
add esp, 8
test eax, eax
je 0x4053fc
lea edx, [esp]
push str.MSDEVLineSelect
push edx
call fcn.00499c29
add esp, 8
test eax, eax
jne 0x405415
test esi, esi
je 0x405406
mov dword [esi], 1
xor eax, eax
add esp, 0x20c
ret
xor eax, eax
mov word [esp], ax
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
add esp, 0x20c
ret
Function at 0x405430
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0
je 0x405442
mov eax, 1
ret 4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov ecx, dword [0x4d970c]
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
push ecx
mov edi, eax
call ebx
test eax, eax
jne 0x4054b0
mov eax, dword [0x4d5a18]
cmp eax, 0xffffffff
je 0x405481
test eax, eax
je 0x4054c6
call esi
mov edx, dword [0x4d5a18]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x4054c6
push 1
push 0x8000012f
mov dword [0x4d5a1c], 0
call fcn.004014c0
mov eax, dword [0x4d970c]
add esp, 8
push eax
mov dword [0x4d5a1c], 1
call ebx
test eax, eax
je 0x405462
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 0x405848
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp + 0x18]
and dword [esi], 0
mov byte [eax], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x4058bd
cmp word [ebx + 8], 2
jne 0x40589d
cmp word [ebx + 0xa], 4
jne 0x40589d
mov edi, dword [ebx + 0xc]
jmp 0x405897
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004057e1
mov dword [esi], eax
test eax, eax
je 0x4058b8
lea esi, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x40587b
push 0x400
push dword [ebx]
push 0x401
push dword [ebp + 0x18]
call fcn.0049b93e
add esp, 0x10
xor eax, eax
jmp 0x4058e3
push 8
pop eax
jmp 0x4058e3
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x4058e3
dec ecx
je 0x4058de
dec ecx
je 0x4058d7
dec ecx
jmp 0x4058e3
mov eax, 0x2afb
jmp 0x4058e3
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405eb7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
cmp dword [0x4d8228], 0
push ebx
push esi
push edi
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x405a42
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x405d03
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.00405a09
jne 0x406011
push 0x104
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x406007
lea eax, [ebp - 0x230]
push eax
mov esi, 0x10c
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049b6ca
push str.ws2_32
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049b729
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea eax, [ebp - 0x128]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x405f74
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x405f70
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
jne 0x405fc9
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049b6ca
push str.wship6
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049b729
add esp, 0x18
lea eax, [ebp - 0x128]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x406007
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x405fc5
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x406007
xor esi, esi
push dword [ebp + esi*8 - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + esi*8 - 0x14], eax
test eax, eax
je 0x405fe6
inc esi
cmp esi, 3
jl 0x405fcb
jmp 0x405fef
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x406007
xor eax, eax
mov ecx, dword [ebp + eax - 0x14]
mov dword [eax + 0x4d53b8], ecx
add eax, 8
cmp eax, 0x18
jl 0x405ff5
mov dword [0x4d8228], 1
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x4d53b8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40895f
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor ebx, ebx
mov eax, dword [edi + 0x2c]
cmp ebx, eax
jae 0x40897d
mov ecx, dword [edi + 0x24]
cmp byte [ecx + ebx], 0
je 0x4089c3
inc ebx
cmp ebx, eax
jb 0x408972
cmp eax, dword [edi + 0x28]
jne 0x40899f
lea esi, [edi + 0x24]
mov eax, dword [esi + 4]
test eax, eax
je 0x408990
add eax, eax
jmp 0x408995
mov eax, 0x800
push eax
call fcn.00409456
test eax, eax
jne 0x4089ce
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x28]
push 0
sub ecx, eax
push ecx
mov ecx, dword [edi + 0x24]
add ecx, eax
push ecx
push dword [edi + 0x10]
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x4089ce
add dword [edi + 0x2c], eax
jmp 0x408968
test ebp, ebp
je 0x4089ca
mov dword [ebp], ebx
xor eax, eax
jmp 0x4089d9
push str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.00408d72
pop ecx
pop esi
pop ebp
pop ebx
ret 4
Function at 0x40e4f0
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 [0x4d983c], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x40e514
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4d9840], 0
je 0x40e523
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x40e730
test al, al
jne 0x40e566
cmp byte [ebp + 0xc], al
jne 0x40e566
push 0x4d860c
push 0
push 0
push 0x40e820
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4d9f3c], eax
test eax, eax
je 0x40e5f7
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 [0x4d860c]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x40e59c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x40e576
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [esp + 0x1f], 0
call edi
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, eax
cmp byte [ebp + 8], 0
je 0x40e603
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x40e66a
cmp dword [esp + 0x2c], 0
je 0x40e612
mov byte [esp + 0x1f], 1
call fcn.0040ebb0
test al, al
jne 0x40e612
cmp byte [ebp + 0xc], al
jne 0x40e6fe
mov byte [ebp + 8], al
jmp 0x40e5b1
call fcn.0040ebd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x40e64e
call fcn.0040ebb0
test al, al
jne 0x40e66a
cmp byte [ebp + 0xc], 0
jne 0x40e6f7
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4d983c], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
je 0x40e6a2
test byte [esp + 0x1e], 1
jne 0x40e6bb
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4d9f34], eax
jmp 0x40e6bb
mov ecx, dword [0x4d9f3c]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x40e682
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x40e612
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40e5b1
mov edx, dword [0x4d9f3c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [0x4d9f3c], 0
call fcn.0040ebd0
jmp 0x40e622
test byte [esp + 0x1e], 1
je 0x40e6bb
mov eax, dword [0x4d9f34]
push eax
call edi
mov dword [0x4d9f34], 0
cmp dword [0x4d9840], 0
je 0x40e6dd
test byte [esp + 0x1e], 2
jne 0x40e6f7
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4d9f38], eax
jmp 0x40e6f7
test byte [esp + 0x1e], 2
je 0x40e6f7
mov ecx, dword [0x4d9f38]
push ecx
call edi
mov dword [0x4d9f38], 0
cmp byte [esp + 0x1f], 0
je 0x40e730
fldz
sub esp, 8
fstp qword [esp]
mov dword [0x4d5a1c], 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.00484f30
add esp, 0x18
mov dword [0x4d5a1c], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4102b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x1004
call fcn.004a7dd0
cmp byte [0x4db430], 0
push ebx
push ebp
mov ebp, dword [esp + 0x1014]
push esi
push edi
jne 0x41041d
cmp dword [0x4d9f58], 0
jne 0x4102e6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4d9f58], eax
mov ebx, 1
add dword [0x4db434], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x4db434]
mov esi, dword [0x4d5a30]
mov ecx, eax
sub ecx, dword [0x4d9f58]
mov dword [0x4d9f5c], eax
cmp edx, dword [0x4d5a2c]
jbe 0x41031c
cmp ecx, esi
jb 0x41037a
xor ebx, ebx
cmp ecx, esi
jbe 0x410339
mov dword [0x4db434], 0
mov dword [0x4d9f58], eax
test ebx, ebx
jne 0x41041d
mov esi, dword [esp + 0x1018]
mov cl, byte [esi + 0xf]
push 0
push 0
mov byte [0x4db1ee], cl
inc byte [ebp + 0x16]
mov edx, dword [0x4db17c]
push 0
push edx
push ebp
call fcn.0047ab90
dec byte [ebp + 0x16]
test eax, eax
jne 0x4103ea
mov byte [ebp + 0x1b], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
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 + 0x1c]
call fcn.0047ffb0
add esp, 0xc
call fcn.0040f150
fldz
sub esp, 8
fstp qword [esp]
push 0
push 0
mov eax, edi
push 4
push eax
mov byte [0x4db430], bl
mov dword [0x4d5a1c], 0
call fcn.00484f30
add esp, 0x18
cmp eax, 7
jne 0x4103d3
push 0
push 4
mov ecx, 0x4da728
call fcn.0041eb40
mov eax, dword [0x4d9f5c]
mov dword [0x4d5a1c], ebx
mov byte [0x4db430], 0
jmp 0x410322
cmp byte [ebp + 0x1b], 0
je 0x41041d
mov byte [ebp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0xc]
cmp eax, 0x3e8
ja 0x41041d
movzx eax, word [esi + 4]
mov ecx, dword [0x4d970c]
push 0
push eax
push 0x312
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret 8
Function at 0x415f00
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x40
cmp dword [0x4d9fe0], 2
push ebx
sete bl
push esi
mov esi, ecx
test bl, bl
je 0x415f3f
movzx eax, ax
lea ecx, [esp + 0x28]
test eax, 0xffffff80
je 0x415f31
mov ecx, 0x30
mov word [esp + 0x28], cx
lea ecx, [esp + 0x2a]
push 0xa
push ecx
push eax
call fcn.004999a5
add esp, 0xc
jmp 0x415f46
movzx edx, ax
mov dword [esp + 8], edx
test esi, esi
jle 0x416002
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
cmp dword [0x4d9fe0], 0
jne 0x415fb3
call ebp
sub eax, dword [0x4db234]
mov ecx, dword [0x4d5b14]
cmp eax, dword [ecx + 0xd8]
jbe 0x415fb3
push 0
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x415fac
push 1
push 0xffffffffffffffff
mov dword [0x4d5a1c], 0
call fcn.004014c0
add esp, 8
mov dword [0x4d5a1c], 1
call ebp
mov dword [0x4db234], eax
test bl, bl
je 0x415fc2
lea edi, [esp + 0x30]
call fcn.00416010
jmp 0x415fd3
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x10]
push eax
call fcn.00414510
add esp, 4
cmp dword [0x4d9fe0], 2
jne 0x415fe7
mov ecx, dword [0x4d5b14]
mov eax, dword [ecx + 0x60]
jmp 0x415ff0
mov edx, dword [0x4d5b14]
mov eax, dword [edx + 0x5c]
push eax
call fcn.00417e50
add esp, 4
dec esi
jne 0x415f56
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x40
ret
Function at 0x416010
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
cmp dword [0x4d9fe0], 0
push esi
je 0x416027
mov al, byte [0x4d861f]
jmp 0x416173
cmp dword [0x4d983c], 0
je 0x41603a
mov al, byte [0x4d9709]
jmp 0x416173
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [esp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x41605b
mov byte [esp + 7], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x416071
or byte [esp + 7], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x416087
or byte [esp + 7], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x41609d
or byte [esp + 7], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x4160b3
or byte [esp + 7], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x4160c9
or byte [esp + 7], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x4160dc
or byte [esp + 7], 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x4160ef
or byte [esp + 7], 0x80
cmp dword [0x4d983c], 0
je 0x41616f
push ebx
mov bl, byte [esp + 0xb]
not bl
and bl, byte [0x4d9709]
cmp byte [0x4d972e], 0
je 0x416128
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4d85f0]
cmp eax, 0x14
jae 0x416128
mov al, byte [0x4d972e]
not al
and bl, al
test bl, bl
je 0x41616e
mov cl, byte [0x4d970b]
mov al, bl
not al
and byte [0x4d9709], al
and byte [0x4d970a], al
and cl, al
mov al, cl
mov byte [0x4d970b], cl
mov ecx, 0x4d9730
call fcn.00418a60
mov eax, dword [0x4d8610]
test eax, eax
je 0x41616e
test byte [eax + 8], bl
je 0x41616e
mov dword [0x4d8610], 0
pop ebx
mov al, byte [esp + 7]
mov byte [esp + 8], al
mov ecx, dword [esp + 8]
push 1
and al, 0xc4
push 0
or al, 4
push 0
movzx edx, al
push ecx
push edx
mov esi, 0xffc3d44f
call fcn.00418250
movzx eax, word [edi]
add esp, 0x14
mov esi, edi
cmp eax, 0x30
jb 0x4161d0
cmp ax, 0x39
ja 0x4161d0
mov al, byte [esi]
push 0xffc3d44d
push 0
add al, 0x30
push 0
movzx ecx, al
push 0
push ecx
push 2
call fcn.00416450
movzx eax, word [esi + 2]
add esi, 2
add esp, 0x18
cmp eax, 0x30
jae 0x4161a1
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
call fcn.00416450
add esp, 0x18
pop esi
add esp, 8
ret
Function at 0x4176e0
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 0x4178c1
mov edi, dword [ebp]
cmp edi, 0x80000000
je 0x4178c1
mov edx, dword [0x4d9fe0]
cmp edx, 2
jne 0x417755
movzx ebx, byte [esp + 0x24]
neg ebx
sbb ebx, ebx
and ebx, 0x80000000
push 0
or ebx, 1
call fcn.00417aa0
add esp, 4
call fcn.00417f30
cmp byte [esp + 0x24], 0
je 0x4178c1
mov dword [esi], connect
mov dword [ebp], connect
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
or dword [ecx], 0x8001
cmp byte [esp + 0x24], 0
je 0x4177aa
cmp edx, 1
jne 0x417790
cmp dword [0x4d8620], 0x80000000
jne 0x41777e
push 0x4d8620
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x4d8620]
add dword [esi], eax
mov ecx, dword [0x4d8624]
add dword [ebp], ecx
jmp 0x4177cf
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 0x4177cf
mov edx, dword [0x4d5b14]
movzx eax, word [edx + 0xf0]
shr eax, 2
and eax, 3
cmp eax, 2
je 0x4177cf
push eax
mov edi, ebp
mov ebx, esi
call fcn.004813b0
add esp, 4
cmp dword [0x4d9fe0], 1
jne 0x4177e8
mov eax, dword [esi]
mov dword [0x4d8620], eax
mov ecx, dword [ebp]
mov dword [0x4d8624], 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 0x4178ab
cmp eax, 0x64
jle 0x417843
mov dword [esp + 0x20], 0x64
jmp 0x417847
test eax, eax
je 0x4178ab
cmp dword [0x4d9fe0], 1
je 0x4178ab
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.0045f500
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.004178d0
add esp, 4
call fcn.00417f30
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x417d00
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ecx
cmp dword [0x4d9fe0], 1
jne 0x417dc5
push ebx
xor bl, bl
cmp dword [0x4d983c], 0
mov byte [esp + 4], bl
je 0x417d24
mov bl, 1
mov byte [esp + 4], bl
cmp dword [0x4d9840], 0
je 0x417d34
or bl, 2
mov byte [esp + 4], bl
test bl, bl
je 0x417d4f
mov al, byte [0x4d861e]
not al
and al, bl
movzx ecx, al
push 1
push ecx
call fcn.0040e4f0
add esp, 8
mov edx, dword [0x4d8634]
mov eax, dword [0x4d8630]
push 0x1c
push edx
push eax
call dword [sym.imp.USER32.dll_SendInput]
test bl, bl
je 0x417e45
mov cl, byte [0x4d861e]
and cl, bl
test cl, 1
je 0x417dac
push 1
call fcn.00418900
mov dl, byte [esp + 0x14]
mov cl, al
xor cl, dl
mov bl, cl
and bl, dl
not bl
and bl, byte [0x4d970b]
and cl, al
or bl, cl
add esp, 4
mov byte [0x4d970b], bl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [0x4d8458], eax
mov edx, dword [esp + 4]
pop ebx
add esp, 4
mov dword [esp + 8], 1
mov dword [esp + 4], edx
jmp fcn.0040e4f0
mov eax, dword [0x4d9700]
push 0
push eax
push 0x4161f0
push 1
mov dword [0x4d8628], 0
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4d9844], eax
test eax, eax
je 0x417e46
mov byte [0x4d972f], 1
push 1
push 0x8000012f
mov dword [0x4d5a1c], 0
call fcn.004014c0
add esp, 8
cmp dword [0x4d9844], 0
mov dword [0x4d5a1c], 1
jne 0x417df4
mov eax, dword [0x4d8634]
mov ecx, dword [0x4d8630]
cmp dword [eax + ecx*8 - 8], 0
mov byte [0x4d972f], 0
jne 0x417e46
mov ecx, dword [eax + ecx*8 - 4]
mov edx, dword [esp + 8]
mov dword [edx], ecx
pop ecx
ret
pop ebx
pop ecx
ret

Function at 0x418020
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov eax, dword [0x4d9f24]
test eax, eax
je 0x418138
mov ecx, dword [0x4d9f28]
imul ecx, ecx, 0xd4
add eax, ecx
mov cl, byte [esp + 8]
mov byte [eax + 6], dl
mov dx, word [esp + 0xc]
mov byte [eax], cl
mov ecx, 0x69
mov word [eax + 2], dx
push esi
mov word [eax + 4], cx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
sub edx, dword [0x4db294]
mov dword [0x4d9f2c], eax
mov dword [esp + 4], edx
fild dword [esp + 4]
jns 0x41807b
fadd dword [0x4cedf8]
fdiv qword [0x4cedf0]
mov ecx, dword [0x4d9f28]
mov edx, dword [0x4d9f24]
mov dword [0x4db294], eax
imul ecx, ecx, 0xd4
fstp dword [esp + 4]
fld dword [esp + 4]
fstp dword [ecx + edx + 8]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4180e8
mov eax, dword [0x4d9f28]
imul eax, eax, 0xd4
cmp esi, dword [0x4d9f30]
je 0x4180d9
mov ecx, dword [0x4d9f24]
push 0x64
lea edx, [eax + ecx + 0xc]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x418114
mov edx, dword [0x4d9f24]
xor ecx, ecx
mov word [eax + edx + 0xc], cx
jmp 0x418114
mov ecx, dword [0x4d9f28]
mov edx, dword [0x4d9f24]
imul ecx, ecx, 0xd4
mov eax, 0x4b2ca8
lea edx, [ecx + edx + 0xc]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x418105
mov eax, dword [0x4d9f28]
inc eax
mov dword [0x4d9f30], esi
mov dword [0x4d9f28], eax
pop esi
cmp eax, dword [0x4d5a20]
jl 0x418138
mov dword [0x4d9f28], 0
pop ecx
ret