joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140100604
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x140
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov rcx, qword [rdi]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
lea r14, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
lea r15, str.ContextData
test al, al
je 0x14010073a
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi]
call fcn.14008f814
nop
cmp qword [rax + 0x18], 8
jb 0x140100679
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x30]
lea rdx, str.Watcher_is_running_successfully._WatcherName:_s
lea rcx, [rbp + 0x10]
call fcn.14000987c
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x1401006a0
mov rdi, qword [rax]
lea rcx, [rbp - 0x80]
call fcn.1400f7cb0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rdi
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, str.Watcher::Watch
mov edx, 0x3b0
mov ecx, 0x71d70b
mov r8d, 0x32
call fcn.140016678
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x10]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x58]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x78]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x10]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.140007a08
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
mov dword [rsp + 0x30], eax
cmp qword [rbx + 0x18], 8
jb 0x140100750
mov rbx, qword [rbx]
mov qword [rsp + 0x50], rbx
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x50]
lea rdx, str._s.Approximate_duration_:__d_milliseconds.
lea rcx, [rsp + 0x60]
call fcn.14004c598
mov rbx, rax
cmp qword [rax + 0x18], 8
jb 0x14010077d
mov rbx, qword [rax]
lea rcx, [rbp - 0x80]
call fcn.1400f7cb0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rbx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, str.MonitoredScope::ExecuteUnderStopWatch
mov edx, 0x3b0
mov ecx, 0x51054a
mov r8d, 0x32
call fcn.140016678
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x10]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x58]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x78]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.140007a08
mov eax, dword [rsp + 0x30]
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140021f10
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140106a48
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
push r15
sub rsp, 0x40
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov r9, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x140106a80
mov r8, qword [r8]
movabs rcx, 0xcbf29ce484222325
xor edx, edx
add r9, r9
je 0x140106aaf
movzx eax, byte [r8 + rdx]
xor rcx, rax
movabs r10, 0x100000001b3
imul rcx, r10
inc rdx
cmp rdx, r9
jb 0x140106a91
mov r15, qword [rsi + 0x30]
and r15, rcx
add r15, r15
mov rbx, qword [rsi + 0x18]
mov rbx, qword [rbx + r15*8]
mov rax, qword [rsi + 8]
mov rcx, qword [rsi + 0x18]
cmp qword [rcx + r15*8], rax
je 0x140106ad7
mov rax, qword [rcx + r15*8 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x140106b40
lea rcx, [rbx + 0x10]
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x140106af0
mov r9, qword [rdi]
jmp 0x140106af3
mov r9, rdi
mov qword [rsp + 0x20], rax
mov r8, qword [rcx + 0x10]
xor edx, edx
call fcn.140014650
nop
test eax, eax
je 0x140106b0d
mov rbx, qword [rbx]
jmp 0x140106ac1
lea r9, [rbx + 0x10]
mov rax, qword [r9 + 0x10]
cmp qword [r9 + 0x18], 8
jb 0x140106b1f
mov r9, qword [r9]
mov qword [rsp + 0x20], rax
mov r8, qword [rdi + 0x10]
xor edx, edx
mov rcx, rdi
call fcn.140014650
nop
test eax, eax
je 0x140106b3b
mov rbx, qword [rsi + 8]
mov qword [r14], rbx
jmp 0x140106b47
mov rax, qword [rsi + 8]
mov qword [r14], rax
mov rax, r14
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret
Function at 0x14011b5d4
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov rsi, rdx
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rdi, rcx
call fcn.14011db20
xor r15d, r15d
lea rcx, [rsp + 0x38]
cmp qword [rax + 8], r15
sete bl
call fcn.14011d400
test bl, bl
je 0x14011b638
xor eax, eax
jmp 0x14011b757
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14011db20
mov r12d, 0x200
lea rcx, [rsp + 0x70]
mov edx, r12d
mov r8, qword [rax + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, [rsp + 0x38]
call fcn.14011d400
mov r14d, 1
movzx ebx, r14w
cmp r14w, word [rdi]
jae 0x14011b6c5
lea r8, [0x1401cc310]
mov rdx, r12
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
movzx r8d, bx
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14011db20
mov rdx, r12
lea rcx, [rsp + 0x70]
mov r8, qword [rax + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x38]
call fcn.14011d400
add bx, r14w
cmp bx, word [rdi]
jb 0x14011b67a
lea r8, str.__TrueType_
mov rdx, r12
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rax, [rsp + 0x30]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFonts
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14011b754
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rsi + rcx*2], r15w
jne 0x14011b719
lea ecx, [rcx*2 + 2]
mov r9d, r14d
mov dword [rsp + 0x28], ecx
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, r14d
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140021f10
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14011cbe8
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
call fcn.14011cb54
mov dword [rsp + 0x38], 1
xor r9d, r9d
and qword [rsp + 0x30], 0
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call sub.Mso20Win32Client.dll_Ordinal_1013
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14011cc3c
xor al, al
jmp 0x14011cc83
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [rdi], eax
call qword [0x1402675c8]
mov qword [rdi + 8], rax
test rax, rax
je 0x14011cc8e
mov r8d, dword [rdi]
lea r9, [rsp + 0x68]
and qword [rsp + 0x20], 0
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14011ccb0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call fcn.14011cb54
lea rdx, [0x1401df138]
mov dword [rsp + 0x60], 0x1003
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov rcx, rdi
call fcn.14011cb54
lea rdx, [0x1401df138]
mov dword [rsp + 0x60], 0x100b
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x14011ccd4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, rdx
mov dword [rsp + 0x38], 1
and qword [rsp + 0x30], 0
mov rbx, rcx
mov r8d, 2
mov dword [rsp + 0x28], 0x80
mov rcx, rax
mov dword [rsp + 0x20], r8d
xor r9d, r9d
mov edx, 0x40000000
call sub.Mso20Win32Client.dll_Ordinal_1013
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14011cd22
xor al, al
jmp 0x14011cd4f
mov r8d, dword [rbx]
lea r9, [rsp + 0x60]
mov rdx, qword [rbx + 8]
mov rcx, rax
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
mov rcx, rdi
sbb bl, bl
and bl, 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14011db74
Capabilities:
Get common file path
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x158]
sub rsp, 0x250
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov ebx, dword [0x14026230c]
cmp ebx, 0xffffffff
jne 0x14011dc8d
mov edi, 0x104
lea rcx, [rsp + 0x30]
mov edx, edi
mov ebx, 0x409
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14011dc87
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rsp + rcx*2 + 0x2e], 0x5c
je 0x14011dbfb
lea r8, [0x1401754a4]
mov edx, edi
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, str.fontext.dll
mov rdx, rdi
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
je 0x14011dc87
mov edx, esi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x14011dc87
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rax
mov r8d, esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14011dc7e
lea r9, [rsp + 0x24]
mov rcx, rdi
lea r8, [rsp + 0x28]
lea rdx, str.VarFileInfoTranslation
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14011dc7e
cmp dword [rsp + 0x24], 4
jb 0x14011dc7e
mov rax, qword [rsp + 0x28]
movzx ebx, word [rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x14026230c], ebx
mov eax, ebx
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140021f10
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1401234b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov r10, qword [rcx + 0x30]
cmp r10, 0xffffffffffffffff
je 0x140123541
xor ebx, ebx
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x30], ebx
jb 0x1401234f2
mov rax, qword [rdx]
jmp 0x1401234f5
mov rax, rdx
mov rcx, qword [rdx + 0x10]
mov edx, 0xffffffff
cmp rcx, rdx
ja 0x140123569
lea r8d, [rcx + rcx]
mov qword [rsp + 0x20], rbx
mov rcx, r10
lea r9, [rsp + 0x30]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14012359c
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140021f10
mov rbx, qword [rsp + 0x400]
add rsp, 0x3e0
pop rbp
ret
lea r8, str.trying_to_write_to_a_file_thats_not_open
mov edx, 0x15
lea rcx, [rsp + 0x40]
call fcn.140034ca8
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, [0x1401df028]
mov dword [rsp + 0x40], 0x5d
lea rcx, [rsp + 0x40]
mov dword [rbp + 0x144], ebx
mov word [rbp + 0x248], bx
mov word [rbp + 0x148], bx
mov word [rsp + 0x44], bx
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.write_to_file_failed
mov edx, 0xf
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.140031af4
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140126ac8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
mov rbp, rsp
sub rsp, 0x30
cmp byte [0x140267654], 0
je 0x140126aee
mov eax, dword [0x140267658]
jmp 0x140126bf2
and qword [rbp + 0x18], 0
lea rax, [rbp + 0x18]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwarePoliciesMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 4
lea rsi, [0x140267658]
test eax, eax
jne 0x140126b5a
mov rdx, qword [str.CLSIDInterfaceTest]
lea rax, [rbp + 0x10]
mov rcx, qword [rbp + 0x18]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140126b5a
cmp dword [rbp + 0x10], ebx
je 0x140126bc9
mov rcx, qword [rbp + 0x18]
and qword [rbp + 0x18], 0
test rcx, rcx
je 0x140126b6e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp + 0x18]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140126bd1
mov rdx, qword [str.CLSIDInterfaceTest]
lea rax, [rbp + 0x10]
mov rcx, qword [rbp + 0x18]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140126bd1
cmp dword [rbp + 0x10], ebx
jne 0x140126bd1
mov ebx, dword [0x140267658]
jmp 0x140126bda
and dword [0x140267658], 0
xor ebx, ebx
mov rcx, qword [rbp + 0x18]
mov byte [0x140267654], 1
test rcx, rcx
je 0x140126bf0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
Function at 0x140126c10
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000000
lea rdx, str.CLSID
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140126cdd
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
and qword [rbp + 0x28], 0
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140126cce
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rdx, str.InsecureQI
lea rax, [rbp + 0x20]
mov dword [rbp + 0x18], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140126cce
cmp dword [rbp + 0x18], 4
jne 0x140126cce
mov ebx, dword [rbp + 0x20]
cmp ebx, 3
ja 0x140126cce
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140126cdf
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140126cdf
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140126cdd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140126cee
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x140128b5c
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x3d0
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
mov r8d, 0x10000
mov rdi, rdx
mov rbx, rcx
call fcn.140128d40
test al, al
je 0x140128b9e
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140128bab
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
jne 0x140128bcc
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.140021f10
mov rbx, qword [rsp + 0x3f0]
add rsp, 0x3d0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.failed_to_delete_service__s
mov qword [rsp + 0x20], rdi
mov r8d, eax
lea rcx, [rsp + 0x30]
mov edx, 0xf
call fcn.140127ffc
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140128c04
Capabilities:
Create service

Disassembly:
push rbx
push rdi
sub rsp, 0x428
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rsp + 0x410], rax
mov rax, qword [rsp + 0x470]
mov rdi, rcx
mov ecx, dword [rsp + 0x460]
mov rbx, rdx
mov r10d, dword [rsp + 0x468]
mov r11, qword [rsp + 0x478]
cmp qword [rax + 0x10], 0
jne 0x140128c4f
xor eax, eax
jmp 0x140128c59
cmp qword [rax + 0x18], 8
jb 0x140128c59
mov rax, qword [rax]
cmp qword [r9 + 0x18], 8
jb 0x140128c63
mov r9, qword [r9]
cmp qword [r8 + 0x18], 8
jb 0x140128c6d
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x140128c77
mov rdx, qword [rdx]
and qword [rsp + 0x60], 0
and qword [rsp + 0x58], 0
mov qword [rsp + 0x50], r11
and qword [rsp + 0x48], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r9
mov r9d, 0x20000000
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rdi + 8], rax
test rax, rax
je 0x140128cdb
mov rcx, qword [rsp + 0x410]
xor rcx, rsp
call fcn.140021f10
add rsp, 0x428
pop rdi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rsp + 0x70]
mov ecx, 2
lea rdx, str.OService::Install___CreateService_failed__d
mov dword [rsp + 0x70], eax
call fcn.1401284b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.failed_to_create_service__s
mov qword [rsp + 0x20], rbx
mov r8d, eax
lea rcx, [rsp + 0x80]
mov edx, 0xf
call fcn.140127ffc
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140128db0
Capabilities:
Query service status

Disassembly:
sub rsp, 0x3e8
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x30]
and dword [rsp + 0x30], 0
mov r8, rdx
xor edx, edx
mov qword [rsp + 0x20], rax
mov r9d, 0x24
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140128e09
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.140021f10
add rsp, 0x3e8
ret
lea r8, str.Failed_to_query_service_Status
mov edx, 0x74
lea rcx, [rsp + 0x40]
call fcn.1400089cc
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140128e54
Capabilities:
Modify service

Disassembly:
sub rsp, 0x28
cmp qword [rdx + 0x18], 8
jb 0x140128e62
mov rdx, qword [rdx]
mov rcx, qword [rcx + 8]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rdx
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
cmp eax, 1
sete al
add rsp, 0x28
ret

Function at 0x140128f3c
Capabilities:
Modify service

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x78
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp - 0x18], rax
mov eax, dword [rbp + 0x38]
xor ebx, ebx
mov rcx, qword [rcx + 8]
xorps xmm0, xmm0
mov dword [rbp - 0x20], eax
lea rax, [rbp - 0x30]
mov dword [rbp - 0x30], r8d
lea r8, [rbp - 0x58]
mov dword [rbp - 0x58], edx
lea edx, [rbx + 2]
mov dword [rbp - 0x2c], ebx
mov dword [rbp - 0x28], r9d
mov dword [rbp - 0x24], ebx
mov dword [rbp - 0x1c], ebx
movdqu xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x40], 3
mov qword [rbp - 0x38], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
cmp eax, 1
sete al
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.140021f10
add rsp, 0x78
pop rbx
pop rbp
ret

Function at 0x140128fb0
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor r8d, r8d
mov rcx, qword [rcx + 8]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [rsp + 0x38], eax
test eax, eax
jne 0x140128ffb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov ecx, 2
cmp eax, 0x420
jne 0x140129007
lea rdx, str.OService::StartService___Service_instance_already_running
call fcn.140128514
cmp byte [rdi + 0x28], 0
je 0x140129056
mov rbx, qword [rdi + 0x18]
jmp 0x14012902d
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, str.OService::StartService___Failed_to_Start_Service_:_ret___d_:_errCode___d
call fcn.1401286cc
xor al, al
jmp 0x140129058
add rbx, 0xffffffffffffffd0
mov rcx, rbx
call fcn.140128fb0
cmp rbx, qword [rdi + 0x10]
jne 0x140129021
mov rsi, qword [rdi + 0x18]
mov rbx, qword [rdi + 0x10]
jmp 0x140129049
mov rcx, rbx
call fcn.140128aac
add rbx, 0x30
cmp rbx, rsi
jne 0x14012903d
mov rax, qword [rdi + 0x10]
mov qword [rdi + 0x18], rax
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1401290a0
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14, rdx
mov r15d, r8d
lea rdx, [rbp - 0x58]
mov rsi, rcx
call fcn.140128db0
mov eax, dword [rbp - 0x54]
xor edi, edi
mov byte [r14], dil
cmp eax, 1
je 0x1401291bf
mov ebx, dword [rbp - 0x40]
cmp byte [rsi + 0x28], dil
je 0x1401290fe
mov edx, r15d
mov rcx, rsi
call fcn.1401291e8
mov eax, dword [rbp - 0x54]
mov byte [r14], 1
cmp eax, 3
je 0x140129151
mov rcx, qword [rsi + 8]
lea r8, [rbp - 0x30]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14012914b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x60], eax
cmp eax, 0x426
je 0x140129147
lea r8, [rbp - 0x60]
mov ecx, 2
lea rdx, str.OService::StopServiceRecursive___Failed_to_control_service_:_errCode___d
call fcn.140128674
xor al, al
jmp 0x1401291c2
mov al, 1
jmp 0x1401291c2
mov ebx, dword [rbp - 0x18]
mov eax, dword [rbp - 0x54]
cmp eax, 1
je 0x1401291bf
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r15d
cmp eax, 0x7fffffff
jb 0x1401291a0
cmp ebx, 0x2710
jbe 0x14012917a
mov eax, 0xcccccccd
mul ebx
shr edx, 3
jmp 0x14012917f
mov edx, 0x3e8
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp - 0x58]
mov rcx, rsi
call fcn.140128db0
mov eax, dword [rbp - 0x54]
mov ebx, dword [rbp - 0x40]
cmp eax, 1
jne 0x140129156
jmp 0x1401291a3
mov eax, dword [rbp - 0x54]
cmp eax, 1
je 0x1401291bf
lea rdx, str.OService::StopServiceRecursive___Timed_out_waiting_for_service_to_stop
mov ecx, 2
call fcn.14012861c
mov eax, dword [rbp - 0x54]
cmp eax, 1
sete al
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140021f10
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret