joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400030e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
or esi, 0xffffffff
mov edi, edx
mov rbx, rcx
cmp edx, esi
jne 0x140003108
xor eax, eax
jmp 0x140003228
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140003142
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x140003142
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov byte [rdx], dil
mov eax, edi
jmp 0x140003228
cmp qword [rbx + 0x80], 0
je 0x140003226
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000317d
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000319e
movsx ecx, dil
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, esi
cmove edi, esi
jmp 0x14000313b
lea rax, [rbp + 0x30]
mov byte [rbp - 0x30], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x2f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x30]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400031ec
sub eax, 1
je 0x1400031ec
cmp eax, 2
jne 0x140003226
movsx ecx, byte [rbp - 0x30]
jmp 0x14000318a
mov r14, qword [rbp + 0x30]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x140003217
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x140003226
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp + 0x38], rax
cmovne esi, edi
mov eax, esi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140003584
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400035e0
cmp byte [rcx + 0x71], 0
je 0x1400035e0
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140003628
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400035ed
sub eax, 1
je 0x1400035f1
cmp eax, 2
jne 0x140003628
mov byte [rbx + 0x71], 0
mov al, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x14000361f
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140003628
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400035e2
xor al, al
jmp 0x1400035e2

Function at 0x140004adc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004b26
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004b26
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004b26
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004b26
cmp dword [rcx + 0x84], 0xe
jbe 0x140004b26
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004b28
xor al, al
add rsp, 0x28
ret
Function at 0x1400054c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0xe0
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov rax, qword [0x140055b28]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x70], 0
je 0x14000550a
mov rax, qword [rsp + 0xf0]
movzx eax, byte [rax + 0x79]
test eax, eax
jne 0x140005516
mov al, 1
jmp 0x140005742
mov dword [rsp + 0x30], 8
call fcn.14000d030
mov edx, eax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xf0]
call qword [rax + 8]
mov dword [rsp + 0x78], eax
call fcn.14000d030
mov dword [rsp + 0x7c], eax
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x7c]
call fcn.14000ced0
movzx eax, al
test eax, eax
je 0x140005565
xor al, al
jmp 0x140005742
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x48]
call fcn.140004080
nop
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x48]
call fcn.1400042e0
mov rcx, rax
call fcn.1400051b0
mov rbx, rax
lea rcx, [rsp + 0x48]
call fcn.14000e4b0
add rbx, rax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x48]
call fcn.1400042e0
mov rcx, rax
call fcn.1400051b0
mov r8, rax
mov rdx, qword [rsp + 0xf0]
add rdx, 0x7c
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x70]
call fcn.140007940
mov dword [rsp + 0xd0], eax
cmp dword [rsp + 0xd0], 0
je 0x140005617
cmp dword [rsp + 0xd0], 1
je 0x140005623
cmp dword [rsp + 0xd0], 3
je 0x1400056fc
jmp 0x140005717
mov rax, qword [rsp + 0xf0]
mov byte [rax + 0x79], 0
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x48]
call fcn.1400042e0
mov rcx, rax
call fcn.1400051b0
mov r11, rax
mov rax, qword [rsp + 0x38]
sub rax, r11
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jbe 0x1400056b5
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x48]
call fcn.1400042e0
mov rcx, rax
call fcn.1400051b0
mov r9, qword [rsp + 0xf0]
mov r9, qword [r9 + 0x88]
mov r8, qword [rsp + 0x70]
mov edx, 1
mov rcx, rax
call fcn.140027b00
cmp qword [rsp + 0x70], rax
je 0x1400056b5
mov byte [rsp + 0xc0], 0
lea rcx, [rsp + 0x48]
call fcn.14000d770
mov al, byte [rsp + 0xc0]
jmp 0x140005742
mov rax, qword [rsp + 0xf0]
movzx eax, byte [rax + 0x79]
test eax, eax
jne 0x1400056e0
mov byte [rsp + 0xc1], 1
lea rcx, [rsp + 0x48]
call fcn.14000d770
mov al, byte [rsp + 0xc1]
jmp 0x140005742
cmp qword [rsp + 0x70], 0
jne 0x1400056fa
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x48]
call fcn.1400040f0
jmp 0x140005732
mov byte [rsp + 0xc2], 1
lea rcx, [rsp + 0x48]
call fcn.14000d770
mov al, byte [rsp + 0xc2]
jmp 0x140005742
mov byte [rsp + 0xc3], 0
lea rcx, [rsp + 0x48]
call fcn.14000d770
mov al, byte [rsp + 0xc3]
jmp 0x140005742
jmp 0x140005578
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.1400253c0
add rsp, 0xe0
pop rbx
ret
Function at 0x140011b10
Capabilities:
Check if file exists
Create directory
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x470
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x498], rbx
mov rax, qword [0x140055b28]
xor rax, rsp
mov qword [rsp + 0x460], rax
movsxd rbp, r8d
mov rsi, rcx
mov edx, 0x3ec
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r9d, 2
or rdi, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x100c
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rsi + 0x44], eax
cmp eax, 0xffffffff
jne 0x140011bd7
mov rax, qword [0x140055018]
mov qword [rsp + 0x20], rax
mov edx, 0x27e1
lea rcx, [rsp + 0x20]
call fcn.140011410
xor r9d, r9d
lea r8, [0x140043cb0]
mov rbx, qword [rsp + 0x20]
mov rdx, rbx
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140055010]
je 0x140011d20
lock xadd dword [rcx], edi
dec edi
test edi, edi
jg 0x140011d20
call fcn.140024b64
jmp 0x140011d20
mov edx, 0x3ff
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov dword [rsi + 0x54], eax
mov edx, 0x3ff
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x140011d13
xor ebx, ebx
mov word [rsp + 0x40], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x42]
call fcn.140024690
mov r8d, 0x104
lea rdx, [rsp + 0x40]
lea rcx, str._APPDATA_KZMount
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140011c56
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [rsp + 0x250], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x252]
call fcn.140024690
lea r8, [rsp + 0x40]
mov edx, 0x104
lea rcx, [rsp + 0x250]
call fcn.140025470
lea r8, str.KZMount.ini
mov edx, 0x104
lea rcx, [rsp + 0x250]
call fcn.14002477c
mov r11, qword [0x140055018]
mov qword [rsp + 0x28], r11
mov edx, 0x3ff
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov r8d, eax
lea rdx, [0x140043b38]
lea rcx, [rsp + 0x28]
call fcn.140011ae0
lea r9, [rsp + 0x250]
mov rbx, qword [rsp + 0x28]
mov r8, rbx
lea rdx, str.DiskReadOnly
lea rcx, str.KZMount
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
nop
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140055010]
je 0x140011d13
lock xadd dword [rcx], edi
dec edi
test edi, edi
jg 0x140011d13
call fcn.140024b64
mov rdx, rbp
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_EndDialog]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400253c0
mov rbx, qword [rsp + 0x498]
add rsp, 0x470
pop rdi
pop rsi
pop rbp
ret
Function at 0x140012310
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140055b28]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, VarUI4FromDisp
call fcn.140024690
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], VarUI4FromDisp
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140012381
mov eax, dword [rsp + 0x24]
cmp eax, 5
jae 0x140012367
cmp eax, 4
jne 0x140012381
cmp dword [rsp + 0x28], 0x5a
jb 0x140012381
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400253c0
add rsp, 0x158
ret
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400253c0
add rsp, 0x158
ret

Function at 0x140012670
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x140055b28]
xor rax, rsp
mov qword [rsp + 0x440], rax
lea rcx, [rsp + 0x232]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x230], bx
call fcn.140024690
lea rdx, [rsp + 0x230]
lea rcx, str._APPDATA_KZMount
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], bx
call fcn.140024690
lea r8, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.140025470
lea r8, str.KZMount.ini
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.14002477c
lea r9, [rsp + 0x20]
lea rdx, str.DisableExitWarning
lea rcx, str.KZMount
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400253c0
add rsp, 0x450
pop rbx
ret

Function at 0x1400155a0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x140055018]
mov qword [rsp + 0x30], rax
mov edx, 0x2794
lea rcx, [rsp + 0x30]
call fcn.140011410
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
mov r8, rbx
lea rdx, [0x140044038]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140055010]
je 0x140015615
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x140015615
call fcn.140024b64
add rsp, 0x40
pop rbx
ret
Function at 0x140015860
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x30
cmp dword [rcx + 0xd8], 0x80004004
mov rsi, r9
mov rbp, r8
mov r12, rdx
mov rbx, rcx
jne 0x1400158a4
xor edi, edi
mov eax, 0x80004004
mov dword [rcx + 0xd8], edi
jmp 0x140015998
mov rcx, qword [rcx + 0x88]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x14001594c
xor edi, edi
mov dword [rbx + 0xd8], edi
mov rcx, qword [rbx + 0xd0]
cmp rsi, rcx
je 0x1400158ff
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rsi, rsi
je 0x1400158f8
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx + 0xd0], rax
test rax, rax
jne 0x1400158ff
mov ecx, 0x8007000e
call fcn.14000e230
int3
mov qword [rbx + 0xd0], rdi
mov rcx, qword [rbx + 0xe0]
mov dword [rbx + 0xe8], 1
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea r9, [rbx - 0x50]
lea r8, [0x140014ab0]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call fcn.140025d34
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0xe0]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [r12]
xor edx, edx
lea rcx, [rbx + 0x80]
imul rax, rax, 0x64
div qword [rbp]
xor edx, edx
lea r9d, [rdx + 0x64]
mov r8, rax
call fcn.14001e580
mov r11, qword [rbp]
cmp qword [r12], r11
jb 0x140015992
mov rcx, qword [rbx + 0x88]
xor r9d, r9d
mov edx, VarUI4FromDisp
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [rbx + 0xd8]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret

Function at 0x140016760
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
cmp r8, 0x80
jne 0x14001681f
movzx eax, byte [rcx + 0x84]
test al, al
jne 0x14001681f
cmp dword [rcx + 0x88], 0
jne 0x14001681f
sub r9, 0x202
je 0x1400167d0
cmp r9, 3
jne 0x140016817
call fcn.140015e10
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov r9d, dword [rsp + 0x64]
mov r8d, dword [rsp + 0x60]
lea rcx, [rbx + 0x1b8]
xor edx, edx
jmp 0x140016800
call fcn.140015e10
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov r9d, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x30]
lea rcx, [rbx + 0x1b0]
mov edx, 8
mov rax, qword [rbx + 8]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call fcn.140012a60
xor eax, eax
add rsp, 0x40
pop rbx
ret
movabs rax, 1
add rsp, 0x40
pop rbx
ret
Function at 0x140016d70
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x30
movzx r12d, r9b
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
jne 0x140016da0
xor eax, eax
jmp 0x140016da9
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsi + 0xb8]
mov r8, rbx
mov edx, eax
call fcn.140010f20
test rdi, rdi
jne 0x140016dc3
xor eax, eax
jmp 0x140016dcc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsi + 0xc0]
mov r8, rdi
mov edx, eax
call fcn.140010f20
lea r8, [0x140016d40]
mov r9, rsi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov byte [rsi + 0xc8], r12b
mov dword [rsp + 0x20], 0
call fcn.140025d34
test rax, rax
je 0x140016e16
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x140018190
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
xor r8d, r8d
xor edx, edx
add rcx, 0xb8
call fcn.140010f20
lea rcx, [rbx + 0xc0]
xor r8d, r8d
xor edx, edx
call fcn.140010f20
xor eax, eax
lea r8, [0x140016d40]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov byte [rbx + 0xc8], 0
mov dword [rsp + 0x20], eax
call fcn.140025d34
test rax, rax
je 0x1400181ee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x30
pop rbx
ret
Function at 0x140018680
Capabilities:
Copy file
Get common file path

Disassembly:
push rbx
sub rsp, 0x460
mov rax, qword [0x140055b28]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea rcx, [rsp + 0x32]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], bx
call fcn.140024690
lea rdx, [rsp + 0x30]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1400186d5
mov eax, 0x80004005
jmp 0x14001877a
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rdx, str.KuaiZipDrive.sys
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea r8, [rsp + 0x24]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x24], ebx
call qword [sym.imp.imagehlp.dll_MapFileAndCheckSumW]
test eax, eax
jne 0x1400186cb
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jne 0x1400186cb
lea rcx, [rsp + 0x240]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, str.drivers
lea rcx, [rsp + 0x240]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, str.KuaiZipDrive.sys
lea rcx, [rsp + 0x240]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, 0x80004005
test eax, eax
cmove ebx, ecx
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400253c0
add rsp, 0x460
pop rbx
ret

Function at 0x140018970
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov rax, qword [0x140055b28]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor eax, eax
mov word [rsp + 0x20], ax
mov qword [r11 - 0x56], rax
mov qword [r11 - 0x4e], rax
mov qword [r11 - 0x46], rax
mov qword [r11 - 0x3e], rax
mov qword [r11 - 0x36], rax
mov qword [r11 - 0x2e], rax
mov qword [r11 - 0x26], rax
mov dword [rsp + 0x5a], eax
mov word [rsp + 0x5e], ax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
lea r8, [rsp + 0x20]
mov r9d, 0x20
mov edx, 0x1004
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400189ed
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400253c0
add rsp, 0x78
ret
lea rcx, [rsp + 0x20]
call fcn.140024cb4
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400253c0
add rsp, 0x78
ret
Function at 0x140018a10
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x490
mov rax, qword [0x140055b28]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r12, rdx
mov rsi, rcx
mov rdx, rcx
lea rcx, [rsp + 0x270]
mov r13, r8
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str..dll
lea rcx, [rsp + 0x270]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x24]
xor ebp, ebp
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x20], ebp
call fcn.140024690
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140018a9b
xor eax, eax
jmp 0x140018b35
mov qword [rsp + 0x4d8], rbx
lea rdx, [0x140044520]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140018b09
lea rdx, [0x140044518]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140018b09
test byte [rsp + 0x20], 0x10
jne 0x140018b09
lea rcx, [rsi + 0x410]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rsp + 0x4c]
lea rcx, [rsi + 0x410]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [rsi + 0x410]
mov rcx, r13
call r12
test eax, eax
jne 0x140018b1d
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140018aa3
jmp 0x140018b22
mov ebp, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x4d8]
mov eax, ebp
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400253c0
add rsp, 0x490
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140018e90
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x140018ed0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
sub rsp, 0x30
mov rsi, r8
mov rbp, rdx
mov r12, rcx
test r8, r8
jne 0x140018f03
lea eax, [r8 + 0xd]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
xor edi, edi
mov rbx, r8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea rbx, [rbx + rax*2]
lea edi, [rdi + rax*2]
cmp eax, 1
jne 0x140018f12
mov rcx, qword [r12]
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x140019630
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140055b28]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rdi, rcx
mov rcx, qword [rcx]
lea rax, [rsp + 0x58]
xor r8d, r8d
or r9d, 0x2001f
mov rsi, rdx
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x14001977d
mov ebx, ebp
test rcx, rcx
je 0x1400196a6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x48], rcx
test ebx, ebx
jne 0x14001977d
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140019751
nop word [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140019630
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x14001977d
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140019700
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140019766
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rcx, qword [rdi]
mov rdx, rsi
mov dword [rsp + 0x50], ebp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test rcx, rcx
je 0x140019788
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400253c0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret