joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4047b8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404974
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404819
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404990
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40488b
xor eax, eax
push ebp
push 0x404884
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404610
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40486d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4049b0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40488b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40496c
cmp byte [ebp - 0xd], 0
jne 0x4048cd
cmp byte [ebp - 0x12], 0
je 0x40496c
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4048e6
dec ebx
cmp byte [ebx], 0x2e
je 0x4048f5
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4048e5
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40496c
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404922
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40496c
cmp byte [ebp - 0xd], 0
je 0x40496c
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40496c
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404e58
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x404eb3
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_WriteFile
dec eax
pop eax
pop ecx
jne 0x404ea5
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x404e9a
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x404e95
mov eax, 0x65
jmp 0x404eaa
call sub.kernel32.dll_GetLastError
call fcn.0040267c
xor eax, eax
jmp 0x404e95
mov eax, 0x67
jmp 0x404eaa

Function at 0x404f2c
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x404f5c
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x404f52
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.0040268c
or eax, 0xffffffff
jmp 0x404f50
mov eax, 0x67
call fcn.0040267c
or eax, 0xffffffff
jmp 0x404f50

Function at 0x4075a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4075d9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004034f4
jmp 0x4075e2
mov eax, ebx
mov edx, esi
call fcn.00403460
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4075ec
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40760d
mov al, byte [esp]
jmp 0x40760f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40cad8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0040c64c
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0040381c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x40cb36
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x40f470]
mov dl, 1
mov eax, dword [0x40c544]
call fcn.00407dfc
call fcn.00402edc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40cb40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040381c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x40cb98
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x40f530]
mov dl, 1
mov eax, dword [0x40c544]
call fcn.00407dfc
call fcn.00402edc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0040c67c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40d5b4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d623
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 0x104]
lea eax, [ebp - 0x100]
call fcn.00406f80
mov edx, dword [ebp - 0x104]
mov eax, ebx
mov ecx, 0x40d638
call fcn.004036b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d62a
lea eax, [ebp - 0x104]
call fcn.0040340c
ret
Function at 0x403060
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x403074
inc dword [0x4a2d9c]
add dword [0x49f430], 0xe8
mov edx, dword [0x49f430]
push esi
push edi
mov ecx, 0x3a
mov esi, 0x4a18f0
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 0x4030a3
push 0
mov eax, 0x4a4ca0
call fcn.00414fe0
cmp dword [0x4a2dc8], 0
mov dword [0x4a5280], 0
mov dword [0x4a5284], 0
je 0x4030cb
push 0x4a3438
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [esp + 0x10], 0
jne 0x40314f
or ecx, 0xffffffff
cmp byte [esi + 0xc6], 0
jne 0x4030fa
xor eax, eax
cmp byte [esp + 0x14], 0x65
sete al
mov byte [esi + 0xc6], al
test al, al
je 0x4030fa
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4a528c], 0
je 0x40310c
cmp dword [0x4a5288], 0
jne 0x403115
cmp byte [esi + 0xc6], 0
je 0x40314f
cmp byte [esi + 0xc6], 0
mov byte [esi + 0xc4], 0
jne 0x40314f
cmp dword [0x4a528c], 0
jge 0x403137
pop edi
mov dword [esi + 0xb8], ecx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xb4], eax
mov edx, dword [0x4a528c]
mov dword [esi + 0xb8], edx
pop edi
pop esi
ret
Function at 0x403da0
Capabilities:
Write clipboard data

Disassembly:
cmp dword [0x4a4c90], 0
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
je 0x403db8
pop ebp
xor eax, eax
pop ebx
ret 4
push esi
test ebp, ebp
je 0x403e05
cmp ebx, 0xffffffff
jne 0x403dd2
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403dc7
sub eax, edx
mov ebx, eax
test ebx, ebx
je 0x403e05
push edi
lea edi, [ebx + 1]
mov esi, 0x4a4c84
call fcn.00403e20
pop edi
test eax, eax
jne 0x403def
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [0x4a4c90]
push ebx
push ebp
push eax
mov esi, eax
call fcn.00481870
add esp, 0xc
mov byte [esi + ebx], 0
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 1
mov ecx, 0x4a4c84
jmp fcn.00403e90

Function at 0x403e90
Capabilities:
Write clipboard data

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x18], edi
jne 0x403eb4
push esi
call fcn.004041b0
test eax, eax
jne 0x403eb4
push str.Cant_open_clipboard_for_writing.
call fcn.00403fa0
pop edi
pop esi
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x403eee
cmp dword [esi + 0x18], edi
je 0x403edf
cmp dword [esi + 8], edi
je 0x403ed4
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
push 0x4929e0
call fcn.00403fa0
pop edi
pop esi
ret 4
mov ecx, dword [esi + 4]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp ecx, edi
je 0x403f31
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x403f59
cmp dword [esp + 0x10], 0xd
push ebx
jne 0x403f10
cmp word [eax], di
jmp 0x403f13
cmp byte [eax], 0
push ecx
sete bl
call ebp
test bl, bl
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], edi
pop ebx
je 0x403f59
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], edi
je 0x403f4e
cmp dword [esi + 8], edi
je 0x403f43
mov edx, dword [esi]
push edx
call ebp
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
pop ebp
pop edi
mov eax, 1
pop esi
ret 4
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x403f71
mov dword [esi + 4], edi
jmp 0x403f31
cmp dword [esi + 0x18], edi
je 0x403f8e
cmp dword [esi + 8], edi
je 0x403f83
mov ecx, dword [esi]
push ecx
call ebp
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
push 0x4929f0
call fcn.00403fa0
pop ebp
pop edi
pop esi
ret 4
Function at 0x404070
Capabilities:
Check for time delay via gettickcount
Read clipboard data

Disassembly:
lea eax, [esi - 0xc000]
sub esp, 0x108
cmp eax, 0x3fff
ja 0x40410d
push 0x104
lea ecx, [esp + 4]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameA]
push 0xb
lea edx, [esp + 4]
push str.Link_Source
push edx
call fcn.0047f49b
add esp, 0xc
test eax, eax
je 0x404104
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.0047ea31
add esp, 8
test eax, eax
je 0x404104
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.0047ea31
add esp, 8
test eax, eax
je 0x404104
lea edx, [esp]
push str.Native
push edx
call fcn.0047ea31
add esp, 8
test eax, eax
je 0x404104
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.0047ea31
add esp, 8
test eax, eax
jne 0x404111
xor eax, eax
add esp, 0x108
ret
mov byte [esp], 0
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call ebp
mov edi, dword [sym.imp.USER32.dll_GetClipboardData]
push esi
mov ebx, eax
call edi
test eax, eax
jne 0x4041a0
jmp 0x404130
cmp esi, 0xf
je 0x40419e
lea ecx, [esp + 0xc]
push str.OwnerLink
push ecx
call fcn.0047ea31
add esp, 8
test eax, eax
je 0x40419e
mov eax, dword [0x49f390]
cmp eax, 0xffffffff
je 0x40416a
test eax, eax
je 0x40419e
call ebp
mov edx, dword [0x49f390]
add edx, ebx
sub edx, eax
cmp edx, 5
jle 0x40419e
push 1
push 0x8000012f
mov dword [0x49f394], 0
call fcn.004012a0
add esp, 8
push esi
mov dword [0x49f394], 1
call edi
test eax, eax
je 0x404130
pop edi
pop ebp
pop ebx
add esp, 0x108
ret
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x108
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0
je 0x4041c2
mov eax, 1
ret 4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov ecx, dword [0x4a2c30]
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
push ecx
mov edi, eax
call ebx
test eax, eax
jne 0x404230
mov eax, dword [0x49f390]
cmp eax, 0xffffffff
je 0x404201
test eax, eax
je 0x404246
call esi
mov edx, dword [0x49f390]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x404246
push 1
push 0x8000012f
mov dword [0x49f394], 0
call fcn.004012a0
mov eax, dword [0x4a2c30]
add esp, 8
push eax
mov dword [0x49f394], 1
call ebx
test eax, eax
je 0x4041e2
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 0x407380
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
cmp byte [0x4a1b3a], 0
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
je 0x40743b
mov al, byte [0x4a1b42]
cmp al, 0xa0
je 0x4073a6
cmp al, 0x10
jne 0x40743b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4a1b3c]
cmp eax, 0x16
jae 0x40743b
test ebp, 0x100
jne case.0x4073d7.13
movzx eax, byte [esp + 0x14]
add eax, 0xfffffff4
cmp eax, 0x22
ja case.0x4073d7.13
movzx eax, byte [eax + 0x4075e4]
jmp dword [eax*4 + 0x4075dc]
mov cl, 1
jmp 0x4073e4
xor cl, cl
cmp byte [0x4a1b3b], 0
jne 0x407401
xor ecx, ecx
nop
cmp byte [ecx + 0x4a1b24], 0
jne 0x40740c
inc ecx
cmp ecx, 0x16
jl 0x4073f0
jmp 0x40743b
cmp byte [esp + 0x1c], 0
je 0x407415
test cl, cl
je 0x40743b
mov byte [0x4a1b43], 1
jmp 0x407419
test cl, cl
je 0x40743b
mov cl, byte [0x4a1a47]
mov dl, byte [0x4a1a46]
mov al, byte [0x4a1a45]
mov byte [0x4a2c2f], cl
mov byte [0x4a2c60], dl
mov byte [0x4a2cf0], al
mov cl, byte [0x4a2c2f]
movzx esi, byte [esp + 0x14]
mov dl, byte [0x4a2c60]
mov al, byte [0x4a2cf0]
mov byte [0x4a1a47], cl
lea ecx, [esi + esi*8]
mov byte [0x4a1a46], dl
mov edx, dword [0x4a3568]
shl ecx, 5
mov bl, byte [ecx + edx + 4]
mov byte [0x4a1a45], al
test bl, bl
je case.default.0x4075b2
cmp dword [edi + 0x10], 0xffc3d44f
setne dl
test byte [edi + 8], 0x10
mov byte [esp + 0xf], dl
je 0x407492
xor al, al
jmp 0x4074a7
mov eax, dword [esp + 0x1c]
push eax
mov al, byte [esp + 0x18]
call fcn.00407640
mov dl, byte [esp + 0x13]
add esp, 4
cmp byte [esp + 0x1c], 0
mov byte [esp + 0x18], al
je 0x40757e
cmp byte [esp + 0x20], 0
jne 0x4074d1
mov cl, bl
not cl
and byte [0x4a2c2d], cl
test dl, dl
je 0x4074d1
and byte [0x4a2c2e], cl
cmp byte [esp + 0x18], 0
je case.default.0x4075b2
not bl
and byte [0x4a2c2f], bl
lea ecx, [esi - 0xa0]
mov byte [esi + 0x4a2c50], 0
cmp ecx, 5
ja case.default.0x4075b2
jmp dword [ecx*4 + 0x407608]
mov cl, byte [0x4a2cf1]
mov byte [0x4a2c60], cl
jmp case.default.0x4075b2
mov dl, byte [0x4a2cf0]
mov byte [0x4a2c60], dl
jmp case.default.0x4075b2
mov al, byte [0x4a2cf3]
mov byte [0x4a2c61], al
jmp case.default.0x4075b2
mov cl, byte [0x4a2cf2]
mov byte [0x4a2c61], cl
jmp case.default.0x4075b2
mov dl, byte [0x4a2cf5]
mov byte [0x4a2c62], dl
jmp case.default.0x4075b2
mov al, byte [0x4a2cf4]
mov byte [0x4a2c62], al
test byte [edi + 8], 0x10
mov al, byte [esp + 0x14]
mov ecx, dword [esp + 0x1c]
pop esi
mov word [0x4a1b40], bp
pop ebp
mov byte [0x4a1b42], al
mov byte [0x4a1b3b], cl
pop ebx
je 0x4075c0
xor al, al
mov byte [0x4a1b3a], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4a1b3c], eax
pop ecx
ret
cmp byte [esp + 0x20], 0
jne 0x407595
or byte [0x4a2c2d], bl
test dl, dl
je 0x407595
or byte [0x4a2c2e], bl
test al, al
je case.default.0x4075b2
or byte [0x4a2c2f], bl
lea ecx, [esi - 0xa0]
mov al, 0x80
mov byte [esi + 0x4a2c50], al
cmp ecx, 5
ja case.default.0x4075b2
jmp dword [ecx*4 + 0x407620]
mov byte [0x4a2c60], al
jmp case.default.0x4075b2
push ecx
call fcn.00407640
add esp, 4
mov byte [0x4a1b3a], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4a1b3c], eax
pop ecx
ret
Function at 0x407640
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp al, 0xa0
je 0x40764f
cmp al, 0x10
jne case.0x4076a6.13
cmp byte [esp + 8], 0
jne case.0x4076a6.13
cmp byte [0x4a1b43], 0
je 0x40767b
xor eax, eax
cmp byte [eax + 0x4a1b24], 0
jne 0x40767b
inc eax
cmp eax, 0x16
jl 0x407661
mov byte [0x4a1b43], 0
xor al, al
pop esi
ret
cmp byte [0x4a1b3b], 0
je case.0x4076a6.13
test dword [0x4a1b40], 0x100
jne case.0x4076a6.13
movzx eax, byte [0x4a1b42]
add eax, 0xfffffff4
cmp eax, 0x22
ja case.0x4076a6.13
movzx eax, byte [eax + 0x4076d0]
jmp dword [eax*4 + 0x4076c8]
call esi
sub eax, dword [0x4a1b3c]
cmp eax, 0x16
jb 0x407677
call esi
mov dword [0x4a5490], eax
mov al, 1
pop esi
ret
Function at 0x4084d0
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 [0x4a2d60], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x4084f4
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4a2d64], 0
je 0x408503
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x408710
test al, al
jne 0x408546
cmp byte [ebp + 0xc], al
jne 0x408546
push 0x4a1b20
push 0
push 0
push 0x4087e0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4a54c0], eax
test eax, eax
je 0x4085d7
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 [0x4a1b20]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
test eax, eax
jne 0x40857c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x408556
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 0x4085e3
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x40864a
cmp dword [esp + 0x2c], 0
je 0x4085f2
mov byte [esp + 0x1f], 1
call fcn.00408b80
test al, al
jne 0x4085f2
cmp byte [ebp + 0xc], al
jne 0x4086de
mov byte [ebp + 8], al
jmp 0x408591
call fcn.00408ba0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x40862e
call fcn.00408b80
test al, al
jne 0x40864a
cmp byte [ebp + 0xc], 0
jne 0x4086d7
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4a2d60], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
je 0x408682
test byte [esp + 0x1e], 1
jne 0x40869b
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4a3554], eax
jmp 0x40869b
mov ecx, dword [0x4a54c0]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x408662
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x4085f2
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x408591
mov edx, dword [0x4a54c0]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [0x4a54c0], 0
call fcn.00408ba0
jmp 0x408602
test byte [esp + 0x1e], 1
je 0x40869b
mov eax, dword [0x4a3554]
push eax
call edi
mov dword [0x4a3554], 0
cmp dword [0x4a2d64], 0
je 0x4086bd
test byte [esp + 0x1e], 2
jne 0x4086d7
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4a3558], eax
jmp 0x4086d7
test byte [esp + 0x1e], 2
je 0x4086d7
mov ecx, dword [0x4a3558]
push ecx
call edi
mov dword [0x4a3558], 0
cmp byte [esp + 0x1f], 0
je 0x408710
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 [0x49f394], 0
call fcn.004708e0
add esp, 0x18
mov dword [0x49f394], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409db0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x838
cmp byte [0x4a54c4], 0
push esi
push edi
jne 0x409f66
cmp dword [0x4a3570], 0
jne 0x409ddf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4a3570], eax
mov edi, 1
add dword [0x4a54c8], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x4a54c8]
mov esi, dword [0x49f3a8]
mov ecx, eax
sub ecx, dword [0x4a3570]
mov dword [0x4a3574], eax
cmp edx, dword [0x49f3a4]
jbe 0x409e96
cmp ecx, esi
jae 0x409e96
push ecx
push edx
mov dword [esp + 0x44], edi
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 + 0x4c]
call fcn.0046c360
add esp, 0xc
call fcn.00408fb0
fldz
push 0
sub esp, 8
fstp qword [esp]
push 0
mov eax, edi
push 4
push eax
mov byte [0x4a54c4], 1
mov dword [0x49f394], 0
call fcn.004708e0
add esp, 0x18
cmp eax, 7
jne 0x409e7a
push 0
xor eax, eax
push 0x4a4ca0
lea ecx, [eax + 1]
call fcn.00415350
mov eax, dword [0x4a3574]
mov edx, dword [esp + 0x3c]
mov dword [0x49f394], 1
mov byte [0x4a54c4], 0
jmp 0x409e9c
xor edx, edx
cmp ecx, esi
jbe 0x409eb3
mov dword [0x4a54c8], 0
mov dword [0x4a3570], eax
test edx, edx
jne 0x409f66
mov esi, dword [ebp + 8]
mov cl, byte [esi + 0x11]
mov byte [0x4a5259], cl
cmp byte [esi + 0x1a], 0
je 0x409f2a
cmp byte [esi + 0x1b], 0
je 0x409f2a
mov byte [esp + 0x3b], 1
call fcn.0040b720
mov ecx, dword [0x49f430]
inc byte [ebx + 0x1f]
mov eax, dword [ebx]
mov esi, dword [ecx + 0x9c]
push 0
push 0
mov dword [ecx + 0x9c], eax
mov ecx, dword [eax + 4]
push 1
call fcn.00423d10
mov edx, dword [0x49f430]
mov dword [edx + 0x9c], esi
dec byte [ebx + 0x1f]
cmp byte [esp + 0x3b], 0
mov edi, eax
je 0x409f1a
mov esi, dword [ebp + 8]
call fcn.0040b650
test edi, edi
jne 0x409f31
mov byte [ebx + 0x24], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov byte [esp + 0x3b], 0
jmp 0x409ed5
cmp byte [ebx + 0x24], 0
je 0x409f66
mov byte [ebx + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 4]
cmp eax, 0x3e8
ja 0x409f66
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
mov edx, dword [0x4a2c30]
push 0
push ecx
push 0x312
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4