joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003d3f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x10040
call fcn.1400eb380
sub rsp, rax
mov qword [rsp + 0x20], r9
lea rcx, [rsp + 0x30]
mov r9, r8
mov rbx, rdx
lea r8, [0x140115cd8]
mov edx, 0x8001
call fcn.1400acf50
lea rcx, [rsp + 0x30]
movsxd rdi, eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003d484
test al, 0x10
je 0x14003d484
lea ecx, [rdi + 0xfd]
movsxd rcx, ecx
lea rcx, [rcx*2 + 0xa]
call fcn.1400a96d0
mov qword [rbx], rax
test rax, rax
je 0x14003d484
lea ecx, [rdi + 1]
movsxd r8, ecx
lea rdx, [rsp + 0x30]
add r8, r8
mov rcx, rax
call fcn.1400cfd20
mov qword [rbx + 8], rdi
mov rbx, qword [rsp + 0x10050]
add rsp, 0x10040
pop rdi
ret
lea rax, [0x1400fb87c]
mov qword [rbx], rax
mov rbx, qword [rsp + 0x10050]
add rsp, 0x10040
pop rdi
ret
Function at 0x140050200
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, 0x38
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.1400acf50
mov r9, qword [rsp + 0x80]
lea r10, [0x140000000]
mov r8d, dword [0x1401351c8]
mov ebp, 0x190
movsxd rdx, eax
mov r11d, 2
mov dword [rsp + 0x88], 0xffffffff
mov eax, r8d
lea rcx, [r9 + rdx*2]
mov qword [rsp + 0x98], rcx
nop dword [rax + rax]
xor r12b, r12b
mov r13, rcx
test ebp, ebp
jle 0x140050441
mov edx, ebp
mov esi, r11d
mov qword [rsp + 0x90], 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 + 0x135810], 0
je 0x140050416
movzx r15d, r12b
lea eax, [rsi - 1]
xor r12b, r12b
cmp eax, ebp
jge 0x140050342
test r15b, r15b
jne 0x140050416
mov edx, dword [r10 + rdi*4 + 0x1351d0]
lea eax, [r14 + 1]
xor ebx, ebx
lea rcx, [rdi + 1]
cmp eax, 0x190
cmovl rbx, rcx
mov ebx, dword [r10 + rbx*4 + 0x1351d0]
sub ebx, edx
cmp ebx, 0x7fffffff
jbe 0x140050361
mov r12b, 1
cmp esi, ebp
jne 0x14005031e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
lea r10, [0x140000000]
sub ebx, dword [r10 + rdi*4 + 0x1351d0]
jmp 0x140050359
lea rax, [rdi + 2]
mov rbx, 0xfffffffffffffe72
cmp rax, 0x190
cmovl rbx, r11
add rbx, rdi
mov ebx, dword [r10 + rbx*4 + 0x1351d0]
sub ebx, edx
jmp 0x140050361
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
lea r10, [0x140000000]
sub ebx, dword [r10 + rdi*4 + 0x1351d0]
mov r9, qword [rsp + 0x80]
mov rax, qword [r10 + rdi*8 + 0x135810]
movzx ecx, word [rax + 2]
cmp dword [rsp + 0x88], ecx
je 0x1400503b6
mov edx, 0xfffe
mov dword [rsp + 0x88], ecx
mov rax, r13
lea r8, str.______s_r_n
sub rax, r9
mov r9, qword [0x1401351a8]
sar rax, 1
sub edx, eax
mov r9, qword [r9 + rcx*8]
mov rcx, r13
call fcn.1400acf50
movsxd rcx, eax
lea r10, [0x140000000]
lea r13, [r13 + rcx*2]
mov rcx, qword [r10 + rdi*8 + 0x135810]
mov r8d, 0xc8
mov r9d, 0xfffe
mov byte [rsp + 0x28], r15b
mov rax, r13
mov dword [rsp + 0x20], ebx
sub rax, qword [rsp + 0x80]
mov rdx, r13
sar rax, 1
sub r9d, eax
cmp r9d, r8d
cmovl r8d, r9d
mov r9b, 1
call fcn.1400504a0
mov rdx, qword [rsp + 0x90]
lea r10, [0x140000000]
mov r9, qword [rsp + 0x80]
mov r13, rax
mov r11d, 2
inc esi
lea eax, [r14 + 1]
sub rdx, 1
lea rcx, [rdi + 1]
mov qword [rsp + 0x90], rdx
jne 0x140050290
mov r8d, dword [0x1401351c8]
mov rcx, qword [rsp + 0x98]
mov rax, r13
mov edx, 0xfffe
sub rax, r9
sar rax, 1
sub edx, eax
cmp edx, 0x18
jg 0x14005046d
cmp ebp, 0x78
jl 0x14005046d
sub ebp, 0x64
mov eax, r8d
sub eax, ebp
add eax, 0x190
jmp 0x140050270
lea r8, str._r_nPress__F5__to_refresh.
mov rcx, r13
call fcn.1400acf50
movsxd rcx, eax
lea rax, [rcx*2]
add rax, r13
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140050e70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rdi, r9
mov esi, r8d
mov rbx, rdx
mov r14, rcx
mov eax, dword [0x1401320b8]
test eax, eax
je 0x140050ec3
lea r8, str.stdout
lea rcx, [0x140132030]
call fcn.14000d2b0
mov eax, dword [0x1401320b8]
cmp eax, 2
je 0x14005105c
lea r12, vtable.TextStream.0
mov qword [rbp - 0x19], r12
xor r15d, r15d
mov qword [rbp - 0x11], r15
mov dword [rbp - 9], r15d
mov dword [rbp - 5], 0xffffffff
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x17], xmm0
mov ecx, dword [0x140137468]
cmp ecx, 0xffffffff
je 0x140050f11
mov dword [rbp - 5], ecx
lea rdx, [rbp - 1]
call qword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x140050f11
mov byte [rbp + 5], r15b
lea r13, vtable.TextFile.0
mov qword [rbp - 0x19], r13
mov qword [rbp + 0x27], 0xffffffffffffffff
mov r9d, dword [r14 + 0xbb8]
mov r8d, 2
mov rdx, rdi
lea rcx, [rbp - 0x19]
call fcn.1400a9c60
mov r8d, esi
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.1400aa3a0
mov r8d, dword [rbp - 0xd]
test r8d, r8d
je 0x140050f9b
cmp qword [rbp + 0x17], 0
jne 0x140050f9b
mov rax, qword [rbp - 0x19]
mov r9, qword [rax + 0x20]
lea rax, [fcn.1400aa880]
mov rdx, qword [rbp + 0x1f]
cmp r9, rax
jne 0x140050f8d
mov dword [rbp - 0x29], r15d
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x29]
mov rcx, qword [rbp + 0x27]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140050f94
lea rcx, [rbp - 0x19]
call r9
mov r8d, r15d
mov dword [rbp - 0xd], r15d
mov word [rbp + 0x13], r15w
mov rax, qword [rbp - 0x19]
mov rdx, qword [rax + 0x10]
lea rax, [method.TextFile.virtual_16]
cmp rdx, rax
jne 0x140050fe4
mov rcx, qword [rbp + 0x27]
cmp rcx, 0xffffffffffffffff
je 0x140050ff2
mov eax, dword [rbp - 0x11]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x140050fd7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rbp - 0xd]
mov rcx, 0xffffffffffffffff
mov qword [rbp + 0x27], rcx
jmp 0x140050ff2
lea rcx, [rbp - 0x19]
call rdx
mov rcx, qword [rbp + 0x27]
mov r8d, dword [rbp - 0xd]
mov qword [rbp - 0x19], r13
test r8d, r8d
je 0x140051021
cmp qword [rbp + 0x17], 0
jne 0x140051021
mov dword [rbp - 0x29], r15d
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x29]
mov rdx, qword [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbp - 0xd], r15d
mov rcx, qword [rbp + 0x27]
mov word [rbp + 0x13], r15w
cmp rcx, 0xffffffffffffffff
je 0x140051049
mov eax, dword [rbp - 0x11]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x140051041
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x27], 0xffffffffffffffff
mov qword [rbp - 0x19], r12
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x14005105c
call fcn.1400d29a8
nop
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140051f90
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x4030
call fcn.1400eb380
sub rsp, rax
mov rbx, qword [rsp + 0x4070]
mov rbp, r9
mov r14, r8
mov esi, edx
mov rdi, rcx
test rbx, rbx
jne 0x140051fde
mov rbx, qword [rcx + 0x6a0]
test rbx, rbx
jne 0x140051fde
mov ecx, dword [rcx + 0x2c8]
movzx eax, word [rdi + 0x2cc]
jmp 0x140051fe6
movzx ecx, word [rbx + 2]
movzx eax, word [rbx + 4]
test esi, esi
je 0x1400520cc
mov r9, qword [0x1401351a8]
lea r8, str._s___d__:___Warning:__s_n
movsxd rcx, ecx
movzx eax, ax
mov qword [rsp + 0x4050], r15
mov r15d, 0x2000
mov qword [rsp + 0x28], r14
mov edx, r15d
mov r9, qword [r9 + rcx*8]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], eax
call fcn.1400acf50
cmp word [rbp], 0
je 0x140052051
sub r15d, eax
lea rcx, [rsp + 0x30]
cdqe
lea r8, str._____Specifically:__s_n
mov r9, rbp
mov edx, r15d
lea rcx, [rcx + rax*2]
call fcn.1400acf50
mov r15, qword [rsp + 0x4050]
lea rdx, [rsp + 0x30]
cmp esi, 3
jne 0x140052077
lea r9, [0x1401135ac]
xor r8d, r8d
mov rcx, rdi
call fcn.140050e70
jmp 0x1400520cc
lea rcx, [0x140132030]
call fcn.14000d3e0
test al, al
jne 0x140052092
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 2
jne 0x1400520cc
test rbx, rbx
jne 0x1400520b8
mov rbx, qword [rdi + 0x6a0]
test rbx, rbx
jne 0x1400520b8
mov r8, rbp
mov rdx, r14
mov rcx, rdi
call fcn.1400515e0
jmp 0x1400520cc
mov r9, rbp
mov r8d, 1
mov rdx, r14
mov rcx, rbx
call fcn.140051140
lea r11, [rsp + 0x4030]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400598c0
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 rsi, rcx
call fcn.14006a980
mov rdi, rax
test rax, rax
je 0x1400599c2
mov rdx, rbx
mov rcx, rax
call fcn.1400b2c30
mov rbp, rax
test rax, rax
je 0x1400599c2
xor edx, edx
mov rcx, rdi
xor sil, sil
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
test eax, eax
je 0x14005995f
cmp eax, dword [0x140136620]
je 0x14005995f
mov rcx, rdi
call fcn.1400b3190
test al, al
jne 0x14005995f
mov ecx, dword [0x140136620]
mov r8d, 1
mov edx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne sil
mov rcx, rbp
call qword [sym.imp.USER32.dll_SetFocus]
test rax, rax
je 0x1400599a5
mov rcx, qword [0x140134210]
lea rdx, [0x1400fb96c]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400b0830
mov rax, qword [0x14012fc08]
mov ecx, dword [rax + 0x78]
cmp ecx, 0xffffffff
jle 0x1400599a5
mov edx, 1
call fcn.140001940
test sil, sil
je 0x1400599bb
mov ecx, dword [0x140136620]
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, 1
jmp 0x140059a05
mov rax, qword [0x14012fc08]
lea rdx, [0x14011037c]
test byte [rax + 0x140], 1
jne 0x1400599f3
mov rcx, qword [0x140134210]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400b0830
jmp 0x140059a05
lea r9, [0x1400fb87c]
xor r8d, r8d
mov rcx, rsi
call fcn.140050b90
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14005a570
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.14006a980
test rax, rax
je 0x14005a5b6
lea rdx, str.msctls_statusbar321
mov rcx, rax
call fcn.1400b2c30
mov rdi, rax
jmp 0x14005a5b8
xor edi, edi
mov rcx, rbx
call fcn.140005a80
mov rcx, rbx
test al, al
je 0x14005a5d4
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.1400d2570
jmp 0x14005a5d9
call fcn.1400d278c
mov rcx, qword [0x140136490]
lea r9, [0x1400fb87c]
mov dword [rsp + 0x68], getservbyport
mov r8d, eax
mov rdx, rdi
mov dword [rsp + 0x60], 0xffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.1400b2830
Function at 0x14005b860
Capabilities:
Get graphical window text
Write clipboard data

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x70]
mov rbx, qword [0x140136490]
mov qword [rsp + 0x20], rax
call fcn.14006a980
mov rsi, rax
mov ebp, 1
test rax, rax
je 0x14005b89d
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [rax + 1]
jmp 0x14005b89f
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.1400b0830
cmp eax, ebp
je 0x14005b8ca
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
xor r8d, r8d
mov qword [rsp + 0x50], r14
mov edx, ebp
mov rcx, rbx
test rsi, rsi
je 0x14005b97f
mov qword [rsp + 0x58], r15
call fcn.1400016b0
mov rdx, rax
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [rbx + 0x23], 0
movsxd r15, eax
jne 0x14005b908
mov rsi, qword [rbx + 0x10]
jmp 0x14005b90b
mov rsi, rbx
lea r14, [rbx + 0x10]
lea rdi, [0x140137fd0]
cmp byte [rsi + 0x23], bpl
jne 0x14005b930
test byte [rsi + 0x21], 8
je 0x14005b92a
mov rcx, rsi
call fcn.140001550
add rsi, 0x10
jmp 0x14005b933
mov rsi, rdi
lea rax, [r15 + r15]
mov r15, qword [rsp + 0x58]
mov qword [rsi], rax
cmp byte [rbx + 0x23], 0
jne 0x14005b94a
mov rsi, qword [r14]
jmp 0x14005b94d
mov rsi, rbx
cmp byte [rsi + 0x23], bpl
jne 0x14005b965
test byte [rsi + 0x21], 8
je 0x14005b961
mov rcx, rsi
call fcn.140001550
lea rdi, [rsi + 0x10]
cmp qword [rdi], 2
jae 0x14005b9c3
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call fcn.1400016b0
xor esi, esi
mov word [rax], si
jmp 0x14005b9c3
call fcn.1400016b0
xor esi, esi
lea r14, [rbx + 0x10]
mov word [rax], si
cmp byte [rbx + 0x23], sil
jne 0x14005b998
mov rdi, qword [r14]
jmp 0x14005b99b
mov rdi, rbx
cmp byte [rdi + 0x23], bpl
jne 0x14005b9b9
test byte [rdi + 0x21], 8
je 0x14005b9af
mov rcx, rdi
call fcn.140001550
add rdi, 0x10
lea r14, [rbx + 0x10]
jmp 0x14005b9c0
lea rdi, [0x140137fd0]
mov qword [rdi], rsi
cmp byte [rbx + 0x23], 0
jne 0x14005b9cc
mov rbx, qword [r14]
cmp byte [rbx + 0x23], 2
mov r14, qword [rsp + 0x50]
jne 0x14005b9f9
cmp qword [0x1401372c0], 0
je 0x14005b9f9
lea rcx, [0x1401372a8]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
jmp fcn.140007040
and byte [rbx + 0x21], 0x86
mov eax, ebp
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005ba80
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
mov eax, 0x11ce0
call fcn.1400eb380
sub rsp, rax
xor eax, eax
mov byte [rsp + 0x1881], 1
mov rbx, rcx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x1884], eax
lea rcx, [0x1400fb87c]
mov qword [rsp + 0x1888], rax
cmp edx, 6
mov rdx, qword [0x14012fc08]
xorps xmm0, xmm0
mov dword [rsp + 0x18a0], eax
mov qword [rsp + 0x18a8], rax
mov qword [rsp + 0x18c0], rax
cmove rax, rbx
mov qword [rsp + 0x18b8], rax
mov rax, qword [rsp + 0x11d18]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x11d10]
mov qword [rsp + 0x1048], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
movdqa xmmword [rsp + 0x1890], xmm0
call fcn.1400b3420
test eax, eax
je 0x14005bb31
lea rdx, [rsp + 0x30]
lea rcx, [0x1400b24c0]
call qword [sym.imp.USER32.dll_EnumWindows]
movsxd rdx, dword [rsp + 0x1884]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rbx
call fcn.1400014b0
mov eax, 1
add rsp, 0x11ce0
pop rbx
ret

Function at 0x14005cad0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
mov eax, 0x10030
call fcn.1400eb380
sub rsp, rax
mov rbx, qword [0x140136490]
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 0x14005cbb2
lea r8d, [rsi - 1]
mov r9b, 1
xor edx, edx
call fcn.1400b0830
test eax, eax
je 0x14005cbcf
mov qword [rsp + 0x10040], rdi
xor r8d, r8d
mov edi, 1
mov rcx, rbx
mov edx, edi
call fcn.1400016b0
mov rdx, rax
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x14005cb70
xor r8d, r8d
mov edx, edi
mov rcx, rbx
call fcn.1400016b0
xor ecx, ecx
mov word [rax], cx
cmp byte [rbx + 0x23], 0
jne 0x14005cb7a
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x23], 2
jne 0x14005cba2
cmp qword [0x1401372c0], 0
je 0x14005cba2
lea rcx, [0x1401372a8]
call fcn.140007040
mov edi, eax
mov rdi, qword [rsp + 0x10040]
jmp 0x14005cbcf
and byte [rbx + 0x21], 0x86
mov eax, edi
mov rdi, qword [rsp + 0x10040]
jmp 0x14005cbcf
test esi, esi
lea rax, [0x1400fb87c]
lea rdx, [rsp + 0x30]
mov r8, rsi
cmove rdx, rax
xor r9d, r9d
call fcn.1400b0830
lea r11, [rsp + 0x10030]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rsi
ret
Function at 0x14005fe10
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value
Set current directory

Disassembly:
push rbx
push rbp
sub rsp, 0x458
mov rbp, rcx
mov rbx, rdx
mov rcx, qword [0x1401371e0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne r8b
mov byte [rbx], r8b
jne 0x14005ffcd
mov qword [rsp + 0x470], rsi
mov qword [rsp + 0x450], rdi
xor edi, edi
mov esi, edi
nop word [rax + rax]
mov r9d, esi
lea rax, [rsp + 0x480]
or r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREPinkHotkey
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005ffac
mov rcx, qword [rsp + 0x480]
lea rax, [rsp + 0x478]
mov qword [rsp + 0x28], rax
lea rdx, str.InstallDir
lea rax, [rsp + 0x30]
mov dword [rsp + 0x478], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x480]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14005ffac
mov edx, dword [rsp + 0x478]
test edx, edx
je 0x14005ffac
shr edx, 1
mov ecx, edx
dec edx
mov dword [rsp + 0x478], edx
cmp word [rsp + rdx*2 + 0x30], di
jne 0x14005ff41
test edx, edx
je 0x14005ffb3
mov ecx, edx
mov r8d, edx
nop dword [rax + rax]
lea eax, [r8 - 1]
mov edx, ecx
mov r8d, eax
cmp word [rsp + rax*2 + 0x30], di
jne 0x14005ff57
mov dword [rsp + 0x478], eax
mov ecx, eax
mov edx, eax
test eax, eax
jne 0x14005ff20
jmp 0x14005ff57
mov dword [rsp + 0x478], ecx
cmp ecx, 0x104
jae 0x14005ffac
mov word [rsp + rcx*2 + 0x30], di
mov edx, ecx
test edx, edx
je 0x14005ffb3
mov rsi, qword [rsp + 0x470]
movzx eax, word [rsp + rdi + 0x30]
mov word [rsp + rdi + 0x240], ax
lea rdi, [rdi + 2]
test ax, ax
jne 0x14005ff63
mov rdi, qword [rsp + 0x450]
test edx, edx
je 0x14005ffc1
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x458
pop rbp
pop rbx
ret
mov word [rsp + 0x30], di
mov edx, edi
test esi, esi
jne 0x14005ff5b
mov esi, 0x200
jmp 0x14005fe60
xor al, al
add rsp, 0x458
pop rbp
pop rbx
ret
mov al, 1
add rsp, 0x458
pop rbp
pop rbx
ret
Function at 0x14005ffe0
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
movzx esi, dl
lea rdi, [0x1400fb87c]
lea rdx, [rsp + 0xe0]
mov rbx, rcx
call fcn.14005fe10
test al, al
je 0x1400600a5
test sil, sil
je 0x140060048
cmp byte [rsp + 0xe0], 0
je 0x140060048
mov r9, rbx
lea r8, str._script__s
mov edx, 0x40
lea rcx, [rsp + 0x50]
call fcn.1400acf50
mov rbx, qword [0x1401371d8]
lea rdi, [rsp + 0x50]
xor eax, eax
lea rcx, [0x140136640]
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov byte [rsp + 0x40], al
mov r8, rdi
mov byte [rsp + 0x38], al
mov rdx, rbx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], al
call fcn.1400527c0
test eax, eax
lea rcx, [0x1400fb87c]
mov rax, qword [0x1401320f0]
setne bl
test rax, rax
je 0x14006009c
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
movzx eax, bl
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140064dc0
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 [0x140136490]
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.140022190
movzx r14d, al
test al, al
jne 0x140064e5f
xor r8d, r8d
lea rdx, [rsp + 0x270]
mov rcx, rbx
call fcn.14007db30
xor r9d, r9d
test eax, eax
jne 0x140064e2a
lea rdx, [0x1400fb87c]
jmp 0x140064ecc
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.14007df20
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.1400afee0
jmp 0x140064ee0
mov qword [rsp + 0x278], rsi
mov ebx, 2
movzx esi, word [rdi]
xor edi, edi
test esi, 0xffffff80
je 0x140064e7d
mov eax, edi
jmp 0x140064e86
mov edx, ebx
mov ecx, esi
call fcn.1400d7464
mov ecx, esi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, esi
mov rsi, qword [rsp + 0x278]
cmp ecx, 0x50
je 0x140064ea5
cmp ecx, 0x54
cmovne ebx, edi
jmp 0x140064eaa
mov ebx, 1
mov edx, ebx
movzx ecx, r14b
call fcn.14007de70
test al, al
lea rcx, [0x140119168]
lea rdx, [0x14011916c]
cmovne rdx, rcx
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
mov rcx, rbp
call fcn.1400b0830
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rdi
pop rbp
ret

Function at 0x140064f00
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 [0x140136490]
lea r8, [r9 - 1]
call fcn.1400b0830
test rbx, rbx
je 0x140065012
cmp word [rbx], 0
je 0x140065012
mov r8d, 0x103
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.1400de184
xor edx, edx
lea rcx, [rsp + 0x40]
mov word [rsp + 0x246], dx
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], dx
jne 0x140064f72
lea rcx, [rax + rax]
cmp word [rsp + rcx + 0x3e], 0x5c
je 0x140064f9e
inc rax
cmp rax, 0x104
jae 0x140065012
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 0x140065012
mov rbx, qword [rsp + 0x268]
lea rdx, [0x1400fb96c]
mov rcx, qword [0x140134210]
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.1400b0830
mov rcx, qword [0x140136490]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rdx, rbx
call fcn.1400014b0
mov eax, 1
jmp 0x140065055
mov rax, qword [0x14012fc08]
lea rdx, [0x14011037c]
test byte [rax + 0x140], 1
jne 0x140065043
mov rcx, qword [0x140134210]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400b0830
jmp 0x140065055
lea r9, [0x1400fb87c]
xor r8d, r8d
mov rcx, rdi
call fcn.140050b90
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140067190
Capabilities:
Set current directory

Disassembly:
push rbx
sub rsp, 0x30
movzx eax, word [rcx]
mov rbx, rcx
test ax, ax
je 0x1400671c8
cmp word [rcx + 2], 0x3a
jne 0x1400671c8
cmp word [rcx + 4], 0
jne 0x1400671c8
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 0x140067210
cmp byte [0x1401371f4], al
je 0x140067240
mov rax, qword [0x14012fc08]
lea rdx, [0x14011037c]
test byte [rax + 0x140], 1
je 0x140067228
mov rcx, qword [0x140136ce0]
lea r9, [0x1400fb87c]
xor r8d, r8d
call fcn.140050b90
add rsp, 0x30
pop rbx
ret
cmp byte [0x1401371f4], 0
je 0x140067240
mov rcx, rbx
call fcn.140067250
lea rdx, [0x1400fb96c]
mov rcx, qword [0x140134210]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400b0830
add rsp, 0x30
pop rbx
ret

Function at 0x140067250
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10020
call fcn.1400eb380
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 0x14006728e
lea rcx, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
call fcn.14007e520
add rsp, 0x10020
pop rbx
ret

Function at 0x1400672a0
Capabilities:
Get common file path

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