joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140006153
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000619a
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140006195
nop
cmp rbx, rcx
jae 0x14000619a
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140006180
cmp rbx, rcx
jb 0x14000619e
xor eax, eax
jmp 0x1400061aa
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400069a0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov rbp, qword [rsp + 0xc8]
xor r13d, r13d
mov rsi, rcx
mov dword [rsp + 0x40], r13d
mov rcx, qword [rcx + 0x60]
mov ebx, r13d
mov qword [rsp + 0x48], rbx
mov r12d, r9d
mov dword [rsp + 0x44], r13d
mov r15, r8
mov r14, rdx
test rcx, rcx
je 0x1400069ee
mov edx, 0x1b58
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
mov edi, 0x57
call qword [rsi + 0x90]
test al, al
je 0x140006aca
test rbp, rbp
je 0x140006aca
cmp r13w, word [rbp]
je 0x140006aca
mov rcx, rsi
call fcn.140007130
mov edi, eax
test eax, eax
je 0x140006a31
cmp eax, 0xb7
jne 0x140006aca
lea rax, [rsp + 0x48]
mov r9d, r12d
mov qword [rsp + 0x38], rax
mov r8, r15
lea rax, [rsp + 0x40]
mov rdx, r14
mov qword [rsp + 0x30], rax
mov rcx, rsi
mov eax, dword [rsp + 0xc0]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], eax
call fcn.140007520
mov rbx, qword [rsp + 0x48]
mov edi, eax
test eax, eax
jne 0x140006aca
test rbx, rbx
jne 0x140006a7b
lea edi, [rax + 0xe]
jmp 0x140006aca
or rax, 0xffffffffffffffff
nop
cmp word [rbx + rax*2 + 2], r13w
lea rax, [rax + 1]
jne 0x140006a80
mov rcx, qword [rsi + 0x48]
lea r8d, [rax + rax]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], r13
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test byte [rsi + 0x74], 1
mov ebp, eax
je 0x140006abe
cmp r13w, word [rbx]
je 0x140006abe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test ebp, ebp
jne 0x140006aca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [rsi + 0x48]
mov qword [rsi + 0x48], r13
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140006ae2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140006aef
mov rcx, rbx
call fcn.14002ed10
mov rcx, qword [rsi + 0x60]
test rcx, rcx
je 0x140006afe
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140007020
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x40
mov edi, r8d
mov rax, rdx
mov rbx, rcx
test rdx, rdx
je 0x140007116
xor ebp, ebp
cmp bp, word [rdx]
je 0x140007116
cmp qword [rcx + 0x48], rbp
je 0x140007058
mov eax, 0xb7
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x60], rsi
mov edx, 0xc0000000
mov dword [rsp + 0x28], LoadRegTypeLib
mov rcx, rax
mov esi, ebp
mov dword [rsp + 0x20], edi
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rbx + 0x48]
mov qword [rbx + 0x48], rax
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000709d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x48]
cmp rcx, 0xffffffffffffffff
jne 0x1400070c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov qword [rbx + 0x48], rbp
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
cmp edi, 3
jne 0x1400070e3
lea r9d, [rdi - 1]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, esi
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
cmp edi, 2
jne 0x140007107
lea r9, [rsp + 0x78]
mov word [rsp + 0x68], 0xfeff
mov r8d, edi
mov qword [rsp + 0x20], rbp
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, esi
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
mov eax, 0x57
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret

Function at 0x140007c90
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
test rdx, rdx
jne 0x140007cb3
lea eax, [rdx + 0x57]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea r9, [rsp + 0x38]
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov qword [rsp + 0x38], 0
mov edx, 0x8000
lea rcx, [0x14006dff8]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov rbx, qword [rsp + 0x38]
test eax, eax
jns 0x140007ceb
mov edi, 0x57
jmp 0x140007cff
or r9, 0xffffffffffffffff
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140033eb0
mov edi, eax
test rbx, rbx
je 0x140007d0d
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000a8b0
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov rsi, rdx
xor edi, edi
mov qword [rsp + 0x50], rdi
lea r9, [rsp + 0x50]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x14006dff8]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x14000a8f6
lea eax, [rdi + 0x57]
jmp 0x14000a93b
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rbx
test rbx, rbx
je 0x14000a91c
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x14000a910
mov edi, eax
mov r8d, edi
mov rdx, rbx
mov rcx, rsi
call fcn.140006460
nop
test rbx, rbx
je 0x14000a939
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000ca68
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rax, rdx
mov edi, 1
test rdx, rdx
jne 0x14000cac0
mov ecx, edi
call fcn.1400027b0
test eax, eax
je 0x14000cc52
lea rax, str.No_command_line__not_signaling_that_were_initialized.
mov ecx, edi
lea r9d, [rdi + 0x49]
mov qword [rsp + 0x20], rax
lea r8, str.CMcAWFwkModule::SignalInitialized
lea rdx, str.McAWFwkModule.cpp
call fcn.14000c294
jmp 0x14000cc52
xor ebx, ebx
lea rdx, [rsp + 0x68]
and dword [rsp + 0x68], ebx
mov rcx, rax
xor r12d, r12d
xor r13d, r13d
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r14, rax
test rax, rax
je 0x14000cc42
cmp dword [rsp + 0x68], ebx
jle 0x14000cc42
mov ecx, edi
call fcn.1400027b0
test eax, eax
je 0x14000cb2a
lea rax, [rsp + 0x68]
mov ecx, edi
mov qword [rsp + 0x28], rax
lea r9d, [rbx + 0x59]
lea rax, str.Found__d_command_line_args
lea r8, str.CMcAWFwkModule::SignalInitialized
mov qword [rsp + 0x20], rax
lea rdx, str.McAWFwkModule.cpp
call fcn.14000c82c
cmp dword [rsp + 0x68], ebx
jle 0x14000cc67
mov r15, r14
mov edx, 0x104
lea rcx, str.F47DFB42_C817_4ebf_9ED0_8560453D9F63
call fcn.14002e700
mov rcx, qword [r15]
lea rdx, str.F47DFB42_C817_4ebf_9ED0_8560453D9F63
mov r8, rax
call fcn.14002e8f0
test eax, eax
jne 0x14000cbd4
mov rbx, qword [r15]
lea rdx, [0x140057400]
mov rcx, rbx
call fcn.14002e564
mov ecx, edi
lea rbx, [rbx + rax*2]
add rbx, 2
mov qword [rsp + 0x70], rbx
call fcn.1400027b0
test eax, eax
je 0x14000cbbe
lea rax, [rsp + 0x70]
mov r9d, 0x63
mov qword [rsp + 0x28], rax
lea r8, str.CMcAWFwkModule::SignalInitialized
lea rax, str.Attempting_to_open_event___s_
mov ecx, edi
lea rdx, str.McAWFwkModule.cpp
mov qword [rsp + 0x20], rax
call fcn.14000c898
mov rbx, qword [rsp + 0x70]
mov r8, rbx
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rbx, rax
mov r13d, edi
add r12d, edi
add r15, 8
cmp r12d, dword [rsp + 0x68]
jl 0x14000cb37
test rbx, rbx
je 0x14000cbff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000cc44
test r13d, r13d
je 0x14000cc67
mov ecx, edi
call fcn.1400027b0
test eax, eax
je 0x14000cc42
movsxd rax, r12d
lea r8, str.CMcAWFwkModule::SignalInitialized
mov r9d, 0x72
lea rdx, str.McAWFwkModule.cpp
lea rcx, [r14 + rax*8]
mov qword [rsp + 0x28], rcx
lea rax, str.Unable_to_open_event___s_
mov ecx, edi
mov qword [rsp + 0x20], rax
call fcn.14000c898
xor edi, edi
test r14, r14
je 0x14000cc52
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, edi
call fcn.1400027b0
test eax, eax
je 0x14000cc44
lea rax, str.Didnt_find_an_event_to_attempt_to_open.
mov r9d, 0x77
lea r8, str.CMcAWFwkModule::SignalInitialized
mov qword [rsp + 0x20], rax
lea rdx, str.McAWFwkModule.cpp
mov ecx, edi
call fcn.14000c294
jmp 0x14000cc44
Function at 0x14000d4d4
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov esi, 1
mov ecx, esi
call fcn.1400027b0
test eax, eax
je 0x14000d51d
lea rax, str.CMcAWFwkService::InstallService___r_n
mov r9d, LoadRegTypeLib
lea r8, str.CMcAWFwkService::InstallService
mov qword [rsp + 0x20], rax
lea rdx, str.McAWtFwkService.cpp
mov ecx, esi
call fcn.14000c294
mov rcx, rbx
call fcn.14000fd48
test eax, eax
je 0x14000d58f
xor edx, edx
xor ecx, ecx
mov r8d, 0xc0000000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x14000d58d
mov r8d, 3
lea rdx, [0x140056e80]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x14000d584
lea rax, [0x140057a10]
mov edx, esi
lea r8, [rsp + 0x48]
mov qword [rsp + 0x48], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000f61c
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x1368]
mov eax, 0x1460
call fcn.1400214f0
sub rsp, rax
mov rax, qword [0x14007d370]
xor rax, rsp
mov qword [rbp + 0x1350], rax
xor r14d, r14d
mov qword [rcx + 8], rdx
test r8, r8
mov qword [rcx + 0x18], r14
lea rax, vtable.CNTService.0
mov dword [rcx + 0x20], r14d
cmovne rdx, r8
mov qword [rcx], rax
mov qword [rcx + 0x10], rdx
lea ebx, [r14 + 0x10]
mov dword [rcx + 0x64], ebx
mov rdi, rcx
mov qword [rcx + 0x40], r14
mov dword [rcx + 0x48], 1
mov qword [rcx + 0x50], r14
mov dword [rcx + 0x5c], r14d
mov dword [rcx + 0x60], 0xf01ff
mov dword [rcx + 0x68], 2
mov dword [rcx + 0x6c], 1
mov qword [rcx + 0x70], r14
mov dword [rcx + 0x78], r14d
mov qword [rcx + 0x80], r14
mov qword [rcx + 0x88], r14
mov qword [rcx + 0x90], r14
add rcx, 0x98
mov dword [rcx], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rdi + 0xa8], 2
mov eax, r14d
mov qword [0x14007f648], rdi
sete al
mov dword [rdi + 0x58], eax
mov dword [0x14007f640], 1
mov dword [rdi + 0x24], ebx
mov dword [rdi + 0x34], r14d
cmp dword [rdi + 0x58], r14d
je 0x14000f7e0
mov eax, 0xff
mov dword [rsp + 0x40], 0x1000
mov ebx, 0x200
mov dword [rsp + 0x44], eax
mov r8d, ebx
mov dword [rsp + 0x48], eax
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140022cd0
mov r8d, ebx
lea rcx, [rbp + 0x150]
xor edx, edx
call fcn.140022cd0
mov r8d, dword [rsp + 0x40]
lea rcx, [rbp + 0x350]
xor edx, edx
call fcn.140022cd0
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rax, [rsp + 0x4c]
xor ecx, ecx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x350]
lea rax, [rbp + 0x150]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x14000f7e0
lea rcx, [rbp + 0x350]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x14000f7e0
lea rcx, [rbp + 0x350]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, eax
mov ebx, eax
call fcn.1400210e0
lea r8, [rbp + 0x350]
mov qword [rdi + 0x50], rax
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.ADVAPI32.dll_CopySid]
mov rax, rdi
mov rcx, qword [rbp + 0x1350]
xor rcx, rsp
call fcn.140021430
lea r11, [rsp + 0x1460]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14000f86c
Capabilities:
Continue service
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14007d370]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x14000f992
mov rdx, qword [rbx + 8]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x14000f952
lea r14, [rbx + 0x24]
mov rcx, rax
mov r8, r14
lea edx, [rdi + 3]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14000f947
mov rdx, qword [rbx + 0x10]
lea rcx, str.Stopping__s.
call fcn.140010ab8
jmp 0x14000f908
cmp dword [rbx + 0x28], 5
jne 0x14000f923
lea rcx, [0x140059bec]
call fcn.140010ab8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14000f8f6
cmp dword [rbx + 0x28], 4
mov rdx, qword [rbx + 0x10]
jne 0x14000f93b
mov edi, 1
lea rcx, str._n_s_stopped._n
jmp 0x14000f942
lea rcx, str._n_s_failed_to_stop._n
call fcn.140010ab8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000f987
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000fc64
cmp qword [rax + 0x18], 8
jb 0x14000f969
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.OpenService_failed____s_n
call fcn.140010ab8
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov dl, 1
call fcn.140003a60
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000f9c7
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000fc64
cmp qword [rax + 0x18], 8
jb 0x14000f9a9
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.OpenSCManager_failed____s_n
call fcn.140010ab8
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov dl, 1
call fcn.140003a60
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140021430
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000fae4
Capabilities:
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14007d370]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x14000fc0a
mov rdx, qword [rbx + 8]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x14000fbca
lea r14, [rbx + 0x24]
mov rcx, rax
mov r8, r14
lea edx, [rdi + 1]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14000fbbf
mov rdx, qword [rbx + 0x10]
lea rcx, str.Stopping__s.
call fcn.140010ab8
jmp 0x14000fb80
cmp dword [rbx + 0x28], 3
jne 0x14000fb9b
lea rcx, [0x140059bec]
call fcn.140010ab8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14000fb6e
cmp dword [rbx + 0x28], 1
mov rdx, qword [rbx + 0x10]
jne 0x14000fbb3
mov edi, 1
lea rcx, str._n_s_stopped._n
jmp 0x14000fbba
lea rcx, str._n_s_failed_to_stop._n
call fcn.140010ab8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000fbff
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000fc64
cmp qword [rax + 0x18], 8
jb 0x14000fbe1
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.OpenService_failed____s_n
call fcn.140010ab8
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov dl, 1
call fcn.140003a60
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000fc3f
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000fc64
cmp qword [rax + 0x18], 8
jb 0x14000fc21
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.OpenSCManager_failed____s_n
call fcn.140010ab8
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov dl, 1
call fcn.140003a60
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140021430
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400100e8
Capabilities:
Pause service
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14007d370]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x14001020e
mov rdx, qword [rbx + 8]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x1400101ce
lea r14, [rbx + 0x24]
mov rcx, rax
mov r8, r14
lea edx, [rdi + 2]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400101c3
mov rdx, qword [rbx + 0x10]
lea rcx, str.Stopping__s.
call fcn.140010ab8
jmp 0x140010184
cmp dword [rbx + 0x28], 6
jne 0x14001019f
lea rcx, [0x140059bec]
call fcn.140010ab8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140010172
cmp dword [rbx + 0x28], 7
mov rdx, qword [rbx + 0x10]
jne 0x1400101b7
mov edi, 1
lea rcx, str._n_s_stopped._n
jmp 0x1400101be
lea rcx, str._n_s_failed_to_stop._n
call fcn.140010ab8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140010203
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000fc64
cmp qword [rax + 0x18], 8
jb 0x1400101e5
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.OpenService_failed____s_n
call fcn.140010ab8
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov dl, 1
call fcn.140003a60
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140010243
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000fc64
cmp qword [rax + 0x18], 8
jb 0x140010225
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.OpenSCManager_failed____s_n
call fcn.140010ab8
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov dl, 1
call fcn.140003a60
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140021430
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400103a4
Capabilities:
Delete registry value
Delete service
Persist via run registry key
Query service status
Stop service

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14007d370]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
mov rbx, rcx
cmp dword [rcx + 0x58], edi
jne 0x140010418
mov rdx, qword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
lea r8, [r11 - 0x48]
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x48], rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1400105a1
mov rdx, qword [rbx + 8]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 1
jmp 0x1400105a1
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x14001056c
mov rdx, qword [rbx + 8]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x14001052c
lea r14, [rbx + 0x24]
mov edx, 1
mov r8, r14
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400104c8
mov rdx, qword [rbx + 0x10]
lea rcx, str.Stopping__s.
call fcn.140010ab8
jmp 0x140010490
cmp dword [rbx + 0x28], 3
jne 0x1400104ab
lea rcx, [0x140059bec]
call fcn.140010ab8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14001047e
cmp dword [rbx + 0x28], 1
lea rcx, str._n_s_stopped._n
mov rdx, qword [rbx + 0x10]
je 0x1400104c3
lea rcx, str._n_s_failed_to_stop._n
call fcn.140010ab8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x1400104ec
mov rdx, qword [rbx + 0x10]
lea rcx, str._s_removed._n
call fcn.140010ab8
mov edi, 1
jmp 0x140010521
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.14000fc64
cmp qword [rax + 0x18], 8
jb 0x140010503
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.DeleteService_failed____s_n
call fcn.140010ab8
xor r8d, r8d
lea rcx, [rsp + 0x28]
mov dl, 1
call fcn.140003a60
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140010561
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.14000fc64
cmp qword [rax + 0x18], 8
jb 0x140010543
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.OpenService_failed____s_n
call fcn.140010ab8
xor r8d, r8d
lea rcx, [rsp + 0x28]
mov dl, 1
call fcn.140003a60
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400105a1
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.14000fc64
cmp qword [rax + 0x18], 8
jb 0x140010583
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.OpenSCManager_failed____s_n
call fcn.140010ab8
xor r8d, r8d
lea rcx, [rsp + 0x28]
mov dl, 1
call fcn.140003a60
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140021430
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret