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

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov edi, ecx
xor r8d, r8d
lea rdx, str.Tool_ShoutCutCreateFolder
lea rcx, [rsp + 0x28]
call fcn.140017fc0
nop
mov r9d, edi
lea r8, str.nFolder___d
mov edx, 1
lea rcx, [rsp + 0x28]
call fcn.140017c80
mov ecx, 0x208
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbx, rax
test rax, rax
jne 0x14000d046
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
lea r8, str.return___s
lea edx, [rbx + 2]
lea rcx, [rsp + 0x28]
call fcn.140017c80
nop
lea rcx, [rsp + 0x28]
call fcn.140018150
xor eax, eax
jmp 0x14000d0e0
lea r8, [rsp + 0x58]
mov edx, edi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edi, eax
mov rdx, rbx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x14000d072
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
jne 0x14000d0b9
cmp qword [rsp + 0x58], 0
je 0x14000d0b9
xor edi, edi
mov qword [rsp + 0x60], rdi
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x14000d0b9
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000d0b9
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x58]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x58], rdi
mov r9, rbx
lea r8, str.return___s
mov edx, 2
lea rcx, [rsp + 0x28]
call fcn.140017c80
nop
lea rcx, [rsp + 0x28]
call fcn.140018150
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14000d3c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov esi, ecx
xor r8d, r8d
lea rdx, str.CheckConIme
lea rcx, [rsp + 0x40]
call fcn.140017fc0
nop
mov r9d, esi
lea r8, str.nMode___d
mov ebx, 1
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140017c80
mov dword [rsp + 0x78], 0
xor edi, edi
call fcn.140054cb8
mov rbp, qword [rax + 8]
mov dword [rbp + 0xa88], edi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.Console
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000d50b
mov dword [rsp + 0x88], 4
mov dword [rsp + 0x80], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str.LoadConIme
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000d4fc
mov dword [rsp + 0x80], 4
test esi, esi
je 0x14000d4bb
cmp dword [rsp + 0x78], edi
je 0x14000d4bf
mov dword [rsp + 0x78], edi
mov edi, ebx
jmp 0x14000d4bf
mov dword [rsp + 0x78], ebx
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.LoadConIme
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000d4fc
test edi, edi
je 0x14000d4fe
mov dword [rbp + 0xa88], ebx
jmp 0x14000d4fe
xor ebx, ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000d50d
xor ebx, ebx
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x40]
call fcn.140017c80
nop
lea rcx, [rsp + 0x40]
call fcn.140018150
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000d550
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x238]
sub rsp, 0x330
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rbp + 0x220], rax
xor r8d, r8d
lea rdx, str.Tool_DIASDeleteService
lea rcx, [rsp + 0x68]
call fcn.140017fc0
nop
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, str.SOFTWARECanonDIASSETUP
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000d5ed
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x68]
call fcn.140017c80
nop
lea rcx, [rsp + 0x68]
call fcn.140018150
xor eax, eax
jmp 0x14000d76b
mov dword [rsp + 0x60], 0x208
mov dword [rsp + 0x50], 1
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.Path
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
test eax, eax
je 0x14000d663
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x68]
call fcn.140017c80
nop
lea rcx, [rsp + 0x68]
call fcn.140018150
xor eax, eax
jmp 0x14000d76b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x60]
call fcn.140192cb0
xor r11d, r11d
mov qword [rbp - 0x80], r11
mov qword [rbp - 0x78], r11
mov qword [rbp - 0x70], r11
mov dword [rbp - 0x60], 0x68
mov dword [rbp - 0x24], 1
xor ebx, ebx
mov word [rbp - 0x20], bx
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rbp + rcx*2 + 0xe], 0x5c
je 0x14000d6c1
lea rdx, [0x1401c7444]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.CnxDIAS.EXE
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r11, [rbp - 0x80]
mov qword [rsp + 0x48], r11
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.__remove
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
mov rbx, qword [rbp - 0x80]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x14000d73c
lea rdx, [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, edi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x68]
call fcn.140017c80
nop
lea rcx, [rsp + 0x68]
call fcn.140018150
mov eax, edi
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1401945b0
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14000d7a0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x290
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x2c0], rbx
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov ebp, edx
mov qword [rsp + 0x40], rcx
xor r8d, r8d
lea rdx, str.Tool_DeleteRegValueOfPortSetUserID
lea rcx, [rsp + 0x50]
call fcn.140017fc0
nop
mov r9d, ebp
lea r8, str.bDeleteKey___d
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140017c80
xor ebx, ebx
mov esi, ebx
call fcn.140054cb8
mov rdi, qword [rax + 8]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
jne 0x14000d876
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x2011f
xor r8d, r8d
lea rdx, str.SOFTWARECanonPortSetPortSetUser
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea esi, [rbx + 1]
test eax, eax
je 0x14000d871
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rbx + 2]
lea rcx, [rsp + 0x50]
call fcn.140017c80
nop
lea rcx, [rsp + 0x50]
call fcn.140018150
xor eax, eax
jmp 0x14000d91f
mov rcx, qword [rsp + 0x40]
test ebp, ebp
jne 0x14000d8b2
mov dword [rsp + 0x48], 0x104
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x70]
lea edx, [rbp + 1]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14000d8ea
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi + 0x1b8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000d8ea
mov rdx, qword [rdi + 0x1b8]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, 1
test esi, esi
je 0x14000d8f9
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.140017c80
nop
lea rcx, [rsp + 0x50]
call fcn.140018150
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1401945b0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000da40
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rsi, rdx
mov ebx, ecx
xor r8d, r8d
lea rdx, str.Tool_GetSpecialFolder
lea rcx, [rsp + 0x38]
call fcn.140017fc0
nop
mov r9d, ebx
lea r8, str.nCsidl___d
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140017c80
xor edi, edi
lea r8, [rsp + 0x70]
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x14000dadc
mov rdx, rsi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edi, eax
lea rcx, [rsp + 0x78]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x14000dadc
mov rcx, qword [rsp + 0x78]
mov r8, qword [rcx]
mov rdx, qword [rsp + 0x70]
call qword [r8 + 0x28]
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov dword [rsp + 0x20], edi
mov r9, rsi
lea r8, str.lpPath___s__return___08x
mov edx, 2
lea rcx, [rsp + 0x38]
call fcn.140017c80
nop
lea rcx, [rsp + 0x38]
call fcn.140018150
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14000dbc0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x7e8]
sub rsp, 0x8e0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
mov rsi, rcx
xor r8d, r8d
lea rdx, str.Tool_DeleteFileInFolder
lea rcx, [rsp + 0x30]
call fcn.140017fc0
nop
mov r9, rsi
lea r8, str.lpszDirectory___s
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140017c80
xor ebx, ebx
test rsi, rsi
je 0x14000dda1
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x5c0]
call fcn.140192cb0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1a0]
call fcn.140192cb0
mov rdx, rsi
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r8, [rbp + 0x1a0]
lea rdx, [0x1401ca470]
lea rcx, [rbp + 0x5c0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x5c0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000dda1
lea rdx, [0x1401ca468]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14000dd74
lea rdx, [0x1401ca460]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14000dd74
mov eax, dword [rsp + 0x50]
test al, 0x10
jne 0x14000dd36
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x20], rax
lea r9, [0x1401c9460]
or r8, 0xffffffffffffffff
mov edx, 0x104
lea rcx, [rbp + 0x3b0]
call fcn.140196124
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [rsp + 0x50]
test al, 0x10
je 0x14000dd74
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x20], rax
lea r9, [0x1401c9460]
or r8, 0xffffffffffffffff
mov edx, 0x104
lea rcx, [rbp + 0x3b0]
call fcn.140196124
lea rcx, [rbp + 0x3b0]
call fcn.14000dbc0
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000dcb3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x30]
call fcn.140017c80
nop
lea rcx, [rsp + 0x30]
call fcn.140018150
mov eax, ebx
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.1401945b0
lea r11, [rsp + 0x8e0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14000e0d0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x8c0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
xor r8d, r8d
lea rdx, str.Tool_CheckTempUninstaller
lea rcx, [rsp + 0x50]
call fcn.140017fc0
nop
xor ebx, ebx
mov word [rsp + 0x70], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x72]
call fcn.140192cb0
mov word [rsp + 0x6a0], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x6a2]
call fcn.140192cb0
mov word [rsp + 0x490], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x492]
call fcn.140192cb0
mov word [rsp + 0x280], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x282]
call fcn.140192cb0
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0x104
lea r9, [rsp + 0x490]
mov r8d, 0x104
lea rdx, [rsp + 0x6a0]
lea rcx, [rsp + 0x70]
call fcn.1401967f4
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x490]
lea r8, [rsp + 0x6a0]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.14019669c
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, [rsp + 0x280]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, [rsp + 0x280]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov r9d, ebx
lea r8, str.return___08x
lea edx, [rcx + 1]
lea rcx, [rsp + 0x50]
call fcn.140017c80
nop
lea rcx, [rsp + 0x50]
call fcn.140018150
mov eax, ebx
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.1401945b0
add rsp, 0x8c0
pop rbx
ret
Function at 0x14000e280
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x470
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor r8d, r8d
lea rdx, str.Tool_DeleteTempUninstaller
lea rcx, [rsp + 0x20]
call fcn.140017fc0
nop
call fcn.140054cb8
mov rbx, qword [rax + 8]
mov edi, 1
xor esi, esi
mov word [rsp + 0x250], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x252]
call fcn.140192cb0
mov word [rsp + 0x40], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x42]
call fcn.140192cb0
cmp dword [rbx + 0x780], esi
je 0x14000e3b2
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r9, str.UNINSTAL.tmp
lea r8, [rsp + 0x40]
lea rdx, str._s_s
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
lea edx, [rdi + 0x7f]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8d, 0x104
lea rdx, [rsp + 0x250]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x250]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000e3b2
lea r8d, [rdi + 1]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14000e3b0
xor edx, edx
lea r8d, [rdi + 3]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x14000e3b2
mov edi, esi
mov r9d, edi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x20]
call fcn.140017c80
nop
lea rcx, [rsp + 0x20]
call fcn.140018150
mov eax, edi
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1401945b0
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14000e410
Capabilities:
Enumerate files on windows

Disassembly:
push rdi
sub rsp, 0x6c0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x6d8], rbx
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rsp + 0x6b0], rax
mov rdi, rcx
xor r8d, r8d
lea rdx, str.Tool_GetFileCountInFolder
lea rcx, [rsp + 0x20]
call fcn.140017fc0
nop
mov r9, rdi
lea r8, str.lpszDirectory___s
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.140017c80
xor ebx, ebx
test rdi, rdi
jne 0x14000e47c
or ebx, 0xffffffff
jmp 0x14000e549
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x4a0]
call fcn.140192cb0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x290]
call fcn.140192cb0
mov rdx, rdi
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x290]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r8, [rsp + 0x290]
lea rdx, [0x1401ca470]
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000e549
nop
lea rdx, [0x1401ca468]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14000e52e
lea rdx, [0x1401ca460]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14000e52e
inc ebx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000e500
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x20]
call fcn.140017c80
nop
lea rcx, [rsp + 0x20]
call fcn.140018150
mov eax, ebx
mov rcx, qword [rsp + 0x6b0]
xor rcx, rsp
call fcn.1401945b0
mov rbx, qword [rsp + 0x6d8]
add rsp, 0x6c0
pop rdi
ret
Function at 0x14000f730
Capabilities:
Query service status

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r8d, r8d
lea rdx, str.Tool_GetSpoolerServiceStatus
lea rcx, [r11 - 0x50]
call fcn.140017fc0
nop
call fcn.140054cb8
mov rcx, qword [rax + 8]
call fcn.14005f510
nop
xor edi, edi
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x14000f80f
lea r8d, [rdi + 4]
lea rdx, str.SPOOLER
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x14000f7f6
mov ebx, edi
nop word [rax + rax]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 1
je 0x14000f7e7
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jb 0x14000f7c0
jmp 0x14000f7eb
mov edi, dword [rsp + 0x44]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000f806
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x424
cmp eax, ecx
cmove edi, ecx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r9d, edi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x28]
call fcn.140017c80
nop
lea rcx, [rsp + 0x20]
call fcn.1400183d0
nop
lea rcx, [rsp + 0x28]
call fcn.140018150
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401945b0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000f870
Capabilities:
Query service status

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
xor r8d, r8d
lea rdx, str.GetServiceStartAndStopStatus
lea rcx, [r11 - 0x50]
call fcn.140017fc0
nop
mov r9, rbx
lea r8, str.lpszService___s
mov edx, 1
lea rcx, [rsp + 0x28]
call fcn.140017c80
call fcn.140054cb8
mov rcx, qword [rax + 8]
call fcn.14005f510
nop
xor edi, edi
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x14000f962
lea r8d, [rdi + 4]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x14000f949
mov ebx, edi
nop
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 1
je 0x14000f93a
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x96
jb 0x14000f910
jmp 0x14000f93e
mov edi, dword [rsp + 0x44]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000f959
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x424
cmp eax, ecx
cmove edi, ecx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r9d, edi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x28]
call fcn.140017c80
nop
lea rcx, [rsp + 0x20]
call fcn.1400183d0
nop
lea rcx, [rsp + 0x28]
call fcn.140018150
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401945b0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14000f9c0
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x290
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor r8d, r8d
lea rdx, str.Tool_DeleteRegOfPortSetUserID
lea rcx, [rsp + 0x50]
call fcn.140017fc0
nop
xor ebx, ebx
call fcn.140054cb8
lea r11, [rsp + 0x40]
mov qword [rsp + 0x20], r11
mov r9d, 0x2011f
xor r8d, r8d
lea rdx, str.SOFTWARECanonPortSetPortSetUser
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000fa95
lea edx, [rbx + 1]
mov rcx, qword [rsp + 0x40]
call fcn.14000d7a0
mov dword [rsp + 0x48], 0x104
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x14000fa88
lea rdx, str.SOFTWARECanonPortSetPortSetUser
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000fa9a
mov ebx, 1
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.140017c80
nop
lea rcx, [rsp + 0x50]
call fcn.140018150
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1401945b0
add rsp, 0x290
pop rbx
ret