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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x14006b088]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov byte [rsp + 0x38], 1
mov qword [rsp + 0x20], 0x4a
lea r9, str.PIE_Migration::IsWixInstallerRunning
mov r8d, 0x2c
lea rdx, str.PIE_SERVICE_MIGRATION
lea rcx, [rbp - 0x50]
call fcn.140011450
lea rax, vtable.CTracePieServiceMigration.0
mov qword [rbp - 0x50], rax
xor esi, esi
mov ebx, esi
xor eax, eax
mov qword [rsp + 0x50], rax
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14006f728], eax
jle 0x140004ba4
lea rcx, [0x14006f728]
call fcn.14001e7b8
cmp dword [0x14006f728], 0xffffffff
jne 0x140004ba4
mov qword [0x14006f740], 0xffffffff80000002
lea rcx, [0x14003f890]
call fcn.14001ebe0
lea rcx, [0x14006f728]
call fcn.14001e758
lea r8, str.SOFTWAREWOW6432NodeMicrosoftWindowsCurrentVersionUninstall
lea rdx, [rsp + 0x50]
lea rcx, [0x14006f740]
call fcn.140015a00
nop
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rsi
mov word [rsp + 0x60], si
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rsi
mov word [rbp - 0x78], si
lea r9, [rsp + 0x60]
lea r8, str.991283B1_2A60_4F73_8C2A_0520A968E7CD
lea rdx, str.BundleUpgradeCode
lea rcx, [rsp + 0x50]
call fcn.140015df0
test eax, eax
jne 0x140004c93
xor eax, eax
mov qword [rbp - 0x80], rax
lea r8, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r8, qword [rsp + 0x60]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x50]
call fcn.140015a00
nop
mov dword [rsp + 0x58], 4
mov dword [rsp + 0x5c], esi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
xor r8d, r8d
lea rdx, str.Resume
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r9d, dword [rsp + 0x48]
lea r8, str.resume___d
mov edx, 4
lea rcx, [rbp - 0x50]
call fcn.140011590
nop
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, esi
cmp dword [rsp + 0x48], 1
sete bl
lea rcx, str.TRUE
lea rax, str.FALSE
test ebx, ebx
cmovne rax, rcx
mov qword [rsp + 0x20], rax
lea r9, str.result
lea r8, str.____returned__s___s
mov edx, 4
lea rcx, [rbp - 0x50]
call fcn.140011590
mov byte [rbp + 0x60], 1
mov r8, qword [rsp + 0x78]
cmp r8, 8
jb 0x140004ce9
inc r8
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.140008b70
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rsi
mov word [rsp + 0x60], si
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rax, vtable.CTracePie.0
mov qword [rbp - 0x50], rax
cmp byte [rbp + 0x61], 1
jne 0x140004d35
cmp byte [rbp + 0x60], 0
jne 0x140004d35
lea r8, [0x140056e3c]
mov edx, 5
lea rcx, [rbp - 0x50]
call fcn.140011590
nop
mov eax, ebx
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14001e5b0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140015a60
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x340
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x370], rbx
mov rax, qword [0x14006b088]
xor rax, rsp
mov qword [rsp + 0x330], rax
mov rsi, rdx
mov rdi, rcx
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x20], 0x40
lea r9, str.PIE_RegistryKey::GetSubKeyNames
mov r8d, 0x12
lea rdx, str.Reg_keys
lea rcx, [rsp + 0x70]
call fcn.140011450
lea rax, vtable.CTracePieCommonRegKeys.0
mov qword [rsp + 0x70], rax
xor ebp, ebp
mov ebx, ebp
mov dword [rsp + 0x68], 0xff
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x130]
mov edx, ebx
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc ebx
test eax, eax
jne 0x140015b92
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rbp
mov word [rsp + 0x40], bp
cmp word [rsp + 0x130], ax
jne 0x140015b30
mov r8, rbp
jmp 0x140015b4b
lea rax, [rsp + 0x130]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140015b40
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x40]
call fcn.140007f20
nop
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400160a0
nop
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x140015ad0
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140008b70
jmp 0x140015ad0
lea rax, vtable.CTracePie.0
mov qword [rsp + 0x70], rax
cmp byte [rsp + 0x121], 1
jne 0x140015bc9
cmp byte [rsp + 0x120], 0
jne 0x140015bc9
lea r8, [0x140056e3c]
mov edx, 5
lea rcx, [rsp + 0x70]
call fcn.140011590
nop
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
call fcn.14001e5b0
mov rbx, qword [rsp + 0x370]
add rsp, 0x340
pop rdi
pop rsi
pop rbp
ret
Function at 0x140015bf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov qword [r11 - 0x60], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x14006b088]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbp, r8
mov r15, rdx
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
xor eax, eax
mov qword [r11 - 0x48], rax
mov dword [rsp + 0x40], ebx
lea rax, [r11 - 0x58]
mov qword [r11 - 0x70], rax
mov qword [r11 - 0x78], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd rdi, dword [rsp + 0x40]
mov dword [rsp + 0x50], edi
mov rcx, rdi
call fcn.14001f158
mov r14, rax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x48], ebx
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov qword [r15 + 0x18], 7
mov qword [r15 + 0x10], rbx
cmp qword [r15 + 0x18], 8
jb 0x140015cac
mov rax, qword [r15]
jmp 0x140015caf
mov rax, r15
mov word [rax], bx
cmp word [r14], 0
je 0x140015ccb
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [r14 + rbx*2], 0
jne 0x140015cc0
mov r8, rbx
mov rdx, r14
mov rcx, r15
call fcn.140007f20
nop
lea rcx, [rsp + 0x50]
call fcn.140016060
mov rax, r15
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001e5b0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140015d10
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x120
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x14006b088]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rbx, rcx
mov dword [rsp + 0x48], 1
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x20], 0x34
lea r9, str.PIE_RegistryKey::SetValue
mov r8d, 0x12
lea rdx, str.Reg_keys
lea rcx, [rsp + 0x50]
call fcn.140011450
lea rax, vtable.CTracePieCommonRegKeys.0
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SystemComponent
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov dword [rsp + 0x20], eax
lea r9, str._DWORD_status
lea r8, str.____returned__s__0x_x
mov edx, 4
lea rcx, [rsp + 0x50]
call fcn.140011590
xor eax, eax
test ebx, ebx
sete al
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14001e5b0
add rsp, 0x120
pop rbx
ret
Function at 0x140015df0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x88]
sub rsp, 0x188
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x14006b088]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r12, r9
mov r15, r8
mov rsi, rdx
mov r13, rcx
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x20], 0x48
lea r9, str.PIE_RegistryKey::FindInstallPackage
mov r8d, 0x12
lea rdx, str.Reg_keys
lea rcx, [rbp - 0x50]
call fcn.140011450
lea rax, vtable.CTracePieCommonRegKeys.0
mov qword [rbp - 0x50], rax
mov edi, 2
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
xor ebx, ebx
mov qword [rbp - 0x78], rbx
lea rdx, [rsp + 0x78]
mov rcx, r13
call fcn.140015a60
mov rbx, qword [rsp + 0x78]
mov r14, qword [rbp - 0x80]
cmp rbx, r14
je 0x140015ffa
mov qword [rsp + 0x70], 7
xor eax, eax
mov qword [rsp + 0x68], rax
mov word [rsp + 0x58], ax
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140008070
nop
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae r8, qword [rsp + 0x58]
xor eax, eax
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x48]
mov rcx, r13
call fcn.140015a00
nop
xor ecx, ecx
mov dword [rsp + 0x50], ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140015f52
mov r8, rsi
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x48]
call fcn.140015bf0
nop
mov rdx, r15
lea rcx, [rbp - 0x70]
call fcn.140005a90
test eax, eax
je 0x140015f84
mov r8, qword [rbp - 0x58]
cmp r8, 8
jb 0x140015f52
inc r8
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x70]
call fcn.140008b70
nop
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x140015f7b
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.140008b70
add rbx, 0x20
jmp 0x140015e8f
lea rax, [rsp + 0x58]
cmp r12, rax
je 0x140015fa2
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, r12
call fcn.140008070
xor ebx, ebx
mov edi, ebx
mov r8, qword [rbp - 0x58]
cmp r8, 8
jb 0x140015fc0
inc r8
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x70]
call fcn.140008b70
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], rbx
mov word [rbp - 0x70], bx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x140015ffa
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.140008b70
nop
lea rcx, [rsp + 0x78]
call fcn.140016200
nop
lea rax, vtable.CTracePie.0
mov qword [rbp - 0x50], rax
cmp byte [rbp + 0x61], 1
jne 0x140016032
cmp byte [rbp + 0x60], 0
jne 0x140016032
lea r8, [0x140056e3c]
mov edx, 5
lea rcx, [rbp - 0x50]
call fcn.140011590
nop
mov eax, edi
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14001e5b0
add rsp, 0x188
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140017720
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x120
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x14006b088]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov r14, r9
mov rsi, r8
mov rbp, rdx
mov rdi, qword [rsp + 0x170]
mov rbx, qword [rsp + 0x178]
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x20], 0x32
lea r9, str.COsRegistry::GetKeyValue
mov r8d, 0x12
lea rdx, str.Reg_keys
lea rcx, [rsp + 0x50]
call fcn.140011450
lea rax, vtable.CTracePieCommonRegKeys.0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x28], rbp
mov eax, dword [rbx]
mov dword [rsp + 0x20], eax
mov r9, r14
lea r8, str.Looking_for__keyName___s_:_Len___d__at_software_key_0x_p
mov edx, 4
lea rcx, [rsp + 0x50]
call fcn.140011590
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
mov r9, rsi
xor r8d, r8d
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
lea rcx, [rsp + 0x50]
test eax, eax
je 0x1400177fb
mov r9d, eax
lea r8, str.unexpected_error__RegQueryValueExW_return_Value_0x_08x
mov edx, 2
call fcn.140011590
jmp 0x14001780d
lea r8, str.RegQueryValueExW_succeeded
mov edx, 4
call fcn.140011590
nop
lea rax, vtable.CTracePie.0
mov qword [rsp + 0x50], rax
cmp byte [rsp + 0x101], 1
jne 0x140017844
cmp byte [rsp + 0x100], 0
jne 0x140017844
lea r8, [0x140056e3c]
mov edx, 5
lea rcx, [rsp + 0x50]
call fcn.140011590
nop
mov eax, ebx
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14001e5b0
add rsp, 0x120
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140017870
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x120
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x14006b088]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov r14, r9
mov rsi, r8
mov rbp, rdx
mov rdi, qword [rsp + 0x170]
mov rbx, qword [rsp + 0x178]
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x20], 0x32
lea r9, str.COsRegistry::SetKeyValue
mov r8d, 0x12
lea rdx, str.Reg_keys
lea rcx, [rsp + 0x50]
call fcn.140011450
lea rax, vtable.CTracePieCommonRegKeys.0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x28], rbp
mov eax, dword [rbx]
mov dword [rsp + 0x20], eax
mov r9, r14
lea r8, str.Setting__keyName___s_:_Len___d__at_software_key_0x_p
mov edx, 4
lea rcx, [rsp + 0x50]
call fcn.140011590
mov eax, dword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, dword [rsi]
mov r8, r14
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov ebx, eax
lea rcx, [rsp + 0x50]
test eax, eax
je 0x14001794b
mov r9d, eax
lea r8, str.unexpected_error__RegSetKeyValueW_return_Value_0x_08x
mov edx, 2
call fcn.140011590
jmp 0x14001795d
lea r8, str.RegSetKeyValueW_succeeded
mov edx, 4
call fcn.140011590
nop
lea rax, vtable.CTracePie.0
mov qword [rsp + 0x50], rax
cmp byte [rsp + 0x101], 1
jne 0x140017994
cmp byte [rsp + 0x100], 0
jne 0x140017994
lea r8, [0x140056e3c]
mov edx, 5
lea rcx, [rsp + 0x50]
call fcn.140011590
nop
mov eax, ebx
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14001e5b0
add rsp, 0x120
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140017ff0
Capabilities:
Stop service

Disassembly:
push rdi
sub rsp, 0x140
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x150], rbx
mov rax, qword [0x14006b088]
xor rax, rsp
mov qword [rsp + 0x138], rax
mov rdi, rdx
mov byte [rsp + 0x38], 1
mov qword [rsp + 0x20], 0x38
lea r9, str.COsService::IOs_StopService
mov r8d, 0x1e
lea rdx, str.PIE_OS_Service
lea rcx, [rsp + 0x50]
call fcn.140011450
lea rax, vtable.CTracePieCommonOsService.0
mov qword [rsp + 0x50], rax
xor ebx, ebx
lea rcx, [rsp + 0x50]
test rdi, rdi
je 0x1400180ab
lea r8, str.Stopping_Service...
lea edx, [rbx + 4]
call fcn.140011590
lea r8, [rsp + 0x110]
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, eax
test eax, eax
jne 0x1400180bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.Failed_to_stop_service__error_code:__d
lea edx, [rbx + 2]
lea rcx, [rsp + 0x50]
call fcn.140011590
jmp 0x1400180bc
lea r8, str.svcHandle_is_NULL
mov edx, 2
call fcn.140011590
lea rcx, str.TRUE
lea rax, str.FALSE
test ebx, ebx
cmovne rax, rcx
mov qword [rsp + 0x20], rax
lea r9, str.retCode
lea r8, str.____returned__s___s
mov edx, 4
lea rcx, [rsp + 0x50]
call fcn.140011590
nop
mov eax, ebx
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.14001e5b0
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret
Function at 0x140018470
Capabilities:
Delete service

Disassembly:
push rdi
sub rsp, 0x120
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x130], rbx
mov rax, qword [0x14006b088]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rdi, rdx
mov byte [rsp + 0x38], 1
mov qword [rsp + 0x20], 0x42
lea r9, str.COsService::IOs_UninstallService
mov r8d, 0x1e
lea rdx, str.PIE_OS_Service
lea rcx, [rsp + 0x50]
call fcn.140011450
lea rax, vtable.CTracePieCommonOsService.0
mov qword [rsp + 0x50], rax
xor ebx, ebx
test rdi, rdi
je 0x14001851c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
test eax, eax
je 0x1400184fb
lea r8, str.Service_deleted_successfully
mov edx, 4
jmp 0x140018528
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.DeleteService_failed___d_
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.140011590
jmp 0x140018532
lea r8, str.svcHandle_is_NULL
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.140011590
lea rcx, str.TRUE
lea rax, str.FALSE
test ebx, ebx
cmovne rax, rcx
mov qword [rsp + 0x20], rax
lea r9, str.retCode
lea r8, str.____returned__s___s
mov edx, 4
lea rcx, [rsp + 0x50]
call fcn.140011590
nop
mov eax, ebx
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14001e5b0
mov rbx, qword [rsp + 0x130]
add rsp, 0x120
pop rdi
ret

Function at 0x140018720
Capabilities:
Start service

Disassembly:
push rdi
sub rsp, 0x120
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x130], rbx
mov rax, qword [0x14006b088]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rbx, rdx
mov byte [rsp + 0x38], 1
mov qword [rsp + 0x20], 0x38
lea r9, str.COsService::prvStartService
mov r8d, 0x1e
lea rdx, str.PIE_OS_Service
lea rcx, [rsp + 0x50]
call fcn.140011450
lea rax, vtable.CTracePieCommonOsService.0
mov qword [rsp + 0x50], rax
mov edi, 1
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400187bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.StartService_failed___d_
lea edx, [rdi + 1]
lea rcx, [rsp + 0x50]
call fcn.140011590
xor edi, edi
jmp 0x1400187d5
lea r8, str.Service_start_pending...
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.140011590
lea rcx, str.TRUE
lea rax, str.FALSE
test edi, edi
cmovne rax, rcx
mov qword [rsp + 0x20], rax
lea r9, str.bStartSuccess
lea r8, str._s___s
mov edx, 4
lea rcx, [rsp + 0x50]
call fcn.140011590
nop
lea rax, vtable.CTracePie.0
mov qword [rsp + 0x50], rax
cmp byte [rsp + 0x101], 1
jne 0x140018843
cmp byte [rsp + 0x100], 0
jne 0x140018843
lea r8, [0x140056e3c]
mov edx, 5
lea rcx, [rsp + 0x50]
call fcn.140011590
nop
mov eax, edi
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14001e5b0
mov rbx, qword [rsp + 0x130]
add rsp, 0x120
pop rdi
ret
Function at 0x140018870
Capabilities:
Query service status

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x120
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14006b088]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rsi, r8
mov rbx, rdx
mov byte [rsp + 0x38], 1
mov qword [rsp + 0x20], 0x3a
lea r9, str.COsService::GetServiceStatus
mov r8d, 0x1e
lea rdx, str.PIE_OS_Service
lea rcx, [rsp + 0x50]
call fcn.140011450
lea rax, vtable.CTracePieCommonOsService.0
mov qword [rsp + 0x50], rax
mov edi, 1
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 0x23]
mov r8, rsi
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140018920
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.QueryServiceStatusEx_failed___d_
lea edx, [rdi + 1]
lea rcx, [rsp + 0x50]
call fcn.140011590
xor edi, edi
mov eax, dword [rsi + 0x18]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsi + 4]
lea r8, str.Service_State_is__d_Wait_Hint__d
mov edx, 4
lea rcx, [rsp + 0x50]
call fcn.140011590
nop
lea rax, vtable.CTracePie.0
mov qword [rsp + 0x50], rax
cmp byte [rsp + 0x101], 1
jne 0x140018979
cmp byte [rsp + 0x100], 0
jne 0x140018979
lea r8, [0x140056e3c]
mov edx, 5
lea rcx, [rsp + 0x50]
call fcn.140011590
nop
mov eax, edi
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14001e5b0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140018e60
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x120
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x140], rbx
mov rax, qword [0x14006b088]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov r14, r9
mov rdi, r8
mov rbx, rdx
mov byte [rsp + 0x38], 1
mov qword [rsp + 0x20], 0x36
lea r9, str.COsService::IsWaitTimedOut
mov r8d, 0x1e
lea rdx, str.PIE_OS_Service
lea rcx, [rsp + 0x50]
call fcn.140011450
lea rax, vtable.CTracePieCommonOsService.0
mov qword [rsp + 0x50], rax
mov esi, 1
mov eax, dword [r14]
mov dword [rsp + 0x28], eax
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbx + 0x14]
lea r8, str.ssp.dwCheckPoint___d__dwOldCheckPoint___d__dwStartTickCount___d
lea edx, [rsi + 3]
lea rcx, [rsp + 0x50]
call fcn.140011590
mov eax, dword [rdi]
cmp dword [rbx + 0x14], eax
jbe 0x140018f2c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [r14], eax
mov eax, dword [rbx + 0x14]
mov dword [rdi], eax
mov dword [rsp + 0x20], eax
mov r9d, dword [r14]
lea r8, str.dwStartTickCount___d__dwOldCheckPoint___d
lea edx, [rsi + 1]
lea rcx, [rsp + 0x50]
call fcn.140011590
jmp 0x140018f8a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov ebx, dword [rsp + 0x160]
mov dword [rsp + 0x28], ebx
mov ecx, dword [r14]
mov dword [rsp + 0x20], ecx
mov r9d, eax
lea r8, str.Checking_Operation_Timeout:_CurrTick___d__StartTick___d__ssp.dwWaitHint___d
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.140011590
sub edi, dword [r14]
mov edx, 2
lea rcx, [rsp + 0x50]
cmp edi, ebx
jbe 0x140018f7e
lea r8, str.Timeout_waiting_for_service_to_start_stop
call fcn.140011590
jmp 0x140018f8c
lea r8, str.Timeout_hasnt_reach_yet__continue_waiting_for_state_change...
call fcn.140011590
xor esi, esi
lea rcx, str.TRUE
lea rax, str.FALSE
test esi, esi
cmovne rax, rcx
mov qword [rsp + 0x20], rax
lea r9, str.bIsTimedOut
lea r8, str._s___s
mov edx, 4
lea rcx, [rsp + 0x50]
call fcn.140011590
nop
lea rax, vtable.CTracePie.0
mov qword [rsp + 0x50], rax
cmp byte [rsp + 0x101], 1
jne 0x140018ffa
cmp byte [rsp + 0x100], 0
jne 0x140018ffa
lea r8, [0x140056e3c]
mov edx, 5
lea rcx, [rsp + 0x50]
call fcn.140011590
nop
mov eax, esi
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14001e5b0
mov rbx, qword [rsp + 0x140]
add rsp, 0x120
pop r14
pop rdi
pop rsi
ret
Function at 0x140019840
Capabilities:
Copy file
Move file

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x78]
sub rsp, 0x160
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14006b088]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rbx, r8
mov rsi, rdx
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x20], 0x32
lea r9, str.CFiles::ReplaceFileInUse
mov r8d, 0x22
lea rdx, str.PIE_Common_Files
lea rcx, [rbp - 0x70]
call fcn.140011450
lea rax, vtable.CTracePieCommonFiles.0
mov qword [rbp - 0x70], rax
mov edi, 1
mov qword [rsp + 0x58], 7
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov word [rsp + 0x40], r14w
cmp word [rbx], r14w
jne 0x1400198d4
mov r8d, r14d
jmp 0x1400198ea
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rbx + r8*2], r14w
jne 0x1400198e0
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140007f20
nop
lea r8, str..old
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.14000b000
nop
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x14001992c
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140008b70
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r14
mov word [rsp + 0x40], r14w
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rdx, qword [rsp + 0x68]
mov r8d, 8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140019988
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400199ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rsi
lea r8, str.Failed_to_copy___ws___error_code:__d
jmp 0x140019998
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rbx
lea r8, str.Failed_to_rename___ws___error_code:__d
mov dword [rsp + 0x20], eax
mov edx, 2
lea rcx, [rbp - 0x70]
call fcn.140011590
mov edi, r14d
lea rcx, str.TRUE
lea rax, str.FALSE
test edi, edi
cmovne rax, rcx
mov qword [rsp + 0x20], rax
lea r9, str.result
lea r8, str.____returned__s___s
mov edx, 4
lea rcx, [rbp - 0x70]
call fcn.140011590
mov al, 1
mov byte [rbp + 0x40], al
mov r8, qword [rbp - 0x80]
cmp r8, 8
jb 0x140019a07
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.140008b70
movzx eax, byte [rbp + 0x40]
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r14
mov word [rsp + 0x68], r14w
lea rcx, vtable.CTracePie.0
mov qword [rbp - 0x70], rcx
cmp byte [rbp + 0x41], 1
jne 0x140019a45
test al, al
jne 0x140019a45
lea r8, [0x140056e3c]
mov edx, 5
lea rcx, [rbp - 0x70]
call fcn.140011590
nop
mov eax, edi
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14001e5b0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret