joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400607d0
Capabilities:
Print debug messages

Disassembly:
test edx, edx
je 0x14006092b
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x4030
call fcn.1400ed080
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 0x140060831
mov rbx, qword [rcx + 0x6d0]
test rbx, rbx
jne 0x140060831
mov ecx, dword [rcx + 0x288]
movzx eax, word [rdi + 0x28c]
jmp 0x140060839
movzx ecx, word [rbx + 2]
movzx eax, word [rbx + 4]
mov r9, qword [0x140128ad0]
lea r8, str._s___d__:___Warning:__s_n
movsxd rcx, ecx
mov r15d, 0x2000
movzx eax, ax
mov edx, r15d
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], eax
mov r9, qword [r9 + rcx*8]
lea rcx, [rsp + 0x30]
call fcn.1400ce4e0
cmp word [rbp], 0
movsxd rcx, eax
je 0x140060895
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.1400ce4e0
mov r15, qword [rsp + 0x4058]
lea rdx, [rsp + 0x30]
cmp esi, 3
jne 0x1400608bb
lea r9, [0x1401094f4]
xor r8d, r8d
mov rcx, rdi
call fcn.14005f6e0
jmp 0x140060910
lea rcx, [0x140126960]
call fcn.14000cf80
test al, al
jne 0x1400608d6
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 2
jne 0x140060910
test rbx, rbx
jne 0x1400608fc
mov rbx, qword [rdi + 0x6d0]
test rbx, rbx
jne 0x1400608fc
mov r8, rbp
mov rdx, r14
mov rcx, rdi
call fcn.14005fdd0
jmp 0x140060910
mov r9, rbp
mov r8d, 1
mov rdx, r14
mov rcx, rbx
call fcn.14005f950
mov rbx, qword [rsp + 0x4050]
mov rbp, qword [rsp + 0x4060]
add rsp, 0x4030
pop r14
pop rdi
pop rsi
ret
Function at 0x140065af0
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.0x140065b2d.1
lea r9, [0x140000000]
mov eax, dword [r9 + rax*4 + 0x65d4c]
add rax, r9
jmp rax
lea rax, str.Timeout
jmp 0x140065b60
lea rax, str.Match
jmp 0x140065b60
mov qword [rsp + 0x170], rsi
mov rsi, r15
test r15, r15
jne 0x140065b76
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 0x140065b8c
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 0x140065bab
xor ebp, ebp
mov word [rsi], ax
mov word [rsi + 2], bp
jmp 0x140065cfe
cmp byte [rcx + 0x6d], 0
mov qword [rsp + 0x160], rbx
je 0x140065c35
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
mov byte [rsp + 0x50], 0x80
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdx, rax
call fcn.140023790
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 [0x1401278bc], ebx
setne bl
xor edx, edx
call fcn.140024dc0
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 0x140065cf6
xor ebp, ebp
movzx ecx, bp
mov word [rsi], bp
cmp byte [r14 + 0x6c], cl
je 0x140065c90
movzx edx, word [r14 + 0x68]
lea rax, [0x140124228]
mov ecx, ebp
lea r8, [0x1401242f8]
cmp word [rax], dx
je 0x140065c6a
inc ecx
add rax, 0x10
cmp rax, r8
jl 0x140065c58
jmp 0x140065c95
movsxd rdx, ecx
mov rcx, rsi
add rdx, rdx
movsxd rbx, edi
mov rdx, qword [r9 + rdx*8 + 0x124220]
lea r8, [rbx - 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov word [rsi + rbx*2 - 2], bp
movzx ecx, word [rsi]
test cx, cx
jne 0x140065cdb
test r12b, r12b
je 0x140065ca2
mov ecx, ebp
cmp byte [r14 + 0x6c], cl
jne 0x140065cbd
cmp byte [r14 + 0x6c], bpl
mov r8d, edi
movzx ecx, byte [r14 + 0x66]
mov rdx, rsi
sete r9b
call fcn.140023aa0
movzx ecx, word [rsi]
test cx, cx
jne 0x140065cdb
movzx r9d, word [r14 + 0x68]
lea r8, str.sc_03X
mov edx, edi
mov rcx, rsi
call fcn.1400ce4e0
movzx ecx, word [rsi]
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x140065cf6
cmp word [rsi + 2], bp
jne 0x140065cf6
test r12b, r12b
je 0x140065cf6
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 0x140065b58
lea rax, [0x1401092e8]
jmp 0x140065b60
lea rax, str.NewInput
jmp 0x140065b60
lea rax, str.Stopped
jmp 0x140065b60
lea rax, [0x1400ef7d4]
jmp 0x140065b60
Function at 0x1400678b0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
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 rsi, rdx
mov qword [rsp + 0x20], rax
mov r8, r10
mov rdx, r11
mov rbx, rcx
call fcn.140077760
mov rdi, rax
test rax, rax
je 0x1400679ed
mov rdx, rsi
mov rcx, rax
call fcn.1400d57f0
mov rsi, rax
test rax, rax
je 0x1400679ed
mov qword [rsp + 0x40], rbp
xor edx, edx
mov rcx, rdi
xor bpl, bpl
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
test eax, eax
je 0x14006794f
cmp eax, dword [0x14012af90]
je 0x14006794f
mov rcx, rdi
call fcn.1400d5d90
test al, al
jne 0x14006794f
mov ecx, dword [0x14012af90]
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 0x1400679bd
mov rcx, qword [0x140127a38]
lea rdx, [0x1400ef8b4]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400d3520
mov rax, qword [0x140124200]
cmp dword [rax + 0x78], 0xffffffff
jle 0x1400679bd
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x14012af90], eax
je 0x1400679a9
mov rax, qword [0x140124200]
mov ecx, dword [rax + 0x78]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400679bd
mov rcx, qword [0x140124200]
mov edx, 1
mov ecx, dword [rcx + 0x78]
call fcn.1400019e0
test bpl, bpl
mov rbp, qword [rsp + 0x40]
je 0x1400679d8
mov ecx, dword [0x14012af90]
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov dl, 1
mov rcx, rbx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.14005f550

Function at 0x140068450
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 rdi, rdx
mov qword [rsp + 0x20], rax
mov r8, r10
mov rdx, r11
call fcn.140077760
test rax, rax
je 0x140068496
lea rdx, str.msctls_statusbar321
mov rcx, rax
call fcn.1400d57f0
mov rbx, rax
jmp 0x140068498
xor ebx, ebx
mov rcx, rdi
call fcn.14001dda0
mov rcx, qword [0x140129dc0]
lea r9, [0x1400ef7d4]
mov r8d, eax
mov dword [rsp + 0x68], gethostbyname
mov rdx, rbx
mov dword [rsp + 0x60], 0xffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.1400d5390
Function at 0x1400694a0
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 [0x140129dc0]
mov qword [rsp + 0x20], rax
call fcn.140077760
mov rsi, rax
mov ebp, 1
test rax, rax
je 0x1400694e5
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [rax + 1]
jmp 0x1400694e7
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.1400d3520
cmp eax, ebp
je 0x14006950a
xor eax, eax
jmp 0x140069624
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
test rsi, rsi
je 0x1400695b7
mov qword [rsp + 0x40], r14
call fcn.140001740
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 0x140069543
mov rsi, qword [rbx + 0x10]
jmp 0x140069546
mov rsi, rbx
lea rdi, [0x14012d5d0]
cmp byte [rsi + 0x23], bpl
jne 0x140069567
test byte [rsi + 0x21], 8
je 0x140069561
mov rcx, rsi
call fcn.1400015e0
add rsi, 0x10
jmp 0x14006956a
mov rsi, rdi
lea rax, [r14 + r14]
mov r14, qword [rsp + 0x40]
mov qword [rsi], rax
cmp byte [rbx + 0x23], 0
jne 0x140069582
mov rsi, qword [rbx + 0x10]
jmp 0x140069585
mov rsi, rbx
cmp byte [rsi + 0x23], bpl
jne 0x14006959d
test byte [rsi + 0x21], 8
je 0x140069599
mov rcx, rsi
call fcn.1400015e0
lea rdi, [rsi + 0x10]
cmp qword [rdi], 2
jae 0x1400695f4
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call fcn.140001740
xor esi, esi
mov word [rax], si
jmp 0x1400695f4
call fcn.140001740
xor esi, esi
mov word [rax], si
cmp byte [rbx + 0x23], sil
jne 0x1400695cd
mov rdi, qword [rbx + 0x10]
jmp 0x1400695d0
mov rdi, rbx
cmp byte [rdi + 0x23], bpl
jne 0x1400695ea
test byte [rdi + 0x21], 8
je 0x1400695e4
mov rcx, rdi
call fcn.1400015e0
add rdi, 0x10
jmp 0x1400695f1
lea rdi, [0x14012d5d0]
mov qword [rdi], rsi
cmp byte [rbx + 0x23], 0
jne 0x1400695fe
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x23], 2
jne 0x14006961e
cmp qword [0x14012bc60], 0
je 0x14006961e
lea rcx, [0x14012bc48]
call fcn.140007560
mov ebp, eax
jmp 0x140069622
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 0x1400696b0
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
mov eax, 0x11cf0
call fcn.1400ed080
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, [0x1400ef7d4]
mov qword [rsp + 0x18a0], rax
cmp edx, 6
mov rdx, qword [0x140124200]
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.1400d6020
test eax, eax
je 0x140069761
lea rdx, [rsp + 0x30]
lea rcx, [0x1400d5030]
call qword [sym.imp.USER32.dll_EnumWindows]
movsxd rdx, dword [rsp + 0x188c]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rbx
call fcn.140001540
mov eax, 1
add rsp, 0x11cf0
pop rbx
ret

Function at 0x14006a6c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
mov eax, 0x10030
call fcn.1400ed080
sub rsp, rax
mov rbx, qword [0x140129dc0]
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 0x14006a7a2
lea r8d, [rsi - 1]
mov r9b, 1
xor edx, edx
call fcn.1400d3520
test eax, eax
je 0x14006a7bf
mov qword [rsp + 0x10040], rdi
xor r8d, r8d
mov edi, 1
mov rcx, rbx
mov edx, edi
call fcn.140001740
mov rdx, rax
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x14006a760
xor r8d, r8d
mov edx, edi
mov rcx, rbx
call fcn.140001740
xor ecx, ecx
mov word [rax], cx
cmp byte [rbx + 0x23], 0
jne 0x14006a76a
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x23], 2
jne 0x14006a792
cmp qword [0x14012bc60], 0
je 0x14006a792
lea rcx, [0x14012bc48]
call fcn.140007560
mov edi, eax
mov rdi, qword [rsp + 0x10040]
jmp 0x14006a7bf
and byte [rbx + 0x21], 0x86
mov eax, edi
mov rdi, qword [rsp + 0x10040]
jmp 0x14006a7bf
test esi, esi
lea rax, [0x1400ef7d4]
lea rdx, [rsp + 0x30]
mov r8, rsi
cmove rdx, rax
xor r9d, r9d
call fcn.1400d3520
lea r11, [rsp + 0x10030]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rsi
ret
Function at 0x14006d740
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x10], edx
push rdi
push r14
push r15
sub rsp, 0x250
mov rbp, r9
mov qword [rsp + 0x20], r8
mov r9, qword [0x14012bb90]
mov r15, r8
lea r8, str.__s_s
mov edx, 0x800
mov r14, rcx
call fcn.1400ce4e0
movsxd rbx, eax
lea edi, [rbx + 1]
cmp edi, 0x800
jg 0x14006d7cf
lea rcx, [r14 + 2]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006d7cf
movsxd rax, edi
mov ecx, SafeArrayAllocDescriptor
mov word [r14 + rbx*2], cx
xor edi, edi
mov rcx, qword [rsp + 0x290]
mov word [r14 + rax*2], di
mov rax, qword [0x14012bb90]
mov qword [rcx], rax
mov al, 1
jmp 0x14006d96a
xor edi, edi
mov esi, edi
mov r9d, esi
lea rax, [rsp + 0x30]
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 0x14006d94f
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x278]
mov qword [rsp + 0x28], rax
lea rdx, str.InstallDir
lea rax, [rsp + 0x40]
mov dword [rsp + 0x278], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14006d94f
mov eax, dword [rsp + 0x278]
test eax, eax
je 0x14006d94f
shr eax, 1
mov r8d, eax
dec eax
mov edx, eax
mov dword [rsp + 0x278], eax
cmp word [rsp + rax*2 + 0x40], di
jne 0x14006d898
test eax, eax
je 0x14006d956
dec edx
cmp word [rsp + rdx*2 + 0x40], di
jne 0x14006d8b6
mov dword [rsp + 0x278], edx
mov eax, edx
test edx, edx
jne 0x14006d880
jmp 0x14006d8b6
mov dword [rsp + 0x278], r8d
cmp r8d, 0x104
jae 0x14006d94f
mov word [rsp + r8*2 + 0x40], di
mov eax, r8d
test eax, eax
je 0x14006d956
test rbp, rbp
je 0x14006d8f1
lea rcx, [rsp + 0x40]
mov r9, rbp
sub r9, rcx
lea rdx, [rsp + 0x40]
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [rdx]
mov word [r9 + rdx], cx
lea rdx, [rdx + 2]
test cx, cx
jne 0x14006d8e0
test eax, eax
je 0x14006d968
mov r9, rbp
mov qword [rsp + 0x20], r15
lea r8, str.__s_s
mov edx, 0x800
mov rcx, r14
call fcn.1400ce4e0
movsxd rbx, eax
lea esi, [rbx + 1]
cmp esi, 0x800
jg 0x14006d968
lea rcx, [r14 + 2]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006d968
movsxd rax, esi
mov ecx, SafeArrayAllocDescriptor
mov word [r14 + rbx*2], cx
mov word [r14 + rax*2], di
mov rax, qword [rsp + 0x290]
mov qword [rax], rbp
mov al, 1
jmp 0x14006d96a
mov word [rsp + 0x40], di
mov eax, edi
test esi, esi
jne 0x14006d8be
mov esi, 0x200
jmp 0x14006d7d3
xor al, al
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14006d990
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x2260
call fcn.1400ed080
sub rsp, rax
lea rax, [rsp + 0x2290]
mov r8, rcx
lea rcx, [rsp + 0x1260]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
movzx esi, dl
lea rbx, [rsp + 0x1260]
lea rdi, [0x1400ef7d4]
call fcn.14006d740
test al, al
jne 0x14006d9e4
add rsp, 0x2260
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x2298], r15
xor r15d, r15d
test sil, sil
je 0x14006daa6
mov rsi, qword [rsp + 0x2290]
lea rax, str.AutoHotkey.exe
mov r9, rsi
mov qword [rsp + 0x2280], rbp
lea r8, str.__s_s
mov qword [rsp + 0x2288], r14
mov edx, 0x800
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x260]
call fcn.1400ce4e0
movsxd rbp, eax
lea r14d, [rbp + 1]
cmp r14d, 0x800
jg 0x14006da7e
lea rcx, [rsp + 0x262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006da7e
movsxd rax, r14d
lea rbx, [rsp + 0x260]
mov ecx, SafeArrayAllocDescriptor
mov word [rsp + rbp*2 + 0x260], cx
mov word [rsp + rax*2 + 0x260], r15w
jmp 0x14006da8e
cmp rsi, qword [0x14012bb90]
jne 0x14006da96
mov rbx, qword [0x14012bb88]
lea rdi, [rsp + 0x1260]
mov rbp, qword [rsp + 0x2280]
mov r14, qword [rsp + 0x2288]
mov qword [rsp + 0x48], r15
lea rcx, [0x14012afc0]
mov byte [rsp + 0x40], r15b
xor r9d, r9d
mov byte [rsp + 0x38], r15b
mov r8, rdi
mov qword [rsp + 0x30], r15
mov rdx, rbx
mov qword [rsp + 0x28], r15
mov byte [rsp + 0x20], r15b
call fcn.1400611f0
mov r15, qword [rsp + 0x2298]
test eax, eax
setne al
add rsp, 0x2260
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400727b0
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 [0x140129dc0]
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.140023fb0
movzx r14d, al
test al, al
jne 0x14007284f
xor r8d, r8d
lea rdx, [rsp + 0x270]
mov rcx, rbx
call fcn.1400925e0
xor r9d, r9d
test eax, eax
jne 0x14007281a
lea rdx, [0x1400ef7d4]
jmp 0x1400728bd
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.1400929d0
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.1400d2bb0
jmp 0x1400728d1
mov qword [rsp + 0x278], rsi
mov ebx, 2
movzx esi, word [rdi]
xor edi, edi
test esi, 0xffffff80
je 0x14007286d
mov eax, edi
jmp 0x140072877
mov edx, ebx
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov ecx, esi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, esi
mov rsi, qword [rsp + 0x278]
cmp ecx, 0x50
je 0x140072896
cmp ecx, 0x54
cmovne ebx, edi
jmp 0x14007289b
mov ebx, 1
mov edx, ebx
movzx ecx, r14b
call fcn.140092920
test al, al
lea rcx, [0x14010fc18]
lea rdx, [0x14010fc1c]
cmovne rdx, rcx
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
mov rcx, rbp
call fcn.1400d3520
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rdi
pop rbp
ret

Function at 0x1400728f0
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 [0x140129dc0]
lea r8, [r9 - 1]
call fcn.1400d3520
test rbx, rbx
je 0x140072a03
cmp word [rbx], 0
je 0x140072a03
mov r8d, 0x103
lea rcx, [rsp + 0x40]
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
xor edx, edx
lea rcx, [rsp + 0x40]
mov word [rsp + 0x246], dx
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], dx
jne 0x140072963
lea rcx, [rax + rax]
cmp word [rsp + rcx + 0x3e], 0x5c
je 0x14007298f
inc rax
cmp rax, 0x104
jae 0x140072a03
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 0x140072a03
mov rbx, qword [rsp + 0x268]
lea rdx, [0x1400ef8b4]
mov rcx, qword [0x140127a38]
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.1400d3520
mov rcx, qword [0x140129dc0]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rdx, rbx
call fcn.140001540
mov eax, 1
jmp 0x140072a0d
mov dl, 1
mov rcx, rdi
call fcn.14005f550
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140074980
Capabilities:
Set current directory

Disassembly:
push rbx
sub rsp, 0x30
movzx eax, word [rcx]
mov rbx, rcx
test ax, ax
je 0x1400749b8
cmp word [rcx + 2], 0x3a
jne 0x1400749b8
cmp word [rcx + 4], 0
jne 0x1400749b8
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 0x140074a00
cmp byte [0x14012bba0], al
je 0x140074a30
mov rax, qword [0x140124200]
lea rdx, [0x14010620c]
test byte [rax + 0x140], 1
je 0x140074a18
mov rcx, qword [0x14012b690]
lea r9, [0x1400ef7d4]
xor r8d, r8d
call fcn.14005f480
add rsp, 0x30
pop rbx
ret
cmp byte [0x14012bba0], 0
je 0x140074a30
mov rcx, rbx
call fcn.140074a40
lea rdx, [0x1400ef8b4]
mov rcx, qword [0x140127a38]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400d3520
add rsp, 0x30
pop rbx
ret

Function at 0x140074a40
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10020
call fcn.1400ed080
sub rsp, rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140074a6d
lea rbx, [rsp + 0x20]
jmp 0x140074a72
test rbx, rbx
je 0x140074a81
mov rdx, rbx
lea rcx, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
call fcn.140092ff0
add rsp, 0x10020
pop rbx
ret

Function at 0x140074a90
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10028
call fcn.1400ed080
sub rsp, rax
lea rdx, [rsp + 0x20]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140074ac4
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
add rsp, 0x10028
ret
xor eax, eax
add rsp, 0x10028
ret
Function at 0x140075370
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x20], rdi
mov rdi, rcx
mov qword [rbp + 0x28], r14
mov r14, rdx
test rcx, rcx
je 0x14007547d
cmp word [rcx], 0
je 0x14007547d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
je 0x1400753ca
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
shr ebx, 4
and bl, 1
movzx eax, bl
jmp 0x14007548a
mov ebx, 0x5c
mov rcx, rdi
mov edx, ebx
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov rsi, rax
cmp rax, rdi
jbe 0x14007546b
cmp word [rax - 2], 0x3a
je 0x14007546b
test r14, r14
je 0x140075407
xor eax, eax
mov rdx, rdi
mov rcx, rdi
mov word [rsi], ax
call fcn.140075370
mov word [rsi], bx
jmp 0x140075460
mov r14, rsi
sub r14, rdi
sar r14, 1
lea rax, [r14*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14007542b
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400ed080
sub rsp, rcx
mov r8, r14
mov rdx, rdi
lea rbx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
xor eax, eax
mov rdx, rbx
mov rcx, rbx
mov word [rbx + r14*2], ax
call fcn.140075370
cmp word [rsi + 2], 0
je 0x14007548a
test al, al
je 0x14007548a
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
jmp 0x14007548a
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov rbx, qword [rbp + 0x10]
mov rsi, qword [rbp + 0x18]
mov rdi, qword [rbp + 0x20]
mov r14, qword [rbp + 0x28]
mov rsp, rbp
pop rbp
ret