joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x417015
lea edi, [esi - 0x16015]
push edi
or ebp, 0xffffffff
jmp 0x41e142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41e149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41e138
mov eax, 1
add ebx, ebx
jne 0x41e15b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41e150
jne 0x41e16c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41e150
xor ecx, ecx
sub eax, 3
jb 0x41e180
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41e1f2
mov ebp, eax
add ebx, ebx
jne 0x41e18b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41e198
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41e1bc
inc ecx
add ebx, ebx
jne 0x41e1a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41e19d
jne 0x41e1b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41e19d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41e1dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41e1cd
jmp 0x41e13e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41e1dc
add edi, ecx
jmp 0x41e13e
pop esi
mov edi, esi
mov ecx, 0x50
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41e1fa
cmp byte [edi], 6
jne 0x41e1fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41e1ff
lea edi, [esi + 0x1c000]
mov eax, dword [edi]
or eax, eax
je 0x41e26e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1e000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1e050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41e22c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1e058]
or eax, eax
je 0x41e268
mov dword [ebx], eax
add ebx, 4
jmp 0x41e249
call dword [esi + 0x1e054]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x41e29f
cmp al, 0xef
ja 0x41e292
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x41e274
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x41e281
mov ebp, dword [esi + 0x1e05c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x1e2fa]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41e2eb
sub esp, 0xffffff80
jmp 0x4013f0
Function at 0x7ffe533d
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword fs:[0x30]
add eax, 0
stc
push edx
cdq
pop edx
stc
and bh, 0xff
clc
and bh, 0xff
cld
pushal
inc eax
popal
clc
pushal
inc eax
popal
cld
lea esp, [esp]
clc
add eax, 0
clc
pushal
inc eax
popal
stc
and bh, 0xff
clc
lea esp, [esp]
stc
lea esp, [esp]
nop
add eax, 0
clc
push edx
cdq
pop edx
stc
and bh, 0xff
cld
and bh, 0xff
cld
push edx
cdq
pop edx
clc
add eax, 0
stc
pushal
inc eax
popal
nop
push edx
cdq
pop edx
cld
add eax, 0
cld
push edx
cdq
pop edx
cld
and bh, 0xff
clc
and bh, 0xff
clc
add eax, 0
cld
lea esp, [esp]
stc
lea esp, [esp]
cld
and bh, 0xff
nop
push edx
cdq
pop edx
stc
lea esp, [esp]
cld
push edx
cdq
pop edx
cld
pushal
inc eax
popal
cld
push edx
cdq
pop edx
clc
pushal
inc eax
popal
nop
pushal
inc eax
popal
cld
push edx
cdq
pop edx
stc
lea esp, [esp]
nop
pushal
inc eax
popal
cld
cld
clc
call 0x7ffe53e2
pop edx
pushal
inc eax
popal
cld
and bh, 0xff
clc
push edx
cdq
pop edx
nop
xor dx, dx
add edx, 0xd5e0
nop
cld
xor ecx, ecx
add eax, 0
clc
mov cl, 0x1e
xor byte [ecx + edx], 0xbc
loop 0x7ffe5402
push edx
cdq
pop edx
cld
push edx
cdq
pop edx
nop
stc
cld
stc
push dword fs:[0x24]
cld
push edx
cdq
pop edx
stc
clc
pop dword [edx + 0xa]
clc
and bh, 0xff
cld
and bh, 0xff
add eax, 0
mov cl, 0xff
pushal
inc eax
popal
cld
nop
push edx
loop 0x7ffe5435
clc
add eax, 0
stc
inc esi
dec esi
nop
mov dword [edx + 0x11], 0xffffacbb
lea esp, [esp]
stc
and al, 0xff
clc
mov ecx, dword [eax + 0x2c]
lea esp, [esp]
clc
cld
cld
cld
mov dword [edx + 0x1b], ecx
cld
push edx
cdq
pop edx
stc
nop
mov dword [edx + 0x100], ecx
cld
pushal
inc eax
popal
nop
lea esp, [esp]
stc
mov dword [eax + 0x2c], esp
cld
cld
push 0
push 0
add eax, 0
clc
lea esp, [esp]
nop
add eax, 0
cld
push 0
stc
stc
cld
push 0
push 0x30
cld
clc
cld
nop
push 0x20
stc
push edx
cdq
pop edx
cld
push 0
and bh, 0xff
nop
push 0
and bh, 0xff
add edx, 0xffff7f2c
cld
and bh, 0xff
clc
push edx
cdq
pop edx
stc
add eax, 0
push edx
stc
add eax, 0
stc
add eax, 0
clc
cld
push edx
cld
pushal
inc eax
popal
nop
and bh, 0xff
push 0
stc
call dword [edx + 0x8217]
lea esp, [esp]
cld
cld
clc
cld
add esp, 0x3f8
stc
lea esp, [esp]
xor eax, eax
nop
lea esp, [esp]
clc
push edx
cdq
pop edx
push eax
pop eax
nop
inc eax
clc
pushal
inc eax
popal
cld
and bh, 0xff
cld
push es
pop ds
stc
ret 0xc
Function at 0x403520
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x403534
inc dword [0x4aa39c]
add dword [0x4a6918], 0xf0
mov edx, dword [0x4a6918]
push esi
push edi
mov ecx, 0x3c
mov esi, 0x4a8ed8
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 0x403563
push 0
mov eax, 0x4ac290
call fcn.00415870
cmp dword [0x4aa3c8], 0
mov dword [0x4ac898], 0
mov dword [0x4ac89c], 0
je 0x40358b
push 0x4aaa30
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [esp + 0x10], 0
jne 0x40360f
or ecx, 0xffffffff
cmp byte [esi + 0xce], 0
jne 0x4035ba
xor eax, eax
cmp byte [esp + 0x14], 0x65
sete al
mov byte [esi + 0xce], al
test al, al
je 0x4035ba
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4ac8a4], 0
je 0x4035cc
cmp dword [0x4ac8a0], 0
jne 0x4035d5
cmp byte [esi + 0xce], 0
je 0x40360f
cmp byte [esi + 0xce], 0
mov byte [esi + 0xcc], 0
jne 0x40360f
cmp dword [0x4ac8a4], 0
jge 0x4035f7
pop edi
mov dword [esi + 0xc0], ecx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xbc], eax
mov edx, dword [0x4ac8a4]
mov dword [esi + 0xc0], edx
pop edi
pop esi
ret
Function at 0x404290
Capabilities:
Write clipboard data

Disassembly:
cmp dword [0x4ac8fc], 0
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
je 0x4042a8
pop ebp
xor eax, eax
pop ebx
ret 4
push esi
test ebp, ebp
je 0x4042f5
cmp ebx, 0xffffffff
jne 0x4042c2
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4042b7
sub eax, edx
mov ebx, eax
test ebx, ebx
je 0x4042f5
push edi
lea edi, [ebx + 1]
mov esi, 0x4ac8f0
call fcn.00404310
pop edi
test eax, eax
jne 0x4042df
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [0x4ac8fc]
push ebx
push ebp
push eax
mov esi, eax
call fcn.00487d80
add esp, 0xc
mov byte [esi + ebx], 0
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 1
mov ecx, 0x4ac8f0
jmp fcn.00404380

Function at 0x404380
Capabilities:
Write clipboard data

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x18], edi
jne 0x4043a4
push esi
call fcn.00404660
test eax, eax
jne 0x4043a4
push str.Cant_open_clipboard_for_writing.
call fcn.00404490
pop edi
pop esi
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4043de
cmp dword [esi + 0x18], edi
je 0x4043cf
cmp dword [esi + 8], edi
je 0x4043c4
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 0x498a0c
call fcn.00404490
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 0x404421
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x404449
cmp dword [esp + 0x10], 0xd
push ebx
jne 0x404400
cmp word [eax], di
jmp 0x404403
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 0x404449
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 0x40443e
cmp dword [esi + 8], edi
je 0x404433
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 0x404461
mov dword [esi + 4], edi
jmp 0x404421
cmp dword [esi + 0x18], edi
je 0x40447e
cmp dword [esi + 8], edi
je 0x404473
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 0x498a1c
call fcn.00404490
pop ebp
pop edi
pop esi
ret 4
Function at 0x404560
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x108
test esi, esi
je 0x404570
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x40463f
push 0x104
lea ecx, [esp + 4]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameA]
push 0xb
lea edx, [esp + 4]
push str.Link_Source
push edx
call fcn.00485860
add esp, 0xc
test eax, eax
je 0x404636
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.00484de1
add esp, 8
test eax, eax
je 0x404636
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.00484de1
add esp, 8
test eax, eax
je 0x404636
lea edx, [esp]
push str.Native
push edx
call fcn.00484de1
add esp, 8
test eax, eax
je 0x404636
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.00484de1
add esp, 8
test eax, eax
je 0x404636
lea ecx, [esp]
push str.MSDEVColumnSelect
push ecx
call fcn.00484de1
add esp, 8
test eax, eax
je 0x40462c
lea edx, [esp]
push str.MSDEVLineSelect
push edx
call fcn.00484de1
add esp, 8
test eax, eax
jne 0x404643
test esi, esi
je 0x404636
mov dword [esi], 1
xor eax, eax
add esp, 0x108
ret
mov byte [esp], 0
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
add esp, 0x108
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0
je 0x404672
mov eax, 1
ret 4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov ecx, dword [0x4aa230]
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
push ecx
mov edi, eax
call ebx
test eax, eax
jne 0x4046e0
mov eax, dword [0x4a6880]
cmp eax, 0xffffffff
je 0x4046b1
test eax, eax
je 0x4046f6
call esi
mov edx, dword [0x4a6880]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x4046f6
push 1
push 0x8000012f
mov dword [0x4a6884], 0
call fcn.00401350
mov eax, dword [0x4aa230]
add esp, 8
push eax
mov dword [0x4a6884], 1
call ebx
test eax, eax
je 0x404692
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 0x4077e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
cmp byte [0x4a9132], 0
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
je 0x40789b
mov al, byte [0x4a913a]
cmp al, 0xa0
je 0x407806
cmp al, 0x10
jne 0x40789b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4a9134]
cmp eax, 0x16
jae 0x40789b
test ebp, 0x100
jne case.0x407837.13
movzx eax, byte [esp + 0x14]
add eax, 0xfffffff4
cmp eax, 0x22
ja case.0x407837.13
movzx eax, byte [eax + 0x407a44]
jmp dword [eax*4 + 0x407a3c]
mov cl, 1
jmp 0x407844
xor cl, cl
cmp byte [0x4a9133], 0
jne 0x407861
xor ecx, ecx
nop
cmp byte [ecx + 0x4a911c], 0
jne 0x40786c
inc ecx
cmp ecx, 0x16
jl 0x407850
jmp 0x40789b
cmp byte [esp + 0x1c], 0
je 0x407875
test cl, cl
je 0x40789b
mov byte [0x4a913b], 1
jmp 0x407879
test cl, cl
je 0x40789b
mov cl, byte [0x4a903f]
mov dl, byte [0x4a903e]
mov al, byte [0x4a903d]
mov byte [0x4aa22f], cl
mov byte [0x4aa260], dl
mov byte [0x4aa2f0], al
mov cl, byte [0x4aa22f]
movzx esi, byte [esp + 0x14]
mov dl, byte [0x4aa260]
mov al, byte [0x4aa2f0]
mov byte [0x4a903f], cl
lea ecx, [esi + esi*8]
mov byte [0x4a903e], dl
mov edx, dword [0x4aab60]
shl ecx, 5
mov bl, byte [ecx + edx + 4]
mov byte [0x4a903d], al
test bl, bl
je case.default.0x407a12
cmp dword [edi + 0x10], 0xffc3d44f
setne dl
test byte [edi + 8], 0x10
mov byte [esp + 0xf], dl
je 0x4078f2
xor al, al
jmp 0x407907
mov eax, dword [esp + 0x1c]
push eax
mov al, byte [esp + 0x18]
call fcn.00407aa0
mov dl, byte [esp + 0x13]
add esp, 4
cmp byte [esp + 0x1c], 0
mov byte [esp + 0x18], al
je 0x4079de
cmp byte [esp + 0x20], 0
jne 0x407931
mov cl, bl
not cl
and byte [0x4aa22d], cl
test dl, dl
je 0x407931
and byte [0x4aa22e], cl
cmp byte [esp + 0x18], 0
je case.default.0x407a12
not bl
and byte [0x4aa22f], bl
lea ecx, [esi - 0xa0]
mov byte [esi + 0x4aa250], 0
cmp ecx, 5
ja case.default.0x407a12
jmp dword [ecx*4 + 0x407a68]
mov cl, byte [0x4aa2f1]
mov byte [0x4aa260], cl
jmp case.default.0x407a12
mov dl, byte [0x4aa2f0]
mov byte [0x4aa260], dl
jmp case.default.0x407a12
mov al, byte [0x4aa2f3]
mov byte [0x4aa261], al
jmp case.default.0x407a12
mov cl, byte [0x4aa2f2]
mov byte [0x4aa261], cl
jmp case.default.0x407a12
mov dl, byte [0x4aa2f5]
mov byte [0x4aa262], dl
jmp case.default.0x407a12
mov al, byte [0x4aa2f4]
mov byte [0x4aa262], al
test byte [edi + 8], 0x10
mov al, byte [esp + 0x14]
mov ecx, dword [esp + 0x1c]
pop esi
mov word [0x4a9138], bp
pop ebp
mov byte [0x4a913a], al
mov byte [0x4a9133], cl
pop ebx
je 0x407a20
xor al, al
mov byte [0x4a9132], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4a9134], eax
pop ecx
ret
cmp byte [esp + 0x20], 0
jne 0x4079f5
or byte [0x4aa22d], bl
test dl, dl
je 0x4079f5
or byte [0x4aa22e], bl
test al, al
je case.default.0x407a12
or byte [0x4aa22f], bl
lea ecx, [esi - 0xa0]
mov al, 0x80
mov byte [esi + 0x4aa250], al
cmp ecx, 5
ja case.default.0x407a12
jmp dword [ecx*4 + 0x407a80]
mov byte [0x4aa260], al
jmp case.default.0x407a12
push ecx
call fcn.00407aa0
add esp, 4
mov byte [0x4a9132], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4a9134], eax
pop ecx
ret
Function at 0x407aa0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp al, 0xa0
je 0x407aaf
cmp al, 0x10
jne case.0x407b06.13
cmp byte [esp + 8], 0
jne case.0x407b06.13
cmp byte [0x4a913b], 0
je 0x407adb
xor eax, eax
cmp byte [eax + 0x4a911c], 0
jne 0x407adb
inc eax
cmp eax, 0x16
jl 0x407ac1
mov byte [0x4a913b], 0
xor al, al
pop esi
ret
cmp byte [0x4a9133], 0
je case.0x407b06.13
test dword [0x4a9138], 0x100
jne case.0x407b06.13
movzx eax, byte [0x4a913a]
add eax, 0xfffffff4
cmp eax, 0x22
ja case.0x407b06.13
movzx eax, byte [eax + 0x407b30]
jmp dword [eax*4 + 0x407b28]
call esi
sub eax, dword [0x4a9134]
cmp eax, 0x16
jb 0x407ad7
call esi
mov dword [0x4aca5c], eax
mov al, 1
pop esi
ret
Function at 0x4089f0
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 [0x4aa360], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x408a14
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4aa364], 0
je 0x408a23
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x408c30
test al, al
jne 0x408a66
cmp byte [ebp + 0xc], al
jne 0x408a66
push 0x4a9118
push 0
push 0
push 0x408d00
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4aca90], eax
test eax, eax
je 0x408af7
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 [0x4a9118]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
test eax, eax
jne 0x408a9c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x408a76
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 0x408b03
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x408b6a
cmp dword [esp + 0x2c], 0
je 0x408b12
mov byte [esp + 0x1f], 1
call fcn.004090a0
test al, al
jne 0x408b12
cmp byte [ebp + 0xc], al
jne 0x408bfe
mov byte [ebp + 8], al
jmp 0x408ab1
call fcn.004090c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x408b4e
call fcn.004090a0
test al, al
jne 0x408b6a
cmp byte [ebp + 0xc], 0
jne 0x408bf7
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4aa360], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
je 0x408ba2
test byte [esp + 0x1e], 1
jne 0x408bbb
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4aab4c], eax
jmp 0x408bbb
mov ecx, dword [0x4aca90]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x408b82
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x408b12
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x408ab1
mov edx, dword [0x4aca90]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [0x4aca90], 0
call fcn.004090c0
jmp 0x408b22
test byte [esp + 0x1e], 1
je 0x408bbb
mov eax, dword [0x4aab4c]
push eax
call edi
mov dword [0x4aab4c], 0
cmp dword [0x4aa364], 0
je 0x408bdd
test byte [esp + 0x1e], 2
jne 0x408bf7
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4aab50], eax
jmp 0x408bf7
test byte [esp + 0x1e], 2
je 0x408bf7
mov ecx, dword [0x4aab50]
push ecx
call edi
mov dword [0x4aab50], 0
cmp byte [esp + 0x1f], 0
je 0x408c30
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 [0x4a6884], 0
call fcn.004768b0
add esp, 0x18
mov dword [0x4a6884], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a4d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x80c
cmp byte [0x4aca94], 0
push ebx
push ebp
mov ebp, dword [esp + 0x81c]
push esi
push edi
jne 0x40a641
cmp dword [0x4aab68], 0
jne 0x40a502
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4aab68], eax
mov ebx, 1
add dword [0x4aca98], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x4aca98]
mov esi, dword [0x4a6898]
mov ecx, eax
sub ecx, dword [0x4aab68]
mov dword [0x4aab6c], eax
cmp edx, dword [0x4a6894]
jbe 0x40a538
cmp ecx, esi
jb 0x40a59c
xor edx, edx
cmp ecx, esi
jbe 0x40a555
mov dword [0x4aca98], 0
mov dword [0x4aab68], eax
test edx, edx
jne 0x40a641
mov esi, dword [esp + 0x820]
mov cl, byte [esi + 0x11]
push 0
mov byte [0x4ac879], cl
mov ecx, dword [ebp]
add byte [ebp + 0x16], bl
push 0
push str.call
push ecx
xor eax, eax
xor edx, edx
call fcn.0046a840
dec byte [ebp + 0x16]
add esp, 0x10
test eax, eax
jne 0x40a610
mov byte [ebp + 0x1b], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80c
ret 8
push ecx
push edx
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 + 0x24]
call fcn.00471fa0
add esp, 0xc
call fcn.00409580
fldz
push 0
sub esp, 8
fstp qword [esp]
push 0
mov eax, edi
push 4
push eax
mov byte [0x4aca94], bl
mov dword [0x4a6884], 0
call fcn.004768b0
add esp, 0x18
cmp eax, 7
jne 0x40a5f7
push 0
push 0x4ac290
xor eax, eax
mov edx, ebx
call fcn.00415be0
mov eax, dword [0x4aab6c]
mov dword [0x4a6884], ebx
mov byte [0x4aca94], 0
mov edx, ebx
jmp 0x40a53e
cmp byte [ebp + 0x1b], 0
je 0x40a641
mov byte [ebp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0xc]
cmp eax, 0x3e8
ja 0x40a641
movzx edx, word [esi]
mov eax, dword [0x4aa230]
push 0
push edx
push 0x312
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80c
ret 8
Function at 0x40ea50
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x2c
push esi
mov esi, eax
lea eax, [esp + 4]
test cl, cl
jns 0x40ea67
mov byte [esp + 4], 0x30
lea eax, [esp + 5]
push 0xa
push eax
movzx eax, cl
push eax
call fcn.00484a72
add esp, 0xc
test esi, esi
jle 0x40eb21
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
mov ebp, esi
push edi
mov esi, 1
mov edi, edi
cmp dword [0x4abb88], 0
jne 0x40eae8
call ebx
sub eax, dword [0x4ac8ac]
mov ecx, dword [0x4a6918]
cmp eax, dword [ecx + 0xb8]
jbe 0x40eae8
push 0
push 0
push 0
push 0
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40eae1
push esi
push 0xffffffffffffffff
mov dword [0x4a6884], 0
call fcn.00401350
add esp, 8
mov dword [0x4a6884], esi
call ebx
mov dword [0x4ac8ac], eax
lea edi, [esp + 0x10]
call fcn.0040eb30
cmp dword [0x4abb88], 2
jne 0x40eb04
mov eax, dword [0x4a6918]
mov eax, dword [eax + 0x60]
jmp 0x40eb0d
mov ecx, dword [0x4a6918]
mov eax, dword [ecx + 0x5c]
push eax
call fcn.004109d0
add esp, 4
sub ebp, esi
jne 0x40ea90
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x2c
ret

Function at 0x40eb30
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
cmp dword [0x4abb88], 0
push esi
je 0x40eb45
mov al, byte [0x4a914d]
jmp 0x40ec3a
cmp dword [0x4aa360], 0
je 0x40eb58
mov al, byte [0x4aa22d]
jmp 0x40ec3a
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push ebx
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40eb74
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40eb88
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40eb9c
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40ebb0
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ebc4
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40ebd8
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ebe9
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40ebfa
or bl, 0x80
cmp dword [0x4aa360], 0
je 0x40ec37
mov al, bl
not al
and al, byte [0x4aa22d]
je 0x40ec37
mov cl, byte [0x4aa22f]
not al
and byte [0x4aa22d], al
and byte [0x4aa22e], al
and cl, al
mov al, cl
mov byte [0x4aa22f], cl
mov ecx, 0x4aa250
call fcn.004115a0
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
push 0
movzx edx, al
push ecx
push edx
mov esi, 0xffc3d44d
call fcn.00410da0
mov al, byte [edi]
add esp, 0x14
mov esi, edi
cmp al, 0x30
jl 0x40ec8d
cmp al, 0x39
jg 0x40ec8d
push 0xffc3d44d
push 0
add al, 0x30
push 0
movzx eax, al
push 0
push eax
push 2
call fcn.0040ef20
mov al, byte [esi + 1]
inc esi
add esp, 0x18
cmp al, 0x30
jge 0x40ec66
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
call fcn.0040ef20
add esp, 0x18
pop esi
pop ecx
ret