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

Disassembly:
jmp 0x140004eb0
sub rsp, 0x58
xor ecx, ecx
lea rax, [rsp + 0x70]
lea rdx, str.SOFTWAREValidityWBF
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov dword [rsp + 0x60], ecx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x78], rcx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov rcx, 0xffffffff80000002
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140004f7d
mov eax, dword [rsp + 0x60]
lea rcx, [rsp + 0x68]
lea rdx, str.VendorFMA
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
jne 0x140004f71
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x60]
lea rdx, str.VendorFMA
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x140004f7d
lea rcx, str._VendorFMA_value_present
call fcn.14000107d
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140004f8d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x58
ret
Function at 0x140001046
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
jmp 0x1400047d0
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 0x140004823
movzx eax, byte [r9 + rdx]
test al, al
je 0x140004823
mov byte [rdx], al
add rdx, 1
sub r8, 1
jne 0x140004800
jmp 0x140004828
test r8, r8
jne 0x14000482c
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 0x140004a0e
mov r8d, 0x2c
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
mov qword [0x1400117c0], rax
je 0x140004a01
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 0x1400049f4
mov eax, dword [rsp + 0x34]
cmp eax, 1
je 0x1400049f4
cmp eax, 3
mov edi, 0x2710
jne 0x140004929
mov eax, 0xcccccccd
mul dword [rsp + 0x48]
shr edx, 3
cmp edx, 0x3e8
jae 0x1400048cb
mov edx, 0x3e8
jmp 0x1400048d0
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 0x1400049df
cmp dword [rsp + 0x34], 1
je 0x1400049f4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x7530
ja 0x1400049f4
cmp dword [rsp + 0x34], 3
je 0x1400048b0
call fcn.14000100f
mov rcx, qword [0x1400117c0]
lea r8, [rsp + 0x30]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14000495b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ControlService_failed___d__n
jmp 0x1400049ec
cmp dword [rsp + 0x34], 1
je 0x1400049f4
nop
nop
nop
mov eax, 0xcccccccd
mul dword [rsp + 0x48]
shr edx, 3
cmp edx, 0x3e8
jae 0x14000498b
mov edx, 0x3e8
jmp 0x140004990
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 0x1400049df
cmp dword [rsp + 0x34], 1
je 0x1400049f4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x7530
ja 0x1400049f4
cmp dword [rsp + 0x34], 1
jne 0x140004970
jmp 0x1400049f4
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 0x140001050
Capabilities:
Access the windows event log

Disassembly:
jmp 0x140003cf0
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 0x140003d69
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 0x140001073
Capabilities:
Delete service
Query service status

Disassembly:
jmp 0x140002070
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 0x1400020e8
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 0x1400020da
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400020d1
cmp dword [rsp + 0x24], 1
jne 0x1400020d1
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 0x140001078
Capabilities:
Set registry value

Disassembly:
jmp 0x140005740
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.14000107d
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 0x1400057c8
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 0x1400057dd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
cmovne ebx, esi
lea rcx, str.__UpdateEnrolledUserCountToReg
call fcn.14000107d
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000107d
Capabilities:
Print debug messages

Disassembly:
jmp 0x140003f70
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.1400010aa
test eax, eax
jne 0x140003fb3
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.14000109b
cmp eax, 1
jne 0x1400040cf
cmp dword [rsp + 0x48], 0
je 0x1400040c6
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 0x1400040bd
cmp qword [rsp + 0x40], 0
je 0x1400040dc
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.1400078a0
add rsp, 0x188
ret
lea rcx, str.fopen_s_failed.__n
jmp 0x1400040d6
lea rcx, str.longValue_in_NOT_True.__n
jmp 0x1400040d6
lea rcx, str.RegReadDword_Failed.__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400078a0
add rsp, 0x188
ret

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

Disassembly:
jmp 0x140001f60
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 0x140002015
lea rdx, [rsp + 0x70]
mov r8d, 0x51
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14000200c
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 0x14000200c
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.1400078a0
add rsp, 0xe0
pop rbx
ret
Function at 0x14000109b
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140001d10
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 0x140001d71
cmp byte [rdx], bl
je 0x140001d71
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 0x140001d9d
mov rcx, qword [rsp + 0x38]
jmp 0x140001d76
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 0x140001db7
test rdi, rdi
je 0x140001db7
cmp byte [rdi], 0
je 0x140001db7
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 0x1400010a5
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
jmp 0x140004fd0
sub rsp, 0x58
xor ecx, ecx
lea rax, [rsp + 0x70]
lea rdx, str.SOFTWAREValidityWBFLED
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov dword [rsp + 0x60], ecx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x78], rcx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov rcx, 0xffffffff80000002
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140005099
mov eax, dword [rsp + 0x60]
lea rcx, [rsp + 0x68]
lea rdx, str.ControlMethod
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
jne 0x14000508d
mov rcx, qword [rsp + 0x78]
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x60]
lea rdx, str.ControlMethod
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x140005099
lea rcx, str._ControlMethod_value_present
call fcn.14000107d
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400050a9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x58
ret
Function at 0x1400010aa
Capabilities:
Delete file
Get file size
Move file
Print debug messages

Disassembly:
jmp 0x1400012f0
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 0x140001342
lea rcx, str.Unable_to_open_file
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1400013af
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 0x1400013aa
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 0x14000138a
lea rcx, str.Move_file_failed....
jmp 0x1400013a4
lea rcx, str.C:ProgramDataSynapticsValidityServiceDel.log
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov ebx, eax
je 0x1400013aa
lea rcx, str._File_delete_successful_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test rdi, rdi
je 0x1400013c5
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 0x1400012f0
Capabilities:
Delete file
Get file size
Move file
Print debug messages

Disassembly:
jmp 0x1400012f0
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 0x140001342
lea rcx, str.Unable_to_open_file
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1400013af
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 0x1400013aa
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 0x14000138a
lea rcx, str.Move_file_failed....
jmp 0x1400013a4
lea rcx, str.C:ProgramDataSynapticsValidityServiceDel.log
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov ebx, eax
je 0x1400013aa
lea rcx, str._File_delete_successful_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test rdi, rdi
je 0x1400013c5
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 0x140001d10
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140001d10
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 0x140001d71
cmp byte [rdx], bl
je 0x140001d71
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 0x140001d9d
mov rcx, qword [rsp + 0x38]
jmp 0x140001d76
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 0x140001db7
test rdi, rdi
je 0x140001db7
cmp byte [rdi], 0
je 0x140001db7
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 0x140001f60
Capabilities:
Create service
Persist via windows service

Disassembly:
jmp 0x140001f60
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 0x140002015
lea rdx, [rsp + 0x70]
mov r8d, 0x51
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14000200c
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 0x14000200c
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.1400078a0
add rsp, 0xe0
pop rbx
ret

Function at 0x140002070
Capabilities:
Delete service
Query service status

Disassembly:
jmp 0x140002070
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 0x1400020e8
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 0x1400020da
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400020d1
cmp dword [rsp + 0x24], 1
jne 0x1400020d1
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 0x1400032b0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r15
sub rsp, 0x48
mov rax, qword [0x140011018]
xor rax, rsp
mov qword [rsp + 0x30], rax
test rcx, rcx
mov r15, qword [rsp + 0xa0]
mov r13, r9
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
mov rdi, r9
je 0x14000353f
test rdx, rdx
je 0x14000353f
test r15, r15
je 0x14000353f
cmp rcx, rdx
mov qword [rsp + 0x80], r12
je 0x1400033fe
cmp esi, 0x10
jb 0x140003381
mov r12, rsi
shr r12, 4
nop
nop
mov r8, r15
mov rdx, rbx
mov rcx, rbp
call fcn.140002b00
lea r11, [rdi + 2]
sub rdi, rbx
mov rcx, rbx
mov edx, 4
nop
movzx eax, byte [rdi + rcx]
add rcx, 4
add r11, 4
xor byte [rcx - 4], al
movzx eax, byte [r11 - 5]
xor byte [rcx - 3], al
movzx eax, byte [r11 - 4]
xor byte [rcx - 2], al
movzx eax, byte [r11 - 3]
xor byte [rcx - 1], al
sub rdx, 1
jne 0x140003340
mov rdi, rbp
add esi, 0xfffffff0
add rbx, 0x10
add rbp, 0x10
sub r12, 1
jne 0x140003320
test esi, esi
je 0x1400033c8
lea rdx, [rsp + 0x20]
mov r8, r15
mov rcx, rbp
call fcn.140002b00
test esi, esi
je 0x1400033c5
lea rax, [rsp + 0x20]
lea rcx, [rsp + 0x20]
mov edx, esi
sub rdi, rax
lea rax, [rsp + 0x20]
sub rbx, rax
movzx eax, byte [rdi + rcx]
add rcx, 1
xor al, byte [rcx - 1]
sub rdx, 1
mov byte [rbx + rcx - 1], al
jne 0x1400033b0
mov rdi, rbp
mov rcx, qword [rdi]
mov eax, 1
mov qword [r13], rcx
mov rcx, qword [rdi + 8]
mov qword [r13 + 8], rcx
mov r12, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400078a0
add rsp, 0x48
pop r15
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp esi, 0x10
jb 0x1400034ab
mov r12, rsi
sub rdi, rdx
mov qword [rsp + 0x40], r14
shr r12, 4
nop
nop
nop
mov rax, qword [rbp]
lea rcx, [rsp + 0x20]
mov r8, r15
mov qword [rcx], rax
mov rax, qword [rbp + 8]
mov rdx, rbx
mov qword [rcx + 8], rax
mov rcx, rbp
call fcn.140002b00
lea r11, [r13 + 2]
mov ecx, 4
nop
nop
movzx eax, byte [rbx + rdi]
add rbx, 4
add r11, 4
xor byte [rbx - 4], al
movzx eax, byte [r11 - 5]
xor byte [rbx - 3], al
movzx eax, byte [r11 - 4]
xor byte [rbx - 2], al
movzx eax, byte [r11 - 3]
xor byte [rbx - 1], al
sub rcx, 1
jne 0x140003450
lea rcx, [rsp + 0x20]
add esi, 0xfffffff0
add rbp, 0x10
mov rax, qword [rcx]
sub rdi, 0x10
sub r12, 1
mov qword [r13], rax
mov rax, qword [rcx + 8]
mov qword [r13 + 8], rax
jne 0x140003420
mov r14, qword [rsp + 0x40]
test esi, esi
je 0x140003535
mov rax, qword [rbp]
lea rcx, [rsp + 0x20]
mov r8, r15
mov qword [rcx], rax
mov rax, qword [rbp + 8]
mov rdx, rbx
mov qword [rcx + 8], rax
lea rcx, [rsp + 0x20]
call fcn.140002b00
test esi, esi
je 0x140003502
mov r8, r13
mov rcx, rbx
mov edx, esi
sub r8, rbx
nop
nop
nop
movzx eax, byte [r8 + rcx]
add rcx, 1
xor byte [rcx - 1], al
sub rdx, 1
jne 0x1400034f0
cmp esi, 0x10
movsxd rax, esi
jae 0x140003521
mov r8d, 0x10
lea rcx, [rax + rbx]
lea rdx, [rsp + rax + 0x20]
sub r8d, esi
call sub.MSVCR80.dll_memcpy
lea rcx, [rsp + 0x20]
mov rax, qword [rcx]
mov qword [r13], rax
mov rax, qword [rcx + 8]
mov qword [r13 + 8], rax
mov eax, 1
jmp 0x1400033dc
xor eax, eax
jmp 0x1400033e4