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

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14004e2d0]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rcx, [rsp + 0x20]
mov edx, 0x104
mov esi, r8d
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0x20]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x14001a0c0
mov eax, dword [0x14003f71c]
mov dword [rcx], eax
lea rax, [rsp + 0x20]
sub rax, 2
nop dword [rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x14001a0e0
mov ecx, dword [0x140042320]
movups xmm0, xmmword [str.SynCOM.dll]
movups xmmword [rax], xmm0
mov dword [rax + 0x10], ecx
movzx ecx, word [0x140042324]
mov word [rax + 0x14], cx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
cmp rax, 0x20
jae 0x14001a121
xor eax, eax
jmp 0x14001a169
lea rax, str.DllUnregisterServer
lea rdx, str.DllRegisterServer
test esi, esi
mov rcx, rdi
cmovne rdx, rax
mov qword [rsp + 0x250], rbx
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001a154
call rax
jmp 0x14001a156
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov rbx, qword [rsp + 0x250]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140020aa0
mov rsi, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret
Function at 0x14001a190
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
mov rdi, rcx
call fcn.140006ba0
xor ebx, ebx
mov dword [rbp + 0x6f], ebx
mov rax, qword [rdi + 0x330]
test rax, rax
je 0x14001a1f6
cmp qword [rax + 8], rbx
je 0x14001a1f6
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x14001a1de
lea rcx, [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x6f]
mov edx, 0x10000003
call qword [rax + 0x30]
cmp dword [rbp + 0x6f], ebx
jne 0x14001a283
lea rax, [rbp - 0x21]
mov qword [rbp + 0x67], rax
mov qword [rbp - 9], 7
mov qword [rbp - 0x11], rbx
mov word [rbp - 0x21], bx
mov r8d, 2
lea rdx, [0x140042cb4]
lea rcx, [rbp - 0x21]
call fcn.14000e0d0
nop
call fcn.140013bc0
mov qword [rbp + 0x17], 7
mov qword [rbp + 0xf], rbx
mov word [rbp - 1], bx
cmp word [rax], 0
jne 0x14001a245
mov r8, rbx
jmp 0x14001a25b
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14001a250
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.14000e0d0
nop
lea r8, [rbp - 0x21]
lea rdx, [rbp - 1]
mov rcx, rdi
call fcn.140018050
mov r8d, 1
call fcn.14001a080
xor edx, edx
lea rcx, [rbp + 0x1f]
call fcn.14001f8a0
nop
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov r9d, 1
lea r8, str.SoftwareSynapticsSynTPInstall
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0x1f]
call fcn.14001fb10
test eax, eax
je 0x14001a2cf
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, str.UnInstallRemoveUserSettings
lea rcx, [rbp + 0x27]
call fcn.140020530
lea rax, [rbp - 0x21]
mov qword [rbp + 0x67], rax
mov qword [rbp - 9], 7
mov qword [rbp - 0x11], rbx
mov word [rbp - 0x21], bx
mov r8d, 0xd
lea rdx, str._usersettings
lea rcx, [rbp - 0x21]
call fcn.14000e0d0
nop
call fcn.140013bc0
mov qword [rbp + 0x17], 7
mov qword [rbp + 0xf], rbx
mov word [rbp - 1], bx
cmp word [rax], 0
je 0x14001a32a
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14001a320
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.14000e0d0
nop
lea r8, [rbp - 0x21]
lea rdx, [rbp - 1]
mov rcx, rdi
call fcn.140018050
call fcn.14001afc0
mov ecx, 0x3f
call fcn.140007430
lea rcx, str.HKLM_SoftwareSynapticsSynTPFilterHID
call fcn.140006df0
lea rdx, [0x14003f7f0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyW]
lea rcx, str.HKLM_SystemCurrentControlSetServicesSynTPEnhService
call fcn.140006df0
mov rcx, rdi
call fcn.14001a3c0
call fcn.14001dbd0
mov rcx, rax
call fcn.14001cd70
nop
lea rcx, [rbp + 0x1f]
call fcn.14001f9c0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14001bf20
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14004e2d0]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
mov rdi, rcx
or rbx, 0xffffffffffffffff
mov qword [rcx], rax
mov qword [rsp + 0x30], rax
call fcn.140013700
cmp word [rax], 0
je 0x14001bfb4
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x38], 0x38
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
call fcn.140013700
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001bfb4
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov eax, dword [0x140051c00]
test al, 1
jne 0x14001bfd5
or eax, 1
mov dword [0x140051c00], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140051e18], eax
jmp 0x14001bfdb
mov eax, dword [0x140051e18]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14001c001
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [0x140051e18]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x70]
lea rcx, str.SynCom.SynAPI
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
js 0x14001c034
xor edx, edx
lea r9, str.c_a2A
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x15]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14001c046
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
cmp rbx, 0xffffffffffffffff
je 0x14001c055
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov rax, rdi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140020aa0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret
Function at 0x14001c080
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14004e2d0]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
mov rdi, rcx
or rbx, 0xffffffffffffffff
mov qword [rcx], rax
mov qword [rsp + 0x30], rax
call fcn.140013700
cmp word [rax], 0
je 0x14001c114
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x38], 0x38
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
call fcn.140013700
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001c114
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov eax, dword [0x140051c04]
test al, 1
jne 0x14001c135
or eax, 1
mov dword [0x140051c04], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140051e1c], eax
jmp 0x14001c13b
mov eax, dword [0x140051e1c]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14001c161
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [0x140051e1c]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x70]
lea rcx, str.SynCom.PointingDevice
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
js 0x14001c194
xor edx, edx
lea r9, [0x1400417f0]
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x15]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14001c1a6
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
cmp rbx, 0xffffffffffffffff
je 0x14001c1b5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov rax, rdi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140020aa0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret

Function at 0x14001ca50
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rbp, rdx
mov rdx, qword [rcx + 0x58]
xorps xmm0, xmm0
mov rdi, rcx
xor ecx, ecx
movzx esi, r8w
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x14001cad9
mov rcx, qword [rdi + 0x58]
mov edx, 2
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rcx
xor ecx, ecx
lea r8d, [rdx - 1]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov word [rsp + 0x28], dx
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov rcx, rbx
movzx edx, si
mov qword [rsp + 0x58], rbp
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x14001cb00
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x14004e2d0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rcx
mov dword [rsp + 0x20], r8d
mov r9, rdx
lea r8, str._s_failed_w_err_0x_08lx
lea rcx, [rsp + 0x60]
mov edx, 0x104
call fcn.14001c490
mov rdx, qword [rdi + 0x58]
xor ecx, ecx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x14001cbb1
mov rcx, qword [rdi + 0x58]
mov edx, 1
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rcx
xor ecx, ecx
lea r9d, [rdx + 1]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov word [rsp + 0x28], r9w
mov qword [rsp + 0x20], rcx
mov r8d, edx
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140020aa0
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x280
pop rdi
ret

Function at 0x14001cbe0
Capabilities:
Create service
Persist via windows service

Disassembly:
push rbx
push rsi
sub rsp, 0x298
mov rax, qword [0x14004e2d0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rdx
mov rsi, rcx
lea rdx, [rsp + 0x72]
mov r8d, 0x106
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movsxd rcx, eax
test eax, eax
jne 0x14001cc32
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetModuleFileName_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14002250c
jmp 0x14001cca8
lea eax, [rcx + 2]
mov edx, 0x22
mov word [rsp + rcx*2 + 0x72], dx
movsxd rcx, eax
mov word [rsp + 0x70], dx
add rcx, rcx
cmp rcx, 0x20c
jae 0x14001cd66
mov qword [rsp + 0x2c0], rbp
xor ebp, ebp
xor edx, edx
mov word [rsp + rcx + 0x70], bp
lea r8d, [rbp + 3]
xor ecx, ecx
mov qword [rsp + 0x290], rdi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14001ccc2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14002250c
mov rbp, qword [rsp + 0x2c0]
mov rdi, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140020aa0
add rsp, 0x298
pop rsi
pop rbx
ret
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x58], rbp
lea rax, [0x14003f74c]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x70]
mov r9d, 4
mov r8, rbx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rbx, rax
test rax, rax
jne 0x14001cd37
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateService_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14002250c
jmp 0x14001cd46
lea rcx, str._s_is_installed._n
mov rdx, rsi
call fcn.14002250c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x14001cc98
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14001cc98
call fcn.140022120
int3
Function at 0x14001cd70
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14004e2d0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov rdi, rcx
xor edx, edx
lea r8d, [rax + 1]
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x14001cdd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14002250c
jmp 0x14001ceff
mov r8d, 0x10024
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x68], rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14001ce13
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x14001cee3
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14002250c
jmp 0x14001cee3
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14001ceb1
lea rcx, str.Stopping__s.
mov rdx, rdi
call fcn.14002250c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14001ce92
nop word [rax + rax]
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x14001ce96
lea rcx, [0x14004092c]
call fcn.14002250c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14001ce60
mov eax, dword [rsp + 0x24]
mov rdx, rdi
lea rcx, str._n_s_is_stopped._n
cmp eax, 1
je 0x14001ceac
lea rcx, str._n_s_failed_to_stop._n
call fcn.14002250c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x14001ced4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.DeleteService_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14002250c
jmp 0x14001cee3
lea rcx, str._s_is_removed._n
mov rdx, rdi
call fcn.14002250c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x14001cefa
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140020aa0
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14001cf20
Capabilities:
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14004e2d0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov rdi, rcx
xor edx, edx
lea r8d, [rax + 1]
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x14001cf80
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14002250c
jmp 0x14001d06d
mov r8d, 0x24
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x68], rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14001cfc3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x14001d051
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14002250c
jmp 0x14001d051
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14001d051
lea rcx, str.Stopping__s.
mov rdx, rdi
call fcn.14002250c
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14001d032
nop dword [rax + rax]
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x14001d036
lea rcx, [0x14004092c]
call fcn.14002250c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14001d000
mov eax, dword [rsp + 0x24]
mov rdx, rdi
lea rcx, str._n_s_is_stopped._n
cmp eax, 1
je 0x14001d04c
lea rcx, str._n_s_failed_to_stop._n
call fcn.14002250c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x14001d068
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140020aa0
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14001d090
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov ebp, edx
mov rsi, rcx
test edx, edx
je 0x14001d0b7
neg r8d
sbb ebx, ebx
add ebx, 3
jmp 0x14001d0c1
mov ebx, 4
call fcn.14001cf20
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14001d0f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed___d__n
mov edx, eax
call fcn.14002250c
jmp 0x14001d1a4
mov r8d, 2
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x14001d120
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenService_failed___d__n
mov edx, eax
call fcn.14002250c
jmp 0x14001d19b
xor eax, eax
or r9d, 0xffffffff
mov r8d, ebx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
or edx, r9d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x14001d172
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ChangeServiceConfig_failed___d__n
mov edx, eax
call fcn.14002250c
jmp 0x14001d192
lea rax, str.enabled
test ebp, ebp
lea rdx, str.disabled
lea rcx, str.Service__s_successfully._n
cmovne rdx, rax
call fcn.14002250c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x14001d730
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x14001d743
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001d79a
cmp qword [rbx + 0x18], 8
jb 0x14001d75a
mov rcx, qword [rbx]
jmp 0x14001d75d
mov rcx, rbx
mov edx, 0x80
call fcn.14002322c
cmp qword [rbx + 0x18], 8
jb 0x14001d773
mov rcx, qword [rbx]
jmp 0x14001d776
mov rcx, rbx
call fcn.1400233ac
test eax, eax
je 0x14001d79a
cmp qword [rbx + 0x18], 8
jb 0x14001d78b
mov rcx, qword [rbx]
jmp 0x14001d78e
mov rcx, rbx
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp qword [rbx + 0x18], 8
jb 0x14001d7a9
mov rcx, qword [rbx]
call fcn.140020a7c
xor eax, eax
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rax
mov word [rbx], ax
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x14001ebf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x280
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov ebp, r8d
mov rdi, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov eax, dword [0x1400504d8]
test al, 1
jne 0x14001ec5a
or eax, 1
mov dword [0x1400504d8], eax
mov qword [0x1400504d0], 7
mov qword [0x1400504c8], r14
mov word [0x1400504b8], r14w
lea rcx, [0x140036820]
call fcn.140020c50
cmp qword [0x1400504c8], 0
jne 0x14001ed74
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.14001f8a0
nop
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea r8, str.SoftwareSynapticsSynTPInstall
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x38]
call fcn.14001fb10
test eax, eax
je 0x14001ed6a
mov word [rsp + 0x70], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x72]
call fcn.140023b30
mov dword [rsp + 0x2c8], 0x208
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x2c8]
lea r8, [rsp + 0x70]
lea rdx, str.ProgDir
lea rcx, [rsp + 0x40]
call fcn.1400201d0
test eax, eax
je 0x14001ed6a
cmp word [rsp + 0x70], 0
jne 0x14001ecfe
mov r8, r14
jmp 0x14001ed1b
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14001ed10
lea rdx, [rsp + 0x70]
lea rcx, [0x1400504b8]
call fcn.14000e0d0
mov edx, 0x5c
or r8, 0xffffffffffffffff
lea rcx, [0x1400504b8]
call fcn.14000d040
mov rcx, qword [0x1400504c8]
dec rcx
cmp rax, rcx
je 0x14001ed6a
mov r8d, 1
lea rdx, [0x14003f71c]
lea rcx, [0x1400504b8]
call fcn.14000ef20
nop
lea rcx, [rsp + 0x38]
call fcn.14001f9c0
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
mov dword [rsp + 0x30], 1
cmp qword [0x1400504c8], 0
je 0x14001ee23
mov r8, rdi
lea rdx, [0x1400504b8]
lea rcx, [rsp + 0x38]
call fcn.14000ec30
mov rsi, rax
cmp rbx, rax
je 0x14001ede0
cmp qword [rbx + 0x18], 8
jb 0x14001edc5
mov rcx, qword [rbx]
call fcn.140020a7c
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
mov rdx, rsi
mov rcx, rbx
call fcn.14000d920
cmp qword [rsp + 0x50], 8
jb 0x14001edf2
mov rcx, qword [rsp + 0x38]
call fcn.140020a7c
test ebp, ebp
je 0x14001ee23
cmp qword [rbx + 0x18], 8
jb 0x14001ee02
mov rcx, qword [rbx]
jmp 0x14001ee05
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14001ee23
xor r8d, r8d
lea rdx, [0x14003f74c]
mov rcx, rbx
call fcn.14000e0d0
nop
cmp qword [rdi + 0x18], 8
jb 0x14001ee32
mov rcx, qword [rdi]
call fcn.140020a7c
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r14
mov word [rdi], r14w
mov rax, rbx
add rsp, 0x280
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret