joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405860
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov edx, 0xffff0000
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x67c
mov eax, dword [0x41d664]
mov dword [ebp - 0x648], 0x45
mov dword [ebp - 0x634], 0x100
test eax, eax
mov dword [esp + 4], str.Component_Categories_
cmove eax, edx
mov dword [esp], 0x80000000
mov dword [ebp - 0x64c], 0xffff0001
mov dword [ebp - 0x650], eax
lea eax, [ebp - 0x664]
mov dword [esp + 8], eax
mov eax, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x628], 1
mov dword [ebp - 0x668], eax
call eax
sub esp, 0xc
test eax, eax
jne 0x405aec
mov ebx, 0xffffffff
lea esi, [ebp - 0x60c]
lea esi, [esi]
mov eax, dword [ebp - 0x664]
add ebx, 1
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x405ab0
lea eax, [ebp - 0x660]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x664]
mov dword [esp], eax
mov eax, dword [ebp - 0x668]
call eax
sub esp, 0xc
test eax, eax
jne 0x4058e8
lea eax, [ebp - 0x65c]
lea edi, [ebp - 0x20c]
mov dword [ebp - 0x65c], 0x200
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x660]
mov dword [ebp - 0x658], 0x200
mov dword [ebp - 0x654], 0x200
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
sub esp, 0x10
test eax, eax
jne 0x405a40
cmp word [ebp - 0x20c], 0
je 0x405a40
mov eax, dword [ebp - 0x660]
mov dword [ebp - 0x638], edi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov dword [esp + 4], 0x60c
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov byte [eax], 1
mov ecx, eax
xor eax, eax
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ecx + eax + 2], dx
add eax, 2
test dx, dx
jne 0x4059d8
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [esi + eax]
mov word [ecx + eax + 0x202], dx
add eax, 2
test dx, dx
jne 0x4059f0
lea eax, [ebp - 0x650]
mov dword [ebp - 0x624], ecx
mov dword [esp + 0xc], eax
mov eax, dword [0x41d030]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x4058e8
lea eax, [ebp - 0x658]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x654]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x40c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x660]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
jne 0x4058e8
cmp word [ebp - 0x20c], 0
jne 0x40599d
jmp 0x4058e8
mov eax, dword [ebp - 0x664]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x41d664]
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [0x41d030]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x407180
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
call sym._AddBaseEntries
call sym._AddComponentCategories
call sym._AddCOMandAll
call sym._AddApplicationID
call sym._AddTypeLib
pop ebp
jmp sym._AddInterfaces

Function at 0x4071b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
xor edx, edx
xor eax, eax
mov ebp, esp
mov dword [eax + 0x41d660], edx
add eax, 4
cmp eax, 0x20
jb 0x4071b7
call sym._AddComponentCategories
pop ebp
jmp sym._AddCOMandAll
Function at 0x40ca80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40cad8
cmp byte [esi + ebx - 1], 0xa
je 0x40caac
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x41d924], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x40d040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x41d934]
mov esi, dword [ebp + 8]
test edi, edi
je 0x40d200
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x41d934]
movzx eax, al
bt eax, esi
jae 0x40d260
mov ecx, dword [0x41d924]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x40d105
test byte [0x40e2e8], 8
jne 0x40d1a0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x40e2f8], 8
jne 0x40d150
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x40d0d4
cmp esi, 3
jbe 0x40d110
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x417540]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x40d0d4
mov ecx, dword [0x41d934]
test ecx, ecx
je 0x40d240
mov dword [esp], 0x40e2f8
call dword [0x41d934]
test al, 8
je 0x40d0ab
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x40d0ab
mov ebx, dword [0x41d934]
test ebx, ebx
je 0x40d220
mov dword [esp], 0x40e2e8
call dword [0x41d934]
test al, 8
je 0x40d096
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x40d09e
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x41d934
call sym._load_func.part.0
jmp 0x40d05d
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x41d934
call sym._load_func.part.0
jmp 0x40d1aa
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x41d934
call sym._load_func.part.0
jmp 0x40d15e
mov eax, 0xffffffff
jmp 0x40d105
Function at 0x40d3d0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop
nop

Function at 0x40d490
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call sym.___main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x40d50f
cmp al, 9
je 0x40d500
cmp al, 0x20
je 0x40d500
mov dword [ebp - 0x54], 0
xor esi, esi
nop
cmp al, 0x5c
je 0x40d568
cmp al, 0x22
je 0x40d578
mov dword [ebp - 0x54], 0
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x40d50f
cmp al, 9
sete dl
cmp al, 0x20
sete cl
or dl, cl
je 0x40d4c0
test esi, 1
jne 0x40d4c0
lea esi, [esi]
nop
movzx eax, byte [ebx + 1]
add ebx, 1
cmp al, 9
je 0x40d500
cmp al, 0x20
je 0x40d500
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x24], 1
jne 0x40d52a
mov word [ebp - 0x20], 1
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x40d4d7
and dword [ebp - 0x54], 1
jne 0x40d4d0
xor esi, 1
jmp 0x40d4d7
Function at 0x403520
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x403534
inc dword [0x4c8124]
add dword [0x4c440c], 0x108
mov edx, dword [0x4c440c]
push esi
push edi
mov ecx, 0x42
mov esi, 0x4c6bf0
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 0x403563
push 0
mov eax, 0x4ca140
call fcn.00415d30
cmp dword [0x4c8154], 0
mov dword [0x4cac10], 0
mov dword [0x4cac14], 0
je 0x40358b
push 0x4c87b8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [esp + 0x10], 0
jne 0x40360f
or ecx, 0xffffffff
cmp byte [esi + 0xea], 0
jne 0x4035ba
xor eax, eax
cmp byte [esp + 0x14], 0x65
sete al
mov byte [esi + 0xea], al
test al, al
je 0x4035ba
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4cac1c], 0
je 0x4035cc
cmp dword [0x4cac18], 0
jne 0x4035d5
cmp byte [esi + 0xea], 0
je 0x40360f
cmp byte [esi + 0xea], 0
mov byte [esi + 0xe8], 0
jne 0x40360f
cmp dword [0x4cac1c], 0
jge 0x4035f7
pop edi
mov dword [esi + 0xdc], ecx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xd8], eax
mov edx, dword [0x4cac1c]
mov dword [esi + 0xdc], edx
pop edi
pop esi
ret
Function at 0x404270
Capabilities:
Write clipboard data

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jne 0x404294
push esi
call fcn.00404540
test eax, eax
jne 0x404294
push str.Cant_open_clipboard_for_writing.
call fcn.00404370
pop esi
pop ebx
pop ecx
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4042cd
cmp dword [esi + 0x18], ebx
je 0x4042bf
cmp dword [esi + 8], ebx
je 0x4042b4
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 0x4a2bac
call fcn.00404370
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 0x404306
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x40432d
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 0x40432d
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 0x404323
cmp dword [esi + 8], ebx
je 0x404318
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 0x404342
mov dword [esi + 4], ebx
jmp 0x404306
cmp dword [esi + 0x18], ebx
je 0x40435f
cmp dword [esi + 8], ebx
je 0x404354
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 0x4a2bcc
call fcn.00404370
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x404440
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
test esi, esi
je 0x404450
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x40451f
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.0048f277
add esp, 0xc
test eax, eax
je 0x404516
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.0048ea29
add esp, 8
test eax, eax
je 0x404516
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.0048ea29
add esp, 8
test eax, eax
je 0x404516
lea edx, [esp]
push str.Native
push edx
call fcn.0048ea29
add esp, 8
test eax, eax
je 0x404516
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.0048ea29
add esp, 8
test eax, eax
je 0x404516
lea ecx, [esp]
push str.MSDEVColumnSelect
push ecx
call fcn.0048ea29
add esp, 8
test eax, eax
je 0x40450c
lea edx, [esp]
push str.MSDEVLineSelect
push edx
call fcn.0048ea29
add esp, 8
test eax, eax
jne 0x404525
test esi, esi
je 0x404516
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 0x404540
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0
je 0x404552
mov eax, 1
ret 4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov ecx, dword [0x4c7fb8]
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
push ecx
mov edi, eax
call ebx
test eax, eax
jne 0x4045c0
mov eax, dword [0x4c43d0]
cmp eax, 0xffffffff
je 0x404591
test eax, eax
je 0x4045d6
call esi
mov edx, dword [0x4c43d0]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x4045d6
push 1
push 0x8000012f
mov dword [0x4c43d4], 0
call fcn.00401340
mov eax, dword [0x4c7fb8]
add esp, 8
push eax
mov dword [0x4c43d4], 1
call ebx
test eax, eax
je 0x404572
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 0x4079c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
cmp byte [0x4c6ec0], 0
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
je 0x407a7b
mov al, byte [0x4c6ec2]
cmp al, 0xa0
je 0x4079e6
cmp al, 0x10
jne 0x407a7b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c6ebc]
cmp eax, 0x16
jae 0x407a7b
test ebp, 0x100
jne case.0x407a17.13
movzx eax, byte [esp + 0x14]
add eax, 0xfffffff4
cmp eax, 0x22
ja case.0x407a17.13
movzx eax, byte [eax + 0x407c24]
jmp dword [eax*4 + 0x407c1c]
mov cl, 1
jmp 0x407a24
xor cl, cl
cmp byte [0x4c6ec1], 0
jne 0x407a41
xor ecx, ecx
nop
cmp byte [ecx + 0x4c6ea4], 0
jne 0x407a4c
inc ecx
cmp ecx, 0x16
jl 0x407a30
jmp 0x407a7b
cmp byte [esp + 0x1c], 0
je 0x407a55
test cl, cl
je 0x407a7b
mov byte [0x4c6ec3], 1
jmp 0x407a59
test cl, cl
je 0x407a7b
mov cl, byte [0x4c6ebb]
mov dl, byte [0x4c6eba]
mov al, byte [0x4c6dc7]
mov byte [0x4c7fb7], cl
mov byte [0x4c7fe8], dl
mov byte [0x4c8078], al
mov cl, byte [0x4c7fb7]
movzx esi, byte [esp + 0x14]
mov dl, byte [0x4c7fe8]
mov al, byte [0x4c8078]
mov byte [0x4c6ebb], cl
lea ecx, [esi + esi*8]
mov byte [0x4c6eba], dl
mov edx, dword [0x4c89ec]
shl ecx, 5
mov bl, byte [ecx + edx + 4]
mov byte [0x4c6dc7], al
test bl, bl
je case.default.0x407bf2
cmp dword [edi + 0x10], 0xffc3d44f
setne dl
test byte [edi + 8], 0x10
mov byte [esp + 0xf], dl
je 0x407ad2
xor al, al
jmp 0x407ae7
mov eax, dword [esp + 0x1c]
push eax
mov al, byte [esp + 0x18]
call fcn.00407c80
mov dl, byte [esp + 0x13]
add esp, 4
cmp byte [esp + 0x1c], 0
mov byte [esp + 0x18], al
je 0x407bbe
cmp byte [esp + 0x20], 0
jne 0x407b11
mov cl, bl
not cl
and byte [0x4c7fb5], cl
test dl, dl
je 0x407b11
and byte [0x4c7fb6], cl
cmp byte [esp + 0x18], 0
je case.default.0x407bf2
not bl
and byte [0x4c7fb7], bl
lea ecx, [esi - 0xa0]
mov byte [esi + 0x4c7fd8], 0
cmp ecx, 5
ja case.default.0x407bf2
jmp dword [ecx*4 + 0x407c48]
mov cl, byte [0x4c8079]
mov byte [0x4c7fe8], cl
jmp case.default.0x407bf2
mov dl, byte [0x4c8078]
mov byte [0x4c7fe8], dl
jmp case.default.0x407bf2
mov al, byte [0x4c807b]
mov byte [0x4c7fe9], al
jmp case.default.0x407bf2
mov cl, byte [0x4c807a]
mov byte [0x4c7fe9], cl
jmp case.default.0x407bf2
mov dl, byte [0x4c807d]
mov byte [0x4c7fea], dl
jmp case.default.0x407bf2
mov al, byte [0x4c807c]
mov byte [0x4c7fea], al
test byte [edi + 8], 0x10
mov al, byte [esp + 0x14]
mov ecx, dword [esp + 0x1c]
pop esi
mov word [0x4c6ec4], bp
pop ebp
mov byte [0x4c6ec2], al
mov byte [0x4c6ec1], cl
pop ebx
je 0x407c00
xor al, al
mov byte [0x4c6ec0], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c6ebc], eax
pop ecx
ret
cmp byte [esp + 0x20], 0
jne 0x407bd5
or byte [0x4c7fb5], bl
test dl, dl
je 0x407bd5
or byte [0x4c7fb6], bl
test al, al
je case.default.0x407bf2
or byte [0x4c7fb7], bl
lea ecx, [esi - 0xa0]
mov al, 0x80
mov byte [esi + 0x4c7fd8], al
cmp ecx, 5
ja case.default.0x407bf2
jmp dword [ecx*4 + 0x407c60]
mov byte [0x4c7fe8], al
jmp case.default.0x407bf2
push ecx
call fcn.00407c80
add esp, 4
mov byte [0x4c6ec0], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c6ebc], eax
pop ecx
ret
Function at 0x407c80
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp al, 0xa0
je 0x407c8f
cmp al, 0x10
jne case.0x407ce6.13
cmp byte [esp + 8], 0
jne case.0x407ce6.13
cmp byte [0x4c6ec3], 0
je 0x407cbb
xor eax, eax
cmp byte [eax + 0x4c6ea4], 0
jne 0x407cbb
inc eax
cmp eax, 0x16
jl 0x407ca1
mov byte [0x4c6ec3], 0
xor al, al
pop esi
ret
cmp byte [0x4c6ec1], 0
je case.0x407ce6.13
test dword [0x4c6ec4], 0x100
jne case.0x407ce6.13
movzx eax, byte [0x4c6ec2]
add eax, 0xfffffff4
cmp eax, 0x22
ja case.0x407ce6.13
movzx eax, byte [eax + 0x407d10]
jmp dword [eax*4 + 0x407d08]
call esi
sub eax, dword [0x4c6ebc]
cmp eax, 0x16
jb 0x407cb7
call esi
mov dword [0x4cadd8], eax
mov al, 1
pop esi
ret
Function at 0x408bd0
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 [0x4c80e8], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x408bf4
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4c80ec], 0
je 0x408c03
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x408e10
test al, al
jne 0x408c46
cmp byte [ebp + 0xc], al
jne 0x408c46
push 0x4c6ea0
push 0
push 0
push 0x408ee0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4cadf8], eax
test eax, eax
je 0x408cd7
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 [0x4c6ea0]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x408c7c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x408c56
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 0x408ce3
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x408d4a
cmp dword [esp + 0x2c], 0
je 0x408cf2
mov byte [esp + 0x1f], 1
call fcn.00409280
test al, al
jne 0x408cf2
cmp byte [ebp + 0xc], al
jne 0x408dde
mov byte [ebp + 8], al
jmp 0x408c91
call fcn.004092a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x408d2e
call fcn.00409280
test al, al
jne 0x408d4a
cmp byte [ebp + 0xc], 0
jne 0x408dd7
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4c80e8], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
je 0x408d82
test byte [esp + 0x1e], 1
jne 0x408d9b
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4c89d8], eax
jmp 0x408d9b
mov ecx, dword [0x4cadf8]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x408d62
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x408cf2
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x408c91
mov edx, dword [0x4cadf8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [0x4cadf8], 0
call fcn.004092a0
jmp 0x408d02
test byte [esp + 0x1e], 1
je 0x408d9b
mov eax, dword [0x4c89d8]
push eax
call edi
mov dword [0x4c89d8], 0
cmp dword [0x4c80ec], 0
je 0x408dbd
test byte [esp + 0x1e], 2
jne 0x408dd7
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4c89dc], eax
jmp 0x408dd7
test byte [esp + 0x1e], 2
je 0x408dd7
mov ecx, dword [0x4c89dc]
push ecx
call edi
mov dword [0x4c89dc], 0
cmp byte [esp + 0x1f], 0
je 0x408e10
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 [0x4c43d4], 0
call fcn.00479f00
add esp, 0x18
mov dword [0x4c43d4], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a6f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x100c
call fcn.0049a220
cmp byte [0x4cadfc], 0
push ebx
push ebp
mov ebp, dword [esp + 0x101c]
push esi
push edi
jne 0x40a865
cmp dword [0x4c89f4], 0
jne 0x40a726
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c89f4], eax
mov ebx, 1
add dword [0x4cae00], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x4cae00]
mov esi, dword [0x4c43e8]
mov ecx, eax
sub ecx, dword [0x4c89f4]
mov dword [0x4c89f8], eax
cmp edx, dword [0x4c43e4]
jbe 0x40a75c
cmp ecx, esi
jb 0x40a7c0
xor edx, edx
cmp ecx, esi
jbe 0x40a779
mov dword [0x4cae00], 0
mov dword [0x4c89f4], eax
test edx, edx
jne 0x40a865
mov esi, dword [esp + 0x1020]
mov cl, byte [esi + 0x11]
push 0
mov byte [0x4cabee], cl
mov ecx, dword [ebp]
add byte [ebp + 0x1f], bl
push 0
push 0x4a2890
push ecx
xor eax, eax
xor edx, edx
call fcn.0046ddc0
dec byte [ebp + 0x1f]
add esp, 0x10
test eax, eax
jne 0x40a834
mov byte [ebp + 0x24], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100c
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.004756c0
add esp, 0xc
call fcn.00409800
fldz
push 0
sub esp, 8
fstp qword [esp]
push 0
mov eax, edi
push 4
push eax
mov byte [0x4cadfc], bl
mov dword [0x4c43d4], 0
call fcn.00479f00
add esp, 0x18
cmp eax, 7
jne 0x40a81b
push 0
push 0x4ca140
xor eax, eax
mov edx, ebx
call fcn.004160a0
mov eax, dword [0x4c89f8]
mov dword [0x4c43d4], ebx
mov byte [0x4cadfc], 0
mov edx, ebx
jmp 0x40a762
cmp byte [ebp + 0x24], 0
je 0x40a865
mov byte [ebp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 4]
cmp eax, 0x3e8
ja 0x40a865
movzx edx, word [esi]
mov eax, dword [0x4c7fb8]
push 0
push edx
push 0x312
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100c
ret 8