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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140055b28]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, rdx
mov rdi, rcx
mov rdx, rcx
mov rcx, rax
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rdx, str.Lang
xor ebx, ebx
mov rcx, rdi
mov word [rax], bx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rax, [0x140044400]
lea rsi, [rdi + 0x208]
lea r9, [0x140044b00]
lea r8, [0x140044b00]
lea rdx, str.software_s_s_s
lea rcx, [rsp + 0x40]
mov word [rsi], bx
mov word [rdi + 0x410], bx
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_wsprintfW]
lea r11, [rsp + 0x38]
lea r9d, [rbx + 1]
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001b660
mov rbx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rdx, str.LangModule
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x30], 0x208
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test rbx, rbx
je 0x14001b660
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400253c0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14001bf20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x4b0], rbx
mov rax, qword [0x140055b28]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, r9
mov rbx, r8
mov rax, rdx
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x70], r12
xor edx, edx
lea r8d, [r12 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14001bf98
call fcn.140018da0
mov ebx, eax
jmp 0x14001c0da
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14001bfbb
call fcn.140018da0
mov ebx, eax
jmp 0x14001c0d0
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14001bfe0
call fcn.140018da0
mov ebx, eax
jmp 0x14001c0d0
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x14001c019
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14001c00f
lea rcx, [rsp + 0x70]
call fcn.14001dfc0
nop
mov eax, 0x8007000e
jmp 0x14001c0f3
mov ecx, eax
test eax, eax
je 0x14001c056
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14001c04c
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14001c056
lea rcx, [rsp + 0x70]
call fcn.1400195c0
mov rax, qword [rsp + 0x70]
jmp 0x14001c060
mov ecx, 0x80070057
call fcn.14000e230
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x14001c078
test rax, rax
jne 0x14001c084
mov ebx, 0x8007000e
jmp 0x14001c0d0
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14001c0ab
call fcn.140018da0
mov ebx, eax
jmp 0x14001c0d0
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r12w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14001bd40
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14001c0f1
lea rcx, [rsp + 0x70]
call fcn.14001dfc0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400253c0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r12
pop rdi
pop rsi
ret
Function at 0x14001dfd0
Capabilities:
Get graphical window text

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0xf0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x120], rbx
mov rax, qword [0x140055b28]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rsi, rdx
mov r12, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdx
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov rcx, qword [rdx]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsi], rbx
mov rcx, qword [r12]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
mov dword [rsp + 0x20], eax
mov rcx, rbx
mov qword [rsp + 0x50], rbx
test eax, eax
jle 0x14001e0f1
inc eax
movsxd rcx, eax
je 0x14001e080
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14001e076
lea rdx, [rcx + rcx]
cmp rdx, 0x80
jbe 0x14001e080
lea rcx, [rsp + 0x50]
call fcn.1400195c0
mov rdx, qword [rsp + 0x50]
jmp 0x14001e08a
mov ecx, 0x80070057
call fcn.14000e230
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x50], rdx
jmp 0x14001e0a1
test rdx, rdx
jne 0x14001e0bf
lea rax, [rsp + 0x58]
test rax, rax
je 0x14001e0bb
lea rcx, [rsp + 0x50]
call fcn.14001dfc0
nop
xor eax, eax
jmp 0x14001e122
lea r8d, [rdi + 1]
mov rcx, qword [r12]
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x14001e0ec
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x14001e0e8
lea rcx, [rsp + 0x50]
call fcn.14001dfc0
nop
xor eax, eax
jmp 0x14001e122
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsi], rax
test edi, edi
jne 0x14001e103
lea ebx, [rdi + 1]
jmp 0x14001e109
test rax, rax
setne bl
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x14001e120
lea rcx, [rsp + 0x50]
call fcn.14001dfc0
nop
mov eax, ebx
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400253c0
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop r12
pop rdi
pop rsi
ret
Function at 0x14001eab0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x880
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x140055b28]
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.140024690
lea r11, str.Update
mov qword [rsp + 0x20], r11
lea r9, [0x140044b00]
lea r8, [0x140044b00]
lea rdx, str.software_s_s_s
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x30]
call fcn.14003d110
nop
lea rcx, [rsp + 0x30]
call fcn.14003d0d0
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 0x14001eb64
lea rcx, [rsp + 0x30]
call fcn.14003d0f0
lea eax, [rbx + 1]
jmp 0x14001ec08
mov dword [rsp + 0x38], ebx
xor eax, eax
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], 8
lea rcx, [rsp + 0x30]
call fcn.14003d0b0
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 0x14001ebdc
mov ebx, 1
jmp 0x14001ebfc
movzx eax, word [rsp + 0x5a]
cmp word [rsp + 0x4a], ax
jbe 0x14001ebef
mov ebx, 1
jmp 0x14001ebfc
movzx ecx, word [rsp + 0x5e]
cmp word [rsp + 0x4e], cx
seta bl
lea rcx, [rsp + 0x30]
call fcn.14003d0f0
mov eax, ebx
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.1400253c0
add rsp, 0x880
pop rbx
ret

Function at 0x14001ec30
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x140055b28]
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 0x14001ec80
dec ebx
cmp ebx, 0x41
jg 0x14001ec60
xor eax, eax
jmp 0x14001ec93
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.1400253c0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14001fb70
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 [0x140055018]
mov qword [rsp + 0x30], rax
lea rax, str.Mount
mov qword [rsp + 0x20], rax
lea r9, [0x140044b00]
lea r8, [0x140044b00]
lea rdx, str.software_s_s_s
lea rcx, [rsp + 0x30]
call fcn.140011ae0
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 [0x140055010]
je 0x14001fc07
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x14001fc07
call fcn.140024b64
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 0x14001fc5d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14001fc5f
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x14001fc70
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 [0x140055b28]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
call fcn.14001eab0
test eax, eax
jne 0x14001fcb5
mov eax, 1
jmp 0x14001fdfa
call fcn.14001ef00
mov edi, eax
mov dword [rsp + 0x40], 0x70
xor edx, edx
lea r8d, [rdx + 0x6c]
lea rcx, [rsp + 0x44]
call fcn.140024690
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 [0x140055018]
mov qword [rsp + 0x28], rax
mov r9d, edi
lea r8, [0x140044e90]
lea rdx, [0x1400451c0]
lea rcx, [rsp + 0x28]
call fcn.140011ae0
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 0x14001fdb4
lea rcx, [0x1400450d8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r8, [0x1400450d8]
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.14001ee00
mov rbx, qword [rsi + 0x10]
test rbx, rbx
jne 0x14001fd97
mov eax, ebp
jmp 0x14001fda0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.14001ee00
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 [0x140055010]
je 0x14001fdf8
or edx, 0xffffffff
lock xadd dword [rcx], edx
dec edx
test edx, edx
jg 0x14001fdf8
call fcn.140024b64
mov eax, edi
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.1400253c0
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 0x140020890
Capabilities:
Create process on windows
Read file via mapping

Disassembly:
push rbp
push r12
sub rsp, 0x2d8
mov rax, qword [0x140055b28]
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 0x1400208f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400208fc
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140020aac
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 0x14002093f
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140020a9c
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.140024690
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 0x1400209af
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 0x140020991
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.140024690
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.140024690
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.1400253c0
add rsp, 0x2d8
pop r12
pop rbp
ret
Function at 0x140021e70
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x1050
call fcn.14003f620
sub rsp, rax
mov rax, qword [0x140055b28]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rdi, rcx
mov rcx, qword [rcx]
mov rbx, rdx
test rcx, rcx
jne 0x140021eaa
xor eax, eax
jmp 0x140021f98
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x840]
mov dword [rsp + 0x30], 0x800
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x140021eec
lea rdx, str.NoAssociate.KuaiZipMount
lea rcx, [rsp + 0x840]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140021eec
mov eax, 1
jmp 0x140021f98
lea r8, [rsp + 0x38]
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x140021f1b
lea rcx, str.NoAssociate.KuaiZipMount
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9, str.NoAssociate.KuaiZipMount
jmp 0x140021f75
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 0x140021ea3
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.1400253c0
mov rbx, qword [rsp + 0x1070]
add rsp, 0x1050
pop rdi
ret

Function at 0x140021fc0
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 [0x140055b28]
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 0x140022091
test rbx, rbx
je 0x140022036
lea rcx, [rsp + 0x40]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x140022049
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.1400253c0
mov rbx, qword [rsp + 0xa70]
add rsp, 0xa60
pop rdi
ret
Function at 0x1400220e0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1270
call fcn.14003f620
sub rsp, rax
mov rax, qword [0x140055b28]
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 0x14002216b
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x14002216b
xor eax, eax
jmp 0x140022299
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 0x140022164
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 0x140022286
test rbx, rbx
je 0x140022225
lea rcx, [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x140022238
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.140021fc0
mov rcx, qword [rsp + 0x1260]
xor rcx, rsp
call fcn.1400253c0
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.1400222c0
test eax, eax
je 0x1400224b9
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rdx, rbx
mov rcx, rdi
call fcn.140021e70
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1400220e0
Function at 0x1400222c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
mov eax, 0x1270
call fcn.14003f620
sub rsp, rax
mov rax, qword [0x140055b28]
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 0x14002232a
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 0x140022331
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140022472
lea r8, str.KuaiZipMount
lea rdx, [0x1400455d8]
lea rcx, [rsp + 0x260]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0xa60]
call fcn.1400261b4
lea rdx, [rsp + 0xa60]
cmp rax, rdx
jne 0x140022465
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 0x140022465
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 0x14002241c
mov eax, dword [rsp + 0x40]
cmp eax, 1
je 0x14002240e
cmp eax, 2
jne 0x14002241c
cmp dword [rsp + 0x30], ebx
jne 0x14002241c
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.1400261b4
lea rcx, [rsp + 0x260]
cmp rax, rcx
sete bl
test rdi, rdi
je 0x14002245d
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.1400253c0
add rsp, 0x1270
pop rbx
ret