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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
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
mov r15, rcx
call fcn.1400c16a0
mov r8d, dword [0x14014b410]
lea r9, [0x140000000]
movsxd rdx, eax
mov esi, 0x190
mov eax, r8d
mov r10d, 2
lea rcx, [r15 + rdx*2]
mov qword [rsp + 0x80], rcx
nop dword [rax + rax]
xor r14b, r14b
mov r13, rcx
test esi, esi
jle 0x14004f72b
movsxd rcx, eax
mov edi, r10d
mov r12d, esi
nop word [rax + rax]
cmp eax, 0x190
lea rbx, [rcx - 0x190]
lea ebp, [rax - 0x190]
cmovl rbx, rcx
cmovl ebp, eax
cmp qword [r9 + rbx*8 + 0x14ba60], 0
je 0x14004f704
movzx r15d, r14b
lea eax, [rdi - 1]
xor r14b, r14b
cmp eax, esi
jge 0x14004f757
test r15b, r15b
jne 0x14004f704
mov r8d, dword [r9 + rbx*4 + 0x14b420]
lea eax, [rbp + 1]
xor edx, edx
lea rcx, [rbx + 1]
cmp eax, 0x190
cmovl rdx, rcx
mov eax, dword [r9 + rdx*4 + 0x14b420]
sub eax, r8d
cmp eax, 0x7fffffff
jbe 0x14004f6b0
mov r14b, 1
cmp edi, esi
jne 0x14004f68d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r10, [0x140000000]
sub eax, dword [r10 + rbx*4 + 0x14b420]
jmp 0x14004f6b7
lea rax, [rbx + 2]
mov rcx, 0xfffffffffffffe72
cmp rax, 0x190
cmovl rcx, r10
add rcx, rbx
mov eax, dword [r9 + rcx*4 + 0x14b420]
sub eax, r8d
lea r10, [0x140000000]
mov r8d, 0xc8
mov byte [rsp + 0x28], r15b
mov r9d, 0xfffe
mov dword [rsp + 0x20], eax
mov rcx, r13
mov rdx, r13
sub rcx, qword [rsp + 0x70]
sar rcx, 1
sub r9d, ecx
mov rcx, qword [r10 + rbx*8 + 0x14ba60]
cmp r9d, r8d
cmovl r8d, r9d
mov r9b, 1
call fcn.14004f7b0
mov r13, rax
lea r9, [0x140000000]
mov r10d, 2
inc edi
lea eax, [rbp + 1]
lea rcx, [rbx + 1]
sub r12, 1
jne 0x14004f600
mov r8d, dword [0x14014b410]
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x80]
mov rax, r13
mov edx, 0xfffe
sub rax, r15
sar rax, 1
sub edx, eax
cmp edx, 0x18
jg 0x14004f771
cmp esi, 0x78
jl 0x14004f771
sub esi, 0x64
mov eax, r8d
sub eax, esi
add eax, 0x190
jmp 0x14004f5e0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r10, [0x140000000]
sub eax, dword [r10 + rbx*4 + 0x14b420]
jmp 0x14004f6b7
lea r8, str._r_nPress__F5__to_refresh.
mov rcx, r13
call fcn.1400c16a0
mov rbx, qword [rsp + 0x78]
movsxd rcx, eax
lea rax, [rcx*2]
add rax, r13
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400513c0
Capabilities:
Print debug messages

Disassembly:
test edx, edx
je 0x14005150b
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x4030
call fcn.1400fe470
sub rsp, rax
mov qword [rsp + 0x4050], rbx
mov rbp, r9
mov rbx, qword [rsp + 0x4070]
mov r14, r8
mov qword [rsp + 0x4058], r15
mov esi, edx
mov rdi, rcx
test rbx, rbx
jne 0x140051421
mov rbx, qword [rcx + 0x6d0]
test rbx, rbx
jne 0x140051421
mov ecx, dword [rcx + 0x288]
movzx eax, word [rdi + 0x28c]
jmp 0x140051429
movzx ecx, word [rbx + 2]
movzx eax, word [rbx + 4]
movsxd r9, ecx
lea r8, str._s___d__:___Warning:__s_n
lea rcx, [0x14014b418]
movzx eax, ax
mov r15d, 0x2000
mov qword [rsp + 0x28], r14
mov edx, r15d
mov dword [rsp + 0x20], eax
mov r9, qword [rcx + r9*8]
lea rcx, [rsp + 0x30]
call fcn.1400c16a0
cmp word [rbp], 0
movsxd rcx, eax
je 0x140051485
sub r15d, ecx
lea rax, [rsp + 0x30]
lea rcx, [rax + rcx*2]
mov edx, r15d
mov r9, rbp
lea r8, str._____Specifically:__s_n
call fcn.1400c16a0
mov r15, qword [rsp + 0x4058]
cmp esi, 3
jne 0x1400514ab
lea r9, [0x140126708]
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140050200
jmp 0x1400514f0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 2
jne 0x1400514f0
test rbx, rbx
jne 0x1400514dc
mov rbx, qword [rdi + 0x6d0]
test rbx, rbx
jne 0x1400514dc
mov r8, rbp
mov rdx, r14
mov rcx, rdi
call fcn.1400508c0
jmp 0x1400514f0
mov r9, rbp
mov r8d, 1
mov rdx, r14
mov rcx, rbx
call fcn.140050440
mov rbx, qword [rsp + 0x4050]
mov rbp, qword [rsp + 0x4060]
add rsp, 0x4030
pop r14
pop rdi
pop rsi
ret
Function at 0x140058750
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x140
movsxd rax, dword [rcx]
movzx r12d, r9b
mov edi, r8d
mov r15, rdx
mov r14, rcx
cmp eax, 6
ja case.0x14005878d.1
lea r9, [0x140000000]
mov eax, dword [r9 + rax*4 + 0x589a8]
add rax, r9
jmp rax
lea rax, str.Timeout
jmp 0x1400587c0
lea rax, str.Match
jmp 0x1400587c0
mov qword [rsp + 0x170], rsi
mov rsi, r15
test r15, r15
jne 0x1400587d6
lea rax, str.EndKey
mov rsi, qword [rsp + 0x170]
mov rdi, qword [rsp + 0x178]
add rsp, 0x140
pop r15
pop r14
pop r12
ret
test r12b, r12b
je 0x1400587ec
movups xmm0, xmmword [str.EndKey:]
lea rsi, [rdx + 0xe]
sub edi, 7
movups xmmword [rdx], xmm0
movzx eax, word [rcx + 0x6a]
mov qword [rsp + 0x168], rbp
test ax, ax
je 0x14005880b
xor ebp, ebp
mov word [rsi], ax
mov word [rsi + 2], bp
jmp 0x14005895d
cmp byte [rcx + 0x6d], 0
mov qword [rsp + 0x160], rbx
je 0x140058895
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x100
call fcn.1400e1940
mov byte [rsp + 0x50], 0x80
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdx, rax
call fcn.14001acb0
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, byte [r14 + 0x66]
xor ebp, ebp
mov ebx, ebp
mov rdi, rax
cmp dword [0x14014a390], ebx
setne bl
xor edx, edx
call fcn.14001c2b0
movzx ecx, byte [r14 + 0x66]
lea r8, [rsp + 0x40]
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 0x140058955
xor ebp, ebp
movzx ecx, bp
mov word [rsi], bp
cmp byte [r14 + 0x6c], cl
je 0x1400588ef
movzx edx, word [r14 + 0x68]
lea rax, [0x140145aa8]
mov ecx, ebp
lea r8, [0x140145b78]
cmp word [rax], dx
je 0x1400588ca
inc ecx
add rax, 0x10
cmp rax, r8
jl 0x1400588b8
jmp 0x1400588f4
movsxd rdx, ecx
mov rcx, rsi
add rdx, rdx
movsxd rbx, edi
mov rdx, qword [r9 + rdx*8 + 0x145aa0]
lea r8, [rbx - 1]
call fcn.1400eadcc
mov word [rsi + rbx*2 - 2], bp
movzx ecx, word [rsi]
test cx, cx
jne 0x14005893a
test r12b, r12b
je 0x140058901
mov ecx, ebp
cmp byte [r14 + 0x6c], cl
jne 0x14005891c
cmp byte [r14 + 0x6c], bpl
mov r8d, edi
movzx ecx, byte [r14 + 0x66]
mov rdx, rsi
sete r9b
call fcn.14001afc0
movzx ecx, word [rsi]
test cx, cx
jne 0x14005893a
movzx r9d, word [r14 + 0x68]
lea r8, str.sc_03X
mov edx, edi
mov rcx, rsi
call fcn.1400c16a0
movzx ecx, word [rsi]
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x140058955
cmp word [rsi + 2], bp
jne 0x140058955
test r12b, r12b
je 0x140058955
sub cx, 0x20
mov word [rsi], cx
mov rbx, qword [rsp + 0x160]
mov rbp, qword [rsp + 0x168]
lea rax, str.EndKey
test r12b, r12b
cmovne rax, r15
jmp 0x1400587b8
lea rax, [0x140128a58]
jmp 0x1400587c0
lea rax, str.NewInput
jmp 0x1400587c0
lea rax, str.Stopped
jmp 0x1400587c0
lea rax, [0x14010d28c]
jmp 0x1400587c0
Function at 0x14005aa40
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x68]
mov r10, r9
mov r9, qword [rsp + 0x60]
mov r11, r8
mov rbx, rdx
mov qword [rsp + 0x20], rax
mov r8, r10
mov rdx, r11
mov rbp, rcx
call fcn.14006c220
mov rdi, rax
test rax, rax
je 0x14005ab6a
mov rdx, rbx
mov rcx, rax
call fcn.1400c8d30
mov rsi, rax
test rax, rax
je 0x14005ab6a
xor edx, edx
mov rcx, rdi
xor bpl, bpl
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
test eax, eax
je 0x14005aadf
cmp eax, dword [0x14014c878]
je 0x14005aadf
mov rcx, rdi
call fcn.1400c92d0
test al, al
jne 0x14005aadf
mov ecx, dword [0x14014c878]
mov r8d, 1
mov edx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne bpl
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetFocus]
test rax, rax
je 0x14005ab4d
mov rcx, qword [0x14014a3b0]
lea rdx, [0x14010d31c]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c6a70
mov rax, qword [0x140145a80]
cmp dword [rax + 0x78], 0xffffffff
jle 0x14005ab4d
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x14014c878], eax
je 0x14005ab39
mov rax, qword [0x140145a80]
mov ecx, dword [rax + 0x78]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14005ab4d
mov rcx, qword [0x140145a80]
mov edx, 1
mov ecx, dword [rcx + 0x78]
call fcn.1400018c0
test bpl, bpl
je 0x14005ab63
mov ecx, dword [0x14014c878]
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, 1
jmp 0x14005abad
mov rax, qword [0x140145a80]
lea rdx, [0x14012296c]
test byte [rax + 0x140], 1
jne 0x14005ab9b
mov rcx, qword [0x14014a3b0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c6a70
jmp 0x14005abad
lea r9, [0x14010d28c]
xor r8d, r8d
mov rcx, rbp
call fcn.140050010
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14005b7a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x68]
mov r10, r9
mov r9, qword [rsp + 0x60]
mov r11, r8
mov rbx, rdx
mov qword [rsp + 0x20], rax
mov r8, r10
mov rdx, r11
call fcn.14006c220
test rax, rax
je 0x14005b7e6
lea rdx, str.msctls_statusbar321
mov rcx, rax
call fcn.1400c8d30
mov rdi, rax
jmp 0x14005b7e8
xor edi, edi
mov rax, rbx
nop dword [rax + rax]
movzx ecx, word [rax]
cmp cx, 0x20
je 0x14005b7ff
cmp cx, 9
jne 0x14005b805
add rax, 2
jmp 0x14005b7f0
test cx, cx
je 0x14005b855
cmp cx, 0x2d
je 0x14005b816
cmp cx, 0x2b
jne 0x14005b820
lea rcx, [rax + 2]
mov rax, rcx
movzx ecx, word [rcx]
cmp cx, 0x30
jne 0x14005b855
movzx ecx, word [rax + 2]
mov edx, 0xffdf
sub cx, 0x58
test dx, cx
jne 0x14005b855
movzx ecx, word [rax + 4]
call fcn.1400ea440
test eax, eax
je 0x14005b855
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x10]
call fcn.1400ea654
jmp 0x14005b85d
mov rcx, rbx
call fcn.1400e9e88
mov rcx, qword [0x14014c6e0]
lea r9, [0x14010d28c]
mov dword [rsp + 0x68], gethostbyname
mov r8d, eax
mov rdx, rdi
mov dword [rsp + 0x60], 0xffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.1400c88d0
Function at 0x14005d050
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x60]
mov rbx, qword [0x14014c6e0]
mov qword [rsp + 0x20], rax
call fcn.14006c220
mov rsi, rax
mov ebp, 1
test rax, rax
je 0x14005d095
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [rax + 1]
jmp 0x14005d097
mov edi, ebp
lea eax, [rdi - 1]
mov byte [rsp + 0x20], bpl
movsxd r8, eax
xor r9d, r9d
xor edx, edx
mov rcx, rbx
call fcn.1400c6a70
cmp eax, ebp
je 0x14005d0ba
xor eax, eax
jmp 0x14005d1d4
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
test rsi, rsi
je 0x14005d167
mov qword [rsp + 0x40], r14
call fcn.140001670
mov rdx, rax
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [rbx + 0x23], 0
movsxd r14, eax
jne 0x14005d0f3
mov rsi, qword [rbx + 0x10]
jmp 0x14005d0f6
mov rsi, rbx
lea rdi, [0x14014fed8]
cmp byte [rsi + 0x23], bpl
jne 0x14005d117
test byte [rsi + 0x21], 8
je 0x14005d111
mov rcx, rsi
call fcn.140001510
add rsi, 0x10
jmp 0x14005d11a
mov rsi, rdi
lea rax, [r14 + r14]
mov r14, qword [rsp + 0x40]
mov qword [rsi], rax
cmp byte [rbx + 0x23], 0
jne 0x14005d132
mov rsi, qword [rbx + 0x10]
jmp 0x14005d135
mov rsi, rbx
cmp byte [rsi + 0x23], bpl
jne 0x14005d14d
test byte [rsi + 0x21], 8
je 0x14005d149
mov rcx, rsi
call fcn.140001510
lea rdi, [rsi + 0x10]
cmp qword [rdi], 2
jae 0x14005d1a4
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call fcn.140001670
xor esi, esi
mov word [rax], si
jmp 0x14005d1a4
call fcn.140001670
xor esi, esi
mov word [rax], si
cmp byte [rbx + 0x23], sil
jne 0x14005d17d
mov rdi, qword [rbx + 0x10]
jmp 0x14005d180
mov rdi, rbx
cmp byte [rdi + 0x23], bpl
jne 0x14005d19a
test byte [rdi + 0x21], 8
je 0x14005d194
mov rcx, rdi
call fcn.140001510
add rdi, 0x10
jmp 0x14005d1a1
lea rdi, [0x14014fed8]
mov qword [rdi], rsi
cmp byte [rbx + 0x23], 0
jne 0x14005d1ae
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x23], 2
jne 0x14005d1ce
cmp qword [0x14014e578], 0
je 0x14005d1ce
lea rcx, [0x14014e560]
call fcn.1400066c0
mov ebp, eax
jmp 0x14005d1d2
and byte [rbx + 0x21], 0x86
mov eax, ebp
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14005d260
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
mov eax, 0x11cf0
call fcn.1400fe470
sub rsp, rax
xor eax, eax
mov byte [rsp + 0x1889], 1
mov rbx, rcx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x188c], eax
lea rcx, [0x14010d28c]
mov qword [rsp + 0x18a0], rax
cmp edx, 6
mov rdx, qword [0x140145a80]
xorps xmm0, xmm0
mov dword [rsp + 0x18a8], eax
mov qword [rsp + 0x18b0], rax
mov qword [rsp + 0x18c8], rax
cmove rax, rbx
mov qword [rsp + 0x18c0], rax
mov rax, qword [rsp + 0x11d28]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x11d20]
mov qword [rsp + 0x1048], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
movdqa xmmword [rsp + 0x1890], xmm0
call fcn.1400c9560
test eax, eax
je 0x14005d311
lea rdx, [rsp + 0x30]
lea rcx, [0x1400c8570]
call qword [sym.imp.USER32.dll_EnumWindows]
movsxd rdx, dword [rsp + 0x188c]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rbx
call fcn.140001470
mov eax, 1
add rsp, 0x11cf0
pop rbx
ret

Function at 0x14005e470
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
mov eax, 0x10030
call fcn.1400fe470
sub rsp, rax
mov rbx, qword [0x14014c6e0]
mov rbp, rdx
mov rcx, rbp
lea rdx, [rsp + 0x30]
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov byte [rsp + 0x20], 1
mov rcx, rbx
mov esi, eax
cmp eax, 0x7fff
jb 0x14005e552
lea r8d, [rsi - 1]
mov r9b, 1
xor edx, edx
call fcn.1400c6a70
test eax, eax
je 0x14005e56f
mov qword [rsp + 0x10040], rdi
xor r8d, r8d
mov edi, 1
mov rcx, rbx
mov edx, edi
call fcn.140001670
mov rdx, rax
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x14005e510
xor r8d, r8d
mov edx, edi
mov rcx, rbx
call fcn.140001670
xor ecx, ecx
mov word [rax], cx
cmp byte [rbx + 0x23], 0
jne 0x14005e51a
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x23], 2
jne 0x14005e542
cmp qword [0x14014e578], 0
je 0x14005e542
lea rcx, [0x14014e560]
call fcn.1400066c0
mov edi, eax
mov rdi, qword [rsp + 0x10040]
jmp 0x14005e56f
and byte [rbx + 0x21], 0x86
mov eax, edi
mov rdi, qword [rsp + 0x10040]
jmp 0x14005e56f
test esi, esi
lea rax, [0x14010d28c]
lea rdx, [rsp + 0x30]
mov r8, rsi
cmove rdx, rax
xor r9d, r9d
call fcn.1400c6a70
lea r11, [rsp + 0x10030]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rsi
ret
Function at 0x140061720
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
mov eax, 0x2260
call fcn.1400fe470
sub rsp, rax
mov r9, qword [0x14014e4b0]
lea r8, str.__s_s
movzx ebp, dl
mov qword [rsp + 0x20], rcx
mov rdi, rcx
lea r14, [rsp + 0x260]
mov edx, 0x800
lea rcx, [rsp + 0x260]
lea r15, [0x14010d28c]
call fcn.1400c16a0
movsxd rbx, eax
lea esi, [rbx + 1]
cmp esi, 0x800
jg 0x1400617a5
lea rcx, [rsp + 0x262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400617a5
mov r9, qword [0x14014e4b0]
jmp 0x140061808
lea rcx, [rsp + 0x50]
call fcn.140061f40
test eax, eax
je 0x1400618ca
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rdi
lea r8, str.__s_s
mov edx, 0x800
lea rcx, [rsp + 0x260]
call fcn.1400c16a0
movsxd rbx, eax
lea esi, [rbx + 1]
cmp esi, 0x800
jg 0x1400618ca
lea rcx, [rsp + 0x262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400618ca
lea r9, [rsp + 0x50]
mov edi, SafeArrayAllocDescriptor
movsxd rax, esi
mov word [rsp + rbx*2 + 0x260], di
xor ebx, ebx
mov word [rsp + rax*2 + 0x260], bx
test bpl, bpl
je 0x140061890
lea rax, [0x14012bcc8]
mov edx, 0x800
lea r8, str.__s_s
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x1260]
call fcn.1400c16a0
movsxd rsi, eax
lea ebp, [rsi + 1]
cmp ebp, 0x800
jg 0x140061890
lea rcx, [rsp + 0x1262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140061890
movsxd rax, ebp
lea r14, [rsp + 0x1260]
mov word [rsp + rsi*2 + 0x1260], di
lea r15, [rsp + 0x260]
mov word [rsp + rax*2 + 0x1260], bx
mov qword [rsp + 0x48], rbx
lea rcx, [0x14014d8e0]
mov byte [rsp + 0x40], 0
xor r9d, r9d
mov byte [rsp + 0x38], 0
mov r8, r15
mov qword [rsp + 0x30], rbx
mov rdx, r14
mov qword [rsp + 0x28], rbx
mov byte [rsp + 0x20], 0
call fcn.140051c70
test eax, eax
setne al
jmp 0x1400618cc
xor al, al
lea r11, [rsp + 0x2260]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140061f40
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
sub rsp, 0x250
mov qword [rax - 0x10], rbp
mov rsi, rcx
mov qword [rax - 0x18], rdi
xor ebp, ebp
mov edi, ebp
mov qword [rax + 0x18], rbx
nop
mov r9d, edi
lea rax, [rsp + 0x268]
or r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREAutoHotkey
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140062099
mov rcx, qword [rsp + 0x268]
lea rax, [rsp + 0x260]
mov qword [rsp + 0x28], rax
lea rdx, str.InstallDir
lea rax, [rsp + 0x30]
mov dword [rsp + 0x260], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x268]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140062099
mov eax, dword [rsp + 0x260]
test eax, eax
je 0x140062099
shr eax, 1
mov r8d, eax
dec eax
mov edx, eax
mov dword [rsp + 0x260], eax
cmp word [rsp + rax*2 + 0x30], bp
jne 0x14006202e
test eax, eax
je 0x1400620a0
dec edx
cmp word [rsp + rdx*2 + 0x30], bp
jne 0x140062048
mov dword [rsp + 0x260], edx
mov eax, edx
test edx, edx
jne 0x140062016
jmp 0x140062048
mov dword [rsp + 0x260], r8d
cmp r8d, 0x104
jae 0x140062099
mov word [rsp + r8*2 + 0x30], bp
mov eax, r8d
test eax, eax
je 0x1400620a0
mov rdi, qword [rsp + 0x240]
mov rbp, qword [rsp + 0x248]
mov rbx, qword [rsp + 0x270]
test rsi, rsi
je 0x140062090
lea rcx, [rsp + 0x30]
sub rsi, rcx
lea rdx, [rsp + 0x30]
nop word [rax + rax]
movzx ecx, word [rdx]
mov word [rsi + rdx], cx
lea rdx, [rdx + 2]
test cx, cx
jne 0x140062080
add rsp, 0x250
pop rsi
ret
mov word [rsp + 0x30], bp
mov eax, ebp
test edi, edi
jne 0x14006204c
mov edi, 0x200
jmp 0x140061f60
Function at 0x1400667c0
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rdi
push r14
sub rsp, 0x250
mov rbp, qword [0x14014c6e0]
xor ecx, ecx
mov rdi, r8
mov rbx, rdx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.14001b4d0
movzx r14d, al
test al, al
jne 0x14006685f
xor r8d, r8d
lea rdx, [rsp + 0x270]
mov rcx, rbx
call fcn.140083940
xor r9d, r9d
test eax, eax
jne 0x14006682a
lea rdx, [0x14010d28c]
jmp 0x1400668cc
mov edx, dword [rsp + 0x270]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rcx
lea r8, [rsp + 0x30]
xor edi, edi
mov ecx, eax
mov dword [rsp + 0x40], edi
call fcn.140083e00
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.1400c6120
jmp 0x1400668e0
mov qword [rsp + 0x278], rsi
mov ebx, 2
movzx esi, word [rdi]
xor edi, edi
test esi, 0xffffff80
je 0x14006687d
mov eax, edi
jmp 0x140066886
mov edx, ebx
mov ecx, esi
call fcn.1400e8e20
mov ecx, esi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, esi
mov rsi, qword [rsp + 0x278]
cmp ecx, 0x50
je 0x1400668a5
cmp ecx, 0x54
cmovne ebx, edi
jmp 0x1400668aa
mov ebx, 1
mov edx, ebx
movzx ecx, r14b
call fcn.140083d50
test al, al
lea rcx, [0x14012c1f8]
lea rdx, [0x14012c1fc]
cmovne rdx, rcx
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
mov rcx, rbp
call fcn.1400c6a70
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rdi
pop rbp
ret

Function at 0x140066900
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
xor r9d, r9d
mov byte [rsp + 0x20], 1
movzx esi, r8b
mov rbx, rdx
mov rdi, rcx
xor edx, edx
mov rcx, qword [0x14014c6e0]
lea r8, [r9 - 1]
call fcn.1400c6a70
test rbx, rbx
je 0x140066a12
cmp word [rbx], 0
je 0x140066a12
mov r8d, 0x103
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.1400eadcc
xor edx, edx
lea rcx, [rsp + 0x40]
mov word [rsp + 0x246], dx
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], dx
jne 0x140066972
lea rcx, [rax + rax]
cmp word [rsp + rcx + 0x3e], 0x5c
je 0x14006699e
inc rax
cmp rax, 0x104
jae 0x140066a12
mov dword [rsp + rcx + 0x40], 0x5c
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x268]
lea rdx, [rsp + 0x278]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x140066a12
mov rbx, qword [rsp + 0x268]
lea rdx, [0x14010d31c]
mov rcx, qword [0x14014a3b0]
test sil, sil
mov byte [rsp + 0x20], 1
cmovne rbx, qword [rsp + 0x278]
xor r9d, r9d
shr rbx, 0x14
lea r8, [r9 - 1]
call fcn.1400c6a70
mov rcx, qword [0x14014c6e0]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rdx, rbx
call fcn.140001470
mov eax, 1
jmp 0x140066a55
mov rax, qword [0x140145a80]
lea rdx, [0x14012296c]
test byte [rax + 0x140], 1
jne 0x140066a43
mov rcx, qword [0x14014a3b0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c6a70
jmp 0x140066a55
lea r9, [0x14010d28c]
xor r8d, r8d
mov rcx, rdi
call fcn.140050010
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140068e50
Capabilities:
Set current directory

Disassembly:
push rbx
sub rsp, 0x30
movzx eax, word [rcx]
mov rbx, rcx
test ax, ax
je 0x140068e88
cmp word [rcx + 2], 0x3a
jne 0x140068e88
cmp word [rcx + 4], 0
jne 0x140068e88
mov word [rsp + 0x40], ax
lea rbx, [rsp + 0x40]
xor eax, eax
mov dword [rsp + 0x42], 0x5c003a
mov word [rsp + 0x46], ax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x140068ed0
cmp byte [0x14014e4c0], al
je 0x140068f00
mov rax, qword [0x140145a80]
lea rdx, [0x14012296c]
test byte [rax + 0x140], 1
je 0x140068ee8
mov rcx, qword [0x14014dfb0]
lea r9, [0x14010d28c]
xor r8d, r8d
call fcn.140050010
add rsp, 0x30
pop rbx
ret
cmp byte [0x14014e4c0], 0
je 0x140068f00
mov rcx, rbx
call fcn.140068f10
lea rdx, [0x14010d31c]
mov rcx, qword [0x14014a3b0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c6a70
add rsp, 0x30
pop rbx
ret

Function at 0x140068f10
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10020
call fcn.1400fe470
sub rsp, rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140068f3d
lea rbx, [rsp + 0x20]
jmp 0x140068f42
test rbx, rbx
je 0x140068f51
mov rdx, rbx
lea rcx, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
call fcn.1400845d0
add rsp, 0x10020
pop rbx
ret