joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fb444
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.004fb3c0
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4fb5bc
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4fb5bc
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4fb56b
jg 0x4fb49d
test eax, eax
je 0x4fb561
push 1
push 0x1000
call fcn.004f7219
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4fb4c3
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4fb558
push 0x8000
push ebx
call fcn.004f177d
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 0x4fb4ef
jg 0x4fb4ea
cmp ecx, 0x1000
jb 0x4fb4ef
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004f4bca
add esp, 0x10
cmp eax, 0xffffffff
je 0x4fb534
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 0x4fb4ea
jl 0x4fb51b
test ecx, ecx
jne 0x4fb4dc
push dword [ebp - 0xc]
push ebx
call fcn.004f177d
push esi
call fcn.004f5694
add esp, 0xc
xor edi, edi
jmp 0x4fb5cd
cmp byte [edi + 0x24], 0
je 0x4fb54b
cmp dword [edi + 0x20], 5
jne 0x4fb54b
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4fb556
mov edi, dword [edi + 0x18]
jmp 0x4fb558
xor edi, edi
push esi
call fcn.004f5694
pop ecx
jmp 0x4fb5cd
test ecx, ecx
jg 0x4fb52d
jl 0x4fb56b
test eax, eax
jae 0x4fb52d
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004f01a0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4fb58e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4fb52d
jmp 0x4fb5c5
push ebx
call fcn.004fb356
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4fb52d
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 0x4fb5cd
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4fb5ca
mov edi, dword [edi + 0x18]
jmp 0x4fb5cd
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004f01a0
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4fc632
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x55f3d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4fc67d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004fc7d1
test al, al
jne 0x4fc677
sub edx, 2
cmp edx, edi
jne 0x4fc65d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4fc69f
lea eax, [edi + 2]
cmp edx, eax
je 0x4fc69f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004fc57e
add esp, 0x10
jmp 0x4fc799
push esi
lea ecx, [ebp - 0x255]
call fcn.004fc7d1
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4fc6e2
push dword [ebp - 0x25c]
jmp 0x4fc68f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4fc71f
cmp word [ebp - 0x226], 0
je 0x4fc740
cmp word [ebp - 0x226], ax
jne 0x4fc71f
cmp word [ebp - 0x224], 0
je 0x4fc740
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004fc57e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4fc78c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4fc6f9
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4fc774
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4fc799
push 0x4fc3ae
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004ed900
add esp, 0x10
jmp 0x4fc769
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d635c
leave
ret

Function at 0x4fd0bd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4fd0ce
pop esi
ret
push ebx
push edi
push esi
call fcn.004fd086
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004f56ce
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4fd0f6
push ebx
push esi
push edi
call fcn.004d7f40
add esp, 0xc
push 0
call fcn.004f5694
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4fd4ba
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fd10b
Function at 0x502f20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x502f4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x502f4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x418180
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x411015
lea edi, [esi - 0x10015]
push edi
or ebp, 0xffffffff
jmp 0x4181a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4181a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x418198
mov eax, 1
add ebx, ebx
jne 0x4181bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4181b0
jne 0x4181cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4181b0
xor ecx, ecx
sub eax, 3
jb 0x4181e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x418252
mov ebp, eax
add ebx, ebx
jne 0x4181eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4181f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41821c
inc ecx
add ebx, ebx
jne 0x418208
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4181fd
jne 0x418219
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4181fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41823c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41822d
jmp 0x41819e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41823c
add edi, ecx
jmp 0x41819e
pop esi
mov edi, esi
mov ecx, 0xb97
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41825a
cmp byte [edi], 4
jne 0x41825a
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 0x41825f
lea edi, [esi + 0x16000]
mov eax, dword [edi]
or eax, eax
je 0x4182ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18110]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41828c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x18118]
or eax, eax
je 0x4182c8
mov dword [ebx], eax
add ebx, 4
jmp 0x4182a9
call dword [esi + 0x18114]
mov ebp, dword [esi + 0x1811c]
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
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x418302
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x4047c0
Capabilities:
Set current directory

Disassembly:
push ecx
cmp byte [esp + 8], 0
mov eax, ecx
push ebx
mov ebx, dword [0x4e7024]
mov ecx, 0x42
push esi
push edi
mov byte [esp + 0xf], dl
mov esi, 0x4e96e0
je 0x404808
inc dword [0x4e97fc]
add ebx, 0x108
mov edi, ebx
mov dword [0x4e7024], ebx
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, 0x4eb990
mov dword [ebx + 0x2c], eax
call fcn.00423e80
jmp 0x40480f
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x2c], eax
cmp dword [0x4e9810], 0
xorps xmm0, xmm0
movlpd qword [0x4ec490], xmm0
je 0x40483f
mov eax, dword [0x4e8a24]
mov ecx, 0x4bfb90
test eax, eax
je 0x404838
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [esp + 0xf], 0
jne 0x4048c4
mov cl, byte [ebx + 0xee]
test cl, cl
jne 0x404874
cmp byte [esp + 0x18], 0x65
sete cl
mov byte [ebx + 0xee], cl
jne 0x404874
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x24], 0xffffffff
cmp dword [0x4ec49c], 0
je 0x404886
cmp dword [0x4ec498], 0
jne 0x40488a
test cl, cl
je 0x4048c4
mov byte [ebx + 0xec], 0
test cl, cl
jne 0x4048c4
cmp dword [0x4ec49c], 0
jge 0x4048ad
pop edi
pop esi
mov dword [ebx + 0xe0], 0xffffffff
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0xdc], eax
mov eax, dword [0x4ec49c]
mov dword [ebx + 0xe0], eax
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x405c10
Capabilities:
Write clipboard data

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
jne 0x405c32
call fcn.00405ee0
test eax, eax
jne 0x405c32
push str.Cant_open_clipboard_for_writing.
mov ecx, esi
call fcn.00405d40
pop esi
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x405c78
cmp dword [esi + 0x18], eax
je 0x405c68
cmp dword [esi + 8], eax
je 0x405c55
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], 0
mov dword [esi], 0
push 0x4c010c
mov ecx, esi
call fcn.00405d40
pop esi
ret 4
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
je 0x405cba
mov ecx, dword [esi + 0xc]
push ebx
xor bl, bl
test ecx, ecx
je 0x405cab
cmp word [ecx], 0
push eax
sete bl
call edi
mov eax, dword [esi + 4]
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
test bl, bl
pop ebx
push eax
je 0x405cee
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], 0
je 0x405ce4
cmp dword [esi + 8], 0
je 0x405cd1
push dword [esi]
call edi
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], 0
mov dword [esi], 0
pop edi
mov eax, 1
pop esi
ret 4
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x405d03
mov dword [esi + 4], 0
jmp 0x405cba
cmp dword [esi + 0x18], 0
je 0x405d2d
cmp dword [esi + 8], 0
je 0x405d1a
push dword [esi]
call edi
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], 0
mov dword [esi], 0
push 0x4c012c
mov ecx, esi
call fcn.00405d40
pop edi
pop esi
ret 4
Function at 0x405dd0
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
push ebx
push esi
mov esi, dword [esp + 0x21c]
push edi
test esi, esi
je 0x405dea
mov dword [esi], 0
mov ebx, dword [esp + 0x21c]
lea eax, [ebx - 0xc000]
cmp eax, 0x3fff
ja 0x405ec0
push 0x104
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
push 0xb
lea eax, [esp + 0x10]
push str.Link_Source
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x405eb2
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
lea eax, [esp + 0xc]
push str.ObjectLink
push eax
call edi
add esp, 8
test eax, eax
je 0x405eb2
lea eax, [esp + 0xc]
push str.OwnerLink
push eax
call edi
add esp, 8
test eax, eax
je 0x405eb2
lea eax, [esp + 0xc]
push str.Native
push eax
call edi
add esp, 8
test eax, eax
je 0x405eb2
lea eax, [esp + 0xc]
push str.Embed_Source
push eax
call edi
add esp, 8
test eax, eax
je 0x405eb2
lea eax, [esp + 0xc]
push str.MSDEVColumnSelect
push eax
call edi
add esp, 8
test eax, eax
je 0x405ea8
lea eax, [esp + 0xc]
push str.MSDEVLineSelect
push eax
call edi
add esp, 8
test eax, eax
jne 0x405ec7
test esi, esi
je 0x405eb2
mov dword [esi], 1
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20c
ret 8
xor eax, eax
mov word [esp + 0xc], ax
push ebx
call dword [sym.imp.USER32.dll_GetClipboardData]
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
mov ebx, ecx
push ebp
push esi
push edi
cmp dword [ebx + 0x18], 0
jne 0x405f65
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
push dword [0x4e9814]
mov edi, dword [sym.imp.USER32.dll_OpenClipboard]
mov ebp, eax
call edi
test eax, eax
jne 0x405f5e
nop
mov eax, dword [0x4e7030]
cmp eax, 0xffffffff
je 0x405f2f
test eax, eax
je 0x405f72
call esi
mov ecx, dword [0x4e7030]
add ecx, ebp
sub ecx, eax
cmp ecx, 5
jle 0x405f72
mov edx, 1
mov dword [0x4e701c], 0
mov ecx, 0x8000012f
call fcn.004016d0
push dword [0x4e9814]
mov dword [0x4e701c], 1
call edi
test eax, eax
je 0x405f10
mov dword [ebx + 0x18], 1
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406430
Capabilities:
Resume thread
Suspend thread

Disassembly:
sub esp, 8
cmp byte [0x4ec488], 0
push ebx
push esi
push edi
je 0x4064d9
mov edi, dword fs:[0x24]
cmp dword [0x4eb104], edi
je 0x40645e
push dword [0x4eb978]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ebx, dword [esp + 0x18]
mov esi, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x406467
sub esi, ecx
sar esi, 1
cmp word [ebx], ax
je 0x4064e2
lea eax, [esp + 0xf]
mov ecx, 0x4eb990
push eax
push 3
lea eax, [esp + 0x18]
push eax
push esi
push ebx
call fcn.00430780
test eax, eax
jne 0x4064b4
cmp byte [esp + 0xf], al
mov ecx, 0x4eb990
setne al
inc eax
push eax
push dword [esp + 0x14]
push esi
push ebx
call fcn.00430ce0
test eax, eax
je 0x4064e2
push 1
push 0
push 0xffffffffffffffff
push dword [esp + 0x28]
mov ecx, eax
call fcn.004a5f40
cmp dword [0x4eb104], edi
je 0x4064d9
push dword [0x4eb978]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [0x4eb104], edi
je 0x4064f6
push dword [0x4eb978]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 8
ret
Function at 0x40b730
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push ebx
xor al, al
mov bl, cl
cmp dword [0x4e9834], 0
mov ecx, 1
push ebp
movzx eax, al
mov bh, dl
cmovne eax, ecx
mov byte [esp + 0xb], bh
cmp dword [0x4e9830], 0
push esi
push edi
mov dword [esp + 0x14], eax
je 0x40b76d
or eax, 2
mov dword [esp + 0x14], eax
cmp bl, al
je 0x40b96a
test al, al
jne 0x40b7ae
test bh, bh
jne 0x40b7ae
push 0x4ea340
push 0
push 0
push 0x40b9e0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4ec6a4], eax
test eax, eax
je 0x40b866
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
movzx edi, bh
xor esi, esi
xor edi, 1
movzx ebp, bl
nop dword [eax]
push edi
push ebp
push 0x417
push dword [0x4ea340]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x40b7e5
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x40b7c0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor bh, bh
call esi
mov ebp, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, eax
mov dh, bl
mov dl, bh
test bl, bl
je 0x40b873
push 1
push 0x417
push 0x417
push 0
lea eax, [esp + 0x2c]
push eax
call ebp
test eax, eax
je 0x40b851
cmp dword [esp + 0x24], 0
je 0x40b88d
mov bh, 1
call fcn.0040bd40
test al, al
jne 0x40b88d
cmp byte [esp + 0x13], al
jne 0x40b93d
xor bl, bl
lea eax, [esp + 0x18]
push eax
push dword [0x4ec6a4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x18], 0x103
jne 0x40b89a
call esi
sub eax, edi
cmp eax, 0x1f4
ja 0x40b88d
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40b7f7
call fcn.0040bd60
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x13], 0
mov bh, dl
mov bl, dh
je 0x40b836
call fcn.0040bd40
test al, al
je 0x40b939
jmp 0x40b851
cmp byte [esp + 0x13], 0
jne 0x40b939
jmp 0x40b8b5
push dword [0x4ec6a4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4ec6a4], 0
call fcn.0040bd60
mov al, byte [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
and al, 1
cmp dword [0x4e9834], 0
je 0x40b8e0
test al, al
jne 0x40b8fa
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4ec69c], eax
jmp 0x40b8fa
test al, al
je 0x40b8fa
push dword [0x4ec69c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4ec69c], 0
mov eax, dword [esp + 0x14]
and al, 2
cmp dword [0x4e9830], 0
je 0x40b91f
test al, al
jne 0x40b939
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4ec6a0], eax
jmp 0x40b939
test al, al
je 0x40b939
push dword [0x4ec6a0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4ec6a0], 0
test bh, bh
je 0x40b96a
push 0
push 0
xorps xmm3, xmm3
mov dword [0x4e701c], 0
mov edx, 0x10000
mov ecx, str.Warning:_The_keyboard_and_or_mouse_hook_could_not_be_activated__some_parts_of_the_script_will_not_function.
call fcn.004a7e00
add esp, 8
mov dword [0x4e701c], 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cfc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x1004
call fcn.004bd970
cmp byte [0x4ed8f8], 0
push ebx
push esi
push edi
mov ebx, ecx
jne 0x40d169
cmp dword [0x4ea380], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x40cff2
call edi
mov dword [0x4ea380], eax
inc dword [0x4ed8f4]
call edi
mov esi, dword [0x4ed8f4]
mov ecx, eax
sub ecx, dword [0x4ea380]
mov edx, dword [0x4e82a4]
mov dword [0x4ea37c], eax
cmp esi, dword [0x4e82a8]
jbe 0x40d0e7
cmp ecx, edx
jae 0x40d0e9
push ecx
push esi
push str._u_hotkeys_have_been_received_in_the_last__ums._n_nDo_you_want_to_continue__n_see_MaxHotkeysPerInterval_in_the_help_file_
lea eax, [esp + 0x1c]
push 0x800
push eax
call fcn.004a19b0
mov dx, word [0x4ea378]
xor eax, eax
add esp, 0x14
xor ecx, ecx
cmp ax, dx
jae 0x40d07a
mov eax, dword [0x4ea368]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x40d072
nop
mov byte [eax + 0x1b], 0
mov eax, dword [eax + 8]
test eax, eax
jne 0x40d060
mov dx, word [0x4ea378]
inc ecx
movzx eax, dx
cmp ecx, eax
jl 0x40d050
push 0
push 0
xorps xmm3, xmm3
mov byte [0x4ed8f8], 1
mov edx, 4
mov dword [0x4e701c], 0
lea ecx, [esp + 0x18]
call fcn.004a7e00
add esp, 8
cmp eax, 7
jne 0x40d0b6
push 0
push 4
mov ecx, 0x4eb990
call fcn.004241a0
mov eax, dword [0x4ea37c]
mov dword [0x4e701c], 1
mov byte [0x4ed8f8], 0
mov dword [0x4ed8f4], 0
mov dword [0x4ea380], eax
pop edi
pop esi
pop ebx
add esp, 0x1004
ret 4
cmp ecx, edx
jbe 0x40d0fa
mov dword [0x4ed8f4], 0
mov dword [0x4ea380], eax
mov esi, dword [esp + 0x1014]
mov al, byte [ebx + 0xf]
push 0
push 0
mov byte [0x4ec46e], al
inc byte [esi + 0x16]
mov ecx, dword [esi]
mov edx, ecx
push 0
push 0
push 0x4bfc08
call fcn.0048dde0
dec byte [esi + 0x16]
add esp, 0x14
test eax, eax
jne 0x40d13b
mov byte [esi + 0x1b], al
pop edi
pop esi
pop ebx
add esp, 0x1004
ret 4
cmp byte [esi + 0x1b], 0
je 0x40d169
mov byte [esi + 0x1b], 0
call edi
sub eax, dword [esi + 0xc]
cmp eax, 0x3e8
ja 0x40d169
movzx eax, word [ebx + 4]
push 0
push eax
push 0x312
push dword [0x4e9814]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebx
add esp, 0x1004
ret 4
Function at 0x412a00
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov bl, byte [ebp + 0xc]
mov bh, cl
or byte [ebp + 8], bl
mov al, bh
dec al
mov dword [esp + 8], edx
push esi
push edi
cmp al, 5
ja 0x412a25
cmp bh, 3
jne 0x412a2d
mov al, bh
add al, 0x66
cmp al, 5
ja 0x412a34
mov byte [esp + 0xf], 1
jmp 0x412a39
mov byte [esp + 0xf], 0
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x1c]
test esi, esi
jle 0x412b6c
mov bl, byte [esp + 0xf]
nop dword [eax + eax]
cmp dword [0x4ec738], 0
jne 0x412ab6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4e7024]
sub eax, dword [0x4ec4a4]
cmp eax, dword [ecx + 0xd8]
jbe 0x412abc
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x412aab
mov edx, 1
mov dword [0x4e701c], 0
or ecx, 0xffffffff
call fcn.004016d0
mov dword [0x4e701c], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4ec4a4], eax
mov ecx, dword [0x4e7024]
cmp byte [ebp + 0x18], 0
jne 0x412b10
mov al, byte [ecx + 0xf6]
test al, al
je 0x412ad8
movzx eax, al
mov esi, 0xffc3d44d
sub esi, eax
jmp 0x412add
mov esi, 0xffc3d44f
cmp dword [0x4ec738], 0
je 0x412aed
mov al, byte [0x4ec72c]
jmp 0x412af4
xor cl, cl
call fcn.004158b0
mov cl, byte [ebp + 8]
mov dl, al
push esi
push 1
push 0
push edi
call fcn.00415180
mov ecx, dword [0x4e7024]
add esp, 0x10
mov esi, dword [ebp + 0x10]
test bl, bl
je 0x412b3a
test edi, edi
jne 0x412b3a
push dword [ebp + 0x28]
movzx eax, byte [ecx + 0xef]
mov cl, bh
push dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
push eax
push 1
push dword [ebp + 0x24]
call fcn.00413f60
add esp, 0x14
jmp 0x412b5d
movzx eax, byte [ecx + 0xf6]
mov dl, bh
mov ecx, 0xffc3d44d
sub ecx, eax
push ecx
mov ecx, dword [ebp + 0x14]
push 1
push edi
push dword [esp + 0x1c]
call fcn.00413020
add esp, 0x10
sub esi, 1
mov dword [ebp + 0x10], esi
jne 0x412a50
mov bl, byte [ebp + 0xc]
cmp byte [ebp + 0x18], 0
jne 0x412ba8
cmp dword [0x4ec738], 0
je 0x412b82
mov al, byte [0x4ec72c]
jmp 0x412b89
xor cl, cl
call fcn.004158b0
not bl
and bl, al
and bl, 0xcc
je 0x412ba8
push 0xffc3d44d
push 0
push 1
push edi
mov dl, bl
xor cl, cl
call fcn.00415180
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412bb0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x40
mov eax, dword [0x4ec738]
cmp eax, 2
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
sete byte [esp + 0xf]
jne 0x412bfc
movzx edx, bx
mov ecx, edx
and ecx, 0xffffff80
je 0x412bdd
mov eax, 0x30
mov word [esp + 0x2c], ax
test ecx, ecx
lea eax, [esp + 0x2c]
lea edi, [esp + 0x2e]
push 0xa
cmovne eax, edi
push eax
push edx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow]
mov eax, dword [0x4ec738]
add esp, 0xc
test esi, esi
jle 0x412cae
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
mov ebp, dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x412c66
call edi
mov ecx, dword [0x4e7024]
sub eax, dword [0x4ec4a4]
cmp eax, dword [ecx + 0xd8]
jbe 0x412c66
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call ebp
test eax, eax
je 0x412c5f
mov edx, 1
mov dword [0x4e701c], 0
or ecx, 0xffffffff
call fcn.004016d0
mov dword [0x4e701c], 1
call edi
mov dword [0x4ec4a4], eax
cmp byte [esp + 0x13], 0
je 0x412c78
lea ecx, [esp + 0x30]
call fcn.00412cc0
jmp 0x412c83
mov dl, byte [esp + 0x54]
mov ecx, ebx
call fcn.004114e0
cmp dword [0x4ec738], 2
mov eax, dword [0x4e7024]
jne 0x412c96
mov ecx, dword [eax + 0x60]
jmp 0x412c99
mov ecx, dword [eax + 0x5c]
call fcn.00414d60
sub esi, 1
je 0x412cad
mov eax, dword [0x4ec738]
jmp 0x412c11
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x40
ret