joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f160
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x880
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x140056b28]
xor rax, rsp
mov qword [rsp + 0x870], rax
xor ebx, ebx
mov word [rsp + 0x70], bx
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rsp + 0x72]
call fcn.140024c30
lea r11, str.Update
mov qword [rsp + 0x20], r11
lea r9, [0x140045b00]
lea r8, [0x140045b00]
lea rdx, str.software_s_s_s
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x30]
call fcn.14003d820
nop
lea rcx, [rsp + 0x30]
call fcn.14003d7e0
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14001f214
lea rcx, [rsp + 0x30]
call fcn.14003d800
lea eax, [rbx + 1]
jmp 0x14001f2b8
mov dword [rsp + 0x38], ebx
xor eax, eax
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], 8
lea rcx, [rsp + 0x30]
call fcn.14003d7c0
mov rcx, rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.kernel
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx r11d, word [rsp + 0x58]
cmp word [rsp + 0x48], r11w
jbe 0x14001f28c
mov ebx, 1
jmp 0x14001f2ac
movzx eax, word [rsp + 0x5a]
cmp word [rsp + 0x4a], ax
jbe 0x14001f29f
mov ebx, 1
jmp 0x14001f2ac
movzx ecx, word [rsp + 0x5e]
cmp word [rsp + 0x4e], cx
seta bl
lea rcx, [rsp + 0x30]
call fcn.14003d800
mov eax, ebx
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.140025960
add rsp, 0x880
pop rbx
ret

Function at 0x14001f2e0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x140056b28]
xor rax, rsp
mov qword [rsp + 0x28], rax
movabs rax, 0x5c003a0020
mov rdi, rcx
mov ebx, 0x5a
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
mov word [rsp + 0x20], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x14001f330
dec ebx
cmp ebx, 0x41
jg 0x14001f310
xor eax, eax
jmp 0x14001f343
lea rcx, [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rdi], rax
mov eax, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140025960
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140020220
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x68], 0
mov rax, qword [0x140056018]
mov qword [rsp + 0x30], rax
lea rax, str.Mount
mov qword [rsp + 0x20], rax
lea r9, [0x140045b00]
lea r8, [0x140045b00]
lea rdx, str.software_s_s_s
lea rcx, [rsp + 0x30]
call fcn.1400121a0
lea r11, [rsp + 0x68]
mov qword [rsp + 0x20], r11
mov r9d, 1
xor r8d, r8d
mov rbx, qword [rsp + 0x30]
mov rdx, rbx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140056010]
je 0x1400202b7
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x1400202b7
call fcn.140025104
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x58], 4
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.OpenDrive
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14002030d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14002030f
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x140020320
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x2d0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x140056b28]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
call fcn.14001f160
test eax, eax
jne 0x140020365
mov eax, 1
jmp 0x1400204aa
call fcn.14001f5b0
mov edi, eax
mov dword [rsp + 0x40], 0x70
xor edx, edx
lea r8d, [rdx + 0x6c]
lea rcx, [rsp + 0x44]
call fcn.140024c30
mov r8d, 0x104
lea rdx, [rsp + 0xb0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rdx, str...X86Update.exe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea r11, [rsp + 0xb0]
mov qword [rsp + 0x58], r11
mov rax, qword [0x140056018]
mov qword [rsp + 0x28], rax
mov r9d, edi
lea r8, [0x140045e90]
lea rdx, [0x1400461c0]
lea rcx, [rsp + 0x28]
call fcn.1400121a0
mov rbx, qword [rsp + 0x28]
mov qword [rsp + 0x60], rbx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rsi, rax
cmp dword [rsp + 0x20], 3
jne 0x140020464
lea rcx, [0x1400460d8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r8, [0x1400460d8]
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.14001f4b0
mov rbx, qword [rsi + 0x10]
test rbx, rbx
jne 0x140020447
mov eax, ebp
jmp 0x140020450
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.14001f4b0
mov rbx, qword [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [rsp + 0x70], ebp
mov dword [rsp + 0x44], 0x400
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
cmove edi, ebp
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140056010]
je 0x1400204a8
or edx, 0xffffffff
lock xadd dword [rcx], edx
dec edx
test edx, edx
jg 0x1400204a8
call fcn.140025104
mov eax, edi
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140025960
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140020e10
Capabilities:
Create process on windows
Read file via mapping

Disassembly:
push rbp
push r12
sub rsp, 0x2d8
mov rax, qword [0x140056b28]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
xor r9d, r9d
lea rax, str.D7B7CDDF_EF6B_4070_9478_2B37F70BE7AA
mov rbp, rcx
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 4]
xor edx, edx
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], 0x400
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r12, rax
test rax, rax
je 0x140020e75
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140020e7c
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14002102c
mov qword [rsp + 0x2d0], r13
mov qword [rsp + 0x2c0], r15
xor r15d, r15d
lea edx, [r15 + 6]
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r13, rax
test rax, rax
jne 0x140020ebf
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14002101c
mov qword [rsp + 0x2f0], rbx
mov qword [rsp + 0x2f8], rsi
xor edx, edx
mov r8d, 0x400
mov rcx, rax
mov qword [rsp + 0x300], rdi
mov qword [rsp + 0x2c8], r14
call fcn.140024c30
lea rbx, [rbp + 0xa4]
add rbp, 0xd4
mov rsi, r13
lea rdi, str..iso
sub rbp, rbx
lea r14, vtable.type_info.0
mov eax, dword [rbx + rbp]
xor eax, dword [rbx]
je 0x140020f2f
mov rdx, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov r11d, dword [rbx]
add rsi, 0x14
mov dword [rsi - 4], r11d
add rdi, 8
add rbx, 4
cmp rdi, r14
jl 0x140020f11
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rcx, [rsp + 0xa2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xa0], r15w
call fcn.140024c30
lea rdx, [rsp + 0xa0]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x70]
call fcn.140024c30
lea rax, str.runas
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x30], 0x70
mov qword [rsp + 0x48], rax
lea rax, str._SetFileAssoc
mov dword [rsp + 0x34], 0x40
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x60], 5
mov qword [rsp + 0x50], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rcx, qword [rsp + 0x98]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x2c8]
mov rdi, qword [rsp + 0x300]
mov rsi, qword [rsp + 0x2f8]
mov rbx, qword [rsp + 0x2f0]
mov eax, 1
mov r13, qword [rsp + 0x2d0]
mov r15, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140025960
add rsp, 0x2d8
pop r12
pop rbp
ret
Function at 0x140022410
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x1050
call fcn.1400400e0
sub rsp, rax
mov rax, qword [0x140056b28]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rdi, rcx
mov rcx, qword [rcx]
mov rbx, rdx
test rcx, rcx
jne 0x14002244a
xor eax, eax
jmp 0x140022538
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x840]
mov dword [rsp + 0x30], 0x800
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x14002248c
lea rdx, str.NoAssociate.KuaiZipMount
lea rcx, [rsp + 0x840]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14002248c
mov eax, 1
jmp 0x140022538
lea r8, [rsp + 0x38]
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1400224bb
lea rcx, str.NoAssociate.KuaiZipMount
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9, str.NoAssociate.KuaiZipMount
jmp 0x140022515
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x30], 0x800
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.KuaiZipMount
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
lea rcx, [rsp + 0x40]
cmp rax, rcx
je 0x140022443
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9, [rsp + 0x40]
mov rcx, qword [rdi]
lea eax, [rax + rax + 2]
mov r8d, 1
mov rdx, rbx
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140025960
mov rbx, qword [rsp + 0x1070]
add rsp, 0x1050
pop rdi
ret

Function at 0x140022560
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa60
mov rax, qword [0x140056b28]
xor rax, rsp
mov qword [rsp + 0xa50], rax
mov rbx, r8
mov r8, rdx
lea r9, str._shellopencommand
lea rdx, str._s_s
lea rcx, [rsp + 0x250]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x250]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov edi, eax
test eax, eax
jne 0x140022631
test rbx, rbx
je 0x1400225d6
lea rcx, [rsp + 0x40]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x1400225e9
lea rdx, [rsp + 0x40]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, str.__NewDriver___1_
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x30]
xor edx, edx
lea eax, [rax + rax + 2]
lea r9, [rsp + 0x40]
lea r8d, [rdx + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rsp + 0x30]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
mov rcx, qword [rsp + 0xa50]
xor rcx, rsp
call fcn.140025960
mov rbx, qword [rsp + 0xa70]
add rsp, 0xa60
pop rdi
ret
Function at 0x140022680
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1270
call fcn.1400400e0
sub rsp, rax
mov rax, qword [0x140056b28]
xor rax, rsp
mov qword [rsp + 0x1260], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov r9, rdx
lea r8, str.KuaiZipMount
lea rcx, [rsp + 0x260]
lea rdx, str._s_s
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x14002270b
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x14002270b
xor eax, eax
jmp 0x140022839
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x30]
xor edx, edx
lea eax, [rax + rax + 2]
lea r9, [rsp + 0x260]
lea r8d, [rdx + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x260]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140022704
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r9, str.DefaultIcon
lea r8, [rsp + 0x260]
lea rdx, str._s_s
lea rcx, [rsp + 0xa60]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0xa60]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140022826
test rbx, rbx
je 0x1400227c5
lea rcx, [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x1400227d8
lea rdx, [rsp + 0x50]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r8, [rsp + 0x50]
lea rdx, str._s__d
lea rcx, [rsp + 0x50]
xor r9d, r9d
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x38]
xor edx, edx
lea eax, [rax + rax + 2]
lea r9, [rsp + 0x50]
lea r8d, [rdx + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x260]
mov r8, rbx
mov rcx, rsi
call fcn.140022560
mov rcx, qword [rsp + 0x1260]
xor rcx, rsp
call fcn.140025960
lea r11, [rsp + 0x1270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.140022860
test eax, eax
je 0x140022a59
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rdx, rbx
mov rcx, rdi
call fcn.140022410
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140022680
Function at 0x140022860
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
mov eax, 0x1270
call fcn.1400400e0
sub rsp, rax
mov rax, qword [0x140056b28]
xor rax, rsp
mov qword [rsp + 0x1260], rax
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000000
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1400228ca
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x44]
lea r8, [rsp + 0xa60]
xor edx, edx
mov dword [rsp + 0x44], 0x400
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
je 0x1400228d1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140022a12
lea r8, str.KuaiZipMount
lea rdx, [0x1400465d8]
lea rcx, [rsp + 0x260]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0xa60]
call fcn.140026754
lea rdx, [rsp + 0xa60]
cmp rax, rdx
jne 0x140022a05
lea rdx, str._shellopencommand
lea rcx, [rsp + 0xa60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rax, [rsp + 0x48]
lea rdx, [rsp + 0xa60]
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140022a05
lea rax, [rsp + 0x30]
mov qword [rsp + 0x1280], rdi
mov rdi, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x260]
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0x800
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400229bc
mov eax, dword [rsp + 0x40]
cmp eax, 1
je 0x1400229ae
cmp eax, 2
jne 0x1400229bc
cmp dword [rsp + 0x30], ebx
jne 0x1400229bc
mov word [rsp + 0x260], bx
lea rdx, [rsp + 0x50]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x260]
call fcn.140026754
lea rcx, [rsp + 0x260]
cmp rax, rcx
sete bl
test rdi, rdi
je 0x1400229fd
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x1280]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x1260]
xor rcx, rsp
call fcn.140025960
add rsp, 0x1270
pop rbx
ret
Function at 0x140022a30
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1270
call fcn.1400400e0
sub rsp, rax
mov rax, qword [0x140056b28]
xor rax, rsp
mov qword [rsp + 0x1260], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov r9, rdx
lea r8, str.KuaiZipMount
lea rcx, [rsp + 0x260]
lea rdx, str._s_s
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x14002270b
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x14002270b
xor eax, eax
jmp 0x140022839
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x30]
xor edx, edx
lea eax, [rax + rax + 2]
lea r9, [rsp + 0x260]
lea r8d, [rdx + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x260]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140022704
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r9, str.DefaultIcon
lea r8, [rsp + 0x260]
lea rdx, str._s_s
lea rcx, [rsp + 0xa60]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0xa60]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140022826
test rbx, rbx
je 0x1400227c5
lea rcx, [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x1400227d8
lea rdx, [rsp + 0x50]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r8, [rsp + 0x50]
lea rdx, str._s__d
lea rcx, [rsp + 0x50]
xor r9d, r9d
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x38]
xor edx, edx
lea eax, [rax + rax + 2]
lea r9, [rsp + 0x50]
lea r8d, [rdx + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x260]
mov r8, rbx
mov rcx, rsi
call fcn.140022560
mov rcx, qword [rsp + 0x1260]
xor rcx, rsp
call fcn.140025960
lea r11, [rsp + 0x1270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.140022860
test eax, eax
je 0x140022a59
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rdx, rbx
mov rcx, rdi
call fcn.140022410
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140022680
Function at 0x140022cf0
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x850
mov rax, qword [0x140056b28]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rdi, rdx
mov rbx, rcx
call fcn.140022860
test eax, eax
jne 0x140022d25
mov eax, 1
jmp 0x140022d86
mov rcx, qword [rbx]
mov qword [rsp + 0x870], rsi
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
xor esi, esi
mov rdx, rdi
mov dword [rsp + 0x38], 0x800
mov word [rsp + 0x40], si
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x140022d6c
lea rdx, str.NoAssociate.KuaiZipMount
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140022da7
mov rdx, rdi
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor eax, eax
mov rsi, qword [rsp + 0x870]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140025960
mov rbx, qword [rsp + 0x878]
add rsp, 0x850
pop rdi
ret
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x30], rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140022d7c
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x30]
xor edx, edx
lea eax, [rax + rax + 2]
lea r9, [rsp + 0x40]
lea r8d, [rdx + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call fcn.140022a80
test ebx, ebx
sete sil
mov eax, esi
jmp 0x140022d7e
Function at 0x140022e30
Capabilities:
Query service status

Disassembly:
push rbx
push rsi
sub rsp, 0x68
mov rsi, rcx
xor edx, edx
mov r8d, 0x20000
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140022e59
add rsp, 0x68
pop rsi
pop rbx
ret
lea rdx, str.KuaiZipDrive
mov r8d, 5
mov rcx, rax
mov qword [rsp + 0x60], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140022e91
mov rdi, qword [rsp + 0x60]
mov dword [rsi + 4], 1
mov al, 1
add rsp, 0x68
pop rsi
pop rbx
ret
mov edx, 0x2000
mov ecx, 0x40
mov qword [rsp + 0x80], rbp
mov dword [rsp + 0x88], 0
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
lea r9, [rsp + 0x88]
mov r8d, 0x2000
mov rcx, rdi
mov rdx, rax
mov rbp, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x140022efb
cmp dword [rbp + 4], 2
je 0x140022efb
mov rcx, rbx
mov dword [rsi + 4], 2
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x140022f92
xor eax, eax
lea r8, [rsp + 0x30]
mov r9d, 0x24
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x90], eax
lea rax, [rsp + 0x90]
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov ecx, dword [rsp + 0x34]
test eax, eax
je 0x140022f5c
cmp ecx, 3
je 0x140022f61
cmp ecx, 1
jne 0x140022f7e
mov rcx, rbx
mov dword [rsi + 4], 3
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x140022f92
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov rbp, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x60]
add rsp, 0x68
pop rsi
pop rbx
ret