joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140078eb8
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push r14
sub rsp, 0x1c0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x1402d9850]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov r14, rdx
mov rdi, rcx
and dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0x78
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x30]
lea rdx, str._Monitor::InjectorMonitor::CreateMonitorThread_
lea rcx, [r11 - 0x140]
call fcn.14003fda0
nop
xor r9d, r9d
xor r8d, r8d
lea esi, [r9 + 1]
mov edx, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
mov qword [rsp + 0x80], rax
test rax, rax
jne 0x140078f67
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
lea rax, str.CreateEvent:InterruptionEvent
mov qword [rsp + 0x60], rax
lea rdx, [0x1402d6470]
lea rcx, [rsp + 0x58]
call fcn.14012ccc0
and dword [rsp + 0x38], 0
mov qword [rdi + 8], r14
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, rdi
lea r8, [0x140079cb4]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x140078fcb
and qword [rdi + 8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [0x14021e578]
mov qword [rsp + 0x70], rax
lea rdx, [0x1402d6470]
lea rcx, [rsp + 0x68]
call fcn.14012ccc0
mov qword [rdi + 0x20], rbx
mov qword [rdi + 0x10], rax
mov eax, dword [rsp + 0x38]
mov dword [rdi + 0x18], eax
and dword [rsp + 0x34], 0
mov dword [rsp + 0x30], esi
jmp 0x140078fe9
lea rcx, [rsp + 0x88]
call fcn.14003fbb0
nop
mov ecx, dword [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14012a1e0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14007c8ac
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1402d9850]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
mov dword [rsp + 0x20], 0x238
xor ebx, ebx
xor edx, edx
lea ecx, [rbx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rsi, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14007c92f
jmp 0x14007c91a
cmp qword [rdi + 0x18], 8
jb 0x14007c909
mov rdx, qword [rdi]
jmp 0x14007c90c
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call fcn.1401324a4
test eax, eax
je 0x14007c92d
lea rdx, [rsp + 0x20]
mov rcx, rsi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14007c8fd
jmp 0x14007c92f
mov bl, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r8d, r8d
mov dl, 1
mov rcx, rdi
call fcn.140006e40
mov al, bl
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14012a1e0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400803fc
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x1402d9850]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r13, r8
mov r12, rdx
mov rbp, rcx
and dword [rsp + 0x30], 0
mov ecx, 0xf8
call fcn.140129aa4
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140080458
mov rcx, rax
call fcn.14007e92c
mov r14, rax
jmp 0x14008045b
xor r14d, r14d
mov rbx, r14
mov qword [rsp + 0x38], rbx
test r14, r14
jne 0x140080471
lea esi, [r14 + 8]
jmp 0x140080558
mov r8, r12
lea rdx, [rsp + 0x48]
mov rcx, rbp
call fcn.140080138
nop
test rbp, rbp
je 0x14008048d
lea rdx, [rbp + 8]
jmp 0x14008048f
xor edx, edx
lea rcx, [rsp + 0x48]
mov esi, 8
cmp qword [rsp + 0x60], rsi
cmovae rcx, qword [rsp + 0x48]
call fcn.140088150
mov r15, rax
test rax, rax
je 0x140080548
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi - 7]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
test rax, rax
jne 0x1400804d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14008051a
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, rbp
lea r8, [0x1400850e4]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x140080529
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp rdi, 0xffffffffffffffff
je 0x14008051a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [r15]
mov edx, 1
mov rcx, r15
call qword [rax]
jmp 0x140080548
mov qword [r14], rax
mov eax, dword [rsp + 0x30]
mov dword [r14 + 8], eax
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x20], r15
mov qword [r14 + 0x28], r12
xor ebx, ebx
mov qword [r13], r14
xor esi, esi
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x48]
call fcn.140006e40
nop
test rbx, rbx
je 0x140080572
mov rcx, rbx
call fcn.14007efb8
mov edx, 0xf8
mov rcx, rbx
call fcn.14012a238
mov eax, esi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14012a1e0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140084b90
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
cmp qword [rcx], rbx
jne 0x140084ba2
lea eax, [rbx + 0x57]
jmp 0x140084bba
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x140084bb8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x14008a6ec
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
and qword [rsp + 0x28], 0
lea r8, [0x14008a604]
and dword [rsp + 0x20], 0
mov rbx, rcx
mov byte [rcx + 0x60], 1
mov r9, rcx
xor ecx, ecx
xor edx, edx
call fcn.140132768
mov qword [rbx + 0x58], rax
add rsp, 0x30
pop rbx
ret
Function at 0x1400955d8
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rsi, rcx
mov dword [rax + 0x18], 0x78
xor r9d, r9d
xor r8d, r8d
lea r14d, [r9 + 1]
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
mov qword [rsp + 0x88], rax
xor edi, edi
test rax, rax
jne 0x14009563b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [0x1402d5f88]
lea rcx, [rsp + 0x30]
call fcn.14012ccc0
mov dword [rsp + 0x78], edi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, rsi
lea r8, [0x140095bf0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14009568a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
lea rdx, [0x1402d5f88]
lea rcx, [rsp + 0x34]
call fcn.14012ccc0
mov qword [rsi + 0x18], rbx
mov qword [rsi + 8], rax
mov eax, dword [rsp + 0x78]
mov dword [rsi + 0x10], eax
jmp 0x1400956a7
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, r14d
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret

Function at 0x1400956c0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x50
mov qword [rax - 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rdi, r8
mov dword [rax + 0x20], 0x78
xor ebx, ebx
mov dword [rax - 0x28], ebx
lea rax, [rax - 0x28]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, rdx
lea r8, [0x140095d60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14009572d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
lea rdx, [0x1402d5f88]
lea rcx, [rsp + 0x34]
call fcn.14012ccc0
mov qword [rdi], rax
mov edi, 1
jmp 0x14009573f
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x140095914
Capabilities:
Resume thread

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x40
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r14, rcx
lea rdx, [rax - 0x20]
call fcn.140095794
nop
mov rbx, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
cmp rbx, rsi
je 0x140095992
and qword [rsp + 0x58], 0
lea r8, [rsp + 0x58]
mov rdx, qword [rbx]
mov rcx, r14
call fcn.1400956c0
mov rdi, qword [rsp + 0x58]
test eax, eax
je 0x140095976
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140095989
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 8
cmp rbx, rsi
jne 0x14009594d
sub rsi, qword [rsp + 0x28]
sar rsi, 3
cmp qword [rsp + 0x28], 0
je 0x1400959c1
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rsp + 0x28]
sar rdx, 3
mov r8d, 8
mov rcx, qword [rsp + 0x28]
call fcn.140002a70
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14009c36c
Capabilities:
Query service status

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1402d9850]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, qword [rcx]
mov rsi, r8
test rcx, rcx
jne 0x14009c39d
mov ecx, 0x427
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14009c3d6
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x14009c399
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov edi, eax
test eax, eax
je 0x14009c3cb
mov ecx, dword [rsp + 0x24]
mov dword [rsi], ecx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14012a1e0
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x14009cee4
Capabilities:
Start service

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x1c0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x1402d9850]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, rdx
mov rdi, rcx
and dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0x78
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x20]
lea rdx, str._ServiceManager::Start_
lea rcx, [r11 - 0x148]
call fcn.14003fda0
nop
and qword [rsp + 0x28], 0
mov rcx, qword [0x1402de630]
test rcx, rcx
je 0x14009d084
mov rax, qword [rcx]
mov edx, 0x7d0
call qword [rax + 0x10]
test eax, eax
je 0x14009d084
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0xa0]
call fcn.140040070
nop
call fcn.14010ab78
mov rcx, qword [rsp + 0xa0]
movsxd rdx, dword [rcx + 4]
lea rcx, [rsp + 0xa0]
add rcx, rdx
mov r8, rax
lea rdx, [rsp + 0x38]
call fcn.140040f30
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14009cfcd
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x14009cfcd
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
lea rdx, str._ServiceManager::Start_
lea rcx, [rsp + 0xa0]
call fcn.140043d80
lea rdx, str.Service_name:
mov rcx, rax
call fcn.140043d80
mov rdx, rbx
mov rcx, rax
call fcn.140043d80
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0xa0]
call fcn.14003ffc0
nop
lea r8, [rsp + 0x190]
cmp qword [rsp + 0x1a8], 8
cmovae r8, qword [rsp + 0x190]
mov rcx, qword [0x1402de630]
mov rax, qword [rcx]
mov r9, qword [rsp + 0x1a0]
mov edx, 0x7d0
call qword [rax + 0x20]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x190]
call fcn.140006e40
nop
lea rcx, [rsp + 0x128]
call fcn.14003fff0
nop
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x128], rax
lea rcx, [rsp + 0x128]
call fcn.14010acb0
nop
mov rcx, qword [rdi]
test rcx, rcx
jne 0x14009d0b1
mov dword [rsp + 0x48], 0x427
lea rax, str.Checking_ServiceMangerIsOpened_
mov qword [rsp + 0x50], rax
lea rdx, [0x1402d6470]
lea rcx, [rsp + 0x48]
call fcn.14012ccc0
mov r8d, 0xf01ff
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x14009d0f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
lea rax, str.OpenService
mov qword [rsp + 0x60], rax
lea rdx, [0x1402d6470]
lea rcx, [rsp + 0x58]
call fcn.14012ccc0
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x14009d13c
cmp eax, 0x420
je 0x14009d13c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, str.StartService
mov qword [rsp + 0x70], rax
lea rdx, [0x1402d6470]
lea rcx, [rsp + 0x68]
call fcn.14012ccc0
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x20], 1
jmp 0x14009d14f
test rdi, rdi
je 0x14009d15d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [rsp + 0x20]
lea rcx, [rsp + 0x80]
call fcn.14003fbb0
nop
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14012a1e0
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1c0
pop rdi
ret
Function at 0x14009d19c
Capabilities:
Stop service

Disassembly:
mov r11, rsp
push rsi
sub rsp, 0x1e0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x1402d9850]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rbx, rdx
mov rsi, rcx
and dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0x78
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x20]
lea rdx, str._ServiceManager::Stop_
lea rcx, [r11 - 0x168]
call fcn.14003fda0
nop
and qword [rsp + 0x28], 0
mov rcx, qword [0x1402de630]
test rcx, rcx
je 0x14009d33c
mov rax, qword [rcx]
mov edx, 0x7d0
call qword [rax + 0x10]
test eax, eax
je 0x14009d33c
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0xa0]
call fcn.140040070
nop
call fcn.14010ab78
mov rcx, qword [rsp + 0xa0]
movsxd rdx, dword [rcx + 4]
lea rcx, [rsp + 0xa0]
add rcx, rdx
mov r8, rax
lea rdx, [rsp + 0x38]
call fcn.140040f30
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14009d285
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x14009d285
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
lea rdx, str._ServiceManager::Stop_
lea rcx, [rsp + 0xa0]
call fcn.140043d80
lea rdx, str.Service_name:
mov rcx, rax
call fcn.140043d80
mov rdx, rbx
mov rcx, rax
call fcn.140043d80
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0xa0]
call fcn.14003ffc0
nop
lea r8, [rsp + 0x190]
cmp qword [rsp + 0x1a8], 8
cmovae r8, qword [rsp + 0x190]
mov rcx, qword [0x1402de630]
mov rax, qword [rcx]
mov r9, qword [rsp + 0x1a0]
mov edx, 0x7d0
call qword [rax + 0x20]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x190]
call fcn.140006e40
nop
lea rcx, [rsp + 0x128]
call fcn.14003fff0
nop
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x128], rax
lea rcx, [rsp + 0x128]
call fcn.14010acb0
nop
mov rcx, qword [rsi]
test rcx, rcx
jne 0x14009d369
mov dword [rsp + 0x48], 0x427
lea rax, str.Checking_ServiceMangerIsOpened_
mov qword [rsp + 0x50], rax
lea rdx, [0x1402d6470]
lea rcx, [rsp + 0x48]
call fcn.14012ccc0
mov r8d, 0xf01ff
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x14009d3ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
lea rax, str.OpenService
mov qword [rsp + 0x60], rax
lea rdx, [0x1402d6470]
lea rcx, [rsp + 0x58]
call fcn.14012ccc0
and dword [rsp + 0x1b0], 0
xor eax, eax
mov qword [rsp + 0x1b4], rax
mov qword [rsp + 0x1bc], rax
mov qword [rsp + 0x1c4], rax
lea r8, [rsp + 0x1b0]
lea edx, [rax + 1]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14009d40d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [0x1402257c0]
mov qword [rsp + 0x70], rax
lea rdx, [0x1402d6470]
lea rcx, [rsp + 0x68]
call fcn.14012ccc0
and dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 1
jmp 0x14009d421
test rbx, rbx
je 0x14009d42f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [rsp + 0x20]
lea rcx, [rsp + 0x80]
call fcn.14003fbb0
nop
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14012a1e0
mov rbx, qword [rsp + 0x200]
add rsp, 0x1e0
pop rsi
ret
Function at 0x14009d470
Capabilities:
Delete service
Stop service

Disassembly:
mov r11, rsp
push rsi
sub rsp, 0x1e0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x1402d9850]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rbx, rdx
mov rsi, rcx
and dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0x78
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x20]
lea rdx, str._ServiceManager::Uninstall_
lea rcx, [r11 - 0x168]
call fcn.14003fda0
nop
and qword [rsp + 0x28], 0
mov rcx, qword [0x1402de630]
test rcx, rcx
je 0x14009d610
mov rax, qword [rcx]
mov edx, 0x7d0
call qword [rax + 0x10]
test eax, eax
je 0x14009d610
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0xa0]
call fcn.140040070
nop
call fcn.14010ab78
mov rcx, qword [rsp + 0xa0]
movsxd rdx, dword [rcx + 4]
lea rcx, [rsp + 0xa0]
add rcx, rdx
mov r8, rax
lea rdx, [rsp + 0x38]
call fcn.140040f30
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14009d559
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x14009d559
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
lea rdx, str._ServiceManager::Uninstall_
lea rcx, [rsp + 0xa0]
call fcn.140043d80
lea rdx, str.Service_name:
mov rcx, rax
call fcn.140043d80
mov rdx, rbx
mov rcx, rax
call fcn.140043d80
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0xa0]
call fcn.14003ffc0
nop
lea r8, [rsp + 0x190]
cmp qword [rsp + 0x1a8], 8
cmovae r8, qword [rsp + 0x190]
mov rcx, qword [0x1402de630]
mov rax, qword [rcx]
mov r9, qword [rsp + 0x1a0]
mov edx, 0x7d0
call qword [rax + 0x20]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x190]
call fcn.140006e40
nop
lea rcx, [rsp + 0x128]
call fcn.14003fff0
nop
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x128], rax
lea rcx, [rsp + 0x128]
call fcn.14010acb0
nop
mov rcx, qword [rsi]
test rcx, rcx
jne 0x14009d63d
mov dword [rsp + 0x48], 0x427
lea rax, str.Checking_ServiceMangerIsOpened_
mov qword [rsp + 0x50], rax
lea rdx, [0x1402d6470]
lea rcx, [rsp + 0x48]
call fcn.14012ccc0
mov r8d, 0xf01ff
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x14009d680
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
lea rax, str.OpenService
mov qword [rsp + 0x60], rax
lea rdx, [0x1402d6470]
lea rcx, [rsp + 0x58]
call fcn.14012ccc0
lea r8, [rsp + 0x1b0]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x14009d6ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [0x140225718]
mov qword [rsp + 0x70], rax
lea rdx, [0x1402d6470]
lea rcx, [rsp + 0x68]
call fcn.14012ccc0
and dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 1
jmp 0x14009d6de
test rbx, rbx
je 0x14009d6ec
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [rsp + 0x20]
lea rcx, [rsp + 0x80]
call fcn.14003fbb0
nop
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14012a1e0
mov rbx, qword [rsp + 0x200]
add rsp, 0x1e0
pop rsi
ret
Function at 0x1400ad4ac
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rcx
mov ecx, 0x1f8
call fcn.140129aa4
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400ad4de
mov rdx, rbx
mov rcx, rax
call fcn.1400d65c0
nop
mov qword [rbx + 8], rax
or dword [rsp + 0x20], 0xffffffff
mov r9d, 0x10000
mov r8d, 0x61a
lea rdx, str.SM_VF_NOTIFY_CHAN
mov rcx, rax
call fcn.1400d7070
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x1400ad570]
xor edx, edx
xor ecx, ecx
call fcn.140132768
add rsp, 0x40
pop rbx
ret
Function at 0x1400ae2ac
Capabilities:
Acquire debug privileges

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x1d0
mov qword [r11 - 0x148], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x1402d9850]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea rdx, str._WatchmanConsole::Run_
mov qword [rsp + 0x40], rdx
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x24], 0x78
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x20]
lea rcx, [r11 - 0x140]
call fcn.14003fda0
nop
lea rcx, [rsp + 0x28]
call fcn.1400e3380
nop
call fcn.140071994
mov rcx, rax
mov rax, qword [rax]
lea rdx, str.SeDebugPrivilege
call qword [rax + 0x38]
xor edi, edi
test eax, eax
jne 0x1400ae358
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
lea rax, str.Monitor::Application::ElevatePrivilege_SE_DEBUG_NAME_
mov qword [rsp + 0x58], rax
lea rdx, [0x1402d6470]
lea rcx, [rsp + 0x50]
call fcn.14012ccc0
call fcn.1400bd804
test eax, eax
jne 0x1400ae389
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
lea rax, str.Monitor::WatchmanMonitor::Initialize
mov qword [rsp + 0x68], rax
lea rdx, [0x1402d6470]
lea rcx, [rsp + 0x60]
call fcn.14012ccc0
nop
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x30]
call fcn.1400bbfa4
test eax, eax
jne 0x1400ae3c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, str.Monitor::WatchmanMonitor::Create
mov qword [rsp + 0x78], rax
lea rdx, [0x1402d6470]
lea rcx, [rsp + 0x70]
call fcn.14012ccc0
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test eax, eax
jne 0x1400ae402
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x80], eax
lea rax, str.ProcessMonitor::Start
mov qword [rsp + 0x88], rax
lea rdx, [0x1402d6470]
lea rcx, [rsp + 0x80]
call fcn.14012ccc0
mov bl, 1
test bl, bl
je 0x1400ae4a3
mov qword [rsp + 0x1b8], 7
mov qword [rsp + 0x1b0], rdi
mov word [rsp + 0x1a0], di
lea rdx, str.Enter_q_for_exit.
lea rcx, [0x1402df360]
call fcn.140043d80
mov rcx, rax
call fcn.1400ae0f4
lea rdx, [rsp + 0x1a0]
lea rcx, [0x1402df530]
call fcn.1400adee0
lea rdx, [0x14022866c]
lea rcx, [rsp + 0x1a0]
call fcn.140013280
test eax, eax
je 0x1400ae489
lea rdx, [0x140228670]
lea rcx, [rsp + 0x1a0]
call fcn.140013280
test eax, eax
mov bl, 1
jne 0x1400ae48c
mov bl, dil
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1a0]
call fcn.140006e40
jmp 0x1400ae404
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov dword [rsp + 0x24], edi
mov dword [rsp + 0x20], edi
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400ae4c7
mov rax, qword [rcx]
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x28]
call fcn.1400e33f0
nop
mov ebx, dword [rsp + 0x20]
lea rcx, [rsp + 0x98]
call fcn.14003fbb0
nop
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14012a1e0
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret