joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f570
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rdi
sub rsp, 0x80
mov rax, qword [0x140042dd0]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor eax, eax
mov word [rsp + 0x30], ax
lea rdi, [rsp + 0x32]
xor eax, eax
mov ecx, 0x3e
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov dword [rsp + 0x24], eax
mov r9d, 0x20
lea r8, [rsp + 0x30]
mov edx, 0x1004
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14000f5d7
call qword [sym.imp.KERNEL32.dll_GetACP]
jmp 0x14000f5e1
lea rcx, [rsp + 0x30]
call fcn.1400233ac
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400226f0
add rsp, 0x80
pop rdi
ret

Function at 0x14000f650
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x280
mov qword [rsp + 0x270], 0xfffffffffffffffe
mov rax, qword [0x140042dd0]
xor rax, rsp
mov qword [rsp + 0x278], rax
mov r8d, 0x104
mov rdx, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x298]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, qword [rsp + 0x290]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov qword [rsp + 0x260], rax
xor ecx, ecx
mov rax, qword [rsp + 0x260]
mov word [rax], cx
lea rdx, str.Lang
mov rcx, qword [rsp + 0x290]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor r11d, r11d
mov rax, qword [rsp + 0x290]
mov word [rax + 0x410], r11w
xor ecx, ecx
mov rax, qword [rsp + 0x290]
mov word [rax + 0x208], cx
lea rax, [0x140035fa8]
mov qword [rsp + 0x20], rax
lea r9, [0x140035f98]
lea r8, [0x140035f98]
lea rdx, [0x140035f70]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r11, [rsp + 0x258]
mov qword [rsp + 0x20], r11
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x14000f759
jmp 0x14000f7d1
mov rdx, qword [rsp + 0x258]
lea rcx, [rsp + 0x250]
call fcn.14001ec20
nop
mov dword [rsp + 0x268], 0x208
mov rbx, qword [rsp + 0x290]
add rbx, 0x208
lea rcx, [rsp + 0x250]
call fcn.14000a6a0
mov rcx, rax
lea rax, [rsp + 0x268]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.LangModule
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x250]
call fcn.14000fd30
mov rax, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1400226f0
add rsp, 0x280
pop rbx
ret
Function at 0x14000f9d0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x4a0
mov rax, qword [0x140042dd0]
xor rax, rsp
mov qword [rsp + 0x498], rax
mov rdx, qword [rsp + 0x4b0]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str..dll
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [rsp + 0x240], 0
lea rdi, [rsp + 0x244]
xor eax, eax
mov ecx, 0x24c
rep stosb byte [rdi], al
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x14000fa61
xor eax, eax
jmp 0x14000fb46
mov dword [rsp + 0x490], 0
lea rdx, [0x140036000]
lea rcx, [rsp + 0x26c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000fa9e
lea rdx, [0x140035ff8]
lea rcx, [rsp + 0x26c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14000faa0
jmp 0x14000fb19
mov eax, dword [rsp + 0x240]
and eax, 0x10
test eax, eax
je 0x14000fab0
jmp 0x14000fb19
mov rcx, qword [rsp + 0x4b0]
add rcx, 0x410
mov rdx, qword [rsp + 0x4b0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [rsp + 0x4b0]
add rcx, 0x410
lea rdx, [rsp + 0x26c]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rdx, qword [rsp + 0x4b0]
add rdx, 0x410
mov rcx, qword [rsp + 0x4c0]
call qword [rsp + 0x4b8]
test eax, eax
je 0x14000fb19
mov dword [rsp + 0x490], 1
jmp 0x14000fb34
lea rdx, [rsp + 0x240]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000fa6c
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x490]
mov rcx, qword [rsp + 0x498]
xor rcx, rsp
call fcn.1400226f0
add rsp, 0x4a0
pop rdi
ret
Function at 0x1400142e0
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, 0x4e0
mov qword [rsp + 0x4c8], 0xfffffffffffffffe
mov rax, qword [0x140042dd0]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
call fcn.140013ae0
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0x78]
call fcn.14001ad70
nop
mov rdx, qword [rsp + 0x4f0]
lea rcx, [rsp + 0x50]
call fcn.1400146c0
lea rcx, [rsp + 0x90]
call fcn.14001ad70
nop
mov edx, 0x400
mov rcx, qword [rsp + 0x4f8]
call fcn.140013b50
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 0x140014396
call fcn.140013b70
mov dword [rsp + 0x4b0], eax
jmp 0x140014541
mov r8, qword [rsp + 0x508]
mov rdx, qword [rsp + 0x500]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x4a8], rax
cmp qword [rsp + 0x4a8], 0
jne 0x1400143d5
call fcn.140013b70
mov dword [rsp + 0x4b0], eax
jmp 0x140014541
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 0x14001440c
call fcn.140013b70
mov dword [rsp + 0x4b0], eax
jmp 0x140014541
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 0x14001446c
mov dword [rsp + 0x4c0], 0x8007000e
lea rcx, [rsp + 0x90]
call fcn.140017d60
nop
lea rcx, [rsp + 0x78]
call fcn.1400178b0
mov eax, dword [rsp + 0x4c0]
jmp 0x140014581
mov eax, dword [rsp + 0x60]
add eax, 1
mov edx, eax
lea rcx, [rsp + 0x90]
call fcn.140017d00
nop
lea rcx, [rsp + 0x90]
call fcn.14000a6a0
test rax, rax
jne 0x1400144a5
mov dword [rsp + 0x4b0], 0x8007000e
jmp 0x140014541
lea rcx, [rsp + 0x90]
call fcn.14000a6a0
mov rbx, rax
call fcn.140013ae0
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 0x1400144fa
call fcn.140013b70
mov dword [rsp + 0x4b0], eax
jmp 0x140014541
mov ebx, dword [rsp + 0x4a0]
lea rcx, [rsp + 0x90]
call fcn.14000a6a0
mov r11, rax
xor eax, eax
mov word [r11 + rbx*2], ax
lea rcx, [rsp + 0x90]
call fcn.14000a6a0
mov r8d, dword [rsp + 0x510]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400146f0
mov dword [rsp + 0x4b0], eax
cmp qword [rsp + 0x48], 0
je 0x140014554
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.140017d60
nop
lea rcx, [rsp + 0x78]
call fcn.1400178b0
mov eax, dword [rsp + 0x4c4]
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.1400226f0
add rsp, 0x4e0
pop rbx
ret
Function at 0x140016310
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 0x14001631e
xor eax, eax
test eax, eax
jne 0x14001631e
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 0x140016350
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 0x14001635e
xor eax, eax
test eax, eax
jne 0x14001635e
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 0x140016520
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [0x140042dd0]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rcx, [rsp + 0x50]
call fcn.140016250
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.1400164a0
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x1400165a9
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x270], eax
lea rcx, [rsp + 0x50]
call fcn.140016280
mov eax, dword [rsp + 0x270]
jmp 0x14001666d
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 0x140016636
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140016520
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x140016629
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x274], eax
lea rcx, [rsp + 0x50]
call fcn.140016280
mov eax, dword [rsp + 0x274]
jmp 0x14001666d
mov dword [rsp + 0x40], 0x100
jmp 0x1400165b1
lea rcx, [rsp + 0x50]
call fcn.140016390
mov rdx, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x2a0]
call fcn.140016310
mov dword [rsp + 0x278], eax
lea rcx, [rsp + 0x50]
call fcn.140016280
mov eax, dword [rsp + 0x278]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400226f0
add rsp, 0x298
ret
Function at 0x140016c30
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 0x140016c43
xor eax, eax
test eax, eax
jne 0x140016c43
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 0x140016c90
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 0x140016ca8
xor eax, eax
test eax, eax
jne 0x140016ca8
cmp qword [rsp + 0x60], 0
je 0x140016cc6
mov dword [rsp + 0x34], 1
jmp 0x140016cce
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140016ce4
mov eax, 0xd
jmp 0x140016d26
xor eax, eax
test eax, eax
jne 0x140016cb4
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 0x140016d30
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 0x140016d43
xor eax, eax
test eax, eax
jne 0x140016d43
cmp qword [rsp + 0x70], 0
je 0x140016d61
mov dword [rsp + 0x48], 1
jmp 0x140016d69
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x140016d82
mov eax, 0xd
jmp 0x140016e03
xor eax, eax
test eax, eax
jne 0x140016d4f
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 0x140016d9a
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 0x140019a50
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x290
mov rax, qword [0x140042dd0]
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 0x140019c02
mov rcx, qword [rsp + 0x2a0]
add rcx, 8
lea r8, [rsp + 0x30]
mov edx, 0x3ed
call fcn.14001a860
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x140019b7d
mov rcx, qword [rsp + 0x2a0]
add rcx, 8
mov r8d, 0x3f7
lea rdx, [rsp + 0x248]
call fcn.140002e80
mov rcx, rax
call fcn.14000a6a0
mov rdx, rax
lea rcx, [rsp + 0x240]
call fcn.14001a720
xor edx, edx
mov rcx, rax
call fcn.14001a6f0
mov rcx, qword [rsp + 0x2a0]
add rcx, 8
mov r8d, 0x3f8
lea rdx, [rsp + 0x258]
call fcn.140002e80
mov rcx, rax
call fcn.14000a6a0
mov rdx, rax
lea rcx, [rsp + 0x250]
call fcn.14001a720
mov edx, 1
mov rcx, rax
call fcn.14001a6f0
jmp 0x140019c02
mov rcx, qword [rsp + 0x2a0]
add rcx, 8
mov r8d, 0x3f7
lea rdx, [rsp + 0x268]
call fcn.140002e80
mov rcx, rax
call fcn.14000a6a0
mov rdx, rax
lea rcx, [rsp + 0x260]
call fcn.14001a720
mov edx, 1
mov rcx, rax
call fcn.14001a6f0
mov rcx, qword [rsp + 0x2a0]
add rcx, 8
mov r8d, 0x3f8
lea rdx, [rsp + 0x278]
call fcn.140002e80
mov rcx, rax
call fcn.14000a6a0
mov rdx, rax
lea rcx, [rsp + 0x270]
call fcn.14001a720
xor edx, edx
mov rcx, rax
call fcn.14001a6f0
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400226f0
add rsp, 0x290
pop rdi
ret
Function at 0x14001a890
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x110
mov qword [rsp + 0xf0], 0xfffffffffffffffe
mov rax, qword [0x140042dd0]
xor rax, rsp
mov qword [rsp + 0x100], rax
call fcn.140013ae0
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x40]
call fcn.14001ad70
nop
mov rcx, qword [rsp + 0x128]
mov rcx, qword [rcx]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov r11, qword [rsp + 0x128]
mov qword [r11], 0
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x50]
call fcn.14001ad70
nop
cmp dword [rsp + 0x30], 0
jle 0x14001a9c7
mov eax, dword [rsp + 0x30]
add eax, 1
movsxd rdx, eax
lea rcx, [rsp + 0x50]
call fcn.14001ad90
nop
lea rcx, [rsp + 0x50]
call fcn.14000a6a0
test rax, rax
jne 0x14001a96f
mov dword [rsp + 0xe0], 0
lea rcx, [rsp + 0x50]
call fcn.140017d60
nop
lea rcx, [rsp + 0x40]
call fcn.1400178b0
mov eax, dword [rsp + 0xe0]
jmp 0x14001aa62
mov ebx, dword [rsp + 0x30]
add ebx, 1
lea rcx, [rsp + 0x50]
call fcn.14000a6a0
mov r8d, ebx
mov rdx, rax
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx]
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x14001a9c7
mov dword [rsp + 0xe4], 0
lea rcx, [rsp + 0x50]
call fcn.140017d60
nop
lea rcx, [rsp + 0x40]
call fcn.1400178b0
mov eax, dword [rsp + 0xe4]
jmp 0x14001aa62
lea rcx, [rsp + 0x50]
call fcn.14000a6a0
mov rcx, rax
call fcn.14000a0e0
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r11, rax
mov rax, qword [rsp + 0x128]
mov qword [rax], r11
cmp dword [rsp + 0x30], 0
jne 0x14001aa04
mov dword [rsp + 0xf8], 1
jmp 0x14001aa38
mov rax, qword [rsp + 0x128]
cmp qword [rax], 0
je 0x14001aa1f
mov dword [rsp + 0xfc], 1
jmp 0x14001aa2a
mov dword [rsp + 0xfc], 0
mov eax, dword [rsp + 0xfc]
mov dword [rsp + 0xf8], eax
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0xe8], eax
lea rcx, [rsp + 0x50]
call fcn.140017d60
nop
lea rcx, [rsp + 0x40]
call fcn.1400178b0
mov eax, dword [rsp + 0xe8]
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1400226f0
add rsp, 0x110
pop rbx
ret
Function at 0x14001ae80
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 [0x140042dd0]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov rcx, qword [rsp + 0x6b0]
add rcx, 8
xor edx, edx
call fcn.1400010d0
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, [0x1400445c0]
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, [0x1400445c0]
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, [0x140036c50]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rsp + 0x6b0]
add rcx, 8
lea r8, [rsp + 0x470]
mov edx, 0x3f3
call fcn.14001a860
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, [0x140036c78]
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.140022658
lea rdx, [0x140036ca0]
lea rcx, [rsp + 0x260]
call fcn.140002ac0
lea r9, [rsp + 0x260]
xor r8d, r8d
lea rdx, [0x140036cc0]
lea rcx, [0x140036cd8]
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, [0x140036ce8]
lea rcx, [0x140036d10]
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.1400226f0
add rsp, 0x698
pop rdi
pop rbx
ret
Function at 0x14001b130
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, 0x680
mov qword [rsp + 0x668], 0xfffffffffffffffe
mov rax, qword [0x140042dd0]
xor rax, rsp
mov qword [rsp + 0x670], 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 + 0x690]
add rcx, 8
mov r9d, 0x104
lea r8, [rsp + 0x450]
mov edx, 0x3f3
call fcn.14001bc80
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, [0x140036d48]
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.140022658
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, [0x140036da8]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rcx, [rsp + 0x660]
call fcn.140002ff0
nop
mov rcx, qword [rsp + 0x690]
add rcx, 8
mov edx, 0x3fb
call fcn.140002e50
mov r8d, eax
lea rdx, [0x140036db8]
lea rcx, [rsp + 0x660]
call fcn.140003010
lea rcx, [rsp + 0x660]
call fcn.14000a6a0
lea r9, [rsp + 0x240]
mov r8, rax
lea rdx, str.AutoOpen
lea rcx, [0x140036dd8]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rcx, qword [rsp + 0x690]
add rcx, 8
mov edx, 0x414
call fcn.140002e50
mov r8d, eax
lea rdx, [0x140036de8]
lea rcx, [rsp + 0x660]
call fcn.140003010
lea rcx, [rsp + 0x660]
call fcn.14000a6a0
lea r9, [rsp + 0x240]
mov r8, rax
lea rdx, str.DisableExitWarning
lea rcx, str.KZMount
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [rsp + 0x6a0]
mov rcx, qword [rsp + 0x690]
call fcn.140002380
nop
lea rcx, [rsp + 0x660]
call fcn.1400040d0
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.1400226f0
add rsp, 0x680
pop rdi
ret

Function at 0x14001b510
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 [0x140042dd0]
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.14001a860
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.1400226f0
add rsp, 0x250
pop rdi
ret
Function at 0x14001b5d0
Capabilities:
Create process on windows

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, 0x280
mov qword [rsp + 0x268], 0xfffffffffffffffe
mov rax, qword [0x140042dd0]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rcx, [rsp + 0x30]
call fcn.14001ad70
nop
lea rcx, [rsp + 0x38]
call fcn.14001ad70
nop
mov edx, 0x27f8
lea rcx, [rsp + 0x30]
call fcn.140002af0
mov edx, 0x27f9
lea rcx, [rsp + 0x38]
call fcn.140002af0
lea rcx, [rsp + 0x30]
call fcn.14000a6a0
mov rdi, rax
lea rcx, [rsp + 0x38]
call fcn.14000a6a0
mov rcx, qword [rsp + 0x290]
add rcx, 8
mov r9d, 4
mov r8, rdi
mov rdx, rax
call fcn.140002ec0
cmp eax, 6
jne 0x14001b70b
xor eax, eax
mov word [rsp + 0x50], ax
lea rdi, [rsp + 0x52]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x40], 0
call fcn.140004990
test eax, eax
jne 0x14001b6c2
lea rax, [0x140036e50]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
lea r9, str._uninstalldrive
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, qword [rsp + 0x290]
add rcx, 8
xor r9d, r9d
mov r8d, 2
mov edx, VarUI4FromDisp
call fcn.14000bdc0
mov qword [rsp + 0x260], 0
lea rcx, [rsp + 0x38]
call fcn.140002d80
nop
lea rcx, [rsp + 0x30]
call fcn.140002d80
mov rax, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400226f0
add rsp, 0x280
pop rdi
ret