joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016900
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x970
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x140260d50]
xor rax, rsp
mov qword [rsp + 0x960], rax
mov rbx, rcx
xor r8d, r8d
lea rdx, str.Tool_GetPrinterDriverDir
lea rcx, [rsp + 0x38]
call fcn.14000b870
nop
mov r9, rbx
lea r8, str.pDir___s
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.14000ba50
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x560]
call fcn.140193010
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x160]
call fcn.140193010
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x50]
call fcn.140193010
lea rdx, [0x1402145dc]
lea rcx, [rsp + 0x560]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x1402145dc]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x50]
mov r8d, 1
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x560]
call qword [sym.imp.WINSPOOL.DRV_GetPrinterDriverDirectoryW]
mov rcx, rbx
cmp eax, 1
jne 0x140016a0b
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x140016a16
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [0x1402145dc]
mov edx, 2
lea rcx, [rsp + 0x38]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x38]
call fcn.14000ba00
mov rcx, qword [rsp + 0x960]
xor rcx, rsp
call fcn.14018e5d0
add rsp, 0x970
pop rbx
ret
Function at 0x1400184c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x490
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x4c0], rbx
mov rax, qword [0x140260d50]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rdi, rdx
mov rbx, rcx
xor r8d, r8d
lea rdx, str.DeleteRegPCL
lea rcx, [rsp + 0x50]
call fcn.14000b870
nop
mov qword [rsp + 0x20], rdi
mov r9, rbx
lea r8, str.hKeyPrinter___08x__lpszPrinter___s
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.14000ba50
xor ebp, ebp
mov esi, ebp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001860e
nop word [rax + rax]
mov dword [rsp + 0x48], 0x208
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x70]
call fcn.140193010
lea r11, [rsp + 0x68]
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x70]
mov edx, esi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc esi
test eax, eax
je 0x1400185bb
cmp eax, 0x103
je 0x1400185fc
mov ebx, ebp
jmp 0x1400185f3
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call fcn.1400184c0
mov ebx, eax
cmp eax, 1
jne 0x140018601
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x1400185f1
cmp eax, 2
je 0x1400185f1
mov ebx, ebp
mov eax, 0x103
mov esi, ebp
test eax, eax
jne 0x140018601
jmp 0x140018560
mov ebx, 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140018619
mov ebx, 1
cmp eax, 2
cmovne ebx, ebp
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x50]
call fcn.14000ba00
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14018e5d0
mov rbx, qword [rsp + 0x4c0]
add rsp, 0x490
pop rdi
pop rsi
pop rbp
ret
Function at 0x140018670
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x490
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140260d50]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rdi, rdx
mov rbx, rcx
xor r8d, r8d
lea rdx, str.CheckRegPCL
lea rcx, [rsp + 0x50]
call fcn.14000b870
nop
mov qword [rsp + 0x20], rdi
mov r9, rbx
lea r8, str.hKeyPrinter___08x__lpszPrinter___s
mov esi, 1
mov edx, esi
lea rcx, [rsp + 0x50]
call fcn.14000ba50
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018761
mov dword [rsp + 0x40], 0x208
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x70]
call fcn.140193010
lea r11, [rsp + 0x68]
mov qword [rsp + 0x38], r11
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140018754
cmp eax, 0x103
sete bl
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001876b
xor ebx, ebx
cmp eax, 2
cmovne esi, ebx
mov ebx, esi
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x50]
call fcn.14000ba00
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14018e5d0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140019750
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push rdi
sub rsp, 0x6a0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x6c0], rbx
mov rax, qword [0x140260d50]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov rdi, rdx
mov rbx, rcx
xor r8d, r8d
lea rdx, str.DeleteLanguageMonitor
lea rcx, [rsp + 0x40]
call fcn.14000b870
nop
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rdi
mov r9, rbx
lea r8, str.lpszFile___s__lpszMon___s__bDebug___d
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.14000ba50
call fcn.14000cc50
cmp eax, 0xa
jne 0x1400197d8
call fcn.14000fc40
lea rcx, str.SPOOLER
call fcn.14000fe40
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WINSPOOL.DRV_DeleteMonitorW]
test eax, eax
jne 0x140019819
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x40]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x40]
call fcn.14000ba00
xor eax, eax
jmp 0x1400199c8
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.140193010
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov r9, rbx
lea r8, [rsp + 0x60]
cmp word [rsp + rcx*2 + 0x5e], 0x5c
lea rcx, [rsp + 0x480]
lea rdx, str._s_s
jne 0x14001986f
lea rdx, [0x140212328]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140019989
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140019989
cmp eax, 3
je 0x140019989
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x270]
call fcn.140193010
mov edx, 0x104
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rcx, [rsp + 0x270]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r8, str.WININIT.INI
mov edx, 0x104
lea rcx, [rsp + 0x270]
call fcn.140191cac
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, rbx
je 0x140019989
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r9, [rsp + 0x270]
lea r8, [rsp + 0x480]
lea rdx, str.NULL
lea rcx, str.rename
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x140019989
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
mov r9d, eax
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x40]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x40]
call fcn.14000ba00
mov eax, ebx
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.14018e5d0
mov rbx, qword [rsp + 0x6c0]
add rsp, 0x6a0
pop rdi
ret
Function at 0x1400199f0
Capabilities:
Delete file
Get common file path

Disassembly:
push rdi
sub rsp, 0x480
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x4a0], rbx
mov rax, qword [0x140260d50]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rbx, rdx
mov rdi, rcx
xor r8d, r8d
lea rdx, str.DeleteOldVersionLanguageMonitor
lea rcx, [rsp + 0x30]
call fcn.14000b870
nop
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
mov r9, rdi
lea r8, str.lpszFile___s__lpszMon___s__bDebug___d
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.14000ba50
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WINSPOOL.DRV_DeleteMonitorW]
test eax, eax
jne 0x140019a74
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.140193010
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov r9, rdi
lea r8, [rsp + 0x50]
cmp word [rsp + rcx*2 + 0x4e], 0x5c
lea rcx, [rsp + 0x260]
lea rdx, str._s_s
jne 0x140019aca
lea rdx, [0x140212328]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
mov r9d, eax
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x30]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x30]
call fcn.14000ba00
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14018e5d0
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x480
pop rdi
ret
Function at 0x14001ab00
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x6b8], rbx
mov rax, qword [0x140260d50]
xor rax, rsp
mov qword [rbp + 0x590], rax
mov rbx, rcx
xor r8d, r8d
lea rdx, str.DeleteRegICMProfile
lea rcx, [rsp + 0x40]
call fcn.14000b870
nop
mov r9, rbx
lea r8, str.lpszFileName___s
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.14000ba50
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.140193010
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x170]
call fcn.140193010
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x380]
call fcn.140193010
test rbx, rbx
jne 0x14001abcc
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rbx + 2]
lea rcx, [rsp + 0x40]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x40]
call fcn.14000ba00
xor eax, eax
jmp 0x14001ad2e
lea r8, str.SOFTWAREMicrosoftWindows_NTCurrentVersionICMmntr
mov edx, 0x104
lea rcx, [rbp + 0x170]
call fcn.140190fb0
lea r8, str.SOFTWAREMicrosoftWindows_NTCurrentVersionICMprtr
mov edx, 0x104
lea rcx, [rbp + 0x380]
call fcn.140190fb0
mov rdx, rbx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, 0x5c
lea rcx, [rsp + 0x60]
call fcn.14018f7cc
test rax, rax
je 0x14001ac2d
lea rdx, [rax + 2]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
lea rdx, [rbp + 0x170]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x14001ac8e
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001ac8e
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
lea rdx, [rbp + 0x380]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001aced
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001aced
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, 1
lea r8, str.return___08x
lea edx, [r9 + 1]
lea rcx, [rsp + 0x40]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x40]
call fcn.14000ba00
mov eax, 1
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.14018e5d0
mov rbx, qword [rsp + 0x6b8]
add rsp, 0x6a0
pop rbp
ret
Function at 0x140023af0
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
xor r8d, r8d
lea rdx, str.Tool_GetProcType64
lea rcx, [rsp + 0x28]
call fcn.14000b870
nop
xor ebx, ebx
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [rsp + 0x38]
cmp eax, 6
je 0x140023b3a
add eax, 0xfffffff7
cmp eax, 1
ja 0x140023b3f
mov ebx, 2
jmp 0x140023b3f
mov ebx, 1
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x28]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x28]
call fcn.14000ba00
mov eax, ebx
add rsp, 0x70
pop rbx
ret
Function at 0x140029be0
Capabilities:
Delete registry key

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
xor r8d, r8d
lea rdx, str.Tool_CleanupCAPModuleAndRegistry
lea rcx, [rsp + 0x28]
call fcn.14000b870
nop
mov edi, 1
call fcn.14004cde4
mov r11, rax
xor ebp, ebp
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x140029c39
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
lea rdx, str.SOFTWARECANON_
test rdx, 0xffffffffffff0000
jne 0x140029c7c
movzx esi, dx
mov ecx, esi
call fcn.14004cbb8
test rax, rax
je 0x140029c91
mov r8d, esi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400012a0
jmp 0x140029c8c
mov r8d, 0xf
lea rcx, [rsp + 0x50]
call fcn.1400014d0
mov rbx, qword [rsp + 0x50]
xor ecx, ecx
call fcn.14002ba30
test eax, eax
cmove edi, ebp
mov rcx, 0xffffffff80000001
call fcn.14002a090
test eax, eax
cmove edi, ebp
mov rcx, 0xffffffff80000002
call fcn.14002a090
test eax, eax
cmove edi, ebp
call fcn.14002a390
test eax, eax
cmove edi, ebp
mov rdx, rbx
mov rcx, 0xffffffff80000001
call fcn.140018670
test eax, eax
je 0x140029cec
mov rdx, rbx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov r9d, edi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x28]
call fcn.14000ba50
nop
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140029d23
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
lea rcx, [rsp + 0x28]
call fcn.14000ba00
mov eax, edi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14002b870
Capabilities:
Check if file exists
Delete file
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x4a8
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x140260d50]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov rbp, r9
mov r12, r8
mov rdi, rdx
mov rbx, rcx
xor r8d, r8d
lea rdx, str.Tool_DeleteSMModule
lea rcx, [rsp + 0x58]
call fcn.14000b870
nop
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rdi
mov r9, rbx
lea r8, str.pRegRoot___s__pSubKey___s__pValueName___s__pModuleName___s
mov esi, 1
mov edx, esi
lea rcx, [rsp + 0x58]
call fcn.14000ba50
xor r13d, r13d
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x50], 0x104
mov dword [rsp + 0x70], r13d
xor edx, edx
mov r8d, 0x204
lea rcx, [rsp + 0x74]
call fcn.140193010
mov dword [rsp + 0x280], r13d
xor edx, edx
mov r8d, 0x204
lea rcx, [rsp + 0x284]
call fcn.140193010
mov rdx, rbx
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, rdi
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r11, [rsp + 0x48]
mov qword [rsp + 0x20], r11
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x280]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002b9e3
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, r12
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002b9d8
mov rdx, rbp
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14002b9d8
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
cmove esi, r13d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, esi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x58]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x58]
call fcn.14000ba00
mov eax, esi
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.14018e5d0
add rsp, 0x4a8
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14002ba30
Capabilities:
Delete registry key

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov rsi, rcx
xor r8d, r8d
lea rdx, str.Tool_DeletePSWRegistry
lea rcx, [rsp + 0x28]
call fcn.14000b870
nop
mov r9, rsi
lea r8, str.lpszPrinter___s
mov edx, 1
lea rcx, [rsp + 0x28]
call fcn.14000ba50
call fcn.140050920
mov rbp, qword [rax + 8]
xor edi, edi
call fcn.14004cde4
mov r11, rax
mov ecx, edi
test rax, rax
setne cl
test ecx, ecx
jne 0x14002baa9
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rdx, str.SOFTWARECANON_
test rdx, 0xffffffffffff0000
jne 0x14002baec
movzx ebx, dx
mov ecx, ebx
call fcn.14004cbb8
test rax, rax
je 0x14002bafd
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400012a0
jmp 0x14002bafd
mov r8d, 0xf
lea rcx, [rsp + 0x58]
call fcn.1400014d0
nop
mov rdx, qword [rbp + 0x800]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x58]
call fcn.140006350
test rsi, rsi
je 0x14002bb30
mov r9, rsi
mov r8, qword [rsp + 0x58]
lea rdx, str._s_s
lea rcx, [rsp + 0x58]
call fcn.140006620
mov rbx, qword [rsp + 0x58]
mov rdx, rbx
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x14002bb4e
cmp eax, 2
jne 0x14002bb53
mov edi, 1
mov r9d, edi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x28]
call fcn.14000ba50
nop
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14002bb8a
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
lea rcx, [rsp + 0x28]
call fcn.14000ba00
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14002bde0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x690
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x6c8], rbx
mov rax, qword [0x140260d50]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov r12, r8
mov edi, edx
mov rsi, rcx
xor r8d, r8d
lea rdx, str.Tool_GetDriverColorProfilesReg
lea rcx, [rsp + 0x40]
call fcn.14000b870
nop
mov dword [rsp + 0x20], edi
mov r9, rsi
lea r8, str.lpcDriverName___s__cVer___08x
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.14000ba50
test rsi, rsi
jne 0x14002be6b
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rsi + 2]
lea rcx, [rsp + 0x40]
call fcn.14000ba50
nop
jmp 0x14002bfbd
xor ebx, ebx
mov word [rsp + 0x60], bx
xor edx, edx
mov r8d, 0x616
lea rcx, [rsp + 0x62]
call fcn.140193010
mov qword [rsp + 0x20], rsi
lea r8, str._s_s
mov edx, 0x30c
lea rcx, [rsp + 0x60]
cmp edi, 3
je 0x14002beab
cmp edi, 5
lea r9, str.SystemCurrentControlSetControlPrintEnvironmentsWindows_x64DriversVersion_3
je 0x14002beb2
lea r9, str.SystemCurrentControlSetControlPrintEnvironmentsWindows_NT_x86DriversVersion_3
call fcn.140191178
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x34], 7
mov dword [rsp + 0x30], ebx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002bfa4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.ColorProfiles
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002bf94
cmp dword [rsp + 0x30], ebx
jbe 0x14002bf94
mov ecx, dword [rsp + 0x30]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14004cab4
mov rdi, rax
test rax, rax
je 0x14002bf90
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.ColorProfiles
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002bf87
mov rdx, r12
mov rcx, rdi
call fcn.14002bff0
mov rcx, rdi
call fcn.14004cabc
nop
jmp 0x14002bf94
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], rbx
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x40]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x40]
call fcn.14000ba00
xor eax, eax
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.14018e5d0
mov rbx, qword [rsp + 0x6c8]
add rsp, 0x690
pop r12
pop rdi
pop rsi
ret
Function at 0x140034d40
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x140260d50]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor ebp, ebp
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x140034e05
mov r8, rdx
mov ecx, 0x1f0001
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
je 0x140034d98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [rbp + 1]
jmp 0x140034e07
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140034daa
mov eax, 2
jmp 0x140034e07
cmp edi, 1
jne 0x140034e05
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], bp
call fcn.140193010
lea rdx, str.Global_
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov r11, qword [rsi]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov rcx, rsi
call qword [r11 + 0x220]
test eax, eax
je 0x140034e07
bts eax, 0x1f
jmp 0x140034e07
mov eax, ebp
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14018e5d0
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret

Function at 0x140034e30
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x140260d50]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rcx, [rsp + 0x22]
xor edi, edi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], di
call fcn.140193010
lea rdx, str.Global_
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str.gh_Canon_OIP_PrinterDriverCommonMutex
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r8, [rsp + 0x20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
test rax, rax
je 0x140034eb9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140034edf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14018e5d0
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
cmp eax, 5
je 0x140034eb0
mov eax, edi
jmp 0x140034ebe