joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b420
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x160
mov rax, qword [0x140035cc8]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov dword [rsp + 0x30], 0
lea rdi, [rsp + 0x34]
xor eax, eax
mov ecx, 0x110
rep stosb byte [rdi], al
mov dword [rsp + 0x30], VarUI4FromDisp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x150], eax
cmp dword [rsp + 0x150], 0
je 0x14000b497
cmp dword [rsp + 0x34], 5
jae 0x14000b48a
cmp dword [rsp + 0x34], 4
jne 0x14000b497
cmp dword [rsp + 0x38], 0x5a
jb 0x14000b497
mov dword [rsp + 0x154], 0
jmp 0x14000b4a2
mov dword [rsp + 0x154], 1
mov al, byte [rsp + 0x154]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.14001d350
add rsp, 0x160
pop rdi
ret

Function at 0x14000d020
Capabilities:
Copy file
Get common file path

Disassembly:
push rdi
sub rsp, 0x470
mov rax, qword [0x140035cc8]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor eax, eax
mov word [rsp + 0x250], ax
lea rdi, [rsp + 0x252]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x250]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x14000d07a
mov eax, 0x80004005
jmp 0x14000d145
lea rcx, [rsp + 0x250]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rdx, [0x14002c180]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [rsp + 0x244], 0
mov dword [rsp + 0x240], 0
lea r8, [rsp + 0x240]
lea rdx, [rsp + 0x244]
lea rcx, [rsp + 0x250]
call qword [sym.imp.imagehlp.dll_MapFileAndCheckSumW]
test eax, eax
je 0x14000d0d7
mov eax, 0x80004005
jmp 0x14000d145
mov eax, dword [rsp + 0x240]
cmp dword [rsp + 0x244], eax
je 0x14000d0ee
mov eax, 0x80004005
jmp 0x14000d145
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, str.drivers
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, str.KuaiZipDrive.sys
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14000d143
mov eax, 0x80004005
jmp 0x14000d145
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14001d350
add rsp, 0x470
pop rdi
ret
Function at 0x14000d210
Capabilities:
Read file via mapping

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x98
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 1
je 0x14000d382
cmp dword [rsp + 0x78], 3
je 0x14000d284
cmp dword [rsp + 0x78], 3
jle 0x14000d4a4
cmp dword [rsp + 0x78], 5
jle 0x14000d25a
cmp dword [rsp + 0x78], 6
je 0x14000d49f
jmp 0x14000d4a4
cmp dword [rsp + 0xa0], 4
jne 0x14000d26e
mov dword [rsp + 0x7c], 1
jmp 0x14000d276
mov dword [rsp + 0x7c], 0
mov ecx, dword [rsp + 0x7c]
call fcn.14000d170
jmp 0x14000d4a4
lea r8, [0x14002c1e0]
xor edx, edx
mov ecx, 6
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000d2ac
xor eax, eax
jmp 0x14000d4a6
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 6
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14000d2ea
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000d4a6
lea rcx, [rsp + 0x30]
call fcn.14001bd80
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
jmp 0x14000d30e
mov rax, qword [rsp + 0x48]
add rax, 0x14
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax]
test eax, eax
je 0x14000d347
mov rax, qword [rsp + 0x48]
cmp dword [rax + 0x10], 0
je 0x14000d336
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x30]
call fcn.14001c590
jmp 0x14000d345
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x30]
call fcn.14001c740
jmp 0x14000d300
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1000
mov ecx, 0x8000000
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x30]
call fcn.14001bdb0
jmp 0x14000d4a4
call fcn.140019630
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400010d0
lea rcx, [rsp + 0x60]
call fcn.14000a440
test eax, eax
je 0x14000d3bd
mov dword [rsp + 0x68], 0
lea rcx, [rsp + 0x60]
call fcn.14000a420
mov eax, dword [rsp + 0x68]
jmp 0x14000d4a6
lea rcx, [rsp + 0x60]
call fcn.14000afd0
lea rdx, [0x14002c230]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14000d3ff
mov dword [rsp + 0x6c], 0
lea rcx, [rsp + 0x60]
call fcn.14000a420
mov eax, dword [rsp + 0x6c]
jmp 0x14000d4a6
lea rcx, [rsp + 0x58]
call fcn.14000e750
lea rcx, [rsp + 0x58]
call fcn.1400046c0
mov r8, rax
lea rdx, [0x14002b8e0]
lea rcx, [0x14002b8d0]
call qword [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.14000afd0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x80]
call qword [rax + 0x20]
test eax, eax
je 0x14000d47b
call fcn.14000d020
mov dword [rsp + 0x70], 0
lea rcx, [rsp + 0x58]
call fcn.14000e570
lea rcx, [rsp + 0x60]
call fcn.14000a420
mov eax, dword [rsp + 0x70]
jmp 0x14000d4a6
mov dword [rsp + 0x74], 1
lea rcx, [rsp + 0x58]
call fcn.14000e570
lea rcx, [rsp + 0x60]
call fcn.14000a420
mov eax, dword [rsp + 0x74]
jmp 0x14000d4a6
call fcn.1400194e0
xor eax, eax
add rsp, 0x98
ret
Function at 0x140010050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x4d0
mov rax, qword [0x140035cc8]
xor rax, rsp
mov qword [rsp + 0x4c8], rax
call fcn.14000f8a0
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0x78]
call fcn.140013970
mov rdx, qword [rsp + 0x4e0]
lea rcx, [rsp + 0x50]
call fcn.140010410
lea rcx, [rsp + 0x90]
call fcn.140013970
mov edx, 0x400
mov rcx, qword [rsp + 0x4e8]
call fcn.14000f910
mov qword [rsp + 0x38], rax
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400100f8
call fcn.14000f930
mov dword [rsp + 0x4b0], eax
jmp 0x1400102a1
mov r8, qword [rsp + 0x4f8]
mov rdx, qword [rsp + 0x4f0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x4a8], rax
cmp qword [rsp + 0x4a8], 0
jne 0x140010137
call fcn.14000f930
mov dword [rsp + 0x4b0], eax
jmp 0x1400102a1
mov rdx, qword [rsp + 0x4a8]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x4b8], rax
cmp qword [rsp + 0x4b8], 0
jne 0x14001016e
call fcn.14000f930
mov dword [rsp + 0x4b0], eax
jmp 0x1400102a1
mov rdx, qword [rsp + 0x4a8]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x4b8]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x60]
add eax, 1
cmp eax, dword [rsp + 0x60]
jae 0x1400101cd
mov dword [rsp + 0x4c0], 0x8007000e
lea rcx, [rsp + 0x90]
call fcn.1400168a0
lea rcx, [rsp + 0x78]
call fcn.1400135a0
mov eax, dword [rsp + 0x4c0]
jmp 0x1400102e0
mov eax, dword [rsp + 0x60]
add eax, 1
mov edx, eax
lea rcx, [rsp + 0x90]
call fcn.140013910
lea rcx, [rsp + 0x90]
call fcn.14000afd0
test rax, rax
jne 0x140010205
mov dword [rsp + 0x4b0], 0x8007000e
jmp 0x1400102a1
lea rcx, [rsp + 0x90]
call fcn.14000afd0
mov rbx, rax
call fcn.14000f8a0
mov ecx, eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, dword [rsp + 0x60]
mov r8, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x4a0], eax
cmp dword [rsp + 0x4a0], 0
jne 0x14001025a
call fcn.14000f930
mov dword [rsp + 0x4b0], eax
jmp 0x1400102a1
lea rcx, [rsp + 0x90]
call fcn.14000afd0
mov r11, rax
mov ecx, dword [rsp + 0x4a0]
xor eax, eax
mov word [r11 + rcx*2], ax
lea rcx, [rsp + 0x90]
call fcn.14000afd0
mov r8d, dword [rsp + 0x500]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140010440
mov dword [rsp + 0x4b0], eax
cmp qword [rsp + 0x48], 0
je 0x1400102b4
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x4b0]
mov dword [rsp + 0x4c4], eax
lea rcx, [rsp + 0x90]
call fcn.1400168a0
lea rcx, [rsp + 0x78]
call fcn.1400135a0
mov eax, dword [rsp + 0x4c4]
mov rcx, qword [rsp + 0x4c8]
xor rcx, rsp
call fcn.14001d350
add rsp, 0x4d0
pop rbx
ret
Function at 0x140012040
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor eax, eax
test eax, eax
jne 0x14001204e
xor eax, eax
test eax, eax
jne 0x14001204e
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add rsp, 0x28
ret

Function at 0x140012080
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor eax, eax
test eax, eax
jne 0x14001208e
xor eax, eax
test eax, eax
jne 0x14001208e
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
add rsp, 0x28
ret

Function at 0x140012250
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [0x140035cc8]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rcx, [rsp + 0x50]
call fcn.140011f80
mov r11, qword [rsp + 0x2a0]
mov r9d, dword [r11 + 8]
or r9d, 0x2001f
mov r8, qword [rsp + 0x2a8]
mov rdx, qword [rsp + 0x2a0]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x50]
call fcn.1400121d0
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x1400122d9
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x270], eax
lea rcx, [rsp + 0x50]
call fcn.140011fb0
mov eax, dword [rsp + 0x270]
jmp 0x14001239d
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140012366
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140012250
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x140012359
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x274], eax
lea rcx, [rsp + 0x50]
call fcn.140011fb0
mov eax, dword [rsp + 0x274]
jmp 0x14001239d
mov dword [rsp + 0x40], 0x100
jmp 0x1400122e1
lea rcx, [rsp + 0x50]
call fcn.1400120c0
mov rdx, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x2a0]
call fcn.140012040
mov dword [rsp + 0x278], eax
lea rcx, [rsp + 0x50]
call fcn.140011fb0
mov eax, dword [rsp + 0x278]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14001d350
add rsp, 0x298
ret
Function at 0x140012950
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
jne 0x140012963
xor eax, eax
test eax, eax
jne 0x140012963
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x1400129b0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x1400129c8
xor eax, eax
test eax, eax
jne 0x1400129c8
cmp qword [rsp + 0x60], 0
je 0x1400129e6
mov dword [rsp + 0x34], 1
jmp 0x1400129ee
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140012a04
mov eax, 0xd
jmp 0x140012a46
xor eax, eax
test eax, eax
jne 0x1400129d4
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cdqe
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x48
ret

Function at 0x140012a50
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
xor eax, eax
test eax, eax
jne 0x140012a63
xor eax, eax
test eax, eax
jne 0x140012a63
cmp qword [rsp + 0x70], 0
je 0x140012a81
mov dword [rsp + 0x48], 1
jmp 0x140012a89
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x140012aa2
mov eax, 0xd
jmp 0x140012b23
xor eax, eax
test eax, eax
jne 0x140012a6f
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [rsp + 0x40], eax
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x38]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x38], rax
mov ecx, dword [rsp + 0x40]
mov eax, dword [rsp + 0x30]
lea rax, [rax + rcx*2]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x40], 1
jne 0x140012aba
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x58
ret
Function at 0x1400155b0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x290
mov rax, qword [0x140035cc8]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor eax, eax
mov word [rsp + 0x30], ax
lea rdi, [rsp + 0x32]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r9d, 0x104
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.SHELL32.dll_DragQueryFileW]
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.SHELL32.dll_DragFinish]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140015762
mov rcx, qword [rsp + 0x2a0]
add rcx, 8
lea r8, [rsp + 0x30]
mov edx, 0x3ed
call fcn.1400163c0
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1400156dd
mov rcx, qword [rsp + 0x2a0]
add rcx, 8
mov r8d, 0x3f7
lea rdx, [rsp + 0x248]
call fcn.140002e80
mov rcx, rax
call fcn.14000afd0
mov rdx, rax
lea rcx, [rsp + 0x240]
call fcn.140018470
xor edx, edx
mov rcx, rax
call fcn.140016280
mov rcx, qword [rsp + 0x2a0]
add rcx, 8
mov r8d, 0x3f8
lea rdx, [rsp + 0x258]
call fcn.140002e80
mov rcx, rax
call fcn.14000afd0
mov rdx, rax
lea rcx, [rsp + 0x250]
call fcn.140018470
mov edx, 1
mov rcx, rax
call fcn.140016280
jmp 0x140015762
mov rcx, qword [rsp + 0x2a0]
add rcx, 8
mov r8d, 0x3f7
lea rdx, [rsp + 0x268]
call fcn.140002e80
mov rcx, rax
call fcn.14000afd0
mov rdx, rax
lea rcx, [rsp + 0x260]
call fcn.140018470
mov edx, 1
mov rcx, rax
call fcn.140016280
mov rcx, qword [rsp + 0x2a0]
add rcx, 8
mov r8d, 0x3f8
lea rdx, [rsp + 0x278]
call fcn.140002e80
mov rcx, rax
call fcn.14000afd0
mov rdx, rax
lea rcx, [rsp + 0x270]
call fcn.140018470
xor edx, edx
mov rcx, rax
call fcn.140016280
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14001d350
add rsp, 0x290
pop rdi
ret
Function at 0x1400163f0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x100
mov rax, qword [0x140035cc8]
xor rax, rsp
mov qword [rsp + 0xf8], rax
call fcn.14000f8a0
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x40]
call fcn.140013970
mov rcx, qword [rsp + 0x118]
mov rcx, qword [rcx]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov r11, qword [rsp + 0x118]
mov qword [r11], 0
mov rcx, qword [rsp + 0x110]
mov rcx, qword [rcx]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x50]
call fcn.140013970
cmp dword [rsp + 0x30], 0
jle 0x140016516
mov eax, dword [rsp + 0x30]
add eax, 1
movsxd rdx, eax
lea rcx, [rsp + 0x50]
call fcn.1400168d0
lea rcx, [rsp + 0x50]
call fcn.14000afd0
test rax, rax
jne 0x1400164bf
mov dword [rsp + 0xe0], 0
lea rcx, [rsp + 0x50]
call fcn.1400168a0
lea rcx, [rsp + 0x40]
call fcn.1400135a0
mov eax, dword [rsp + 0xe0]
jmp 0x1400165b0
mov ebx, dword [rsp + 0x30]
add ebx, 1
lea rcx, [rsp + 0x50]
call fcn.14000afd0
mov r8d, ebx
mov rdx, rax
mov rcx, qword [rsp + 0x110]
mov rcx, qword [rcx]
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x140016516
mov dword [rsp + 0xe4], 0
lea rcx, [rsp + 0x50]
call fcn.1400168a0
lea rcx, [rsp + 0x40]
call fcn.1400135a0
mov eax, dword [rsp + 0xe4]
jmp 0x1400165b0
lea rcx, [rsp + 0x50]
call fcn.14000afd0
mov rcx, rax
call fcn.1400046c0
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r11, rax
mov rax, qword [rsp + 0x118]
mov qword [rax], r11
cmp dword [rsp + 0x30], 0
jne 0x140016553
mov dword [rsp + 0xec], 1
jmp 0x140016587
mov rax, qword [rsp + 0x118]
cmp qword [rax], 0
je 0x14001656e
mov dword [rsp + 0xf0], 1
jmp 0x140016579
mov dword [rsp + 0xf0], 0
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0xec], eax
mov eax, dword [rsp + 0xec]
mov dword [rsp + 0xe8], eax
lea rcx, [rsp + 0x50]
call fcn.1400168a0
lea rcx, [rsp + 0x40]
call fcn.1400135a0
mov eax, dword [rsp + 0xe8]
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.14001d350
add rsp, 0x100
pop rbx
ret
Function at 0x1400169c0
Capabilities:
Query environment variable
Read .ini file

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rdi
sub rsp, 0x698
mov rax, qword [0x140035cc8]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov rcx, qword [rsp + 0x6b0]
add rcx, 8
xor edx, edx
call fcn.1400010f0
mov ecx, 0xc
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
mov ecx, 0xb
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
lea rcx, [0x1400374e0]
call fcn.140002da0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], ebx
mov r9d, edi
mov r8d, 1
mov edx, 0x80
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadImageW]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x6b0]
add rcx, 8
mov r8d, 1
mov rdx, qword [rsp + 0x30]
call fcn.140002f00
mov ecx, 0x32
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
mov ecx, 0x31
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
lea rcx, [0x1400374e0]
call fcn.140002da0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], ebx
mov r9d, edi
mov r8d, 1
mov edx, 0x80
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadImageW]
mov qword [rsp + 0x250], rax
mov rcx, qword [rsp + 0x6b0]
add rcx, 8
xor r8d, r8d
mov rdx, qword [rsp + 0x250]
call fcn.140002f00
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 0x2001
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
mov rcx, qword [rsp + 0x6b0]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
xor edx, edx
mov word [rsp + 0x470], dx
lea rdi, [rsp + 0x472]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x470]
lea rcx, [0x14002cc48]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rsp + 0x6b0]
add rcx, 8
lea r8, [rsp + 0x470]
mov edx, 0x3f3
call fcn.1400163c0
xor edx, edx
mov word [rsp + 0x40], dx
lea rdi, [rsp + 0x42]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x40]
lea rcx, [0x14002cc70]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor edx, edx
mov word [rsp + 0x260], dx
lea rdi, [rsp + 0x262]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea r8, [rsp + 0x40]
mov edx, 0x104
lea rcx, [rsp + 0x260]
call fcn.14001d2b4
lea rdx, [0x14002cc98]
lea rcx, [rsp + 0x260]
call fcn.140002ac0
lea r9, [rsp + 0x260]
xor r8d, r8d
lea rdx, [0x14002ccb8]
lea rcx, [0x14002ccd0]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rcx, qword [rsp + 0x6b0]
add rcx, 8
mov r8d, eax
mov edx, 0x3fb
call fcn.140002e20
lea r9, [rsp + 0x260]
xor r8d, r8d
lea rdx, [0x14002cce0]
lea rcx, [0x14002cd08]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rcx, qword [rsp + 0x6b0]
add rcx, 8
mov r8d, eax
mov edx, 0x414
call fcn.140002e20
movabs rax, 1
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.14001d350
add rsp, 0x698
pop rdi
pop rbx
ret
Function at 0x140016c70
Capabilities:
Create directory
Query environment variable
Set environment variable

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x670
mov rax, qword [0x140035cc8]
xor rax, rsp
mov qword [rsp + 0x668], rax
xor eax, eax
mov word [rsp + 0x450], ax
lea rdi, [rsp + 0x452]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x680]
add rcx, 8
mov r9d, 0x104
lea r8, [rsp + 0x450]
mov edx, 0x3f3
call fcn.1400177b0
lea rdx, [rsp + 0x450]
lea rcx, str.KZMOUNT_INDEXPATH
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor edx, edx
mov word [rsp + 0x30], dx
lea rdi, [rsp + 0x32]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, [0x14002cd40]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edx, edx
mov word [rsp + 0x240], dx
lea rdi, [rsp + 0x242]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea r8, [rsp + 0x30]
mov edx, 0x104
lea rcx, [rsp + 0x240]
call fcn.14001d2b4
lea rdx, str.KZMount.ini
lea rcx, [rsp + 0x240]
call fcn.140002ac0
lea r9, [rsp + 0x240]
lea r8, [rsp + 0x450]
lea rdx, str.IndexPath
lea rcx, [0x14002cda0]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rcx, [rsp + 0x660]
call fcn.140002ff0
mov rcx, qword [rsp + 0x680]
add rcx, 8
mov edx, 0x3fb
call fcn.140002e50
mov r8d, eax
lea rdx, [0x14002cdb0]
lea rcx, [rsp + 0x660]
call fcn.140003010
lea rcx, [rsp + 0x660]
call fcn.14000afd0
lea r9, [rsp + 0x240]
mov r8, rax
lea rdx, str.AutoOpen
lea rcx, [0x14002cdd0]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rcx, qword [rsp + 0x680]
add rcx, 8
mov edx, 0x414
call fcn.140002e50
mov r8d, eax
lea rdx, [0x14002cde0]
lea rcx, [rsp + 0x660]
call fcn.140003010
lea rcx, [rsp + 0x660]
call fcn.14000afd0
lea r9, [rsp + 0x240]
mov r8, rax
lea rdx, [0x14002cde8]
lea rcx, str.KZMount
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [rsp + 0x690]
mov rcx, qword [rsp + 0x680]
call fcn.140002380
lea rcx, [rsp + 0x660]
call fcn.1400040f0
mov rcx, qword [rsp + 0x668]
xor rcx, rsp
call fcn.14001d350
add rsp, 0x670
pop rdi
ret

Function at 0x140017040
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x20], r9
mov word [rsp + 0x18], r8w
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x250
mov rax, qword [0x140035cc8]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor eax, eax
mov word [rsp + 0x30], ax
lea rdi, [rsp + 0x32]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, str._APPDATA_KZMount
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, qword [rsp + 0x260]
add rcx, 8
lea r8, [rsp + 0x30]
mov edx, 0x3f3
call fcn.1400163c0
mov rcx, qword [rsp + 0x260]
add rcx, 8
xor r8d, r8d
mov edx, 0x3fb
call fcn.140002e20
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14001d350
add rsp, 0x250
pop rdi
ret