joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405840
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405891
xor eax, eax
jmp 0x4058b8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4058b8
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40588d
call esi
pop esi
leave
ret 4

Function at 0x4058f2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x426730], 0x44
push eax
xor eax, eax
push 0x426730
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405931
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4059bb
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405dc2
mov edi, eax
cmp edi, 0xffffffff
je 0x4059fc
test byte [esp + 0x10], 1
push esi
je 0x4059de
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4059e4
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4059ed
xor eax, eax
inc eax
jmp 0x4059fe
test byte [esp + 0x10], 4
jne 0x4059fc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405a03
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
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.00405cce
test bl, 8
mov dword [ebp - 8], eax
je 0x405a42
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a2c8], eax
jmp 0x405bbf
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405a5c
test eax, eax
je 0x405b6d
test bl, 2
je 0x405b6d
mov esi, 0x425730
push edi
push esi
call fcn.00406212
cmp dword [ebp + 8], 0
je 0x405a7b
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405a81
push edi
call fcn.00405c12
cmp word [edi], 0
jne 0x405a91
cmp word [0x425730], 0x5c
jne 0x405a9c
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405b62
cmp word [ebp - 0x22c], 0x2e
jne 0x405ae6
cmp word [ebp - 0x22a], 0
je 0x405b45
cmp word [ebp - 0x22a], 0x2e
jne 0x405ae6
cmp word [ebp - 0x228], 0
je 0x405b45
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406212
test byte [ebp - 0x258], 0x10
je 0x405b11
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b45
push dword [ebp + 0xc]
push edi
call fcn.00405a03
jmp 0x405b45
push dword [ebp - 4]
push edi
call fcn.004059bb
test eax, eax
jne 0x405b3d
cmp dword [ebp - 4], eax
je 0x405b35
push edi
push 0xfffffffffffffff1
call fcn.00405371
push 0
push edi
call fcn.004060b3
jmp 0x405b45
inc dword [0x42a2c8]
jmp 0x405b45
push edi
push 0xfffffffffffffff2
call fcn.00405371
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405abe
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405b6d
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405bbf
cmp dword [ebp - 8], esi
jne 0x405b81
inc dword [0x42a2c8]
jmp 0x405bbf
push edi
call fcn.00406555
test eax, eax
je 0x405bbf
push edi
call fcn.00405bc6
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004059bb
test eax, eax
jne 0x405bb7
cmp dword [ebp - 4], esi
je 0x405b79
push edi
push 0xfffffffffffffff1
call fcn.00405371
push esi
push edi
call fcn.004060b3
jmp 0x405bbf
push edi
push 0xffffffffffffffe5
call fcn.00405371
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405cce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dc2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405e16
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a580]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a584]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405e66
test edi, edi
jne 0x405e23
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405e60
Function at 0x405f41
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, 0x426dc8
push 0x40a5a4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405f8f
push 1
push 0
push esi
call fcn.00405de7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x4060ae
cmp eax, edi
jg 0x4060ae
mov esi, 0x4275c8
push edi
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x4060ae
cmp eax, edi
jg 0x4060ae
push esi
push ebx
push str._ls_ls_r_n
push 0x4269c8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42a250]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406234
push 4
push 0xc0000000
push esi
call fcn.00405de7
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4060ae
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4060a7
push edi
push esi
push ebp
call fcn.00405e6a
test eax, eax
je 0x4060a7
push str._Rename__r_n
push esi
call fcn.00405d4c
test eax, eax
jne 0x406045
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40607a
add eax, 0xa
push 0x40a588
push eax
call fcn.00405d4c
mov ebp, eax
test ebp, ebp
je 0x406076
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406067
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406061
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x40607c
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4269c8
push eax
call fcn.00405da2
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405e99
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4060b3
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4060d6
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405f41
pop ecx
pop ecx
inc dword [0x42a2d0]
ret 8
Function at 0x4060df
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406153
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406140
cmp dword [ebp + 0x14], 1
je 0x406143
cmp dword [ebp + 0x14], 2
je 0x406143
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x40657c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4065a0
xor eax, eax
test eax, eax
je 0x4065b3
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4065b3
xor ecx, ecx
jmp 0x4065b6
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x40669d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406705
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4066e7
pop edi
not eax
pop esi
ret 0xc
Function at 0x404090
Capabilities:
Set current directory

Disassembly:
push ecx
cmp byte [esp + 8], 0
mov eax, ecx
push ebx
mov ebx, dword [0x4c8024]
mov ecx, 0x3a
push esi
push edi
mov byte [esp + 0xf], dl
mov esi, 0x4ca640
je 0x4040d8
inc dword [0x4ca73c]
add ebx, 0xe8
mov edi, ebx
mov dword [0x4c8024], ebx
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, 0x4cc848
mov dword [ebx + 0x2c], eax
call fcn.00423990
jmp 0x4040df
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x2c], eax
cmp dword [0x4ca750], 0
xorps xmm0, xmm0
movlpd qword [0x4cce80], xmm0
je 0x40410f
mov eax, dword [0x4c9994]
mov ecx, 0x4b6ba9
test eax, eax
je 0x404108
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [esp + 0xf], 0
jne 0x404194
mov cl, byte [ebx + 0xce]
test cl, cl
jne 0x404144
cmp byte [esp + 0x18], 0x65
sete cl
mov byte [ebx + 0xce], cl
jne 0x404144
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x24], 0xffffffff
cmp dword [0x4cce8c], 0
je 0x404156
cmp dword [0x4cce88], 0
jne 0x40415a
test cl, cl
je 0x404194
mov byte [ebx + 0xcc], 0
test cl, cl
jne 0x404194
cmp dword [0x4cce8c], 0
jge 0x40417d
pop edi
pop esi
mov dword [ebx + 0xc0], 0xffffffff
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0xbc], eax
mov eax, dword [0x4cce8c]
mov dword [ebx + 0xc0], eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4056e0
Capabilities:
Write clipboard data

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
jne 0x405702
call fcn.004059c0
test eax, eax
jne 0x405702
push str.Cant_open_clipboard_for_writing.
mov ecx, esi
call fcn.00405820
pop esi
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x405748
cmp dword [esi + 0x18], eax
je 0x405738
cmp dword [esi + 8], eax
je 0x405725
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], 0
mov dword [esi], 0
push 0x4b6f04
mov ecx, esi
call fcn.00405820
pop esi
ret 4
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
je 0x405795
mov ecx, dword [esi + 0xc]
push ebx
xor bl, bl
test ecx, ecx
je 0x405786
cmp dword [esp + 0x10], 0xd
jne 0x40576d
cmp word [ecx], 0
jmp 0x40576f
cmp byte [ecx], bl
push eax
sete bl
call edi
mov eax, dword [esi + 4]
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
test bl, bl
pop ebx
push eax
je 0x4057c9
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], 0
je 0x4057bf
cmp dword [esi + 8], 0
je 0x4057ac
push dword [esi]
call edi
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], 0
mov dword [esi], 0
pop edi
mov eax, 1
pop esi
ret 4
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x4057e0
mov dword [esi + 4], 0
jmp 0x405795
cmp dword [esi + 0x18], 0
je 0x40580a
cmp dword [esi + 8], 0
je 0x4057f7
push dword [esi]
call edi
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], 0
mov dword [esi], 0
push 0x4b6f14
mov ecx, esi
call fcn.00405820
pop edi
pop esi
ret 4
Function at 0x4058b0
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x108
push ebx
push esi
mov esi, dword [esp + 0x118]
push edi
test esi, esi
je 0x4058ca
mov dword [esi], 0
mov ebx, dword [esp + 0x118]
lea eax, [ebx - 0xc000]
cmp eax, 0x3fff
ja 0x4059a0
push 0x104
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClipboardFormatNameA]
push 0xb
lea eax, [esp + 0x10]
push str.Link_Source
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
je 0x405992
mov edi, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
lea eax, [esp + 0xc]
push str.ObjectLink
push eax
call edi
add esp, 8
test eax, eax
je 0x405992
lea eax, [esp + 0xc]
push str.OwnerLink
push eax
call edi
add esp, 8
test eax, eax
je 0x405992
lea eax, [esp + 0xc]
push str.Native
push eax
call edi
add esp, 8
test eax, eax
je 0x405992
lea eax, [esp + 0xc]
push str.Embed_Source
push eax
call edi
add esp, 8
test eax, eax
je 0x405992
lea eax, [esp + 0xc]
push str.MSDEVColumnSelect
push eax
call edi
add esp, 8
test eax, eax
je 0x405988
lea eax, [esp + 0xc]
push str.MSDEVLineSelect
push eax
call edi
add esp, 8
test eax, eax
jne 0x4059a5
test esi, esi
je 0x405992
mov dword [esi], 1
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x108
ret 8
mov byte [esp + 0xc], 0
push ebx
call dword [sym.imp.USER32.dll_GetClipboardData]
pop edi
pop esi
pop ebx
add esp, 0x108
ret 8

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
mov ebx, ecx
push ebp
push esi
push edi
cmp dword [ebx + 0x18], 0
jne 0x405a45
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
push dword [0x4ca754]
mov edi, dword [sym.imp.USER32.dll_OpenClipboard]
mov ebp, eax
call edi
test eax, eax
jne 0x405a3e
nop
mov eax, dword [0x4c8030]
cmp eax, 0xffffffff
je 0x405a0f
test eax, eax
je 0x405a52
call esi
mov ecx, dword [0x4c8030]
add ecx, ebp
sub ecx, eax
cmp ecx, 5
jle 0x405a52
mov edx, 1
mov dword [0x4c801c], 0
mov ecx, 0x8000012f
call fcn.00401730
push dword [0x4ca754]
mov dword [0x4c801c], 1
call edi
test eax, eax
je 0x4059f0
mov dword [ebx + 0x18], 1
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405f10
Capabilities:
Resume thread
Suspend thread

Disassembly:
sub esp, 8
cmp byte [0x4cce78], 0
push ebx
push esi
push edi
je 0x405fb2
mov edi, dword fs:[0x24]
cmp dword [0x4cc810], edi
je 0x405f3e
push dword [0x4cc814]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ebx, dword [esp + 0x18]
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x405f47
sub esi, ecx
cmp byte [ebx], al
je 0x405fbb
lea eax, [esp + 0xf]
mov ecx, 0x4cc848
push eax
push 3
lea eax, [esp + 0x18]
push eax
push esi
push ebx
call fcn.00430700
test eax, eax
jne 0x405f8d
cmp byte [esp + 0xf], al
mov ecx, 0x4cc848
setne al
inc eax
push eax
push dword [esp + 0x14]
push esi
push ebx
call fcn.00430c50
test eax, eax
je 0x405fbb
push 1
push 0
push 0xffffffffffffffff
push dword [esp + 0x28]
mov ecx, eax
call fcn.004a2db0
cmp dword [0x4cc810], edi
je 0x405fb2
push dword [0x4cc814]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [0x4cc810], edi
je 0x405fcf
push dword [0x4cc814]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 8
ret
Function at 0x40b000
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push ebx
xor al, al
mov bl, cl
cmp dword [0x4ca774], 0
mov ecx, 1
push ebp
movzx eax, al
mov bh, dl
cmovne eax, ecx
mov byte [esp + 0xb], bh
cmp dword [0x4ca770], 0
push esi
push edi
mov dword [esp + 0x14], eax
je 0x40b03d
or eax, 2
mov dword [esp + 0x14], eax
cmp bl, al
je 0x40b23a
test al, al
jne 0x40b07e
test bh, bh
jne 0x40b07e
push 0x4cb1e0
push 0
push 0
push 0x40b2b0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4cd06c], eax
test eax, eax
je 0x40b136
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
movzx edi, bh
xor esi, esi
xor edi, 1
movzx ebp, bl
nop dword [eax]
push edi
push ebp
push 0x417
push dword [0x4cb1e0]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
test eax, eax
jne 0x40b0b5
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x40b090
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor bh, bh
call esi
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, eax
mov dh, bl
mov dl, bh
test bl, bl
je 0x40b143
push 1
push 0x417
push 0x417
push 0
lea eax, [esp + 0x2c]
push eax
call ebp
test eax, eax
je 0x40b121
cmp dword [esp + 0x24], 0
je 0x40b15d
mov bh, 1
call fcn.0040b620
test al, al
jne 0x40b15d
cmp byte [esp + 0x13], al
jne 0x40b20d
xor bl, bl
lea eax, [esp + 0x18]
push eax
push dword [0x4cd06c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x18], 0x103
jne 0x40b16a
call esi
sub eax, edi
cmp eax, 0x1f4
ja 0x40b15d
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40b0c7
call fcn.0040b640
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x13], 0
mov bh, dl
mov bl, dh
je 0x40b106
call fcn.0040b620
test al, al
je 0x40b209
jmp 0x40b121
cmp byte [esp + 0x13], 0
jne 0x40b209
jmp 0x40b185
push dword [0x4cd06c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4cd06c], 0
call fcn.0040b640
mov al, byte [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
and al, 1
cmp dword [0x4ca774], 0
je 0x40b1b0
test al, al
jne 0x40b1ca
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4cd064], eax
jmp 0x40b1ca
test al, al
je 0x40b1ca
push dword [0x4cd064]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4cd064], 0
mov eax, dword [esp + 0x14]
and al, 2
cmp dword [0x4ca770], 0
je 0x40b1ef
test al, al
jne 0x40b209
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4cd068], eax
jmp 0x40b209
test al, al
je 0x40b209
push dword [0x4cd068]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4cd068], 0
test bh, bh
je 0x40b23a
push 0
push 0
xorps xmm3, xmm3
mov dword [0x4c801c], 0
mov edx, 0x10000
mov ecx, str.Warning:_The_keyboard_and_or_mouse_hook_could_not_be_activated__some_parts_of_the_script_will_not_function.
call fcn.004a4cd0
add esp, 8
mov dword [0x4c801c], 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c960
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x804
cmp byte [0x4ce2bc], 0
push ebx
push esi
push edi
mov ebx, ecx
jne 0x40cb00
cmp dword [0x4cb220], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x40c994
call edi
mov dword [0x4cb220], eax
inc dword [0x4ce2b8]
call edi
mov esi, dword [0x4ce2b8]
mov ecx, eax
sub ecx, dword [0x4cb220]
mov edx, dword [0x4c9210]
mov dword [0x4cb21c], eax
cmp esi, dword [0x4c9214]
jbe 0x40ca85
cmp ecx, edx
jae 0x40ca87
push ecx
push esi
push str._u_hotkeys_have_been_received_in_the_last__ums._n_nDo_you_want_to_continue__n_see_MaxHotkeysPerInterval_in_the_help_file_
lea eax, [esp + 0x1c]
push 0x800
push eax
call fcn.0049e760
mov dx, word [0x4cb218]
xor eax, eax
add esp, 0x14
xor ecx, ecx
cmp ax, dx
jae 0x40ca1b
mov eax, dword [0x4cb208]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x40ca13
mov byte [eax + 0x1b], 0
mov eax, dword [eax + 8]
test eax, eax
jne 0x40ca01
mov dx, word [0x4cb218]
inc ecx
movzx eax, dx
cmp ecx, eax
jl 0x40c9f2
push 0
push 0
xorps xmm3, xmm3
mov byte [0x4ce2bc], 1
mov edx, 4
mov dword [0x4c801c], 0
lea ecx, [esp + 0x18]
call fcn.004a4cd0
add esp, 8
cmp eax, 7
jne 0x40ca57
push 0
push 4
mov ecx, 0x4cc848
call fcn.00423cb0
mov eax, dword [0x4cb21c]
mov dword [0x4c801c], 1
mov byte [0x4ce2bc], 0
mov dword [0x4ce2b8], 0
mov dword [0x4cb220], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ecx, edx
jbe 0x40ca98
mov dword [0x4ce2b8], 0
mov dword [0x4cb220], eax
mov esi, dword [ebp + 8]
mov al, byte [ebx + 0xf]
push 0
push 0
mov byte [0x4cce5d], al
inc byte [esi + 0x16]
mov ecx, dword [esi]
mov edx, ecx
push 0
push 0
push str.call
call fcn.0048cfc0
dec byte [esi + 0x16]
add esp, 0x14
test eax, eax
jne 0x40cad2
mov byte [esi + 0x1b], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [esi + 0x1b], 0
je 0x40cb00
mov byte [esi + 0x1b], 0
call edi
sub eax, dword [esi + 0xc]
cmp eax, 0x3e8
ja 0x40cb00
movzx eax, word [ebx + 4]
push 0
push eax
push 0x312
push dword [0x4ca754]
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4