joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d5268
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005d51e4
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5d53e0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5d53e0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5d538f
jg 0x5d52c1
test eax, eax
je 0x5d5385
push 1
push 0x1000
call fcn.005c9d44
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5d52e7
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x5d537c
push 0x8000
push ebx
call fcn.005c7986
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5d5313
jg 0x5d530e
cmp ecx, 0x1000
jb 0x5d5313
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005cc975
add esp, 0x10
cmp eax, 0xffffffff
je 0x5d5358
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x5d530e
jl 0x5d533f
test ecx, ecx
jne 0x5d5300
push dword [ebp - 0xc]
push ebx
call fcn.005c7986
push esi
call fcn.005c81c8
add esp, 0xc
xor edi, edi
jmp 0x5d53f1
cmp byte [edi + 0x24], 0
je 0x5d536f
cmp dword [edi + 0x20], 5
jne 0x5d536f
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5d537a
mov edi, dword [edi + 0x18]
jmp 0x5d537c
xor edi, edi
push esi
call fcn.005c81c8
pop ecx
jmp 0x5d53f1
test ecx, ecx
jg 0x5d5351
jl 0x5d538f
test eax, eax
jae 0x5d5351
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005cb279
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5d53b2
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5d5351
jmp 0x5d53e9
push ebx
call fcn.005c6ca2
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5d5351
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x5d53f1
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5d53ee
mov edi, dword [edi + 0x18]
jmp 0x5d53f1
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005cb279
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5d5b60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5d5b8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5d5b8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40c1c8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004079cb
mov dword [ebp - 0x14], eax
cmp dword [0x448c60], esi
jne 0x40c2bb
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c248
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c39b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c39b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c39b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x448c60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x448c64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x448c68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x448c70], eax
test eax, eax
je 0x40c2b8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x448c6c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c2e0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c2d3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c2f5
push 4
pop eax
jmp 0x40c39d
cmp dword [ebp - 0x14], esi
je 0x40c2f5
push dword [0x448c60]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c2da
mov eax, dword [0x448c6c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c353
cmp dword [0x448c70], edi
je 0x40c353
push eax
call ebx
push dword [0x448c70]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c353
test eax, eax
je 0x40c353
call ecx
test eax, eax
je 0x40c348
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c348
test byte [ebp - 8], 1
jne 0x40c353
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c383
mov eax, dword [0x448c64]
cmp eax, edi
je 0x40c380
push eax
call ebx
test eax, eax
je 0x40c380
call eax
mov esi, eax
test esi, esi
je 0x40c380
mov eax, dword [0x448c68]
cmp eax, edi
je 0x40c380
push eax
call ebx
test eax, eax
je 0x40c380
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x448c60]
call ebx
test eax, eax
je 0x40c39b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c39d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403b35
mov esp, ebp
pop ebp
ret
Function at 0x4068db
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 0x4068ff
xor eax, eax
test eax, eax
je 0x406912
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406912
xor ecx, ecx
jmp 0x406915
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 0x406a38
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a6f
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 0x406a49
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a44
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406aa0
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 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406a82
pop edi
not eax
pop esi
ret 0xc

Function at 0x55a1a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x55a1a0
lcall 0x5de5, 0x8b10c483
jmp loc.00fde52c

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
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.00414e00
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.004844d0
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.004820fb
add esp, 0xc
test eax, eax
je 0x404174
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.00481691
add esp, 8
test eax, eax
je 0x404174
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.00481691
add esp, 8
test eax, eax
je 0x404174
lea edx, [esp]
push str.Native
push edx
call fcn.00481691
add esp, 8
test eax, eax
je 0x404174
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.00481691
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.00481691
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 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.004731e0
add esp, 0x18
mov dword [0x4a33a4], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409ec0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x838
cmp byte [0x4a9508], 0
push esi
push edi
jne 0x40a076
cmp dword [0x4a75b0], 0
jne 0x409eef
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4a75b0], eax
mov edi, 1
add dword [0x4a950c], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x4a950c]
mov esi, dword [0x4a33b8]
mov ecx, eax
sub ecx, dword [0x4a75b0]
mov dword [0x4a75b4], eax
cmp edx, dword [0x4a33b4]
jbe 0x409fa6
cmp ecx, esi
jae 0x409fa6
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.0046eac0
add esp, 0xc
call fcn.00409020
fldz
push 0
sub esp, 8
fstp qword [esp]
push 0
mov eax, edi
push 4
push eax
mov byte [0x4a9508], 1
mov dword [0x4a33a4], 0
call fcn.004731e0
add esp, 0x18
cmp eax, 7
jne 0x409f8a
push 0
xor eax, eax
push 0x4a8ce0
lea ecx, [eax + 1]
call fcn.00415170
mov eax, dword [0x4a75b4]
mov edx, dword [esp + 0x3c]
mov dword [0x4a33a4], 1
mov byte [0x4a9508], 0
jmp 0x409fac
xor edx, edx
cmp ecx, esi
jbe 0x409fc3
mov dword [0x4a950c], 0
mov dword [0x4a75b0], eax
test edx, edx
jne 0x40a076
mov esi, dword [ebp + 8]
mov cl, byte [esi + 0x11]
mov byte [0x4a929d], cl
cmp byte [esi + 0x1a], 0
je 0x40a03a
cmp byte [esi + 0x1b], 0
je 0x40a03a
mov byte [esp + 0x3b], 1
call fcn.0040b9a0
mov ecx, dword [0x4a3440]
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.00423f80
mov edx, dword [0x4a3440]
mov dword [edx + 0x9c], esi
dec byte [ebx + 0x1f]
cmp byte [esp + 0x3b], 0
mov edi, eax
je 0x40a02a
mov esi, dword [ebp + 8]
call fcn.0040b8d0
test edi, edi
jne 0x40a041
mov byte [ebx + 0x24], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov byte [esp + 0x3b], 0
jmp 0x409fe5
cmp byte [ebx + 0x24], 0
je 0x40a076
mov byte [ebx + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 4]
cmp eax, 0x3e8
ja 0x40a076
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
mov edx, dword [0x4a6c70]
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
Function at 0x40e560
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x2c
push esi
mov esi, eax
lea eax, [esp + 4]
test cl, cl
jns 0x40e577
mov byte [esp + 4], 0x30
lea eax, [esp + 5]
push 0xa
push eax
movzx eax, cl
push eax
call fcn.00481322
add esp, 0xc
test esi, esi
jle 0x40e630
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, esi
jmp 0x40e5a0
cmp dword [0x4a85d0], 0
jne 0x40e5fd
call edi
sub eax, dword [0x4a92d4]
mov ecx, dword [0x4a3440]
cmp eax, dword [ecx + 0xb4]
jbe 0x40e5fd
push 0
push 0
push 0
push 0
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40e5f6
push 1
push 0xffffffffffffffff
mov dword [0x4a33a4], 0
call fcn.00401280
add esp, 8
mov dword [0x4a33a4], 1
call edi
mov dword [0x4a92d4], eax
lea eax, [esp + 0xc]
call fcn.0040e640
cmp dword [0x4a85d0], 2
jne 0x40e619
mov eax, dword [0x4a3440]
mov esi, dword [eax + 0x60]
jmp 0x40e622
mov ecx, dword [0x4a3440]
mov esi, dword [ecx + 0x5c]
call fcn.00410570
dec ebp
jne 0x40e5a0
pop edi
pop ebp
pop esi
add esp, 0x2c
ret

Function at 0x40e640
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
cmp dword [0x4a85d0], 0
push esi
mov esi, eax
je 0x40e657
mov al, byte [0x4a5b95]
jmp 0x40e74e
cmp dword [0x4a6da0], 0
je 0x40e66a
mov al, byte [0x4a6c6d]
jmp 0x40e74e
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call edi
mov ecx, 0x8000
test cx, ax
je 0x40e687
mov bl, 0x10
push 0xa1
call edi
mov edx, 0x8000
test dx, ax
je 0x40e69b
or bl, 0x20
push 0xa2
call edi
mov ecx, 0x8000
test cx, ax
je 0x40e6af
or bl, 1
push 0xa3
call edi
mov edx, 0x8000
test dx, ax
je 0x40e6c3
or bl, 2
push 0xa4
call edi
mov ecx, 0x8000
test cx, ax
je 0x40e6d7
or bl, 4
push 0xa5
call edi
mov edx, 0x8000
test dx, ax
je 0x40e6eb
or bl, 8
push 0x5b
call edi
mov ecx, 0x8000
test cx, ax
je 0x40e6fc
or bl, 0x40
push 0x5c
call edi
mov edx, 0x8000
test dx, ax
je 0x40e70d
or bl, 0x80
cmp dword [0x4a6da0], 0
je 0x40e74a
mov al, bl
not al
and al, byte [0x4a6c6d]
je 0x40e74a
mov cl, byte [0x4a6c6f]
not al
and byte [0x4a6c6d], al
and byte [0x4a6c6e], al
and cl, al
mov al, cl
mov byte [0x4a6c6f], cl
mov ecx, 0x4a6c90
call fcn.00411120
pop edi
mov al, bl
pop ebx
mov byte [esp + 4], al
mov ecx, dword [esp + 4]
push 1
and al, 0xc4
push 0
or al, 4
movzx edx, al
push 0
push ecx
push edx
mov eax, 0xffc3d44f
call fcn.00410920
mov al, byte [esi]
add esp, 0x14
cmp al, 0x30
jl 0x40e79f
cmp al, 0x39
jg 0x40e79f
push 0xffc3d44d
push 0
add al, 0x30
push 0
movzx eax, al
push 0
push eax
push 2
call fcn.0040ea30
mov al, byte [esi + 1]
inc esi
add esp, 0x18
cmp al, 0x30
jge 0x40e778
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
call fcn.0040ea30
add esp, 0x18
pop esi
pop ecx
ret