joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002a370
Capabilities:
Copy file
Get file attributes
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x20030
call fcn.1400e37c0
sub rsp, rax
mov rax, rdx
movzx edi, r8b
mov rbx, rcx
lea r8, [rsp + 0x10030]
mov rcx, rax
xor r9d, r9d
mov edx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rcx, qword [0x140135268]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor r9d, r9d
lea r8, [rsp + 0x30]
mov edx, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rax, qword [0x14012edb0]
lea rcx, [0x140106cb0]
test rax, rax
je 0x14002a3e6
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r9d, 0xffffffff
mov dword [rsp + 0x20], 1
mov edx, r9d
lea r8, [rsp + 0x10030]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, 2
jne 0x14002a437
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x14002a437
mov al, 1
mov rbx, qword [rsp + 0x20040]
add rsp, 0x20030
pop rdi
ret
mov r8d, edi
lea rdx, [rsp + 0x10030]
xor r8d, 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov rbx, qword [rsp + 0x20040]
test eax, eax
setne al
add rsp, 0x20030
pop rdi
ret
Function at 0x14002e780
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x190
mov r9d, dword [rcx]
mov rsi, rdx
movsxd rdi, r8d
mov r14, rcx
test r9d, r9d
je 0x14002e99d
sub r9d, 2
je 0x14002e994
sub r9d, 1
je 0x14002e98b
sub r9d, 1
je 0x14002e7e0
cmp r9d, 1
je 0x14002e7d4
lea rax, [0x140106cb0]
jmp 0x14002e9a4
lea rax, [0x14010d758]
jmp 0x14002e9a4
test rsi, rsi
je 0x14002e982
movzx eax, word [rcx + 0x6a]
mov qword [rsp + 0x1a8], rbp
test ax, ax
je 0x14002e817
xor ebp, ebp
mov word [rdx], ax
mov word [rdx + 2], bp
lea rax, str.EndKey
mov rbp, qword [rsp + 0x1a8]
jmp 0x14002e9a4
cmp byte [rcx + 0x6d], 0
mov qword [rsp + 0x1a0], rbx
je 0x14002e8e7
xor edx, edx
lea rcx, [rsp + 0x90]
mov r8d, 0x100
call fcn.1400e7f60
mov byte [rsp + 0xa0], 0x80
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebp, ebp
mov ebx, ebp
test rax, rax
je 0x14002e88f
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x48
mov ecx, eax
mov ebx, eax
call qword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x14002e88f
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14002e88f
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, byte [r14 + 0x66]
mov ebx, ebp
cmp byte [0x140132ea6], bl
mov rdi, rax
setne bl
xor edx, edx
call fcn.140024b70
movzx ecx, byte [r14 + 0x66]
lea r8, [rsp + 0x90]
mov qword [rsp + 0x30], rdi
mov r9, rsi
movzx edx, ax
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
movsxd rcx, eax
mov word [rsi + rcx*2], bp
jmp 0x14002e972
xor ebp, ebp
mov word [rdx], bp
cmp byte [rcx + 0x6c], bpl
je 0x14002e93f
movzx edx, word [rcx + 0x68]
lea rax, [0x14012c4f8]
mov ecx, ebp
lea r8, [0x14012c5c8]
cmp word [rax], dx
je 0x14002e918
inc ecx
add rax, 0x10
cmp rax, r8
jl 0x14002e906
jmp 0x14002e93f
movsxd rdx, ecx
lea rax, str.NumpadEnter
add rdx, rdx
lea r8, [rdi - 1]
mov rcx, rsi
mov rdx, qword [rax + rdx*8]
call fcn.1400d8b44
mov word [rsi + rdi*2 - 2], bp
cmp word [rsi], bp
jne 0x14002e972
cmp byte [r14 + 0x6c], bpl
mov r8d, edi
movzx ecx, byte [r14 + 0x66]
mov rdx, rsi
sete r9b
call fcn.140023c30
cmp word [rsi], bp
jne 0x14002e972
movzx r9d, word [r14 + 0x68]
lea r8, str.sc_03X
mov edx, edi
mov rcx, rsi
call fcn.1400a5c90
mov rbx, qword [rsp + 0x1a0]
mov rbp, qword [rsp + 0x1a8]
lea rax, str.EndKey
jmp 0x14002e9a4
lea rax, str.Match
jmp 0x14002e9a4
lea rax, str.Timeout
jmp 0x14002e9a4
lea rax, str.Stopped
lea r11, [rsp + 0x190]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14002f4d0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, rdx
mov rcx, rdx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [rax + 1]
lea eax, [rbx + rbx]
movsxd rcx, eax
call fcn.1400ca1ac
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x14002f515
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x14002f531
mov rax, qword [rdi + 0x18]
xor ecx, ecx
mov word [rax], cx
mov rbx, qword [rsp + 0x30]
mov eax, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400339f8
Capabilities:
Get disk information
Get process image filename

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x230
mov rbx, rdx
mov r8d, ecx
xor r12d, r12d
mov ecx, 0x1000
mov word [rdx], r12w
mov sil, r9b
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x140033b3e
mov r8d, 0x104
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
mov edi, eax
test eax, eax
je 0x140033b33
test sil, sil
je 0x140033a91
mov edx, 0x5c
mov rcx, rbx
call fcn.1400c4ff4
mov rsi, rax
test rax, rax
je 0x140033b33
mov rcx, rax
call fcn.1400d6004
lea rdx, [rsi + 2]
mov rcx, rbx
lea r8, [rax + rax]
call fcn.1400e78c0
jmp 0x140033b33
mov eax, 0x41
mov dword [rsp + 0x26a], 0x3a
mov word [rsp + 0x268], ax
lea ebp, [rax + 0x1b]
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x268]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov esi, eax
cmp eax, 2
jbe 0x140033aec
add esi, 0xfffffffe
lea rcx, [rsp + 0x20]
mov r8d, esi
mov rdx, rbx
call fcn.1400d66c8
test eax, eax
jne 0x140033aec
lea rdx, [rbx + rsi*2]
cmp word [rdx], bp
je 0x140033b07
movzx eax, word [rsp + 0x268]
inc ax
mov word [rsp + 0x268], ax
cmp ax, 0x5a
jbe 0x140033aac
jmp 0x140033b33
movzx eax, word [rsp + 0x268]
lea rcx, [rbx + 4]
mov word [rbx], ax
sub edi, esi
movzx eax, word [rsp + 0x26a]
mov word [rbx + 2], ax
lea r8d, [rdi + 1]
add r8, r8
call fcn.1400e78c0
add edi, 2
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x1400407cc
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, qword [0x1401351b8]
mov rsi, r8
mov rbp, rdx
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
jmp 0x140040822
test ebx, ebx
js 0x140040812
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [rdi + rbx]
sub ecx, eax
cmp ecx, 5
jle 0x140040848
mov r8d, edi
mov rdx, r14
mov ecx, 0x8000012f
call fcn.14004073c
mov rcx, rbp
call rsi
test al, al
je 0x1400407fe
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
xor al, al
jmp 0x14004082d
Function at 0x1400445a0
Capabilities:
Enumerate gui resources

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
xor ebp, ebp
lea r12, [0x140106cb0]
xor r15b, r15b
mov qword [rax + 8], rbp
mov rbx, r9
mov rdi, r8
mov rsi, rdx
mov r14, rcx
test rcx, rcx
je 0x140044691
mov r8, rcx
mov dword [rax - 0x38], 1
lea rcx, [rax + 8]
lea rdx, [rax - 0x68]
call fcn.140045bb0
cmp eax, 1
sete r15b
test eax, eax
jne 0x140044618
test dword [rsp + 0x60], 0xfffffff7
mov ecx, 0x20000000
mov eax, 0xa0000000
cmovne eax, ecx
jmp 0x1400447c0
mov ecx, dword [r14 + 0x10]
test ecx, ecx
je 0x140044740
sub ecx, 1
je 0x140044689
sub ecx, 1
je 0x140044689
cmp ecx, 2
jne 0x140044689
mov rbp, qword [r14]
cmp byte [rbp + 0x23], 0
jne 0x140044655
lea edx, [rcx - 1]
mov rcx, qword [rbp + 0x10]
call fcn.140007968
mov rbp, qword [rsp + 0xa0]
mov r8, rax
jmp 0x140044694
test byte [rbp + 0x21], 1
je 0x140044663
mov rcx, rbp
call fcn.140007810
cmp byte [rbp + 0x23], 3
jb 0x14004467b
cmp byte [rbp + 0x21], 0
jl 0x14004467b
mov rcx, rbp
call fcn.1400a93a0
and byte [rbp + 0x21], 0x7f
mov r8, qword [rbp + 8]
mov rbp, qword [rsp + 0xa0]
jmp 0x140044694
mov rbp, qword [rsp + 0xa0]
mov r8, r12
movzx eax, word [r8]
test rsi, rsi
mov ecx, 0xffdf
cmove rsi, r12
test rdi, rdi
cmove rdi, r12
test rbx, rbx
cmove rbx, r12
sub ax, 0x41
test cx, ax
jne 0x140044750
cmp word [r8 + 2], 0
jne 0x140044750
cmp word [rsi], 0
jne 0x140044750
cmp word [rdi], 0
jne 0x140044750
cmp word [rbx], 0
jne 0x140044750
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rbp, rax
test rax, rax
je 0x140044755
mov rax, qword [0x14012c398]
cmp byte [rax + 0xbf], 0
jne 0x140044755
mov rcx, rbp
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x14004473c
mov r9d, 4
mov dword [rsp + 0xa0], 0
lea r8, [rsp + 0xa0]
mov rcx, rbp
lea edx, [r9 + 0xa]
call qword [sym.imp.dwmapi.dll_DwmGetWindowAttribute]
test eax, eax
js 0x140044755
cmp dword [rsp + 0xa0], 0
je 0x140044755
xor ebp, ebp
jmp 0x140044755
mov r8, qword [r14]
mov rbp, qword [rsp + 0xa0]
jmp 0x140044694
test r15b, r15b
je 0x14004477b
test rbp, rbp
je 0x1400447bb
mov rbx, qword [rsp + 0xc0]
mov rcx, qword [rbx + 0xb0]
test rcx, rcx
je 0x140044776
mov rdx, rbp
call fcn.140040f90
inc dword [rbx + 0x7c]
jmp 0x1400447bb
mov rbp, qword [rsp + 0xc0]
mov r9, rsi
mov rdx, qword [0x14012c398]
mov rcx, rbp
sub rdx, 0xffffffffffffff80
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
mov byte [rbp + 0x79], 1
call fcn.1400ad010
test eax, eax
je 0x1400447bb
mov rdx, rbp
lea rcx, [0x1400ac2c0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov eax, 1
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140047fe0
Capabilities:
Find taskbar

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x3d0], 0
mov rbx, rcx
je 0x140048187
mov r8, qword [0x14012c398]
movzx ecx, byte [0x140132f1f]
test dl, dl
jne 0x14004802e
cmp byte [rbx + 0x900], dl
jne 0x140048187
movzx eax, byte [0x1401363c9]
cmp byte [r8 + 0x78], al
jne 0x14004802e
cmp cl, byte [0x1401363c8]
je 0x140048187
movzx edx, byte [r8 + 0x78]
mov qword [rsp + 0x48], rdi
test dl, dl
je 0x14004804d
xor edi, edi
test cl, cl
setne dil
add rdi, 0xcf
jmp 0x14004805c
test cl, cl
mov edi, 0x9f
mov eax, 0xce
cmovne edi, eax
mov rax, qword [rbx + 0x8f0]
test rax, rax
je 0x140048081
cmp byte [rbx + 0x900], 0
jne 0x140048134
test dl, dl
jne 0x140048081
test cl, cl
je 0x140048134
mov eax, dword [0x1401365d8]
mov qword [rsp + 0x40], rsi
mov qword [rbx + 0x3e8], 0
test al, 1
jne 0x1400480c8
or eax, 1
lea rcx, str.user32.dll
mov dword [0x1401365d8], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetDpiForWindow
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401365e0], rax
mov ecx, gethostbyaddr
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp qword [0x1401365e0], 0
mov esi, eax
je 0x14004810a
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
mov rcx, rax
call qword [0x1401365e0]
mov r8d, dword [0x1401349fc]
mov ecx, esi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
mov rcx, qword [0x140132f28]
mov r9d, esi
mov dword [rsp + 0x28], 0x8000
mov r8d, 1
mov rdx, rdi
mov dword [rsp + 0x20], esi
call qword [sym.imp.USER32.dll_LoadImageW]
mov rsi, qword [rsp + 0x40]
lea rdx, [rbx + 0x3c8]
mov qword [rbx + 0x3e8], rax
mov ecx, 1
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov rdi, qword [rsp + 0x48]
test eax, eax
jne 0x140048169
lea rdx, [rbx + 0x3c8]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
test eax, eax
je 0x140048187
mov rax, qword [0x14012c398]
movzx ecx, byte [rax + 0x78]
movzx eax, byte [0x140132f1f]
mov byte [0x1401363c8], al
mov byte [0x1401363c9], cl
add rsp, 0x30
pop rbx
ret
Function at 0x140057610
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x10040
call fcn.1400e37c0
sub rsp, rax
mov qword [rsp + 0x20], r9
lea rcx, [rsp + 0x30]
mov r9, r8
mov rbx, rdx
lea r8, str._s_s
mov edx, 0x8001
call fcn.1400a5c90
lea rcx, [rsp + 0x30]
movsxd rdi, eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400576a4
test al, 0x10
je 0x1400576a4
lea ecx, [rdi + 0xfd]
movsxd rcx, ecx
lea rcx, [rcx*2 + 0xa]
call fcn.1400a24c0
mov rcx, rax
test rax, rax
je 0x1400576bf
mov qword [rbx], rax
lea rdx, [rsp + 0x30]
lea eax, [rdi + 1]
movsxd r8, eax
add r8, r8
call fcn.1400e78c0
mov qword [rbx + 8], rdi
mov rbx, qword [rsp + 0x10050]
add rsp, 0x10040
pop rdi
ret
lea rax, [0x140106cb0]
mov qword [rbx], rax
mov rbx, qword [rsp + 0x10050]
add rsp, 0x10040
pop rdi
ret
call fcn.140011360
int3

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movzx r15d, r9b
lea r12, [0x140136398]
mov rbx, r8
mov r14, rdx
mov r13, rcx
cmp qword [0x140136398], 0
jne 0x14005777d
mov r8, qword [r13 + 0x848]
lea r9, str.Lib_
mov rdx, r12
call fcn.140057610
lea r9, [rsp + 0x60]
xor r8d, r8d
mov edx, 0x4000
lea rcx, [0x1400eb130]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
xor edi, edi
lea r9, str.AutoHotkeyLib_
test eax, eax
lea rdx, [0x1401363a8]
cmovns rdi, qword [rsp + 0x60]
mov r8, rdi
call fcn.140057610
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r8, qword [r13 + 0x868]
lea r9, str.Lib_
lea rdx, [0x1401363b8]
call fcn.140057610
test rbx, rbx
jne 0x14005779b
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [r14 + rbx*2], 0
jne 0x140057790
cmp rbx, 0xfd
ja 0x14005783a
xor ebp, ebp
mov rsi, r12
nop dword [rax]
mov rcx, qword [rsi]
cmp word [rcx], 0
je 0x1400577fe
mov rax, qword [rsi + 8]
lea rdi, [rbx + rbx]
mov r8, rdi
mov rdx, r14
lea rcx, [rcx + rax*2]
call fcn.1400e78c0
movsd xmm0, qword [str..ahk]
movsd qword [rdi + rax], xmm0
lea rcx, [rdi + rax]
movzx eax, word [0x14010fa20]
mov word [rcx + 8], ax
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400577fe
test al, 0x10
je 0x14005782e
inc ebp
add rsi, 0x10
cmp ebp, 3
jl 0x1400577b0
test r15b, r15b
jne 0x14005783a
mov edx, 0x5f
mov rcx, r14
call fcn.1400c50a4
mov rbx, rax
test rax, rax
je 0x14005783a
sub rbx, r14
sar rbx, 1
jmp 0x140057700
movsxd rax, ebp
add rax, rax
mov rax, qword [r12 + rax*8]
jmp 0x14005783c
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400632d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
lea r8, str.Script_lines_most_recently_executed__oldest_first_.__Press__F5__to_refresh.__The_seconds_elapsed_between_a_line_and_the_one_after_it_is_in_parentheses_to_the_right__if_not_0_.__The_bottommost_lines_elapsed_time_is_the_number_of_seconds_since_it_executed._r_n_r_n
mov edx, 0xfffe
call fcn.1400a5c90
mov r9, qword [rsp + 0x90]
lea r10, [0x140000000]
mov r8d, dword [0x140134680]
mov ebp, 0x190
movsxd rdx, eax
mov r11d, 2
mov dword [rsp + 0x98], 0xffffffff
mov eax, r8d
lea rcx, [r9 + rdx*2]
mov qword [rsp + 0xa8], rcx
nop dword [rax + rax]
xor r12b, r12b
mov r13, rcx
test ebp, ebp
jle 0x140063513
mov edx, ebp
mov esi, r11d
mov qword [rsp + 0xa0], rdx
movsxd rcx, eax
nop
cmp eax, 0x190
lea rdi, [rcx - 0x190]
lea r14d, [rax - 0x190]
cmovl rdi, rcx
cmovl r14d, eax
cmp qword [r10 + rdi*8 + 0x133a00], 0
je 0x1400634e8
movzx r15d, r12b
lea eax, [rsi - 1]
xor r12b, r12b
cmp eax, ebp
jge 0x140063412
test r15b, r15b
jne 0x1400634e8
mov edx, dword [r10 + rdi*4 + 0x1333c0]
lea eax, [r14 + 1]
xor ebx, ebx
lea rcx, [rdi + 1]
cmp eax, 0x190
cmovl rbx, rcx
mov ebx, dword [r10 + rbx*4 + 0x1333c0]
sub ebx, edx
cmp ebx, 0x7fffffff
jbe 0x140063431
mov r12b, 1
cmp esi, ebp
jne 0x1400633ee
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
lea r10, [0x140000000]
sub ebx, dword [r10 + rdi*4 + 0x1333c0]
jmp 0x140063429
lea rax, [rdi + 2]
mov rbx, 0xfffffffffffffe72
cmp rax, 0x190
cmovl rbx, r11
add rbx, rdi
mov ebx, dword [r10 + rbx*4 + 0x1333c0]
sub ebx, edx
jmp 0x140063431
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
lea r10, [0x140000000]
sub ebx, dword [r10 + rdi*4 + 0x1333c0]
mov r9, qword [rsp + 0x90]
mov rax, qword [r10 + rdi*8 + 0x133a00]
movzx ecx, word [rax + 2]
cmp dword [rsp + 0x98], ecx
je 0x140063486
mov edx, 0xfffe
mov dword [rsp + 0x98], ecx
mov rax, r13
lea r8, str.______s_r_n
sub rax, r9
mov r9, qword [0x1401333b0]
sar rax, 1
sub edx, eax
mov r9, qword [r9 + rcx*8]
mov rcx, r13
call fcn.1400a5c90
movsxd rcx, eax
lea r10, [0x140000000]
lea r13, [r13 + rcx*2]
mov rcx, qword [r10 + rdi*8 + 0x133a00]
mov r8d, 0xc8
mov r9d, 0xfffe
mov byte [rsp + 0x30], 1
mov rax, r13
mov byte [rsp + 0x28], r15b
sub rax, qword [rsp + 0x90]
mov rdx, r13
sar rax, 1
sub r9d, eax
mov dword [rsp + 0x20], ebx
cmp r9d, r8d
cmovl r8d, r9d
call fcn.140063570
mov rdx, qword [rsp + 0xa0]
lea r10, [0x140000000]
mov r9, qword [rsp + 0x90]
mov r13, rax
mov r11d, 2
inc esi
lea eax, [r14 + 1]
sub rdx, 1
lea rcx, [rdi + 1]
mov qword [rsp + 0xa0], rdx
jne 0x140063360
mov r8d, dword [0x140134680]
mov rcx, qword [rsp + 0xa8]
mov rax, r13
mov edx, 0xfffe
sub rax, r9
sar rax, 1
sub edx, eax
cmp edx, 0x18
jg 0x14006353f
cmp ebp, 0x78
jl 0x14006353f
sub ebp, 0x64
mov eax, r8d
sub eax, ebp
add eax, 0x190
jmp 0x140063340
lea r8, str._r_nPress__F5__to_refresh.
mov rcx, r13
call fcn.1400a5c90
movsxd rcx, eax
lea rax, [rcx*2]
add rax, r13
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140066980
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x360
mov rbp, rcx
lea r12, [0x140106cb0]
mov r15, rcx
movzx r13d, dl
mov rcx, qword [0x140135288]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
mov r14d, eax
cmp eax, 0xffffffff
jne 0x140066b0e
mov rsi, 0xffffffff80000001
mov edi, ebx
nop word [rax + rax]
mov r9d, edi
lea rax, [rsp + 0x3b0]
or r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREAutoHotkey
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140066be6
mov rcx, qword [rsp + 0x3b0]
lea rax, [rsp + 0x3a0]
mov qword [rsp + 0x28], rax
lea rdx, str.InstallDir
lea rax, [rsp + 0x150]
mov dword [rsp + 0x3a0], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x3b0]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140066be4
mov edx, dword [rsp + 0x3a0]
test edx, edx
je 0x140066be4
shr edx, 1
mov ecx, edx
dec edx
mov dword [rsp + 0x3a0], edx
cmp word [rsp + rdx*2 + 0x150], bx
jne 0x140066ac7
test edx, edx
je 0x140066ac3
mov eax, edx
mov r8d, edx
nop word [rax + rax]
lea ecx, [r8 - 1]
mov edx, eax
cmp word [rsp + rcx*2 + 0x150], 0
mov r8d, ecx
jne 0x140066ac3
mov dword [rsp + 0x3a0], ecx
mov eax, ecx
mov edx, ecx
test ecx, ecx
jne 0x140066aa0
xor ebx, ebx
jmp 0x140066ae6
xor ebx, ebx
mov dword [rsp + 0x3a0], ecx
cmp ecx, 0x104
jae 0x140066be6
mov word [rsp + rcx*2 + 0x150], bx
mov edx, ecx
test edx, edx
je 0x140066bee
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140066bc9
test r13b, r13b
je 0x140066b3e
cmp r14d, 0xffffffff
je 0x140066b3e
mov r9, rbp
lea r8, str._script__s
mov edx, 0x40
lea rcx, [rsp + 0x50]
call fcn.1400a5c90
mov r15, qword [0x140135280]
lea r12, [rsp + 0x50]
mov byte [rsp + 0x40], 0
lea rcx, [0x140134a20]
mov byte [rsp + 0x38], 0
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov r8, r12
mov qword [rsp + 0x28], rbx
mov rdx, r15
mov byte [rsp + 0x20], 0
call fcn.140064840
test eax, eax
jne 0x140066ba6
mov r9, rbp
lea r8, str.Could_not_launch__s
lea edx, [rax + 0x40]
lea rcx, [rsp + 0xd0]
call fcn.1400a5c90
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xorps xmm3, xmm3
lea rcx, [rsp + 0xd0]
lea edx, [r8 + 0x10]
call fcn.1400acb90
mov rax, qword [0x14012edb0]
lea rcx, [0x140106cb0]
test rax, rax
je 0x140066bc3
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rbx, qword [rsp + 0x3a8]
add rsp, 0x360
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor ebx, ebx
mov word [rsp + 0x150], bx
test edi, edi
jne 0x140066bfc
mov edi, 0x200
jmp 0x1400669e0
cmp rsi, 0xffffffff80000002
je 0x140066bc9
mov rsi, 0xffffffff80000002
jmp 0x1400669d3
Function at 0x1400682c0
Capabilities:
Set current directory

Disassembly:
push rbx
sub rsp, 0x20
movzx eax, word [rcx]
mov rbx, rcx
test ax, ax
je 0x1400682f8
cmp word [rcx + 2], 0x3a
jne 0x1400682f8
cmp word [rcx + 4], 0
jne 0x1400682f8
mov word [rsp + 0x30], ax
lea rbx, [rsp + 0x30]
xor eax, eax
mov dword [rsp + 0x32], 0x5c003a
mov word [rsp + 0x36], ax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x140068310
mov eax, 0xa0070000
add rsp, 0x20
pop rbx
ret
cmp byte [0x14013529c], 0
je 0x140068321
mov rcx, rbx
call fcn.140068330
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140068330
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10020
call fcn.1400e37c0
sub rsp, rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
lea rdx, [rsp + 0x20]
cmove rdx, rbx
test rdx, rdx
je 0x14006836e
lea rcx, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
call fcn.140065310
add rsp, 0x10020
pop rbx
ret

Function at 0x140068380
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10028
call fcn.1400e37c0
sub rsp, rax
lea rdx, [rsp + 0x20]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400683b3
lea rcx, [rsp + 0x20]
call fcn.1400d5b70
add rsp, 0x10028
ret
xor eax, eax
add rsp, 0x10028
ret

Function at 0x14006d5b0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
movzx ebx, cl
test cl, cl
jne 0x14006d5c5
xor al, al
add rsp, 0x20
pop rbx
ret
sub edx, 1
je 0x14006d5f0
mov ecx, ebx
cmp edx, 1
je 0x14006d5e2
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.USER32.dll_GetKeyState]
and al, 1
add rsp, 0x20
pop rbx
ret
lea eax, [rbx - 1]
cmp al, 5
ja 0x14006d5fc
cmp bl, 3
jne 0x14006d603
lea eax, [rbx + 0x66]
cmp al, 5
ja 0x14006d620
cmp qword [0x1401331f0], 0
jne 0x14006d642
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x20
pop rbx
ret
cmp qword [0x1401331f8], 0
je 0x14006d60d
xor edx, edx
xor r8d, r8d
movzx ecx, bl
call fcn.1400236a0
test al, al
je 0x14006d642
mov cl, 1
call fcn.140023400
lea rcx, [0x140133210]
movzx eax, byte [rbx + rcx]
shr al, 7
add rsp, 0x20
pop rbx
ret