joyce8/EMBER2024-capa huggingface dataset:
Function at 0x24587c920
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x245888084]
mov r12, rcx
test ebx, ebx
jle 0x24587ca50
mov rax, qword [0x245888088]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x24587c96c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x24587c9f3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x24587c950
mov rcx, r12
call fcn.24587d160
mov rsi, rax
test rax, rax
je 0x24587ca72
mov rax, qword [0x245888088]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.24587d290
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x245888088]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x24587ca57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x24587c9ec
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x24587ca00
add dword [0x245888084], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x245888088]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x24587c9ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.24587c8b0
nop dword [rax]
xor ebx, ebx
jmp 0x24587c977
mov rax, qword [0x245888088]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.24587c8b0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.24587c8b0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x24587cdd0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x2458880c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2458880a0]
test rbx, rbx
je 0x24587ce24
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x24587ce1b
test r12, r12
je 0x24587ce1b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x24587ce00
lea rcx, [0x2458880c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x24587d160
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2458856b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x24587d180
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x24587d188
ret
cmp word [r8 + 0x18], 0x20b
jne 0x24587d180
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x24587d1d5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x24587d1cc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x24587d180
add rax, 0x28
cmp rax, r9
jne 0x24587d1b8
xor eax, eax
ret

Function at 0x24587d1e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2458856b0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x24587d200
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x24587d208
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x24587d200
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x24587d290
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2458856b0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x24587d2b0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x24587d2b8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x14000100f
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x1400043c0
mov eax, 0x1028
call fcn.140009230
sub rsp, rax
lea r8, [rsp + 0x1030]
lea edx, [rax - 0x28]
lea rcx, [rsp + 0x20]
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x1400043f3
mov eax, 1
add rsp, 0x1028
ret
mov eax, dword [rsp + 0x1030]
shr eax, 2
je 0x140004437
mov qword [rsp + 0x1038], rbx
mov qword [rsp + 0x1020], rdi
mov edi, eax
lea rbx, [rsp + 0x20]
mov ecx, dword [rbx]
call fcn.140001014
add rbx, 4
sub rdi, 1
jne 0x140004416
mov rdi, qword [rsp + 0x1020]
mov rbx, qword [rsp + 0x1038]
xor eax, eax
add rsp, 0x1028
ret

Function at 0x140001014
Capabilities:
Enumerate process modules
Execute command

Disassembly:
jmp 0x140004140
mov qword [rsp + 0x20], rbp
push rsi
mov eax, 0x2370
call fcn.140009230
sub rsp, rax
mov rax, qword [0x140011018]
xor rax, rsp
mov qword [rsp + 0x2360], rax
mov ebp, ecx
lea rcx, [rsp + 0x2141]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x2140], 0
call sub.MSVCR80.dll_memset
lea rcx, str.IN_terminateValProcess_nProcess_ID:__u_n
mov edx, ebp
call fcn.140001073
mov r8d, ebp
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
mov rsi, rax
jne 0x1400041b2
lea eax, [rsi + 1]
jmp 0x140004316
lea r9, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov r8d, 0x2000
mov rcx, rax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x14000430b
lea rcx, [rsp + 0x2031]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x2030], 0
call sub.MSVCR80.dll_memset
lea r8, [rsp + 0x2030]
mov r9d, 0x104
xor edx, edx
mov rcx, rsi
call sub.PSAPI.DLL_GetModuleBaseNameA
lea rdx, str.WUDFHost.exe
lea rcx, [rsp + 0x2030]
mov r8d, 0xd
call qword [sym.imp.MSVCR80.dll__mbsnbicmp]
test eax, eax
jne 0x14000430b
lea rdx, [rsp + 0x2030]
lea rcx, str._nProcess_name:__s_n
mov qword [rsp + 0x2388], rbx
call fcn.140001073
xor ebx, ebx
test dword [rsp + 0x20], 0xfffffff8
jbe 0x140004303
mov qword [rsp + 0x2390], rdi
lea rdi, [rsp + 0x30]
mov rdx, qword [rdi]
lea r8, [rsp + 0x2250]
mov r9d, 0x104
mov rcx, rsi
call sub.PSAPI.DLL_GetModuleFileNameExA
lea rdx, str.C:WindowsSystem32driversUMDFwbf_vfs_0050.dll
lea rcx, [rsp + 0x2250]
mov r8d, 0x32
call qword [sym.imp.MSVCR80.dll__mbsnbicmp]
test eax, eax
je 0x1400042af
mov eax, dword [rsp + 0x20]
add ebx, 1
add rdi, 8
shr eax, 3
cmp ebx, eax
jb 0x140004263
jmp 0x1400042fb
lea rcx, str._nValidity_process__Terminating......_n
call fcn.140001073
mov r8, qword [rsp + rbx*8 + 0x30]
lea rdx, [rsp + 0x2250]
lea rcx, str._t_s__0x_08X__n
call qword [sym.imp.MSVCR80.dll_printf]
lea rdx, str.taskkill__PID__d__F
lea rcx, [rsp + 0x2140]
mov r8d, ebp
call qword [sym.imp.MSVCR80.dll_sprintf]
lea rcx, [rsp + 0x2140]
call qword [sym.imp.MSVCR80.dll_system]
mov rdi, qword [rsp + 0x2390]
mov rbx, qword [rsp + 0x2388]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x2360]
xor rcx, rsp
call fcn.140007510
mov rbp, qword [rsp + 0x2398]
add rsp, 0x2370
pop rsi
ret
Function at 0x14000103c
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
jmp 0x1400047b0
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rdi, [0x140011840]
lea r9, str.WbioSrvc
mov rdx, rdi
sub r9, rdi
mov r8d, 0x50
mov ebx, eax
nop
lea rcx, [r8 + 0x7fffffae]
test rcx, rcx
je 0x140004803
movzx eax, byte [r9 + rdx]
test al, al
je 0x140004803
mov byte [rdx], al
add rdx, 1
sub r8, 1
jne 0x1400047e0
jmp 0x140004808
test r8, r8
jne 0x14000480c
sub rdx, 1
mov byte [rdx], 0
mov r8d, 0xf003f
xor ecx, ecx
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov qword [0x140011808], rax
je 0x1400049ee
mov r8d, 0x2c
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
mov qword [0x1400117c0], rax
je 0x1400049e1
lea rcx, [rsp + 0x70]
lea r8, [rsp + 0x30]
mov r9d, 0x24
mov qword [rsp + 0x20], rcx
mov rcx, rax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1400049d4
mov eax, dword [rsp + 0x34]
cmp eax, 1
je 0x1400049d4
cmp eax, 3
mov edi, 0x2710
jne 0x140004909
mov eax, 0xcccccccd
mul dword [rsp + 0x48]
shr edx, 3
cmp edx, 0x3e8
jae 0x1400048ab
mov edx, 0x3e8
jmp 0x1400048b0
cmp edx, edi
cmova edx, edi
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x1400117c0]
lea r11, [rsp + 0x70]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1400049bf
cmp dword [rsp + 0x34], 1
je 0x1400049d4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x7530
ja 0x1400049d4
cmp dword [rsp + 0x34], 3
je 0x140004890
call fcn.14000100a
mov rcx, qword [0x1400117c0]
lea r8, [rsp + 0x30]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14000493b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ControlService_failed___d__n
jmp 0x1400049cc
cmp dword [rsp + 0x34], 1
je 0x1400049d4
nop
nop
nop
mov eax, 0xcccccccd
mul dword [rsp + 0x48]
shr edx, 3
cmp edx, 0x3e8
jae 0x14000496b
mov edx, 0x3e8
jmp 0x140004970
cmp edx, edi
cmova edx, edi
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x1400117c0]
lea r11, [rsp + 0x70]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1400049bf
cmp dword [rsp + 0x34], 1
je 0x1400049d4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x7530
ja 0x1400049d4
cmp dword [rsp + 0x34], 1
jne 0x140004950
jmp 0x1400049d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.QueryServiceStatusEx_failed___d__n
mov edx, eax
call qword [sym.imp.MSVCR80.dll_printf]
mov rcx, qword [0x1400117c0]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [0x140011808]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140001046
Capabilities:
Access the windows event log

Disassembly:
jmp 0x140003cd0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
movzx edi, dx
mov rdx, qword [section..data]
mov rsi, rcx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
test rax, rax
mov rbx, rax
je 0x140003d49
mov r8, qword [section..data]
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x50], r8
mov word [rsp + 0x28], 2
mov qword [rsp + 0x20], rcx
mov rcx, rbx
xor r9d, r9d
xor r8d, r8d
movzx edx, di
mov qword [rsp + 0x58], rsi
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140001069
Capabilities:
Delete service
Query service status

Disassembly:
jmp 0x140002050
push rdi
sub rsp, 0x40
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov rdi, rax
je 0x1400020c8
mov rdx, qword [section..data]
mov r8d, 0x10004
mov rcx, rax
mov qword [rsp + 0x50], rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
mov rbx, rax
je 0x1400020ba
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400020b1
cmp dword [rsp + 0x24], 1
jne 0x1400020b1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14000106e
Capabilities:
Set registry value

Disassembly:
jmp 0x1400053c0
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
lea rcx, str._UpdateEnrolledUserCountToReg
mov esi, 0x80004005
mov qword [rsp + 0x48], rdi
mov ebx, esi
mov dword [rsp + 0x40], edi
call fcn.140001073
lea r11, [rsp + 0x48]
lea rdx, str.SOFTWAREValidityWBF
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140005448
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea r9d, [rdi + 4]
lea rdx, str.EnrolledUserCount
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
cmove ebx, edi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000545d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
cmovne ebx, esi
lea rcx, str.__UpdateEnrolledUserCountToReg
call fcn.140001073
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140001073
Capabilities:
Print debug messages

Disassembly:
jmp 0x140003f50
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x188
mov rax, qword [0x140011018]
xor rax, rsp
mov qword [rsp + 0x170], rax
call fcn.14000109b
test eax, eax
jne 0x140003f93
lea rcx, str.File_delete_failed_with_some_error_____
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea r9, [rsp + 0x48]
lea r8, str.evTraceEnableLevel
lea rdx, str.SOFTWAREValidity_vfs301
mov rcx, 0xffffffff80000002
call fcn.140001091
cmp eax, 1
jne 0x1400040af
cmp dword [rsp + 0x48], 0
je 0x1400040a6
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
mov r8, qword [rsp + 0x190]
lea r9, [rsp + 0x198]
lea rcx, [rsp + 0x60]
mov edx, 0x104
call qword [sym.imp.MSVCR80.dll_vsprintf_s]
lea r8, [0x14000e4a0]
lea rdx, str.C:ProgramDataSynapticsValidityService.log
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCR80.dll_fopen_s]
test eax, eax
jne 0x14000409d
cmp qword [rsp + 0x40], 0
je 0x1400040bc
lea rcx, str.Open_file_Success__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
movzx ecx, word [rsp + 0x5c]
movzx edx, word [rsp + 0x5a]
mov r8d, dword [0x140011188]
movzx eax, word [rsp + 0x5e]
movzx r9d, word [rsp + 0x58]
lea r10, [rsp + 0x60]
add r8d, 1
mov qword [rsp + 0x38], r10
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x20], edx
lea rdx, str._d.__d:_d:_d:_d___s__n
mov dword [0x140011188], r8d
call qword [sym.imp.MSVCR80.dll_fprintf]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCR80.dll_fclose]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140007510
add rsp, 0x188
ret
lea rcx, str.fopen_s_failed.__n
jmp 0x1400040b6
lea rcx, str.longValue_in_NOT_True.__n
jmp 0x1400040b6
lea rcx, str.RegReadDword_Failed.__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140007510
add rsp, 0x188
ret

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

Disassembly:
jmp 0x140001f40
push rbx
sub rsp, 0xe0
mov rax, qword [0x140011018]
xor rax, rsp
mov qword [rsp + 0xd0], rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov rbx, rax
je 0x140001ff5
lea rdx, [rsp + 0x70]
mov r8d, 0x51
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140001fec
mov rdx, qword [section..data]
xor ecx, ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov r9d, 0xf01ff
mov r8, rdx
mov rcx, rbx
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
test rax, rax
je 0x140001fec
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140007510
add rsp, 0xe0
pop rbx
ret
Function at 0x140001091
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140001cf0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor ebx, ebx
test rdx, rdx
mov rbp, r9
mov r12, r8
mov rdi, rdx
mov esi, 1
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x30], 4
je 0x140001d51
cmp byte [rdx], bl
je 0x140001d51
lea rax, [rsp + 0x38]
mov r9d, esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140001d7d
mov rcx, qword [rsp + 0x38]
jmp 0x140001d56
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r12
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
cmovne esi, ebx
mov ebx, esi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140001d97
test rdi, rdi
je 0x140001d97
cmp byte [rdi], 0
je 0x140001d97
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret

Function at 0x14000109b
Capabilities:
Delete file
Get file size
Move file
Print debug messages

Disassembly:
jmp 0x1400012d0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
lea rcx, str.C:ProgramDataSynapticsValidityService.log
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 4]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x140001322
lea rcx, str.Unable_to_open_file
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14000138f
lea rcx, str.Open_file_successfull
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x500000
jbe 0x14000138a
lea rdx, str.C:ProgramDataSynapticsValidityServiceDel.log
lea rcx, str.C:ProgramDataSynapticsValidityService.log
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
mov ebx, eax
jne 0x14000136a
lea rcx, str.Move_file_failed....
jmp 0x140001384
lea rcx, str.C:ProgramDataSynapticsValidityServiceDel.log
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov ebx, eax
je 0x14000138a
lea rcx, str._File_delete_successful_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test rdi, rdi
je 0x1400013a5
lea rcx, str.Close_the_file_handle
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400012d0
Capabilities:
Delete file
Get file size
Move file
Print debug messages

Disassembly:
jmp 0x1400012d0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
lea rcx, str.C:ProgramDataSynapticsValidityService.log
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 4]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x140001322
lea rcx, str.Unable_to_open_file
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14000138f
lea rcx, str.Open_file_successfull
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x500000
jbe 0x14000138a
lea rdx, str.C:ProgramDataSynapticsValidityServiceDel.log
lea rcx, str.C:ProgramDataSynapticsValidityService.log
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
mov ebx, eax
jne 0x14000136a
lea rcx, str.Move_file_failed....
jmp 0x140001384
lea rcx, str.C:ProgramDataSynapticsValidityServiceDel.log
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov ebx, eax
je 0x14000138a
lea rcx, str._File_delete_successful_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test rdi, rdi
je 0x1400013a5
lea rcx, str.Close_the_file_handle
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140001cf0
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140001cf0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor ebx, ebx
test rdx, rdx
mov rbp, r9
mov r12, r8
mov rdi, rdx
mov esi, 1
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x30], 4
je 0x140001d51
cmp byte [rdx], bl
je 0x140001d51
lea rax, [rsp + 0x38]
mov r9d, esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140001d7d
mov rcx, qword [rsp + 0x38]
jmp 0x140001d56
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r12
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
cmovne esi, ebx
mov ebx, esi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140001d97
test rdi, rdi
je 0x140001d97
cmp byte [rdi], 0
je 0x140001d97
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret

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

Disassembly:
jmp 0x140001f40
push rbx
sub rsp, 0xe0
mov rax, qword [0x140011018]
xor rax, rsp
mov qword [rsp + 0xd0], rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov rbx, rax
je 0x140001ff5
lea rdx, [rsp + 0x70]
mov r8d, 0x51
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140001fec
mov rdx, qword [section..data]
xor ecx, ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov r9d, 0xf01ff
mov r8, rdx
mov rcx, rbx
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
test rax, rax
je 0x140001fec
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140007510
add rsp, 0xe0
pop rbx
ret

Function at 0x140002050
Capabilities:
Delete service
Query service status

Disassembly:
jmp 0x140002050
push rdi
sub rsp, 0x40
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov rdi, rax
je 0x1400020c8
mov rdx, qword [section..data]
mov r8d, 0x10004
mov rcx, rax
mov qword [rsp + 0x50], rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
mov rbx, rax
je 0x1400020ba
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400020b1
cmp dword [rsp + 0x24], 1
jne 0x1400020b1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret