joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47dc80
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x47dce6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x47dce6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x47dcc7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x49d4ba
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49d4f2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049b547
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049b51f
jmp 0x49d4fe
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49ebab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49ebed
call fcn.004a4724
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49ebed
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49ebe4
xor eax, eax
jmp 0x49ebf5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049ebfb
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a4c54
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a4c82
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a4ca0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a4bba
jmp 0x4a4ca0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a4ca0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a4bba
test edi, edi
mov eax, edi
jne 0x4a4c8a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401020
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x114
lea eax, [esp]
push esi
push edi
mov edi, dword [esp + 0x120]
push eax
push 0xf003f
push 0
push edi
push 0x80000002
mov esi, 0x91
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401094
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push eax
push eax
push eax
lea eax, [esp + 0x28]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x401089
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
add esp, 0x114
ret

Function at 0x4010a0
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x204
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x210]
push edi
mov edi, dword [esp + 0x210]
push edi
push esi
push str.SOFTWAREElectronic_Arts_s_sergc
push eax
call fcn.00401180
push edi
push esi
lea ecx, [esp + 0xa4]
push str.SOFTWAREElectronic_Arts_s_s
push ecx
call fcn.00401180
push esi
lea edx, [esp + 0x130]
push str.SOFTWAREElectronic_Arts_s
push edx
call fcn.00401180
mov ecx, 6
mov esi, 0x409c20
lea edi, [esp + 0x1b8]
add esp, 0x2c
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401176
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea edx, [esp + 0xc]
push edx
push 0x80000002
call esi
test eax, eax
jne 0x401176
lea eax, [esp + 0x8c]
push eax
push 0x80000002
call esi
test eax, eax
jne 0x401176
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x10c]
push edx
call fcn.00401020
lea eax, [esp + 0x190]
push eax
call fcn.00401020
add esp, 8
pop edi
pop esi
add esp, 0x204
ret

Function at 0x401f35
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x401f70
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x401f57
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x401f68
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x401f72
inc edi
add eax, 0x28
cmp edi, esi
jb 0x401f4d
xor eax, eax
pop edi
pop esi
ret

Function at 0x402e0b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00401ed3
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
Function at 0x403ee7
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi], edi
je 0x403f16
cmp dword [esi + 4], edi
jbe 0x403f0f
mov eax, dword [esi]
mov eax, dword [eax + edi*8]
test eax, eax
je 0x403f09
push eax
call fcn.004301e8
inc edi
cmp edi, dword [esi + 4]
jb 0x403efa
push dword [esi]
call fcn.004324f6
push ebx
xor ebx, ebx
mov edi, 0xe0
cmp dword [esi + 8], ebx
je 0x403f48
cmp dword [esi + 0xc], ebx
jbe 0x403f40
mov dword [ebp + 8], ebx
mov eax, dword [esi + 8]
add eax, dword [ebp + 8]
push eax
call fcn.00403e14
add dword [ebp + 8], edi
inc ebx
cmp ebx, dword [esi + 0xc]
jb 0x403f2b
push dword [esi + 8]
call fcn.004324f6
xor ebx, ebx
cmp dword [esi + 0x10], ebx
je 0x403f74
cmp dword [esi + 0x14], ebx
jbe 0x403f6c
and dword [ebp + 8], ebx
mov eax, dword [esi + 0x10]
add eax, dword [ebp + 8]
push eax
call fcn.00403e14
add dword [ebp + 8], edi
inc ebx
cmp ebx, dword [esi + 0x14]
jb 0x403f57
push dword [esi + 0x10]
call fcn.004324f6
xor edi, edi
pop ebx
cmp dword [esi + 0x18], edi
je 0x403f9f
cmp dword [esi + 0x1c], edi
jbe 0x403f97
mov eax, dword [esi + 0x18]
mov eax, dword [eax + edi*8]
test dword [edi + 0x65], eax
je 0x403fb9
push ebp
outsb dx, byte [esi]
imul ebp, dword [esi + 0x73], 0x6c6c6174
push edx
imul esi, dword gs:[bp + di + 0x74], 0x654b7972
imul esi, dword [bp + di + 0x74], 0x654b7972
jns 0x403fcf
jo 0x404016
xor dword [eax], eax
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
add byte [eax], al
add byte [ecx], al
add byte [ecx + 0x40], al
add byte [eax], al
add byte [esi + 0x2e000011], dh
adc dword [eax], eax
add byte [esi], ch
adc al, 0
add byte [0x516aede9], bl
cmp edi, dword [eax]
pop esp
add dword [edi - 0x7e818284], 0x383b8177
dec esi
dec esi
dec esi
cmp dword [ebx], 0x4e4e4e38
dec esi
adc byte [ebx - 0x6c685f5e], 0xa4
xchg ebx, eax
dec esi
mov al, byte [0xa1979593]
mov byte [0x994ea7a0], al
xchg ebx, eax
cmpsd dword [esi], dword es:[edi]
push esi
mov eax, dword [0x9d944e57]
mov al, byte [0xa1a7a14e]
mov byte [0x975b9b93], al
pushfd
mov eax, dword [0x9a9a8fa2]
xchg ebx, eax
xchg edx, eax
dec esi
invalid
invalid

Function at 0x404d1e
Capabilities:
Authenticate hmac

Disassembly:
xchg ebx, eax
lcall 0x907d, 0x5ba29193
cwde
xchg ebx, eax
xchg ecx, eax
mov byte [0xa6735b4e], al
sahf
invalid

Function at 0x405873
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
dec esi
push esi
pop eax
push edi
push eax
cmp edi, dword [eax]
dec esi
dec esi
dec esi
dec esi
push edx
cdq
xchg ebx, eax
cmpsd dword [esi], dword es:[edi]
pop esp
sbb dword [edi + edx*4 - 0x705d5e64], 0xffffff9a
lcall 0x959c, 0x97a0a281
cmp edi, dword [eax]
cmp edi, dword [eax]
dec esi
dec esi
dec esi
dec esi
test byte [ebx - 0x62685e60], dl
pushfd
dec esi
wait
invalid
Function at 0x403060
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x403074
inc dword [0x4a2d9c]
add dword [0x49f440], 0xe8
mov edx, dword [0x49f440]
push esi
push edi
mov ecx, 0x3a
mov esi, 0x4a18f0
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 0x4030a3
push 0
mov eax, 0x4a4c80
call fcn.00415050
cmp dword [0x4a2dc8], 0
mov dword [0x4a5260], 0
mov dword [0x4a5264], 0
je 0x4030cb
push 0x4a3438
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [esp + 0x10], 0
jne 0x40314f
or ecx, 0xffffffff
cmp byte [esi + 0xca], 0
jne 0x4030fa
xor eax, eax
cmp byte [esp + 0x14], 0x65
sete al
mov byte [esi + 0xca], al
test al, al
je 0x4030fa
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4a526c], 0
je 0x40310c
cmp dword [0x4a5268], 0
jne 0x403115
cmp byte [esi + 0xca], 0
je 0x40314f
cmp byte [esi + 0xca], 0
mov byte [esi + 0xc8], 0
jne 0x40314f
cmp dword [0x4a526c], 0
jge 0x403137
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 [0x4a526c]
mov dword [esi + 0xbc], edx
pop edi
pop esi
ret
Function at 0x403db0
Capabilities:
Write clipboard data

Disassembly:
cmp dword [0x4a52c4], 0
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
je 0x403dc8
pop ebp
xor eax, eax
pop ebx
ret 4
push esi
test ebp, ebp
je 0x403e15
cmp ebx, 0xffffffff
jne 0x403de2
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403dd7
sub eax, edx
mov ebx, eax
test ebx, ebx
je 0x403e15
push edi
lea edi, [ebx + 1]
mov esi, 0x4a52b8
call fcn.00403e30
pop edi
test eax, eax
jne 0x403dff
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [0x4a52c4]
push ebx
push ebp
push eax
mov esi, eax
call fcn.00481c00
add esp, 0xc
mov byte [esi + ebx], 0
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 1
mov ecx, 0x4a52b8
jmp fcn.00403ea0

Function at 0x403ea0
Capabilities:
Write clipboard data

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x18], edi
jne 0x403ec4
push esi
call fcn.004041c0
test eax, eax
jne 0x403ec4
push str.Cant_open_clipboard_for_writing.
call fcn.00403fb0
pop edi
pop esi
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x403efe
cmp dword [esi + 0x18], edi
je 0x403eef
cmp dword [esi + 8], edi
je 0x403ee4
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
push 0x4929e8
call fcn.00403fb0
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 0x403f41
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x403f69
cmp dword [esp + 0x10], 0xd
push ebx
jne 0x403f20
cmp word [eax], di
jmp 0x403f23
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 0x403f69
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 0x403f5e
cmp dword [esi + 8], edi
je 0x403f53
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 0x403f81
mov dword [esi + 4], edi
jmp 0x403f41
cmp dword [esi + 0x18], edi
je 0x403f9e
cmp dword [esi + 8], edi
je 0x403f93
mov ecx, dword [esi]
push ecx
call ebp
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
push 0x4929f8
call fcn.00403fb0
pop ebp
pop edi
pop esi
ret 4
Function at 0x404080
Capabilities:
Check for time delay via gettickcount
Read clipboard data

Disassembly:
lea eax, [esi - 0xc000]
sub esp, 0x108
cmp eax, 0x3fff
ja 0x40411d
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.0047f82b
add esp, 0xc
test eax, eax
je 0x404114
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.0047edc1
add esp, 8
test eax, eax
je 0x404114
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.0047edc1
add esp, 8
test eax, eax
je 0x404114
lea edx, [esp]
push str.Native
push edx
call fcn.0047edc1
add esp, 8
test eax, eax
je 0x404114
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.0047edc1
add esp, 8
test eax, eax
jne 0x404121
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 0x4041b0
jmp 0x404140
cmp esi, 0xf
je 0x4041ae
lea ecx, [esp + 0xc]
push str.OwnerLink
push ecx
call fcn.0047edc1
add esp, 8
test eax, eax
je 0x4041ae
mov eax, dword [0x49f3a0]
cmp eax, 0xffffffff
je 0x40417a
test eax, eax
je 0x4041ae
call ebp
mov edx, dword [0x49f3a0]
add edx, ebx
sub edx, eax
cmp edx, 5
jle 0x4041ae
push 1
push 0x8000012f
mov dword [0x49f3a4], 0
call fcn.004012a0
add esp, 8
push esi
mov dword [0x49f3a4], 1
call edi
test eax, eax
je 0x404140
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 0x4041c0
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0
je 0x4041d2
mov eax, 1
ret 4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov ecx, dword [0x4a2c30]
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
push ecx
mov edi, eax
call ebx
test eax, eax
jne 0x404240
mov eax, dword [0x49f3a0]
cmp eax, 0xffffffff
je 0x404211
test eax, eax
je 0x404256
call esi
mov edx, dword [0x49f3a0]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x404256
push 1
push 0x8000012f
mov dword [0x49f3a4], 0
call fcn.004012a0
mov eax, dword [0x4a2c30]
add esp, 8
push eax
mov dword [0x49f3a4], 1
call ebx
test eax, eax
je 0x4041f2
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 0x407640
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp al, 0xa0
je 0x40764f
cmp al, 0x10
jne case.0x4076a6.13
cmp byte [esp + 8], 0
jne case.0x4076a6.13
cmp byte [0x4a1b43], 0
je 0x40767b
xor eax, eax
cmp byte [eax + 0x4a1b24], 0
jne 0x40767b
inc eax
cmp eax, 0x16
jl 0x407661
mov byte [0x4a1b43], 0
xor al, al
pop esi
ret
cmp byte [0x4a1b3b], 0
je case.0x4076a6.13
test dword [0x4a1b40], 0x100
jne case.0x4076a6.13
movzx eax, byte [0x4a1b42]
add eax, 0xfffffff4
cmp eax, 0x22
ja case.0x4076a6.13
movzx eax, byte [eax + 0x4076d0]
jmp dword [eax*4 + 0x4076c8]
call esi
sub eax, dword [0x4a1b3c]
cmp eax, 0x16
jb 0x407677
call esi
mov dword [0x4a548c], eax
mov al, 1
pop esi
ret
Function at 0x4084e0
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 [0x4a2d60], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x408504
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4a2d64], 0
je 0x408513
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x408720
test al, al
jne 0x408556
cmp byte [ebp + 0xc], al
jne 0x408556
push 0x4a1b20
push 0
push 0
push 0x4087f0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4a54c0], eax
test eax, eax
je 0x4085e7
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 [0x4a1b20]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
test eax, eax
jne 0x40858c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x408566
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 0x4085f3
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x40865a
cmp dword [esp + 0x2c], 0
je 0x408602
mov byte [esp + 0x1f], 1
call fcn.00408b90
test al, al
jne 0x408602
cmp byte [ebp + 0xc], al
jne 0x4086ee
mov byte [ebp + 8], al
jmp 0x4085a1
call fcn.00408bb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x40863e
call fcn.00408b90
test al, al
jne 0x40865a
cmp byte [ebp + 0xc], 0
jne 0x4086e7
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4a2d60], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
je 0x408692
test byte [esp + 0x1e], 1
jne 0x4086ab
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4a3554], eax
jmp 0x4086ab
mov ecx, dword [0x4a54c0]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x408672
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x408602
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4085a1
mov edx, dword [0x4a54c0]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [0x4a54c0], 0
call fcn.00408bb0
jmp 0x408612
test byte [esp + 0x1e], 1
je 0x4086ab
mov eax, dword [0x4a3554]
push eax
call edi
mov dword [0x4a3554], 0
cmp dword [0x4a2d64], 0
je 0x4086cd
test byte [esp + 0x1e], 2
jne 0x4086e7
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4a3558], eax
jmp 0x4086e7
test byte [esp + 0x1e], 2
je 0x4086e7
mov ecx, dword [0x4a3558]
push ecx
call edi
mov dword [0x4a3558], 0
cmp byte [esp + 0x1f], 0
je 0x408720
fldz
push 0
sub esp, 8
fstp qword [esp]
push 0
push 0x10000
push str.Warning:_The_keyboard_and_or_mouse_hook_could_not_be_activated__some_parts_of_the_script_will_not_function.
mov dword [0x49f3a4], 0
call fcn.00470ca0
add esp, 0x18
mov dword [0x49f3a4], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409db0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x838
cmp byte [0x4a54c4], 0
push esi
push edi
jne 0x409f66
cmp dword [0x4a3570], 0
jne 0x409ddf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4a3570], eax
mov edi, 1
add dword [0x4a54c8], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x4a54c8]
mov esi, dword [0x49f3b8]
mov ecx, eax
sub ecx, dword [0x4a3570]
mov dword [0x4a3574], eax
cmp edx, dword [0x49f3b4]
jbe 0x409e96
cmp ecx, esi
jae 0x409e96
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.0046c720
add esp, 0xc
call fcn.00408fc0
fldz
push 0
sub esp, 8
fstp qword [esp]
push 0
mov eax, edi
push 4
push eax
mov byte [0x4a54c4], 1
mov dword [0x49f3a4], 0
call fcn.00470ca0
add esp, 0x18
cmp eax, 7
jne 0x409e7a
push 0
xor eax, eax
push 0x4a4c80
lea ecx, [eax + 1]
call fcn.004153c0
mov eax, dword [0x4a3574]
mov edx, dword [esp + 0x3c]
mov dword [0x49f3a4], 1
mov byte [0x4a54c4], 0
jmp 0x409e9c
xor edx, edx
cmp ecx, esi
jbe 0x409eb3
mov dword [0x4a54c8], 0
mov dword [0x4a3570], eax
test edx, edx
jne 0x409f66
mov esi, dword [ebp + 8]
mov cl, byte [esi + 0x11]
mov byte [0x4a5239], cl
cmp byte [esi + 0x1a], 0
je 0x409f2a
cmp byte [esi + 0x1b], 0
je 0x409f2a
mov byte [esp + 0x3b], 1
call fcn.0040b720
mov ecx, dword [0x49f440]
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.00423dd0
mov edx, dword [0x49f440]
mov dword [edx + 0x9c], esi
dec byte [ebx + 0x1f]
cmp byte [esp + 0x3b], 0
mov edi, eax
je 0x409f1a
mov esi, dword [ebp + 8]
call fcn.0040b650
test edi, edi
jne 0x409f31
mov byte [ebx + 0x24], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov byte [esp + 0x3b], 0
jmp 0x409ed5
cmp byte [ebx + 0x24], 0
je 0x409f66
mov byte [ebx + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 4]
cmp eax, 0x3e8
ja 0x409f66
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
mov edx, dword [0x4a2c30]
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 0x40e2f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x2c
push esi
mov esi, eax
lea eax, [esp + 4]
test cl, cl
jns 0x40e307
mov byte [esp + 4], 0x30
lea eax, [esp + 5]
push 0xa
push eax
movzx eax, cl
push eax
call fcn.0047ea52
add esp, 0xc
test esi, esi
jle 0x40e3c0
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, esi
jmp 0x40e330
cmp dword [0x4a4590], 0
jne 0x40e38d
call edi
sub eax, dword [0x4a5274]
mov ecx, dword [0x49f440]
cmp eax, dword [ecx + 0xb4]
jbe 0x40e38d
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 0x40e386
push 1
push 0xffffffffffffffff
mov dword [0x49f3a4], 0
call fcn.004012a0
add esp, 8
mov dword [0x49f3a4], 1
call edi
mov dword [0x4a5274], eax
lea eax, [esp + 0xc]
call fcn.0040e3d0
cmp dword [0x4a4590], 2
jne 0x40e3a9
mov eax, dword [0x49f440]
mov esi, dword [eax + 0x60]
jmp 0x40e3b2
mov ecx, dword [0x49f440]
mov esi, dword [ecx + 0x5c]
call fcn.00410300
dec ebp
jne 0x40e330
pop edi
pop ebp
pop esi
add esp, 0x2c
ret

Function at 0x40e3d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
cmp dword [0x4a4590], 0
push esi
mov esi, eax
je 0x40e3e7
mov al, byte [0x4a1b55]
jmp 0x40e4de
cmp dword [0x4a2d60], 0
je 0x40e3fa
mov al, byte [0x4a2c2d]
jmp 0x40e4de
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 0x40e417
mov bl, 0x10
push 0xa1
call edi
mov edx, 0x8000
test dx, ax
je 0x40e42b
or bl, 0x20
push 0xa2
call edi
mov ecx, 0x8000
test cx, ax
je 0x40e43f
or bl, 1
push 0xa3
call edi
mov edx, 0x8000
test dx, ax
je 0x40e453
or bl, 2
push 0xa4
call edi
mov ecx, 0x8000
test cx, ax
je 0x40e467
or bl, 4
push 0xa5
call edi
mov edx, 0x8000
test dx, ax
je 0x40e47b
or bl, 8
push 0x5b
call edi
mov ecx, 0x8000
test cx, ax
je 0x40e48c
or bl, 0x40
push 0x5c
call edi
mov edx, 0x8000
test dx, ax
je 0x40e49d
or bl, 0x80
cmp dword [0x4a2d60], 0
je 0x40e4da
mov al, bl
not al
and al, byte [0x4a2c2d]
je 0x40e4da
mov cl, byte [0x4a2c2f]
not al
and byte [0x4a2c2d], al
and byte [0x4a2c2e], al
and cl, al
mov al, cl
mov byte [0x4a2c2f], cl
mov ecx, 0x4a2c50
call fcn.00410eb0
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.004106b0
mov al, byte [esi]
add esp, 0x14
cmp al, 0x30
jl 0x40e52f
cmp al, 0x39
jg 0x40e52f
push 0xffc3d44d
push 0
add al, 0x30
push 0
movzx eax, al
push 0
push eax
push 2
call fcn.0040e7c0
mov al, byte [esi + 1]
inc esi
add esp, 0x18
cmp al, 0x30
jge 0x40e508
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
call fcn.0040e7c0
add esp, 0x18
pop esi
pop ecx
ret