joyce8/EMBER2024-capa huggingface dataset:
Function at 0x547b54
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x547b99
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
jne 0x547b99
lea eax, [ebp - 8]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x547c2a
mov eax, 0x400
call fcn.00402df4
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push 0x400
push esi
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
je 0x547c23
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x56a728
call sub.advapi32.dll_AllocateAndInitializeSid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x547c1a
inc ebx
xor edi, edi
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x547c16
mov byte [ebp - 1], 1
jmp 0x547c1a
inc edi
dec ebx
jne 0x547bfe
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.00402e24
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x54bec4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x54bfa7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x54bf77
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 4]
lea eax, [ebp - 0x104]
call fcn.0040dcd8
lea eax, [ebp - 0x108]
mov ecx, 0x54bfc0
mov edx, dword [ebp - 4]
call fcn.004056c4
mov eax, dword [ebp - 0x108]
call fcn.0040ce34
test al, al
jne 0x54bf6d
mov eax, dword [ebx + 0x308]
xor edx, edx
call fcn.0054b128
push eax
lea eax, [ebp - 0x10c]
mov ecx, 0x54bfc0
mov edx, dword [ebp - 4]
call fcn.004056c4
mov edx, dword [ebp - 0x10c]
pop eax
call fcn.0054b9f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x54bf81
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54bfae
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.004053c0
lea eax, [ebp - 4]
call fcn.0040539c
ret
Function at 0x54d578
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff64
xor ebx, ebx
lea eax, [esp + 8]
mov edx, 0x94
call fcn.00408a24
mov dword [esp + 8], 0x94
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x54d5e8
cmp dword [esp + 0x18], 2
jne 0x54d5e8
cmp dword [esp + 0xc], 6
jb 0x54d5e8
push 0x54d5f4
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
test esi, esi
je 0x54d5e2
push 0x54d600
push esi
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
mov dword [esp + 4], edi
test edi, edi
je 0x54d5e2
push esp
call dword [esp + 8]
mov bl, byte [esp]
push esi
call sub.kernel32.dll_FreeLibrary_1
mov eax, ebx
add esp, 0x9c
pop edi
pop esi
pop ebx
ret

Function at 0x553440
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x553491
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x553478
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x553468
jmp 0x553491
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x553479
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x55417c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00554168
test al, al
je 0x5542e8
mov eax, dword [ebp - 4]
call fcn.005540ec
mov eax, dword [ebp - 4]
call fcn.0055411c
test al, al
je 0x5542e8
xor eax, eax
push ebp
push 0x5542d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41d6c0]
call fcn.0040441c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5542c2
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp + 8]
mov ecx, 1
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 4]
mov edx, 9
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 4]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
mov eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 0xc]
call fcn.00422024
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 4]
mov esi, dword [eax]
call dword [esi + 0x14]
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00421fc0
mov edx, ebx
mov ecx, 4
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 8]
mov ecx, 4
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp + 0xc]
mov ecx, 4
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5542c9
mov eax, dword [ebp - 0xc]
call fcn.0040444c
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5542f4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00554168
test al, al
je 0x55440c
mov eax, dword [ebp - 4]
call fcn.005540ec
mov eax, dword [ebp - 4]
call fcn.0055411c
test al, al
je 0x55440c
xor eax, eax
push ebp
push 0x5543f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41d6c0]
call fcn.0040441c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5543e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 4]
mov edx, 5
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 4]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
mov eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 0xc]
call fcn.00422024
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 4]
mov esi, dword [eax]
call dword [esi + 0x14]
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00421fc0
mov edx, ebx
mov ecx, 4
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 8]
mov ecx, 4
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5543ed
mov eax, dword [ebp - 0xc]
call fcn.0040444c
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5549e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x554b20
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, byte [0x56a764]
test bl, bl
jne 0x554aff
mov eax, dword [0x56a7c0]
mov eax, dword [eax]
mov ecx, 0x554b38
xor edx, edx
mov esi, dword [eax]
call dword [esi + 0xc]
push 0xff
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 4]
lea eax, [ebp - 0x104]
call fcn.0040dcd8
push dword [ebp - 4]
push 0x554b58
push 0x554b64
lea eax, [ebp - 0x108]
mov edx, 3
call fcn.00405738
mov eax, dword [ebp - 0x108]
call fcn.00405878
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x5733b8], eax
cmp dword [0x5733b8], 0
je 0x554aff
mov byte [0x56a764], 1
mov eax, dword [0x56a7c0]
mov eax, dword [eax]
mov ecx, 0x554b7c
xor edx, edx
mov esi, dword [eax]
call dword [esi + 0xc]
push 0x554b94
mov eax, dword [0x5733b8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5733bc], eax
push 0x554b9c
mov eax, dword [0x5733b8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5733c0], eax
cmp dword [0x5733bc], 0
je 0x554ad6
cmp dword [0x5733c0], 0
jne 0x554aea
mov eax, dword [0x5733b8]
push eax
call sub.kernel32.dll_FreeLibrary_1
mov byte [0x56a764], 0
jmp 0x554aff
mov eax, dword [0x56a7c0]
mov eax, dword [eax]
mov ecx, 0x554bb0
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x554b27
lea eax, [ebp - 0x108]
call fcn.0040539c
lea eax, [ebp - 4]
call fcn.0040539c
ret
Function at 0x555190
Capabilities:
Get session user name
Query service configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x5552fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x55528f
push 0xf01ff
push 0x55530c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
setne byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x555286
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceConfigA
mov eax, dword [ebp - 0x1c]
call fcn.0040c340
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x555276
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceConfigA
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x1c]
call fcn.00405594
mov edx, 0x555320
mov eax, dword [ebp - 0x14]
call fcn.0040c4c4
test eax, eax
jne 0x55525e
lea eax, [ebp - 0x14]
mov edx, 0x555334
call fcn.00405434
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55527d
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.00402e24
ret
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
cmp byte [ebp - 1], 0
je 0x5552e1
mov dword [ebp - 0x1c], pe_nt_image_headers32
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00405a04
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405878
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, dword [ebp - 0x10]
call fcn.00405878
call fcn.0040daa4
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00405a04
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0040c4c4
test eax, eax
sete byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x555303
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004053c0
ret
Function at 0x403750
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x403764
inc dword [0x4ad460]
add dword [0x4a9978], 0xe8
mov edx, dword [0x4a9978]
push esi
push edi
mov ecx, 0x3a
mov esi, 0x4abfb0
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 0x403793
push 0
mov eax, 0x4ae2a8
call fcn.004171b0
cmp dword [0x4ad494], 0
mov dword [0x4ae8c8], 0
mov dword [0x4ae8cc], 0
je 0x4037cb
mov eax, dword [0x4aaaac]
test eax, eax
je 0x4037bf
mov eax, dword [eax]
test eax, eax
jne 0x4037c4
mov eax, 0x49b8bd
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [esp + 0x10], 0
jne 0x40384f
or ecx, 0xffffffff
cmp byte [esi + 0xce], 0
jne 0x4037fa
xor eax, eax
cmp byte [esp + 0x14], 0x65
sete al
mov byte [esi + 0xce], al
test al, al
je 0x4037fa
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4ae8d4], 0
je 0x40380c
cmp dword [0x4ae8d0], 0
jne 0x403815
cmp byte [esi + 0xce], 0
je 0x40384f
cmp byte [esi + 0xce], 0
mov byte [esi + 0xcc], 0
jne 0x40384f
cmp dword [0x4ae8d4], 0
jge 0x403837
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 [0x4ae8d4]
mov dword [esi + 0xc0], edx
pop edi
pop esi
ret
Function at 0x404700
Capabilities:
Write clipboard data

Disassembly:
cmp dword [0x4ae298], 0
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
je 0x404718
pop ebp
xor eax, eax
pop ebx
ret 4
push esi
test ebp, ebp
je 0x404765
cmp ebx, 0xffffffff
jne 0x404732
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404727
sub eax, edx
mov ebx, eax
test ebx, ebx
je 0x404765
push edi
lea edi, [ebx + 1]
mov esi, 0x4ae28c
call fcn.00404780
pop edi
test eax, eax
jne 0x40474f
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [0x4ae298]
push ebx
push ebp
push eax
mov esi, eax
call fcn.0048a440
add esp, 0xc
mov byte [esi + ebx], 0
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 1
mov ecx, 0x4ae28c
jmp fcn.004047f0

Function at 0x4049d0
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x108
test esi, esi
je 0x4049e0
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x404aaf
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.00487b3d
add esp, 0xc
test eax, eax
je 0x404aa6
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.00487781
add esp, 8
test eax, eax
je 0x404aa6
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.00487781
add esp, 8
test eax, eax
je 0x404aa6
lea edx, [esp]
push str.Native
push edx
call fcn.00487781
add esp, 8
test eax, eax
je 0x404aa6
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.00487781
add esp, 8
test eax, eax
je 0x404aa6
lea ecx, [esp]
push str.MSDEVColumnSelect
push ecx
call fcn.00487781
add esp, 8
test eax, eax
je 0x404a9c
lea edx, [esp]
push str.MSDEVLineSelect
push edx
call fcn.00487781
add esp, 8
test eax, eax
jne 0x404ab3
test esi, esi
je 0x404aa6
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 0x404ad0
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 0x404b5a
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
mov edi, eax
mov eax, dword [0x4ad2ec]
push eax
call ebx
test eax, eax
jne 0x404b4f
mov eax, dword [0x4a98e8]
cmp eax, 0xffffffff
je 0x404b1f
test eax, eax
je 0x404b66
call esi
mov ecx, dword [0x4a98e8]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x404b66
push 1
push 0x8000012f
mov dword [0x4a98ec], 0
call fcn.004013c0
mov edx, dword [0x4ad2ec]
add esp, 8
push edx
mov dword [0x4a98ec], 1
call ebx
test eax, eax
je 0x404b00
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 0x408d20
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 [0x4ad41c], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x408d44
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4ad420], 0
je 0x408d53
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x408f60
test al, al
jne 0x408d96
cmp byte [ebp + 0xc], al
jne 0x408d96
push 0x4ac1f8
push 0
push 0
push 0x409050
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4adb1c], eax
test eax, eax
je 0x408e27
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 [0x4ac1f8]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
test eax, eax
jne 0x408dcc
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x408da6
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 0x408e33
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x408e9a
cmp dword [esp + 0x2c], 0
je 0x408e42
mov byte [esp + 0x1f], 1
call fcn.00409370
test al, al
jne 0x408e42
cmp byte [ebp + 0xc], al
jne 0x408f2e
mov byte [ebp + 8], al
jmp 0x408de1
call fcn.00409390
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x408e7e
call fcn.00409370
test al, al
jne 0x408e9a
cmp byte [ebp + 0xc], 0
jne 0x408f27
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4ad41c], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
je 0x408ed2
test byte [esp + 0x1e], 1
jne 0x408eeb
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4adb14], eax
jmp 0x408eeb
mov ecx, dword [0x4adb1c]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x408eb2
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x408e42
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x408de1
mov edx, dword [0x4adb1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [0x4adb1c], 0
call fcn.00409390
jmp 0x408e52
test byte [esp + 0x1e], 1
je 0x408eeb
mov eax, dword [0x4adb14]
push eax
call edi
mov dword [0x4adb14], 0
cmp dword [0x4ad420], 0
je 0x408f0d
test byte [esp + 0x1e], 2
jne 0x408f27
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4adb18], eax
jmp 0x408f27
test byte [esp + 0x1e], 2
je 0x408f27
mov ecx, dword [0x4adb18]
push ecx
call edi
mov dword [0x4adb18], 0
cmp byte [esp + 0x1f], 0
je 0x408f60
fldz
sub esp, 8
fstp qword [esp]
mov dword [0x4a98ec], 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.00479120
add esp, 0x18
mov dword [0x4a98ec], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a970
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x80c
cmp byte [0x4aeab0], 0
push ebx
push ebp
mov ebp, dword [esp + 0x81c]
push esi
push edi
jne 0x40aae0
cmp dword [0x4adb38], 0
jne 0x40a9a2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4adb38], eax
mov ebx, 1
add dword [0x4aeab4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x4aeab4]
mov esi, dword [0x4a9900]
mov ecx, eax
sub ecx, dword [0x4adb38]
mov dword [0x4adb3c], eax
cmp edx, dword [0x4a98fc]
jbe 0x40a9d8
cmp ecx, esi
jb 0x40aa3c
xor edx, edx
cmp ecx, esi
jbe 0x40a9f5
mov dword [0x4aeab4], 0
mov dword [0x4adb38], eax
test edx, edx
jne 0x40aae0
mov esi, dword [esp + 0x820]
mov cl, byte [esi + 0xf]
push 0
mov byte [0x4ae8a5], 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.0046c9d0
dec byte [ebp + 0x16]
add esp, 0x10
test eax, eax
jne 0x40aaae
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.00474600
add esp, 0xc
call fcn.004098d0
fldz
sub esp, 8
fstp qword [esp]
push 0
push 0
mov eax, edi
push 4
push eax
mov byte [0x4aeab0], bl
mov dword [0x4a98ec], 0
call fcn.00479120
add esp, 0x18
cmp eax, 7
jne 0x40aa95
push 0
push 4
push 0x4ae2a8
call fcn.00417530
mov eax, dword [0x4adb3c]
mov dword [0x4a98ec], ebx
mov byte [0x4aeab0], 0
mov edx, ebx
jmp 0x40a9de
cmp byte [ebp + 0x1b], 0
je 0x40aae0
mov byte [ebp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0xc]
cmp eax, 0x3e8
ja 0x40aae0
movzx edx, word [esi + 4]
mov eax, dword [0x4ad2ec]
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 0x410440
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov cl, byte [esp + 4]
sub esp, 0x34
cmp dword [0x4adbc0], 2
push ebx
push ebp
push esi
sete bl
push edi
mov esi, eax
test bl, bl
je 0x41047d
lea eax, [esp + 0x14]
test cl, cl
jns 0x41046c
mov byte [esp + 0x14], 0x30
lea eax, [esp + 0x15]
push 0xa
push eax
movzx eax, cl
push eax
call fcn.00487412
add esp, 0xc
jmp 0x41049d
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 0x410553
test esi, esi
jle 0x410553
mov ebp, esi
cmp dword [0x4adbc0], 0
jne 0x41050a
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4ae8dc]
mov ecx, dword [0x4a9978]
cmp eax, dword [ecx + 0xb8]
jbe 0x41050a
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 0x410503
push 1
push 0xffffffffffffffff
mov dword [0x4a98ec], 0
call fcn.004013c0
add esp, 8
mov dword [0x4a98ec], 1
call esi
mov dword [0x4ae8dc], eax
test bl, bl
je 0x410519
lea eax, [esp + 0x14]
call fcn.00410560
jmp 0x41052a
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x10]
push eax
call fcn.0040eae0
add esp, 4
cmp dword [0x4adbc0], 2
jne 0x41053e
mov ecx, dword [0x4a9978]
mov esi, dword [ecx + 0x60]
jmp 0x410547
mov edx, dword [0x4a9978]
mov esi, dword [edx + 0x5c]
call fcn.00412410
dec ebp
jne 0x4104a7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret