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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsrchr]
test eax, eax
mov ebx, eax
mov eax, 0x415b90
cmove ebx, eax
mov eax, ebx
call sym._is_exe_file
test eax, eax
je 0x407f30
mov ebx, dword [ebp - 4]
mov eax, 1
leave
ret
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0x80000000
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov ebx, dword [ebp - 4]
sub esp, 0x10
test eax, eax
leave
sete al
movzx eax, al
add eax, eax
ret

Function at 0x408340
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x1c
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_ShowWindow]
mov dword [ebp - 0x14], eax
call eax
sub esp, 8
test ebx, ebx
je 0x40844a
mov eax, dword [ebp + 8]
and eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
and eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
mov edx, dword [esi + 0x84]
and eax, 0x10
test edx, edx
je 0x408470
test eax, eax
je 0x408440
cmp word [ebx + 0x44], 0x2e
je 0x4084e0
test edi, edi
je 0x4083c0
lea eax, [ebx + 0x44]
mov edx, edi
call sym._pattern_imatch
test eax, eax
je 0x408440
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x4083cd
test byte [ebx + 0x18], 6
jne 0x408440
mov eax, dword [ebp + 8]
and eax, 0xe
cmp eax, 0xe
je 0x408400
lea eax, [ebx + 0x44]
call sym._get_file_type
cmp eax, 1
je 0x4084d0
cmp eax, 2
je 0x408490
test byte [ebp + 8], 8
je 0x408440
lea esi, cs:[esi]
cmp dword [ebp + 0xc], 0xffffffff
mov eax, 0xffffffff
je 0x408411
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0x181
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
mov edx, dword [esi + 0x84]
sub esp, 0x10
test edx, edx
je 0x408440
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x4084a0
mov ebx, dword [ebx]
test ebx, ebx
jne 0x408383
mov eax, dword [esi]
mov dword [esp + 4], 5
mov dword [esp], eax
mov eax, dword [ebp - 0x14]
call eax
mov eax, dword [ebp + 0xc]
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
je 0x4083aa
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4083aa
mov ebx, dword [ebx]
test ebx, ebx
jne 0x408383
jmp 0x40844a
test byte [ebp + 8], 4
jne 0x408400
jmp 0x408440
mov edx, dword [ebx + 4]
test edx, edx
je 0x408440
mov eax, dword [ebp + 0xc]
mov ecx, edi
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, esi
call sym._insert_entries.part.0
mov ebx, dword [ebx]
mov dword [ebp + 0xc], eax
test ebx, ebx
jne 0x408383
jmp 0x40844a
test byte [ebp + 8], 2
jne 0x408400
jmp 0x408440
movzx eax, word [ebx + 0x46]
test ax, ax
je 0x408440
cmp ax, 0x2e
jne 0x4083aa
cmp word [ebx + 0x48], 0
jne 0x4083aa
jmp 0x408440
Function at 0x408910
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
mov esi, eax
push ebx
mov ebx, ecx
sub esp, 0x620
mov eax, dword [eax + 0x90]
mov dword [ebp - 0x618], edx
lea edx, [ebp - 0x214]
call sym._get_path
lea eax, [ebp - 0x214]
mov dword [esp + 0xc], sym._DestinationDlgProc_16
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov dword [esp + 4], 0x68
mov dword [esp + 8], eax
mov eax, dword [0x40c080]
mov dword [esp], eax
call dword [sym.imp.user32.dll_DialogBoxParamW]
sub esp, 0x14
cmp eax, 1
je 0x408980
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x618]
mov edi, eax
mov eax, dword [esi + 0x90]
call sym._get_path
movzx edx, word [ebp - 0x214]
cmp dx, 0x2f
je 0x4089ae
cmp word [ebp - 0x212], 0x3a
jne 0x408a50
xor eax, eax
jmp 0x4089c0
movzx edx, word [ebp + eax - 0x214]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x4089b8
lea eax, [ebp - 0x214]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x40896f
test al, 0x10
je 0x40896f
lea eax, [ebp - 0x414]
lea esi, [ebp - 0x614]
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x618]
mov dword [esp + 0xc], esi
mov dword [esp], eax
mov dword [esp + 4], 0
call dword [sym.imp.ucrtbase.dll__wsplitpath]
lea eax, [ebp - 0x414]
mov dword [esp], ebx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x214]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], str._s__s_s
call dword [sym.imp.user32.dll_wsprintfW]
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x90]
mov edx, ebx
mov eax, dword [eax + 8]
call sym._get_path
cmp word [ebx], 0
mov eax, ebx
je 0x408ab9
lea esi, cs:[esi]
add eax, 2
cmp word [eax], 0
jne 0x408a70
mov edx, eax
sub edx, ebx
lea esi, [edx - 2]
sar edx, 1
movzx esi, word [ebx + esi]
cmp si, 0x5c
je 0x408a9b
cmp si, 0x2f
je 0x408a9b
mov ecx, 0x2f
inc edx
mov word [eax], cx
lea esi, [ebx + edx*2]
xor eax, eax
movzx edx, word [ebp + eax - 0x214]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x408aa0
jmp 0x4089cc
xor edx, edx
mov esi, 0xfffffffe
jmp 0x408a82
Function at 0x40a3c0
Capabilities:
Set current directory

Disassembly:
test edx, edx
je 0x40a4a0
push ebp
mov ebp, esp
push esi
mov esi, edx
push ebx
mov ebx, eax
xor eax, eax
sub esp, 0x210
mov dword [ebx + 0x94], edx
mov word [ebp - 0x210], ax
mov eax, dword [edx + 4]
mov dword [ebx + 0x128], edx
test eax, eax
cmove eax, edx
mov dword [ebx + 0x124], eax
mov edx, dword [edx + 0x10]
test edx, edx
je 0x40a468
mov eax, ebx
call sym._refresh_right_pane
mov eax, esi
lea edx, [ebp - 0x210]
call sym._get_path
xor eax, eax
lea esi, cs:[esi]
nop
movzx edx, word [ebp + eax - 0x210]
mov word [ebx + eax + 0x164], dx
add eax, 2
test dx, dx
jne 0x40a420
mov eax, dword [ebx]
test eax, eax
je 0x40a454
lea ecx, [ebp - 0x210]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [sym.imp.user32.dll_SetWindowTextW]
sub esp, 8
cmp word [ebp - 0x210], 0
jne 0x40a480
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
mov edx, esi
mov dword [esp], eax
mov eax, ebx
call sym._scan_entry
jmp 0x40a408
lea eax, [ebp - 0x210]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
sub esp, 4
test eax, eax
je 0x40a45e
call sym._set_space_status
jmp 0x40a45e
ret

Function at 0x40a550
Capabilities:
Get disk size

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x9a0]
push ebx
sub esp, 0x9c0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x9a8]
mov dword [esp + 8], eax
lea eax, [ebp - 0x9b0]
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExW]
sub esp, 0x10
test eax, eax
jne 0x40a5f8
xor eax, eax
mov edx, 0x3f
lea ebx, [ebp - 0x810]
jmp 0x40a5b7
movzx edx, word [eax + 0x415c2c]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x40a5b0
mov eax, dword [0x40c0a8]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40b
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
lea esp, [edi - 8]
pop edi
ret
lea eax, [ebp - 0x910]
mov edx, dword [ebp - 0x9ac]
mov ebx, dword [sym.imp.shlwapi.dll_StrFormatByteSizeW]
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x9b0]
lea esi, [ebp - 0x990]
mov dword [esp + 4], edx
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x9a4]
sub esp, 0x10
mov dword [ebp - 0x998], eax
lea eax, [ebp - 0x890]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x9a8]
mov dword [esp + 4], edx
mov dword [esp + 0xc], 0x40
mov dword [esp], eax
call ebx
lea ebx, [ebp - 0x810]
mov dword [ebp - 0x994], eax
mov eax, dword [0x40c080]
sub esp, 0x10
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], esi
mov dword [esp + 4], 0x4c3
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
lea eax, [ebp - 0x998]
sub esp, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0x2400
call dword [sym.imp.kernel32.dll_FormatMessageW]
sub esp, 0x1c
jmp 0x40a5c3
Function at 0x405a19
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405cd7
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405a58
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4524a8], eax
jmp 0x405be2
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405a72
test eax, eax
je 0x405b90
test bl, 2
je 0x405b90
mov esi, 0x444098
push edi
push esi
call fcn.00406257
cmp dword [ebp + 8], 0
je 0x405a91
push 0x40a3cc
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405a97
push edi
call fcn.00405c30
cmp byte [edi], 0
jne 0x405aa5
cmp byte [0x444098], 0x5c
jne 0x405ab0
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405b86
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405c14
cmp byte [eax], 0
je 0x405af6
cmp byte [ebp - 0x1c], 0
je 0x405af6
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405b0c
mov al, byte [esi + 1]
test al, al
je 0x405b65
cmp al, 0x2e
jne 0x405b0c
cmp byte [esi + 2], 0
je 0x405b65
push esi
push ebx
call fcn.00406257
test byte [ebp - 0x14c], 0x10
je 0x405b31
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b65
push dword [ebp + 0xc]
push edi
call fcn.00405a19
jmp 0x405b65
push dword [ebp - 4]
push edi
call fcn.004059d1
test eax, eax
jne 0x405b5d
cmp dword [ebp - 4], eax
je 0x405b55
push edi
push 0xfffffffffffffff1
call fcn.00405378
push 0
push edi
call fcn.00406030
jmp 0x405b65
inc dword [0x4524a8]
jmp 0x405b65
push edi
push 0xfffffffffffffff2
call fcn.00405378
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405ad4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405b90
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405be2
cmp dword [ebp - 0xc], esi
jne 0x405ba4
inc dword [0x4524a8]
jmp 0x405be2
push edi
call fcn.004065ce
test eax, eax
je 0x405be2
push edi
call fcn.00405be9
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004059d1
test eax, eax
jne 0x405bda
cmp dword [ebp - 4], esi
je 0x405b9c
push edi
push 0xfffffffffffffff1
call fcn.00405378
push esi
push edi
call fcn.00406030
jmp 0x405be2
push edi
push 0xffffffffffffffe5
call fcn.00405378
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4030c0
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x4030d4
inc dword [0x4a2d5c]
add dword [0x49f440], 0xe8
mov edx, dword [0x49f440]
push esi
push edi
mov ecx, 0x3a
mov esi, 0x4a18b0
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 0x403103
push 0
mov eax, 0x4a4c40
call fcn.004151c0
cmp dword [0x4a2d88], 0
mov dword [0x4a5220], 0
mov dword [0x4a5224], 0
je 0x40312b
push 0x4a33f8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [esp + 0x10], 0
jne 0x4031af
or ecx, 0xffffffff
cmp byte [esi + 0xca], 0
jne 0x40315a
xor eax, eax
cmp byte [esp + 0x14], 0x64
sete al
mov byte [esi + 0xca], al
test al, al
je 0x40315a
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4a522c], 0
je 0x40316c
cmp dword [0x4a5228], 0
jne 0x403175
cmp byte [esi + 0xca], 0
je 0x4031af
cmp byte [esi + 0xca], 0
mov byte [esi + 0xc8], 0
jne 0x4031af
cmp dword [0x4a522c], 0
jge 0x403197
pop edi
mov dword [esi + 0xbc], ecx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xb8], eax
mov edx, dword [0x4a522c]
mov dword [esi + 0xbc], edx
pop edi
pop esi
ret
Function at 0x403e10
Capabilities:
Write clipboard data

Disassembly:
cmp dword [0x4a5284], 0
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
je 0x403e28
pop ebp
xor eax, eax
pop ebx
ret 4
push esi
test ebp, ebp
je 0x403e75
cmp ebx, 0xffffffff
jne 0x403e42
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403e37
sub eax, edx
mov ebx, eax
test ebx, ebx
je 0x403e75
push edi
lea edi, [ebx + 1]
mov esi, 0x4a5278
call fcn.00403e90
pop edi
test eax, eax
jne 0x403e5f
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [0x4a5284]
push ebx
push ebp
push eax
mov esi, eax
call fcn.00481f40
add esp, 0xc
mov byte [esi + ebx], 0
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 1
mov ecx, 0x4a5278
jmp fcn.00403f00

Function at 0x403f00
Capabilities:
Write clipboard data

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x18], edi
jne 0x403f24
push esi
call fcn.00404220
test eax, eax
jne 0x403f24
push str.Cant_open_clipboard_for_writing.
call fcn.00404010
pop edi
pop esi
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x403f5e
cmp dword [esi + 0x18], edi
je 0x403f4f
cmp dword [esi + 8], edi
je 0x403f44
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 0x4929e8
call fcn.00404010
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 0x403fa1
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x403fc9
cmp dword [esp + 0x10], 0xd
push ebx
jne 0x403f80
cmp word [eax], di
jmp 0x403f83
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 0x403fc9
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 0x403fbe
cmp dword [esi + 8], edi
je 0x403fb3
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 0x403fe1
mov dword [esi + 4], edi
jmp 0x403fa1
cmp dword [esi + 0x18], edi
je 0x403ffe
cmp dword [esi + 8], edi
je 0x403ff3
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 0x4929f8
call fcn.00404010
pop ebp
pop edi
pop esi
ret 4
Function at 0x4040e0
Capabilities:
Check for time delay via gettickcount
Read clipboard data

Disassembly:
lea eax, [esi - 0xc000]
sub esp, 0x108
cmp eax, 0x3fff
ja 0x40417d
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.0047fb6b
add esp, 0xc
test eax, eax
je 0x404174
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.0047f101
add esp, 8
test eax, eax
je 0x404174
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.0047f101
add esp, 8
test eax, eax
je 0x404174
lea edx, [esp]
push str.Native
push edx
call fcn.0047f101
add esp, 8
test eax, eax
je 0x404174
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.0047f101
add esp, 8
test eax, eax
jne 0x404181
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 0x404210
jmp 0x4041a0
cmp esi, 0xf
je 0x40420e
lea ecx, [esp + 0xc]
push str.OwnerLink
push ecx
call fcn.0047f101
add esp, 8
test eax, eax
je 0x40420e
mov eax, dword [0x49f3a0]
cmp eax, 0xffffffff
je 0x4041da
test eax, eax
je 0x40420e
call ebp
mov edx, dword [0x49f3a0]
add edx, ebx
sub edx, eax
cmp edx, 5
jle 0x40420e
push 1
push 0x8000012f
mov dword [0x49f3a4], 0
call fcn.00401280
add esp, 8
push esi
mov dword [0x49f3a4], 1
call edi
test eax, eax
je 0x4041a0
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 0x404220
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0
je 0x404232
mov eax, 1
ret 4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov ecx, dword [0x4a2bf0]
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
push ecx
mov edi, eax
call ebx
test eax, eax
jne 0x4042a0
mov eax, dword [0x49f3a0]
cmp eax, 0xffffffff
je 0x404271
test eax, eax
je 0x4042b6
call esi
mov edx, dword [0x49f3a0]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x4042b6
push 1
push 0x8000012f
mov dword [0x49f3a4], 0
call fcn.00401280
mov eax, dword [0x4a2bf0]
add esp, 8
push eax
mov dword [0x49f3a4], 1
call ebx
test eax, eax
je 0x404252
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 0x4073e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
cmp byte [0x4a1afa], 0
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
je 0x40749b
mov al, byte [0x4a1b02]
cmp al, 0xa0
je 0x407406
cmp al, 0x10
jne 0x40749b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4a1afc]
cmp eax, 0x16
jae 0x40749b
test ebp, 0x100
jne case.0x407437.13
movzx eax, byte [esp + 0x14]
add eax, 0xfffffff4
cmp eax, 0x22
ja case.0x407437.13
movzx eax, byte [eax + 0x407644]
jmp dword [eax*4 + 0x40763c]
mov cl, 1
jmp 0x407444
xor cl, cl
cmp byte [0x4a1afb], 0
jne 0x407461
xor ecx, ecx
nop
cmp byte [ecx + 0x4a1ae4], 0
jne 0x40746c
inc ecx
cmp ecx, 0x16
jl 0x407450
jmp 0x40749b
cmp byte [esp + 0x1c], 0
je 0x407475
test cl, cl
je 0x40749b
mov byte [0x4a1b03], 1
jmp 0x407479
test cl, cl
je 0x40749b
mov cl, byte [0x4a1a07]
mov dl, byte [0x4a1a06]
mov al, byte [0x4a1a05]
mov byte [0x4a2bef], cl
mov byte [0x4a2c20], dl
mov byte [0x4a2cb0], al
mov cl, byte [0x4a2bef]
movzx esi, byte [esp + 0x14]
mov dl, byte [0x4a2c20]
mov al, byte [0x4a2cb0]
mov byte [0x4a1a07], cl
lea ecx, [esi + esi*8]
mov byte [0x4a1a06], dl
mov edx, dword [0x4a3528]
shl ecx, 5
mov bl, byte [ecx + edx + 4]
mov byte [0x4a1a05], al
test bl, bl
je case.default.0x407612
cmp dword [edi + 0x10], 0xffc3d44f
setne dl
test byte [edi + 8], 0x10
mov byte [esp + 0xf], dl
je 0x4074f2
xor al, al
jmp 0x407507
mov eax, dword [esp + 0x1c]
push eax
mov al, byte [esp + 0x18]
call fcn.004076a0
mov dl, byte [esp + 0x13]
add esp, 4
cmp byte [esp + 0x1c], 0
mov byte [esp + 0x18], al
je 0x4075de
cmp byte [esp + 0x20], 0
jne 0x407531
mov cl, bl
not cl
and byte [0x4a2bed], cl
test dl, dl
je 0x407531
and byte [0x4a2bee], cl
cmp byte [esp + 0x18], 0
je case.default.0x407612
not bl
and byte [0x4a2bef], bl
lea ecx, [esi - 0xa0]
mov byte [esi + 0x4a2c10], 0
cmp ecx, 5
ja case.default.0x407612
jmp dword [ecx*4 + 0x407668]
mov cl, byte [0x4a2cb1]
mov byte [0x4a2c20], cl
jmp case.default.0x407612
mov dl, byte [0x4a2cb0]
mov byte [0x4a2c20], dl
jmp case.default.0x407612
mov al, byte [0x4a2cb3]
mov byte [0x4a2c21], al
jmp case.default.0x407612
mov cl, byte [0x4a2cb2]
mov byte [0x4a2c21], cl
jmp case.default.0x407612
mov dl, byte [0x4a2cb5]
mov byte [0x4a2c22], dl
jmp case.default.0x407612
mov al, byte [0x4a2cb4]
mov byte [0x4a2c22], al
test byte [edi + 8], 0x10
mov al, byte [esp + 0x14]
mov ecx, dword [esp + 0x1c]
pop esi
mov word [0x4a1b00], bp
pop ebp
mov byte [0x4a1b02], al
mov byte [0x4a1afb], cl
pop ebx
je 0x407620
xor al, al
mov byte [0x4a1afa], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4a1afc], eax
pop ecx
ret
cmp byte [esp + 0x20], 0
jne 0x4075f5
or byte [0x4a2bed], bl
test dl, dl
je 0x4075f5
or byte [0x4a2bee], bl
test al, al
je case.default.0x407612
or byte [0x4a2bef], bl
lea ecx, [esi - 0xa0]
mov al, 0x80
mov byte [esi + 0x4a2c10], al
cmp ecx, 5
ja case.default.0x407612
jmp dword [ecx*4 + 0x407680]
mov byte [0x4a2c20], al
jmp case.default.0x407612
push ecx
call fcn.004076a0
add esp, 4
mov byte [0x4a1afa], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4a1afc], eax
pop ecx
ret
Function at 0x4076a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp al, 0xa0
je 0x4076af
cmp al, 0x10
jne case.0x407706.13
cmp byte [esp + 8], 0
jne case.0x407706.13
cmp byte [0x4a1b03], 0
je 0x4076db
xor eax, eax
cmp byte [eax + 0x4a1ae4], 0
jne 0x4076db
inc eax
cmp eax, 0x16
jl 0x4076c1
mov byte [0x4a1b03], 0
xor al, al
pop esi
ret
cmp byte [0x4a1afb], 0
je case.0x407706.13
test dword [0x4a1b00], 0x100
jne case.0x407706.13
movzx eax, byte [0x4a1b02]
add eax, 0xfffffff4
cmp eax, 0x22
ja case.0x407706.13
movzx eax, byte [eax + 0x407730]
jmp dword [eax*4 + 0x407728]
call esi
sub eax, dword [0x4a1afc]
cmp eax, 0x16
jb 0x4076d7
call esi
mov dword [0x4a544c], eax
mov al, 1
pop esi
ret
Function at 0x408540
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 [0x4a2d20], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x408564
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4a2d24], 0
je 0x408573
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x408780
test al, al
jne 0x4085b6
cmp byte [ebp + 0xc], al
jne 0x4085b6
push 0x4a1ae0
push 0
push 0
push 0x408850
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4a5480], eax
test eax, eax
je 0x408647
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 [0x4a1ae0]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
test eax, eax
jne 0x4085ec
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x4085c6
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 0x408653
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x4086ba
cmp dword [esp + 0x2c], 0
je 0x408662
mov byte [esp + 0x1f], 1
call fcn.00408bf0
test al, al
jne 0x408662
cmp byte [ebp + 0xc], al
jne 0x40874e
mov byte [ebp + 8], al
jmp 0x408601
call fcn.00408c10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x40869e
call fcn.00408bf0
test al, al
jne 0x4086ba
cmp byte [ebp + 0xc], 0
jne 0x408747
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4a2d20], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
je 0x4086f2
test byte [esp + 0x1e], 1
jne 0x40870b
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4a3514], eax
jmp 0x40870b
mov ecx, dword [0x4a5480]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x4086d2
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x408662
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x408601
mov edx, dword [0x4a5480]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [0x4a5480], 0
call fcn.00408c10
jmp 0x408672
test byte [esp + 0x1e], 1
je 0x40870b
mov eax, dword [0x4a3514]
push eax
call edi
mov dword [0x4a3514], 0
cmp dword [0x4a2d24], 0
je 0x40872d
test byte [esp + 0x1e], 2
jne 0x408747
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4a3518], eax
jmp 0x408747
test byte [esp + 0x1e], 2
je 0x408747
mov ecx, dword [0x4a3518]
push ecx
call edi
mov dword [0x4a3518], 0
cmp byte [esp + 0x1f], 0
je 0x408780
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 [0x49f3a4], 0
call fcn.00470d60
add esp, 0x18
mov dword [0x49f3a4], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret