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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
push edi
mov edi, edx
mov dword [esp + 0x14], edi
test eax, eax
je 0x428e62
movsd xmm0, qword [eax]
xor bl, bl
mulsd xmm0, qword [0x4db990]
cvttsd2si eax, xmm0
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x428e6d
and dword [esp + 0xc], 0
mov bl, 1
mov eax, dword [esp + 0x1c]
push 1
xor dl, dl
mov dword [esp + 0x14], eax
mov ecx, esi
call fcn.00458620
pop ecx
movzx ecx, byte [ebp + 0xc]
mov esi, eax
xor ecx, 1
xor eax, eax
test esi, esi
mov dword [esp + 0x1c], ecx
setne al
cmp ecx, eax
je 0x428eda
test bl, bl
jne 0x428eb2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x10]
add ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
sub ecx, eax
cmp ecx, 5
jle 0x428eda
xor edx, edx
push 0x64
inc edx
pop ecx
call fcn.004015e0
mov ecx, dword [esp + 0x18]
xor dl, dl
push 1
call fcn.00458620
mov esi, eax
xor eax, eax
test esi, esi
pop ecx
setne al
cmp dword [esp + 0x1c], eax
jne 0x428e95
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42905a
Capabilities:
Get disk information
Get process image filename

Disassembly:
sub esp, 0x210
xor eax, eax
push ebp
push esi
push ecx
mov esi, edx
push eax
push 0x1000
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
test ebp, ebp
je 0x429170
push edi
push 0x104
push esi
push ebp
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
mov edi, eax
test edi, edi
je 0x429166
cmp byte [esp + 0x224], 0
push ebx
je 0x4290d2
push 0x5c
push esi
call fcn.0049c7ee
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x429165
push ebx
call fcn.004a32fd
add eax, eax
push eax
lea eax, [ebx + 2]
push eax
push esi
call fcn.0049c940
add esp, 0x10
jmp 0x429165
push 0x3a
pop eax
mov word [esp + 0x12], ax
xor eax, eax
push 0x41
mov word [esp + 0x18], ax
pop eax
mov word [esp + 0x10], ax
push 0x104
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov ebx, eax
cmp ebx, 2
jbe 0x429126
sub ebx, 2
lea eax, [esp + 0x18]
push ebx
push esi
push eax
call fcn.004a9ae6
add esp, 0xc
test eax, eax
jne 0x429126
push 0x5c
lea ecx, [esi + ebx*2]
pop eax
cmp word [ecx], ax
je 0x42913a
mov ax, word [esp + 0x10]
inc ax
mov word [esp + 0x10], ax
cmp ax, 0x5a
jbe 0x4290e9
jmp 0x429165
mov ax, word [esp + 0x10]
sub edi, ebx
mov word [esi], ax
mov ax, word [esp + 0x12]
mov word [esi + 2], ax
lea eax, [edi*2 + 2]
push eax
push ecx
lea eax, [esi + 4]
push eax
call fcn.0049c940
add esp, 0xc
add edi, 2
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x433062
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4e9574]
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
jmp 0x4330f8
test edi, edi
js 0x433093
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esi + edi]
sub ecx, eax
cmp ecx, 5
jle 0x43310c
xor edx, edx
mov ecx, 0x8000012f
inc edx
call fcn.004015e0
test al, al
je 0x4330f8
mov eax, dword [0x4e37f8]
cmp byte [eax + 0x9a], 0
je 0x4330f8
mov eax, dword [0x4e8cf8]
mov ecx, 0x190
mov edx, dword [ebp - 4]
test eax, eax
cmovne ecx, eax
cmp dword [ecx*4 + 0x4e86b4], edx
jne 0x4330d6
cmp dword [ecx*4 + 0x4e8074], esi
je 0x4330f8
mov dword [eax*4 + 0x4e86b8], edx
mov dword [eax*4 + 0x4e8078], esi
inc eax
mov dword [0x4e8cf8], eax
cmp eax, 0x190
jl 0x4330f8
and dword [0x4e8cf8], 0
push ebx
call dword [ebp + 8]
pop ecx
test al, al
je 0x43307f
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
xor al, al
jmp 0x433107
Function at 0x4396e0
Capabilities:
Find taskbar

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x289], 0
je 0x439834
cmp byte [esp + 8], 0
mov edx, dword [0x4e37f8]
mov cl, byte [0x4e7e7d]
jne 0x439727
cmp byte [esi + 0x720], 0
jne 0x439834
mov al, byte [edx + 0x50]
cmp al, byte [0x4e9f91]
jne 0x439727
cmp cl, byte [0x4e9f90]
je 0x439834
mov dl, byte [edx + 0x50]
push ebx
push edi
test dl, dl
je 0x43973f
xor ebx, ebx
test cl, cl
setne bl
add ebx, 0xcf
jmp 0x43974e
test cl, cl
mov ebx, 0x9f
mov eax, 0xce
cmovne ebx, eax
mov eax, dword [esi + 0x718]
test eax, eax
je 0x439771
cmp byte [esi + 0x720], 0
jne 0x4397f5
test dl, dl
jne 0x439771
test cl, cl
je 0x4397f5
mov eax, dword [0x4ea0ec]
mov dword [esi + 0x299], 0
test al, 1
jne 0x4397a8
push str.GetDpiForWindow
or eax, 1
push str.user32.dll
mov dword [0x4ea0ec], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ea0f0], eax
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp dword [0x4ea0f0], 0
mov edi, eax
je 0x4397df
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
push eax
call dword [0x4ea0f0]
push dword [0x4e8f1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edi, eax
push 0x8000
push edi
push edi
push 1
push ebx
push dword [0x4e7ce0]
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [esi + 0x299], eax
add esi, 0x285
mov edi, dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
push esi
push 1
call edi
test eax, eax
jne 0x439818
push esi
push eax
call edi
test eax, eax
je 0x439832
mov eax, dword [0x4e37f8]
movzx eax, byte [eax + 0x50]
mov byte [0x4e9f91], al
movzx eax, byte [0x4e7e7d]
mov byte [0x4e9f90], al
pop edi
pop ebx
pop esi
ret 4
Function at 0x439b70
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [0x4e37f4]
push ebx
push esi
push edi
lea eax, [eax + eax*4]
add eax, 0xa
shl eax, 5
push eax
call fcn.0049ee1d
add esp, 4
mov dword [0x4e7ca8], eax
test eax, eax
jne 0x439b97
pop edi
pop esi
pop ebx
ret
mov esi, dword [0x4e37f8]
mov edi, eax
inc dword [0x4e7cbc]
mov ecx, 0x28
push 0x4045f0
push 0x4ef6d80
push 0xe
push dword [0x4e7ccc]
rep movsd dword es:[edi], dword [esi]
mov dword [0x4e37f8], eax
mov dword [eax + 0x58], 0
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [0x4e8f30], 0
jne 0x439be3
mov ebx, 1
jmp 0x439c9c
mov eax, dword [0x4e37f8]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [eax + 0x53], 0
call esi
mov ecx, dword [0x4e37f8]
mov dword [ecx + 0x48], eax
mov dword [ecx + 0x44], 0x64
mov byte [0x4e9605], 1
call esi
mov ecx, dword [0x4e8eac]
mov dword [0x4e961c], eax
cmp ecx, dword [0x4e8eb0]
jne 0x439c2b
call fcn.0040709e
mov ecx, dword [0x4e8eac]
cmp ecx, dword [0x4e8ea8]
jb 0x439c40
mov eax, dword [0x4e9574]
mov dword [ecx], eax
mov ecx, dword [0x4e8eac]
add ecx, 0xc
mov dword [0x4e8eac], ecx
push 0
push 0
mov dword [ecx], 0
mov dword [ecx + 4], str.Auto_execute
mov dword [ecx + 8], 0
mov ecx, dword [0x4e8f30]
push 1
call fcn.004487a0
mov ecx, dword [0x4e8eac]
mov ebx, eax
sub ecx, 0xc
mov dword [0x4e8eac], ecx
cmp ecx, dword [0x4e8ea8]
jb 0x439c95
mov ecx, dword [ecx]
mov dword [0x4e8ebc], ecx
mov dword [0x4e9574], ecx
mov byte [0x4e9605], 0
mov esi, dword [0x4e37f8]
dec dword [0x4e7cbc]
mov edi, dword [esi + 0x30]
test edi, edi
je 0x439ce7
cmp dword [edi + 8], 5
jne 0x439cbd
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [edi + 0x14]
test eax, eax
je 0x439ccd
push eax
call fcn.0049ee02
add esp, 4
push 0x20
push dword [esi + 0x30]
call fcn.0049b408
mov dword [esi + 0x30], 0
add esp, 8
mov esi, dword [0x4e37f8]
pop edi
mov dword [esi + 0x3c], connect
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x43a300
Capabilities:
Check if file exists
Set current directory

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
cmp esi, 0xfffffffe
je 0x43a330
mov eax, dword [0x4e37f8]
lea ecx, [edi + 0x30]
mov dword [0x4e37f0], 0
mov byte [eax + 0x50], 0
call fcn.0043a280
lea ecx, [edi + 0x10]
call fcn.0043a2d0
push 0
push esi
mov ecx, 0x4e8ea8
call fcn.0040ac9b
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
push esi
call fcn.004a9ed7
pop edi
pop esi
Function at 0x4433b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x10004
call fcn.004b5610
push edi
push dword [esp + 0x10014]
lea eax, [esp + 8]
push dword [esp + 0x10014]
push str._s_s
push 0x8001
push eax
call fcn.004816a0
add esp, 0x14
mov edi, eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x443436
test al, 0x10
je 0x443436
lea ecx, [edi*2 + 0x204]
call fcn.0047e400
mov ecx, eax
test ecx, ecx
je 0x44344d
push esi
mov esi, dword [esp + 0x10010]
lea eax, [edi*2 + 2]
push eax
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esi], ecx
call fcn.0049c940
add esp, 0xc
mov dword [esi + 4], edi
pop esi
pop edi
add esp, 0x10004
ret 0xc
mov eax, dword [esp + 0x1000c]
pop edi
mov dword [eax], 0x4cdea8
add esp, 0x10004
ret 0xc
call fcn.0040dba0
int3

Function at 0x443460
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x208
cmp dword [0x4e9f78], 0
mov eax, dword [esp + 0x214]
push ebx
push ebp
mov ebx, ecx
mov byte [eax], 0
mov eax, dword [esp + 0x220]
push esi
mov dword [esp + 0x14], ebx
mov byte [eax], 0
jne 0x4434ed
push str.Lib_
push dword [ebx + 0x6b8]
push 0x4e9f78
call fcn.004433b0
lea eax, [esp + 0x10]
push eax
push 0
push 0x4000
push 0x4b7850
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
xor esi, esi
test eax, eax
push str.AutoHotkeyLib_
cmovns esi, dword [esp + 0x14]
push esi
push 0x4e9f80
call fcn.004433b0
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.Lib_
push dword [ebx + 0x6c8]
push 0x4e9f88
call fcn.004433b0
mov ebx, dword [esp + 0x21c]
mov ebp, dword [esp + 0x218]
test ebx, ebx
jne 0x443513
mov ebx, ebp
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x443504
sub ebx, ecx
sar ebx, 1
cmp ebx, 0xfd
ja 0x44360f
mov edx, ebp
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
push edi
nop
xor esi, esi
mov ecx, dword [esi*8 + 0x4e9f78]
cmp word [ecx], 0
je 0x44358b
mov eax, dword [esi*8 + 0x4e9f7c]
lea edi, [ebx + ebx]
push edi
push edx
lea eax, [ecx + eax*2]
push eax
call fcn.0049c940
movq xmm0, qword [str..ahk]
add esp, 0xc
movq qword [edi + eax], xmm0
lea ecx, [edi + eax]
mov ax, word [0x4d5d9c]
mov word [ecx + 8], ax
push dword [esi*8 + 0x4e9f78]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x443587
test al, 0x10
je 0x4435e2
mov edx, dword [esp + 0x10]
inc esi
cmp esi, 3
jl 0x443532
push 0x5f
push ebp
call fcn.0049c891
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x44360e
sub ebx, ebp
sar ebx, 1
cmp ebx, 0xfe
jae 0x44360e
lea esi, [ebx + ebx]
push esi
lea eax, [esp + 0x20]
push ebp
push eax
mov dword [esp + 0x1c], eax
call fcn.0049c940
xor eax, eax
add esp, 0xc
mov word [esp + esi + 0x1c], ax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 2
jge 0x44360e
mov edx, dword [esp + 0x10]
jmp 0x443530
mov eax, dword [esp + 0x228]
mov ecx, dword [esp + 0x18]
push 0
push 0
push dword [esi*8 + 0x4e9f78]
mov byte [eax], 1
call fcn.0043b060
test eax, eax
jne 0x44360e
mov eax, dword [esp + 0x224]
mov byte [eax], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 0x10
Function at 0x44a2f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
mov eax, dword [0x4e7cbc]
push ebx
mov ebx, ecx
push ebp
push esi
mov dword [esp + 0x14], ebx
cmp eax, dword [0x4e37f4]
jl 0x44a317
mov eax, 4
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
mov esi, dword [0x4e37f8]
inc eax
mov cl, byte [0x4e7c9f]
add esi, 0xa0
mov dword [0x4e7cbc], eax
mov eax, dword [0x4e7ca8]
mov byte [esp + 0x13], cl
mov byte [0x4e7c9f], 1
mov dword [0x4e37f8], esi
test eax, eax
je 0x44a34e
add eax, 0x58
jmp 0x44a350
xor eax, eax
test esi, esi
je 0x44a359
lea ecx, [esi + 0x58]
jmp 0x44a35b
xor ecx, ecx
movups xmm0, xmmword [eax]
push 0x58
push 0
movups xmmword [ecx], xmm0
push esi
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [ecx + 0x30], xmm0
mov eax, dword [eax + 0x40]
mov dword [ecx + 0x40], eax
call fcn.0049d610
add esp, 0xc
mov byte [esi + 0x53], 1
mov ecx, 0x4e8f30
mov dword [esi + 0x3c], 0
push 0
call fcn.004396e0
mov al, byte [esi + 0x96]
test al, al
jne 0x44a3b6
mov byte [esi + 0x96], 1
mov al, 1
cmp dword [0x4e9618], 0
je 0x44a3cc
cmp dword [0x4e9614], 0
jne 0x44a3cc
test al, al
je 0x44a3fe
mov dword [esi + 0x5c], 0x10
mov byte [esi + 0x53], 0
test al, al
jne 0x44a3fe
cmp dword [0x4e9618], 0
jge 0x44a3ed
mov dword [esi + 0x44], 0xffffffff
jmp 0x44a3fe
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x48], eax
mov eax, dword [0x4e9618]
mov dword [esi + 0x44], eax
mov eax, dword [0x4e37f8]
mov esi, dword [esp + 0x34]
mov dword [eax + 0x58], ebx
mov eax, dword [0x4e9580]
mov ebx, dword [0x4e957c]
mov ebp, dword [0x4e95d8]
mov dword [esp + 0x18], eax
mov eax, dword [0x4e95dc]
mov dword [esp + 0x1c], eax
mov dword [0x4e9580], ebx
mov dword [0x4e95dc], ebp
mov dword [0x4e957c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4e8eac]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x14]
mov dword [0x4e961c], eax
mov dword [0x4e95d8], eax
mov dword [esp + 0x28], 0
mov esi, dword [esi + 0x10]
mov dword [esp + 0x24], 0xffffffff
cmp ecx, dword [0x4e8eb0]
jne 0x44a47e
call fcn.0040709e
mov ecx, dword [0x4e8eac]
cmp ecx, dword [0x4e8ea8]
jb 0x44a493
mov eax, dword [0x4e9574]
mov dword [ecx], eax
mov ecx, dword [0x4e8eac]
add ecx, 0xc
lea eax, [esp + 0x20]
push 1
push ecx
push 0
mov dword [0x4e8eac], ecx
mov edx, esi
push 1
push eax
mov dword [ecx], 0
mov dword [ecx + 4], str.HotIf
mov dword [ecx + 8], 0
mov ecx, esi
push 0
call fcn.00473ae0
mov ecx, dword [0x4e8eac]
add esp, 0x18
sub ecx, 0xc
mov esi, eax
mov dword [0x4e8eac], ecx
cmp ecx, dword [0x4e8ea8]
jb 0x44a4f1
mov ecx, dword [ecx]
mov dword [0x4e8ebc], ecx
mov dword [0x4e9574], ecx
mov eax, dword [0x4e37f8]
mov eax, dword [eax + 0x20]
mov dword [0x4e7cc4], eax
mov eax, dword [esp + 0x18]
mov dword [0x4e9580], eax
mov eax, dword [esp + 0x1c]
mov dword [0x4e957c], ebx
mov dword [0x4e95d8], ebp
mov dword [0x4e95dc], eax
call fcn.00404430
mov al, byte [esp + 0x13]
mov byte [0x4e7c9f], al
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x44d110
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x3d0
push ebx
mov ebx, dword [esp + 0x3d8]
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x44d13d
push 0x64
lea ecx, [esp + 0x114]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x44d147
xor eax, eax
mov word [esp + 0x110], ax
mov esi, dword [0x4e95bc]
xor eax, eax
mov word [esp + 0x10], ax
test esi, esi
je 0x44d208
nop dword [eax]
cmp byte [esi + 0x12], 0
je 0x44d1a3
push 0
push 0x4e6c78
push 0x4e6ccc
push 0
push dword [esi]
call fcn.004b5e18
add esp, 0x14
test eax, eax
je 0x44d187
mov eax, dword [eax + 0x14]
jmp 0x44d18e
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x20]
push eax
push 0x4d7fd0
lea eax, [esp + 0x18]
push 0x7d
push eax
call fcn.004816f0
add esp, 0x10
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x44d160
cmp word [esp + 0x10], si
je 0x44d208
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44d1c0
sub ecx, edx
sar ecx, 1
cmp ecx, 0x7b
jbe 0x44d1f9
mov esi, 0x7f
lea edi, [esp + 0x10]
sub esi, ecx
lea edi, [edi + ecx*2]
push esi
push 0x4d4a2c
push edi
call fcn.004aa2f4
add esp, 0xc
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x44d208
cmp word [esp + ecx*2 + 0xe], 0x20
jne 0x44d208
xor eax, eax
mov word [esp + ecx*2 + 0xe], ax
mov eax, dword [0x4e7ca8]
cmp byte [eax + 0x50], 0
je 0x44d223
cmp byte [0x4e9605], 0
jne 0x44d223
mov esi, 1
jmp 0x44d225
xor esi, esi
mov eax, dword [0x4e7cbc]
cmp eax, 1
jle 0x44d234
lea edi, [eax - 1]
jmp 0x44d236
xor edi, edi
mov cl, 1
call fcn.0041c1c0
lea edx, [esp + 0x1d8]
mov cl, al
call fcn.0041c5a0
mov ecx, dword [0x4e7cbc]
mov edx, 0x4cdea8
push eax
push dword [0x4e7cd0]
mov eax, dword [0x4e7cac]
push ecx
sub eax, esi
cmp ecx, 1
push eax
mov eax, str.__preempted:_they_will_resume_when_the_current_thread_finishes_
mov ecx, 0x4d2650
cmovle eax, edx
cmp dword [0x4e7ef0], 0
push eax
push edi
lea eax, [esp + 0x28]
mov edx, 0x4d2648
push eax
push dword [0x4e95c4]
mov eax, ecx
push dword [0x4e95c8]
cmovne eax, edx
cmp dword [0x4e7ef4], 0
push eax
cmovne ecx, edx
lea eax, [esp + 0x138]
push ecx
push eax
push str.Window:__s_r_nKeybd_hook:__s_r_nMouse_hook:__s_r_nEnabled_Timers:__u_of__u___s__r_nInterrupted_threads:__d_s_r_nPaused_threads:__d_of__d___d_layers__r_nModifiers__GetKeyState___now____s_r_n
push 0xfffe
push ebx
call fcn.004816a0
mov edi, 0xfffe
add esp, 0x3c
mov edx, edi
sub edx, eax
lea esi, [ebx + eax*2]
mov ecx, esi
call fcn.00413500
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44d2e0
sub ecx, edx
mov eax, str._r_nPress__F5__to_refresh.
sar ecx, 1
cmp dword [0x4e7cd8], 0
lea esi, [esi + ecx*2]
mov ecx, str._r_nKey_History_has_been_disabled_via_KeyHistory_0_.
cmove eax, ecx
push eax
mov eax, esi
sub eax, ebx
sar eax, 1
sub edi, eax
push edi
push esi
call fcn.004816a0
add esp, 0xc
lea eax, [esi + eax*2]
pop edi
pop esi
pop ebx
add esp, 0x3d0
ret 8
Function at 0x44ed40
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
sub esp, 0x314
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebx, ecx
push esi
push edi
push dword [0x4e95f8]
mov byte [esp + 0x17], dl
mov esi, ecx
mov edi, 0x4cdea8
call ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x44ede7
mov edi, connect
nop word [eax + eax]
xor esi, esi
push esi
push ecx
lea eax, [esp + 0x120]
mov edx, str.SOFTWAREAutoHotkey
push eax
push str.InstallDir
mov ecx, edi
call fcn.00482cd0
add esp, 0x10
test eax, eax
jne 0x44edc2
test esi, esi
jne 0x44edaf
mov esi, 0x100
jmp 0x44ed82
cmp edi, reloc.OLEAUT32.dll_SysReAllocString
je 0x44ee76
mov edi, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x44ed80
lea eax, [esp + 0x118]
push eax
call ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44ee76
mov eax, dword [esp + 0x14]
mov esi, ebx
mov edi, 0x4cdea8
cmp byte [esp + 0x13], 0
je 0x44ee12
cmp eax, 0xffffffff
je 0x44ee12
push ebx
push str._script__s
lea eax, [esp + 0x20]
push 0x40
push eax
call fcn.004816a0
mov esi, dword [0x4e95f4]
lea edi, [esp + 0x28]
add esp, 0x10
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push esi
mov ecx, 0x4e8f30
call fcn.0044d330
test eax, eax
jne 0x44ee5e
push ebx
push str.Could_not_launch__s
lea eax, [esp + 0xa0]
push 0x40
push eax
call fcn.004816a0
push 0
push 0
xorps xmm3, xmm3
lea ecx, [esp + 0xb0]
mov edx, 0x10
call fcn.00486b20
add esp, 0x18
mov eax, dword [0x4e4e9c]
mov ecx, 0x4cdea8
test eax, eax
je 0x44ee73
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x314
ret

Function at 0x4501f0
Capabilities:
Set current directory

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
movzx eax, word [esi]
test ax, ax
je 0x450226
cmp word [esi + 2], 0x3a
jne 0x450226
cmp word [esi + 4], 0
jne 0x450226
mov word [esp + 4], ax
lea esi, [esp + 4]
xor eax, eax
mov dword [esp + 6], 0x5c003a
mov word [esp + 0xa], ax
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x45023b
mov eax, 0xa0070000
pop esi
add esp, 8
ret
cmp byte [0x4e9604], 0
je 0x45024b
mov ecx, esi
call fcn.00450260
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x450260
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004b5610
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
lea ecx, [esp + 4]
cmove ecx, esi
pop esi
test ecx, ecx
je 0x450297
push ecx
push ecx
mov ecx, 0x4e4e98
call fcn.0044dd00
add esp, 0x10000
ret

Function at 0x4502a0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004b5610
lea eax, [esp]
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4502d0
lea eax, [esp]
push eax
call fcn.004a94de
add esp, 4
add esp, 0x10000
ret
xor eax, eax
add esp, 0x10000
ret
Function at 0x457ca0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x43c
cmp word [ecx], 0
push ebx
push ebp
push esi
mov esi, edx
je 0x457f0b
cmp word [esi], 0
je 0x457f0b
mov ebp, dword [esp + 0x44c]
cmp ebp, 1
je 0x457cd4
cmp ebp, 2
je 0x457cd4
xor bh, bh
jmp 0x457cd6
mov bh, 1
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x34]
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [esp + 0x30]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457cf3
sub ecx, edx
sar ecx, 1
je 0x457d13
cmp word [esp + ecx*2 + 0x2e], 0x5c
jne 0x457d13
xor eax, eax
mov word [esp + ecx*2 + 0x2e], ax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x240]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [esp + 0x23c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457d36
sub ecx, edx
sar ecx, 1
je 0x457d5c
cmp word [esp + ecx*2 + 0x23a], 0x5c
jne 0x457d5c
xor eax, eax
mov word [esp + ecx*2 + 0x23a], ax
mov bl, byte [esp + 0x450]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test bl, bl
je 0x457df5
lea eax, [esp + 0x30]
push eax
call esi
cmp eax, 0xffffffff
je 0x457f0b
test al, 0x10
je 0x457f0b
movzx eax, word [esp + 0x30]
mov ecx, eax
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x457d9c
or ecx, 0x20
movzx eax, word [esp + 0x23c]
mov edx, eax
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x457db2
or edx, 0x20
cmp cx, dx
jne 0x457dbf
cmp word [esp + 0x32], 0x3a
je 0x457df5
movzx eax, bh
lea edx, [esp + 0x23c]
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.00457ca0
add esp, 8
test al, al
je 0x457f0b
mov dl, 1
lea ecx, [esp + 0x30]
call fcn.00457f20
pop esi
pop ebp
pop ebx
add esp, 0x43c
ret
lea eax, [esp + 0x23c]
push eax
call esi
cmp eax, 0xffffffff
je 0x457e1a
test al, 0x10
je 0x457f0b
test bh, bh
je 0x457f0b
test bl, bl
jne 0x457e65
jmp 0x457e32
test bl, bl
jne 0x457e65
lea ecx, [esp + 0x23c]
call fcn.0041ff80
test al, al
je 0x457f0b
lea ecx, [esp + 0x30]
add ecx, 0xfffffffe
nop dword [eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x457e40
mov eax, dword [str..]
mov dword [ecx], eax
mov eax, dword [0x4d8f2c]
mov dword [ecx + 4], eax
mov ax, word [0x4d8f30]
mov word [ecx + 8], ax
lea ecx, [esp + 0x30]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457e70
sub ecx, edx
sar ecx, 1
xor eax, eax
mov word [esp + ecx*2 + 0x32], ax
lea ecx, [esp + 0x23c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457e90
xor eax, eax
sub ecx, edx
sar ecx, 1
xorps xmm0, xmm0
mov dword [esp + 0x10], eax
mov dword [esp + 0x2a], eax
movlpd qword [esp + 0x22], xmm0
mov word [esp + ecx*2 + 0x23e], ax
lea eax, [esp + 0x30]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x23c]
mov dword [esp + 0x1c], eax
movzx eax, bl
xor eax, 1
inc eax
mov dword [esp + 0x14], eax
mov eax, 0x614
mov word [esp + 0x20], ax
cmp ebp, 2
jne 0x457ef1
mov eax, 0x615
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop esi
test eax, eax
pop ebp
sete al
pop ebx
add esp, 0x43c
ret
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x43c
ret