joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4091e0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x409204
mov eax, 3
jmp 0x40931c
mov ecx, dword [ebp - 0x14]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409220
mov eax, 2
jmp 0x40931c
mov dword [ebp - 4], 0x82
mov edx, dword [ebp - 4]
shl edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
add eax, 1
cmp dword [ebp - 4], eax
ja 0x4092fb
mov ecx, dword [ebp - 4]
shl ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x821
jb 0x409259
mov eax, 0xd
jmp 0x40931c
xor ecx, ecx
mov eax, dword [ebp - 4]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
shl edx, 1
push edx
push 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, 4
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
push 0x40e51c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4092cc
mov ecx, dword [ebp - 4]
sub ecx, 1
cmp dword [ebp - 8], ecx
jne 0x4092f6
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
cmp dword [ebp - 8], 0
jne 0x4092f6
mov eax, 0xe8
jmp 0x40931c
jmp 0x40922f
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x409313
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x40931a
mov eax, 0xd
jmp 0x40931c
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x409330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, 0xfeff
mov word [ebp - 8], ax
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x409372
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4093d4
push 0
lea edx, [ebp - 4]
push edx
push 2
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x409394
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4093d4
push 0
lea edx, [ebp - 4]
push edx
push 0x40e48c
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
lea eax, [eax + eax + 2]
push eax
push str._SESSION_
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4093c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4093d4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x409660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov dword [eax], vtable.CArmReport.0
push 0x104
push 0
mov ecx, dword [ebp - 8]
add ecx, 4
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov edx, dword [ebp - 8]
add edx, 4
push edx
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x4096ab
jmp 0x4096d7
push str.AdobeARM_
push 0x104
mov eax, dword [ebp - 8]
add eax, 4
push eax
call fcn.004063f0
push str.ArmReport.ini
push 0x104
mov ecx, dword [ebp - 8]
add ecx, 4
push ecx
call fcn.004063f0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x409900
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x100
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCR90.dll_vswprintf_s]
add esp, 0x10
mov dword [ebp - 0x210], 0
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x20c], ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x454], 0
je 0x4099a3
mov eax, dword [ebp + 8]
add eax, 0x230
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4099a1
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 1
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x4099b3
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.MSVCR90.dll__putws]
add esp, 4
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00407668
mov esp, ebp
pop ebp
ret
Function at 0x409ac0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
push 0
push 0x80
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
push 0x40000000
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x409bb6
mov dword [ebp - 0x18], 0x100000
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], 0
jne 0x409b9d
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409b9d
cmp dword [ebp - 0x10], 0
jbe 0x409b9d
mov dword [ebp - 0xc], 0
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x409b7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
jmp 0x409b23
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
jmp 0x409bbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x40ac90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
jne 0x40acb0
xor eax, eax
jmp 0x40ad66
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ad64
mov dword [ebp - 0x25c], 0
call fcn.00409bd0
test eax, eax
je 0x40ace0
mov eax, 1
jmp 0x40ad66
mov dword [ebp - 0x258], 0
push 0x24c
push 0
lea ecx, [ebp - 0x254]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [ebp - 0x258]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40ad64
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0xc], 0xffffffff
je 0x40ad3b
mov edx, dword [ebp - 0x238]
cmp edx, dword [ebp + 0xc]
je 0x40ad3b
xor eax, eax
jmp 0x40ad66
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0040a3e0
add esp, 8
test eax, eax
je 0x40ad64
cmp dword [ebp + 0xc], 0xffffffff
jne 0x40ad5d
mov eax, dword [ebp - 0x238]
jmp 0x40ad66
mov eax, 1
jmp 0x40ad66
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00407668
mov esp, ebp
pop ebp
ret
Function at 0x40b420
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c4f3
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040ad80
add esp, 0x10
lea ecx, [ebp - 0x42c]
call fcn.00409660
mov dword [ebp - 4], 0
mov byte [ebp - 0x42d], 0
lea ecx, [ebp - 0x42d]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x42c]
call fcn.004096e0
xor ecx, ecx
mov word [ebp - 0x21c], cx
push 0x206
push 0
lea edx, [ebp - 0x21a]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x2b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x40b4e2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.004093e0
jmp 0x40b531
push str.AdobeARM1.0Temp
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004063f0
test eax, eax
jge 0x40b510
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.004093e0
jmp 0x40b531
lea edx, [ebp - 0x21c]
push edx
call fcn.0040a950
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.004093e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407668
mov esp, ebp
pop ebp
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x73401fde
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3eb175b6
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4030c0
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x4030d4
inc dword [0x4a6ddc]
add dword [0x4a3440], 0xe8
mov edx, dword [0x4a3440]
push esi
push edi
mov ecx, 0x3a
mov esi, 0x4a5930
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, 0x4a8ce0
call fcn.00414eb0
cmp dword [0x4a6e08], 0
mov dword [0x4a92c0], 0
mov dword [0x4a92c4], 0
je 0x40312b
push 0x4a7478
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 [0x4a92cc], 0
je 0x40316c
cmp dword [0x4a92c8], 0
jne 0x403175
cmp byte [esi + 0xca], 0
je 0x4031af
cmp byte [esi + 0xca], 0
mov byte [esi + 0xc8], 0
jne 0x4031af
cmp dword [0x4a92cc], 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 [0x4a92cc]
mov dword [esi + 0xbc], edx
pop edi
pop esi
ret
Function at 0x403e10
Capabilities:
Write clipboard data

Disassembly:
cmp dword [0x4a8cd0], 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, 0x4a8cc4
call fcn.00403e90
pop edi
test eax, eax
jne 0x403e5f
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [0x4a8cd0]
push ebx
push ebp
push eax
mov esi, eax
call fcn.00484520
add esp, 0xc
mov byte [esi + ebx], 0
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 1
mov ecx, 0x4a8cc4
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 0x4959f0
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 0x495a00
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.0048214b
add esp, 0xc
test eax, eax
je 0x404174
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.004816e1
add esp, 8
test eax, eax
je 0x404174
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.004816e1
add esp, 8
test eax, eax
je 0x404174
lea edx, [esp]
push str.Native
push edx
call fcn.004816e1
add esp, 8
test eax, eax
je 0x404174
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.004816e1
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.004816e1
add esp, 8
test eax, eax
je 0x40420e
mov eax, dword [0x4a33a0]
cmp eax, 0xffffffff
je 0x4041da
test eax, eax
je 0x40420e
call ebp
mov edx, dword [0x4a33a0]
add edx, ebx
sub edx, eax
cmp edx, 5
jle 0x40420e
push 1
push 0x8000012f
mov dword [0x4a33a4], 0
call fcn.00401280
add esp, 8
push esi
mov dword [0x4a33a4], 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 [0x4a6c70]
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
push ecx
mov edi, eax
call ebx
test eax, eax
jne 0x4042a0
mov eax, dword [0x4a33a0]
cmp eax, 0xffffffff
je 0x404271
test eax, eax
je 0x4042b6
call esi
mov edx, dword [0x4a33a0]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x4042b6
push 1
push 0x8000012f
mov dword [0x4a33a4], 0
call fcn.00401280
mov eax, dword [0x4a6c70]
add esp, 8
push eax
mov dword [0x4a33a4], 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 0x4073f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
cmp byte [0x4a5b7a], 0
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
je 0x4074ab
mov al, byte [0x4a5b82]
cmp al, 0xa0
je 0x407416
cmp al, 0x10
jne 0x4074ab
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4a5b7c]
cmp eax, 0x16
jae 0x4074ab
test ebp, 0x100
jne case.0x407447.13
movzx eax, byte [esp + 0x14]
add eax, 0xfffffff4
cmp eax, 0x22
ja case.0x407447.13
movzx eax, byte [eax + 0x407654]
jmp dword [eax*4 + 0x40764c]
mov cl, 1
jmp 0x407454
xor cl, cl
cmp byte [0x4a5b7b], 0
jne 0x407471
xor ecx, ecx
nop
cmp byte [ecx + 0x4a5b64], 0
jne 0x40747c
inc ecx
cmp ecx, 0x16
jl 0x407460
jmp 0x4074ab
cmp byte [esp + 0x1c], 0
je 0x407485
test cl, cl
je 0x4074ab
mov byte [0x4a5b83], 1
jmp 0x407489
test cl, cl
je 0x4074ab
mov cl, byte [0x4a5a87]
mov dl, byte [0x4a5a86]
mov al, byte [0x4a5a85]
mov byte [0x4a6c6f], cl
mov byte [0x4a6ca0], dl
mov byte [0x4a6d30], al
mov cl, byte [0x4a6c6f]
movzx esi, byte [esp + 0x14]
mov dl, byte [0x4a6ca0]
mov al, byte [0x4a6d30]
mov byte [0x4a5a87], cl
lea ecx, [esi + esi*8]
mov byte [0x4a5a86], dl
mov edx, dword [0x4a75a8]
shl ecx, 5
mov bl, byte [ecx + edx + 4]
mov byte [0x4a5a85], al
test bl, bl
je case.default.0x407622
cmp dword [edi + 0x10], 0xffc3d44f
setne dl
test byte [edi + 8], 0x10
mov byte [esp + 0xf], dl
je 0x407502
xor al, al
jmp 0x407517
mov eax, dword [esp + 0x1c]
push eax
mov al, byte [esp + 0x18]
call fcn.004076b0
mov dl, byte [esp + 0x13]
add esp, 4
cmp byte [esp + 0x1c], 0
mov byte [esp + 0x18], al
je 0x4075ee
cmp byte [esp + 0x20], 0
jne 0x407541
mov cl, bl
not cl
and byte [0x4a6c6d], cl
test dl, dl
je 0x407541
and byte [0x4a6c6e], cl
cmp byte [esp + 0x18], 0
je case.default.0x407622
not bl
and byte [0x4a6c6f], bl
lea ecx, [esi - 0xa0]
mov byte [esi + 0x4a6c90], 0
cmp ecx, 5
ja case.default.0x407622
jmp dword [ecx*4 + 0x407678]
mov cl, byte [0x4a6d31]
mov byte [0x4a6ca0], cl
jmp case.default.0x407622
mov dl, byte [0x4a6d30]
mov byte [0x4a6ca0], dl
jmp case.default.0x407622
mov al, byte [0x4a6d33]
mov byte [0x4a6ca1], al
jmp case.default.0x407622
mov cl, byte [0x4a6d32]
mov byte [0x4a6ca1], cl
jmp case.default.0x407622
mov dl, byte [0x4a6d35]
mov byte [0x4a6ca2], dl
jmp case.default.0x407622
mov al, byte [0x4a6d34]
mov byte [0x4a6ca2], al
test byte [edi + 8], 0x10
mov al, byte [esp + 0x14]
mov ecx, dword [esp + 0x1c]
pop esi
mov word [0x4a5b80], bp
pop ebp
mov byte [0x4a5b82], al
mov byte [0x4a5b7b], cl
pop ebx
je 0x407630
xor al, al
mov byte [0x4a5b7a], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4a5b7c], eax
pop ecx
ret
cmp byte [esp + 0x20], 0
jne 0x407605
or byte [0x4a6c6d], bl
test dl, dl
je 0x407605
or byte [0x4a6c6e], bl
test al, al
je case.default.0x407622
or byte [0x4a6c6f], bl
lea ecx, [esi - 0xa0]
mov al, 0x80
mov byte [esi + 0x4a6c90], al
cmp ecx, 5
ja case.default.0x407622
jmp dword [ecx*4 + 0x407690]
mov byte [0x4a6ca0], al
jmp case.default.0x407622
push ecx
call fcn.004076b0
add esp, 4
mov byte [0x4a5b7a], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4a5b7c], eax
pop ecx
ret
Function at 0x4076b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp al, 0xa0
je 0x4076bf
cmp al, 0x10
jne case.0x407716.13
cmp byte [esp + 8], 0
jne case.0x407716.13
cmp byte [0x4a5b83], 0
je 0x4076eb
xor eax, eax
cmp byte [eax + 0x4a5b64], 0
jne 0x4076eb
inc eax
cmp eax, 0x16
jl 0x4076d1
mov byte [0x4a5b83], 0
xor al, al
pop esi
ret
cmp byte [0x4a5b7b], 0
je case.0x407716.13
test dword [0x4a5b80], 0x100
jne case.0x407716.13
movzx eax, byte [0x4a5b82]
add eax, 0xfffffff4
cmp eax, 0x22
ja case.0x407716.13
movzx eax, byte [eax + 0x407740]
jmp dword [eax*4 + 0x407738]
call esi
sub eax, dword [0x4a5b7c]
cmp eax, 0x16
jb 0x4076e7
call esi
mov dword [0x4a94d0], eax
mov al, 1
pop esi
ret
Function at 0x408550
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 [0x4a6da0], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x408574
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4a6da4], 0
je 0x408583
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x408790
test al, al
jne 0x4085c6
cmp byte [ebp + 0xc], al
jne 0x4085c6
push 0x4a5b60
push 0
push 0
push 0x408860
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4a9504], eax
test eax, eax
je 0x408657
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 [0x4a5b60]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
test eax, eax
jne 0x4085fc
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x4085d6
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 0x408663
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x4086ca
cmp dword [esp + 0x2c], 0
je 0x408672
mov byte [esp + 0x1f], 1
call fcn.00408c00
test al, al
jne 0x408672
cmp byte [ebp + 0xc], al
jne 0x40875e
mov byte [ebp + 8], al
jmp 0x408611
call fcn.00408c20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x4086ae
call fcn.00408c00
test al, al
jne 0x4086ca
cmp byte [ebp + 0xc], 0
jne 0x408757
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4a6da0], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
je 0x408702
test byte [esp + 0x1e], 1
jne 0x40871b
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4a7594], eax
jmp 0x40871b
mov ecx, dword [0x4a9504]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x4086e2
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x408672
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x408611
mov edx, dword [0x4a9504]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [0x4a9504], 0
call fcn.00408c20
jmp 0x408682
test byte [esp + 0x1e], 1
je 0x40871b
mov eax, dword [0x4a7594]
push eax
call edi
mov dword [0x4a7594], 0
cmp dword [0x4a6da4], 0
je 0x40873d
test byte [esp + 0x1e], 2
jne 0x408757
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4a7598], eax
jmp 0x408757
test byte [esp + 0x1e], 2
je 0x408757
mov ecx, dword [0x4a7598]
push ecx
call edi
mov dword [0x4a7598], 0
cmp byte [esp + 0x1f], 0
je 0x408790
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 [0x4a33a4], 0
call fcn.00473230
add esp, 0x18
mov dword [0x4a33a4], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret