joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b870
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
push r12
sub rsp, 0x48
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rdi, rdx
mov rbx, rcx
mov dword [rcx + 8], 1
xor esi, esi
mov qword [rcx], rsi
cmp dword [0x140280b50], esi
jne 0x14000b8b0
call fcn.14000bc40
cmp dword [0x140280b4c], esi
jne 0x14000b8c0
cmp dword [0x1402645e4], esi
je 0x14000b92b
mov ecx, 0x800
call fcn.14004cab4
mov qword [rbx], rax
test rax, rax
je 0x14000b923
xor edx, edx
mov r8d, 0x800
mov rcx, rax
call fcn.140193010
mov r11, qword [rbx]
mov ecx, 0x7ffffffe
mov edx, 0x400
mov r8, rsi
test rdx, rdx
je 0x14000b91b
test rcx, rcx
je 0x14000b91f
movzx eax, word [rdi]
test ax, ax
je 0x14000b91f
mov word [r11], ax
add r11, 2
add rdi, 2
dec rdx
dec rcx
inc r8
jmp 0x14000b8f2
sub r11, 2
mov word [r11], si
cmp dword [0x140280b4c], esi
jne 0x14000b940
mov dword [rsp + 0x20], esi
lea rdx, [0x140256bd8]
lea rcx, [rsp + 0x20]
call fcn.140192de0
cmp qword [rsp + 0x80], rsi
jne 0x14000b960
lea r8, [0x1402145dc]
mov edx, 1
mov rcx, rbx
call fcn.14000ba50
jmp 0x14000b9df
mov qword [rsp + 0x30], rsi
lea r12, [rsp + 0x88]
mov ecx, 0x800
call fcn.14004cab4
mov rdi, rax
test rax, rax
je 0x14000b9d1
mov r9, r12
mov r8, qword [rsp + 0x80]
mov edx, 0x3ff
mov rcx, rax
call fcn.1401919e8
test eax, eax
js 0x14000b9c0
cdqe
cmp rax, 0x3ff
ja 0x14000b9c0
jne 0x14000b9ae
mov word [rdi + 0x7fe], si
mov r8, rdi
mov edx, 1
mov rcx, rbx
call fcn.14000ba50
jmp 0x14000b9c7
mov word [rdi + 0x7fe], si
mov rcx, rdi
call fcn.14004cabc
jmp 0x14000b9df
lea rcx, str.____logging_Error__
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
jmp 0x14000b9e6
mov rax, rbx
add rsp, 0x48
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000ba50
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x58
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov ebx, edx
mov r13, rcx
xor r14d, r14d
mov r12d, r14d
mov esi, r14d
mov qword [rsp + 0x38], r14
test edx, edx
je 0x14000bab6
cmp edx, 2
jbe 0x14000baa4
cmp edx, 7
ja 0x14000bab6
cmp dword [0x140280b4c], 2
jne 0x14000bab6
mov ecx, 1
mov r12d, ecx
jmp 0x14000babb
mov ecx, 1
cmp dword [0x140280b4c], 0
cmovne r12d, ecx
jmp 0x14000babb
mov ecx, 1
cmp edx, 3
je 0x14000baee
cmp edx, 4
je 0x14000badd
jbe 0x14000bafc
cmp edx, 6
ja 0x14000bafc
mov eax, dword [0x1402645e4]
and eax, 1
cmp al, 1
jne 0x14000bafc
mov esi, ecx
jmp 0x14000bafc
mov eax, dword [0x1402645e4]
and eax, 2
cmp al, 2
jne 0x14000bafc
mov esi, ecx
jmp 0x14000bafc
movzx eax, byte [0x1402645e4]
and al, 4
cmp al, 4
cmove esi, ecx
test r12d, r12d
jne 0x14000bb1b
test esi, esi
jne 0x14000bb1b
mov dword [rsp + 0x30], r14d
lea rdx, [0x140256c30]
lea rcx, [rsp + 0x30]
call fcn.140192de0
test r8, r8
je 0x14000bb83
mov qword [rsp + 0x48], r14
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
mov rdx, qword [r13]
mov ecx, ebx
call fcn.14000be30
mov rdi, rax
test rax, rax
je 0x14000bb83
test r12d, r12d
je 0x14000bb6d
mov rcx, rax
cmp dword [0x140280b54], 0
je 0x14000bb67
mov rdx, qword [rsp + 0x38]
call fcn.14000c550
jmp 0x14000bb6d
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test esi, esi
je 0x14000bb7b
mov rdx, rdi
mov ecx, ebx
call fcn.14000c340
mov rcx, rdi
call fcn.14004cabc
cmp ebx, 2
jne 0x14000bb8c
mov dword [r13 + 8], r14d
add rsp, 0x58
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000bc40
Capabilities:
Get common file path
Read .ini file

Disassembly:
push rbx
sub rsp, 0x460
mov rax, qword [0x140260d50]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x208
call fcn.140193010
lea rdx, [rsp + 0x240]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rsp + 0x240]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r11, str.Uninst.ini
lea rax, [rsp + 0x240]
mov qword [rsp + 0x28], r11
lea r9, [0x140212328]
lea rcx, [rsp + 0x30]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.14019119c
lea r9, [rsp + 0x30]
lea rdx, str.LOG_LEVEL_DEBUG
lea rcx, str.Debug_Info
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, 1
mov dword [0x140280b4c], eax
cmp eax, ebx
je 0x14000bcf1
cmp eax, 2
jne 0x14000bd6c
lea r9, [rsp + 0x30]
lea rdx, str.LOG_USEFILE
lea rcx, str.Debug_Info
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x14000bd6c
lea r9, [rsp + 0x30]
lea rdx, str.LOG_USEFILE_DIVSIZE
lea rcx, str.Debug_Info
mov r8d, 0x1400000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea r9, [rsp + 0x30]
lea rdx, str.LOG_USEFILE_MAXCOUNT
lea rcx, str.Debug_Info
mov r8d, 0xa
mov dword [0x140280b58], eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [0x140280b54]
test eax, eax
mov dword [0x140280b5c], eax
cmovne ecx, ebx
mov dword [0x140280b54], ecx
lea r9, [rsp + 0x30]
lea rdx, str.LOG_LEVEL_EVENT
lea rcx, str.Debug_Info
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea r9, [rsp + 0x30]
lea rdx, str.LOG_USEMINIDUMP
lea rcx, str.Debug_Info
xor r8d, r8d
mov dword [0x1402645e4], eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x14000be06
lea r9, [rsp + 0x30]
lea rdx, str.LOG_USEMINIDUMP_TYPE
lea rcx, str.Debug_Info
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea r9, [rsp + 0x30]
lea rdx, str.LOG_USEMINIDUMP_MAXCOUNT
lea rcx, str.Debug_Info
mov r8d, 0xa
mov dword [0x140280b68], eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [0x140280b64]
test eax, eax
mov dword [0x140280b6c], eax
cmovne ecx, ebx
mov dword [0x140280b64], ecx
mov dword [0x140280b50], ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14018e5d0
add rsp, 0x460
pop rbx
ret
Function at 0x14000c340
Capabilities:
Access the windows event log
Get token privileges

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x80
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r12d, ecx
xor r13d, r13d
mov qword [rax + 0x20], r13
mov qword [rsp + 0x60], r13
mov dword [rax + 0x18], r13d
lea esi, [r13 + 4]
lea rdx, str.BaseInstaller
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x14000c3af
mov dword [rsp + 0x50], 0x80004005
lea rdx, [0x140256c30]
lea rcx, [rsp + 0x50]
call fcn.140192de0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rsp + 0xc8]
mov r14d, 1
mov r8d, r14d
mov edx, 0x20008
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x14000c411
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0xc8]
mov edx, 0x20008
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14000c411
mov dword [rsp + 0x54], 0x80004005
lea rdx, [0x140256c30]
lea rcx, [rsp + 0x54]
call fcn.140192de0
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xc0]
xor r8d, r8d
mov edx, r14d
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [rsp + 0xc0]
call fcn.14004cab4
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x14000c46c
mov dword [rsp + 0x58], 0x80004005
lea rdx, [0x140256c30]
lea rcx, [rsp + 0x58]
call fcn.140192de0
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xc0]
mov r8, rbx
mov edx, r14d
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r11, qword [rbx]
cmp r12d, 3
je 0x14000c4b7
cmp r12d, 4
je 0x14000c4b2
jbe 0x14000c4b7
cmp r12d, 6
ja 0x14000c4b7
movzx esi, r14w
jmp 0x14000c4b7
mov esi, 2
xor r8d, r8d
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r13d
mov word [rsp + 0x28], r14w
mov qword [rsp + 0x20], r11
mov r9d, 0x99999999
movzx edx, si
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
nop
jmp 0x14000c4fb
test rdi, rdi
je 0x14000c509
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
test rbx, rbx
je 0x14000c516
mov rcx, rbx
call fcn.14004cabc
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x14000c529
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14000ca50
Capabilities:
Create directory
Get common file path

Disassembly:
mov r11, rsp
push r12
sub rsp, 0xb0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x140260d50]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rdi, rcx
mov esi, 1
mov r12d, 0x104
xor ebx, ebx
mov qword [r11 - 0x80], rbx
mov dword [r11 - 0x74], r12d
mov rax, qword [str.Canon]
mov qword [r11 - 0x68], rax
mov eax, dword [0x140212518]
mov dword [rsp + 0x58], eax
xor eax, eax
mov qword [r11 - 0x5c], rax
mov qword [r11 - 0x54], rax
mov qword [r11 - 0x4c], rax
mov dword [rsp + 0x74], eax
mov rax, qword [str.BaseInstaller]
mov qword [r11 - 0x40], rax
mov rax, qword [0x140212448]
mov qword [r11 - 0x38], rax
mov rax, qword [0x140212450]
mov qword [r11 - 0x30], rax
mov eax, dword [reloc.OLEAUT32.dll_VarBstrFromDisp]
mov dword [r11 - 0x28], eax
xor eax, eax
mov qword [r11 - 0x24], rax
mov dword [r11 - 0x1c], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x38]
lea edx, [rsi + 7]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14000cb2b
mov dword [rsp + 0x34], 0x80004005
lea rdx, [0x140256c30]
lea rcx, [rsp + 0x34]
call fcn.140192de0
lea r8, [rsp + 0x44]
mov rdx, rdi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x14000cb60
mov dword [rsp + 0x40], 0x80004005
lea rdx, [0x140256c30]
lea rcx, [rsp + 0x40]
call fcn.140192de0
nop dword [rax + rax]
cmp ebx, 2
jge 0x14000cb9a
movsxd rax, ebx
lea rcx, [rax + rax*4]
lea rax, [rsp + rcx*8 + 0x50]
mov edx, r12d
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, str._s_s
mov rcx, rdi
call fcn.14000b7f0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
inc ebx
jmp 0x14000cb60
jmp 0x14000cba0
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000cbb0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14018e5d0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x14000e330
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 [0x140260d50]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r8d, r8d
lea rdx, str.Tool_GetSpoolerServiceStatus
lea rcx, [r11 - 0x50]
call fcn.14000b870
nop
call fcn.140050920
mov rcx, qword [rax + 8]
call fcn.140059edc
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 0x14000e40f
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 0x14000e3f6
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 0x14000e3e7
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jb 0x14000e3c0
jmp 0x14000e3eb
mov edi, dword [rsp + 0x44]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000e406
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.14000ba50
nop
lea rcx, [rsp + 0x20]
call fcn.14000b6e0
nop
lea rcx, [rsp + 0x28]
call fcn.14000ba00
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14018e5d0
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 0x14000f2d0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x438]
sub rsp, 0x530
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x140260d50]
xor rax, rsp
mov qword [rbp + 0x420], rax
xor r8d, r8d
lea rdx, str.VDCUDeleteService
lea rcx, [rsp + 0x60]
call fcn.14000b870
nop
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x210]
call fcn.140193010
lea rdx, str.SOFTWARECanonVDCSETUP
lea rcx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea r11, [rsp + 0x58]
mov qword [rsp + 0x20], r11
mov r9d, 0x20119
xor r8d, r8d
lea rdx, [rbp + 0x210]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000f395
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x60]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x60]
call fcn.14000ba00
xor eax, eax
jmp 0x14000f4fb
mov dword [rsp + 0x54], 0x208
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rbp]
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 0x14000f403
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x60]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x60]
call fcn.14000ba00
xor eax, eax
jmp 0x14000f4fb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x70]
call fcn.140193010
xor r11d, r11d
mov qword [rsp + 0x70], r11
mov qword [rsp + 0x78], r11
mov qword [rbp - 0x80], r11
mov dword [rbp - 0x70], 0x68
mov dword [rbp - 0x34], 1
xor ebx, ebx
mov word [rbp - 0x30], bx
lea rdx, [0x14021120c]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.AuVdc.exe
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r11, [rsp + 0x70]
mov qword [rsp + 0x48], r11
lea rax, [rbp - 0x70]
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]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 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 0x14000f4cc
lea rdx, [rsp + 0x50]
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 + 0x60]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x60]
call fcn.14000ba00
mov eax, edi
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.14018e5d0
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14000f520
Capabilities:
Query service status
Start service
Stop service

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x140260d50]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov ebp, ecx
xor r8d, r8d
lea rdx, str.Tool_VDCServiceStopAndStart
lea rcx, [r11 - 0x48]
call fcn.14000b870
nop
xor esi, esi
mov dword [rsp + 0x20], esi
mov r9d, ebp
lea r8, str.bVdcCtrl___d__bDebug___d
lea edx, [rsi + 1]
lea rcx, [rsp + 0x30]
call fcn.14000ba50
xor edx, edx
xor ecx, ecx
mov r8d, 0x20000000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14000f5c0
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rsi + 2]
lea rcx, [rsp + 0x30]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x30]
call fcn.14000ba00
xor eax, eax
jmp 0x14000f73a
mov r8d, 0xf01ff
lea rdx, str.Canon_NetSpot_Suite_Service
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14000f610
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rbx + 2]
lea rcx, [rsp + 0x30]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x30]
call fcn.14000ba00
xor eax, eax
jmp 0x14000f73a
mov rcx, rax
test ebp, ebp
je 0x14000f65a
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14000f6fd
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x30]
call fcn.14000ba50
nop
jmp 0x14000f6ef
lea rdx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14000f6a5
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x30]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x30]
call fcn.14000ba00
xor eax, eax
jmp 0x14000f73a
cmp dword [rsp + 0x4c], 1
je 0x14000f702
lea r8, [rsp + 0x48]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
cmp eax, 1
je 0x14000f6fd
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x30]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x30]
call fcn.14000ba00
xor eax, eax
jmp 0x14000f73a
mov esi, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r9d, esi
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, esi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14018e5d0
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 0x14000fc40
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rbx
mov eax, 0x1100
call fcn.140193d30
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x140260d50]
xor rax, rsp
mov qword [rsp + 0x10f0], rax
xor r8d, r8d
lea rdx, str.ServiceStopFromCmdLine
lea rcx, [rsp + 0x50]
call fcn.14000b870
nop
lea r9, str.SPOOLER
lea r8, str.lpszService___s
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.14000ba50
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0xf0]
call fcn.140193010
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x4f0]
call fcn.140193010
mov edx, 0x200
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r9, str.cmd.exe
lea r8, [rsp + 0xf0]
lea rdx, [0x140212328]
lea rcx, [rsp + 0x4f0]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0x80]
call fcn.140193010
mov dword [rsp + 0x80], VarBstrFromDisp
xor ebx, ebx
mov word [rsp + 0xc0], bx
mov dword [rsp + 0xbc], 1
lea r9, str.SPOOLER
lea r8, str._C_net_stop___s___Y
mov edx, 0x400
lea rcx, [rsp + 0x8f0]
call fcn.140191178
lea r11, [rsp + 0x60]
mov qword [rsp + 0x48], r11
lea rax, [rsp + 0x80]
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, [rsp + 0x8f0]
lea rcx, [rsp + 0x4f0]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x14000fdfa
mov edx, 0xea60
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.SPOOLER
lea rcx, str.SPOOLER
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14000fdfa
call fcn.140050920
mov rcx, qword [rax + 8]
mov dword [rcx + 0xa90], 1
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 + 0x10f0]
xor rcx, rsp
call fcn.14018e5d0
add rsp, 0x1100
pop rbx
ret
Function at 0x14000fe40
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rdi
mov eax, 0x1100
call fcn.140193d30
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x1118], rbx
mov rax, qword [0x140260d50]
xor rax, rsp
mov qword [rsp + 0x10f0], rax
mov rdi, rcx
xor r8d, r8d
lea rdx, str.ServiceStartFromCmdLine
lea rcx, [rsp + 0x50]
call fcn.14000b870
nop
mov r9, rdi
lea r8, str.lpszService___s
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.14000ba50
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0xf0]
call fcn.140193010
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x4f0]
call fcn.140193010
mov edx, 0x200
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r9, str.cmd.exe
lea r8, [rsp + 0xf0]
lea rdx, [0x140212328]
lea rcx, [rsp + 0x4f0]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0x80]
call fcn.140193010
mov dword [rsp + 0x80], VarBstrFromDisp
xor ebx, ebx
mov word [rsp + 0xc0], bx
mov dword [rsp + 0xbc], 1
mov r9, rdi
lea r8, str._C_net_start___s___Y
mov edx, 0x400
lea rcx, [rsp + 0x8f0]
call fcn.140191178
xor edx, edx
mov rcx, rdi
call fcn.1400106a0
lea r11, [rsp + 0x60]
mov qword [rsp + 0x48], r11
lea rax, [rsp + 0x80]
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, [rsp + 0x8f0]
lea rcx, [rsp + 0x4f0]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x14000ffeb
mov edx, 1
mov rcx, rdi
call fcn.1400106a0
mov ebx, eax
mov edx, 0xea60
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
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 + 0x10f0]
xor rcx, rsp
call fcn.14018e5d0
mov rbx, qword [rsp + 0x1118]
add rsp, 0x1100
pop rdi
ret