joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001182f
Capabilities:
Write file on windows

Disassembly:
jmp 0x140018200
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x14002c018]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
lea rcx, [0x1400330f4]
call fcn.140011848
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x140018266
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001826d
mov al, 1
jmp 0x1400183c7
call fcn.140011244
mov rcx, qword [rbp + 0x1d0]
mov rcx, qword [rcx]
mov qword [rbp + 0x198], rcx
mov edx, eax
mov rcx, qword [rbp + 0x1d0]
mov rax, qword [rbp + 0x198]
call qword [rax + 0x18]
mov dword [rbp + 0x164], eax
call fcn.140011244
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.1400116f9
movzx eax, al
test eax, eax
je 0x1400182c8
xor al, al
jmp 0x1400183c7
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x194], eax
cmp dword [rbp + 0x194], 0
je 0x14001832d
cmp dword [rbp + 0x194], 1
je 0x140018338
cmp dword [rbp + 0x194], 3
je 0x1400183b6
jmp 0x1400183c5
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x140018388
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x140018388
xor al, al
jmp 0x1400183c7
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400183a3
mov dword [rbp + 0x194], 1
jmp 0x1400183ad
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x1400183c7
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400183c7
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140026670]
call fcn.1400116db
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.1400113ed
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x140001000
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov rax, qword [0x140021220]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0xc0], 0x298
mov dword [rsp + 0xc4], 0x1b8
mov dword [rsp + 0xc8], 0x220
mov dword [rsp + 0xcc], 0x278
mov dword [rsp + 0xd0], 0x298
mov dword [rsp + 0xd4], 0x100
mov dword [rsp + 0xd8], 0x398
mov dword [rsp + 0xdc], 0x378
mov dword [rsp + 0xe0], 0x330
mov dword [rsp + 0xe4], 0x3a0
mov dword [rsp + 0xe8], 0x3b8
mov dword [rsp + 0xec], 0x308
mov dword [rsp + 0xf0], 0x390
mov dword [rsp + 0xf4], 0x328
mov dword [rsp + 0xf8], 0x100
mov dword [rsp + 0xfc], 0x368
mov dword [rsp + 0x100], 0x308
mov dword [rsp + 0x104], 0x3c8
mov dword [rsp + 0x108], 0x310
mov dword [rsp + 0x10c], 0x328
mov dword [rsp + 0x110], 0x100
mov dword [rsp + 0x114], 0x318
mov dword [rsp + 0x118], 0x378
mov dword [rsp + 0x11c], 0x390
mov dword [rsp + 0x120], 0x390
mov dword [rsp + 0x124], 0x3a8
mov dword [rsp + 0x128], 0x380
mov dword [rsp + 0x12c], 0x3a0
mov dword [rsp + 0x130], 0x328
mov dword [rsp + 0x134], 0x320
mov dword [rsp + 0x138], 0x100
mov dword [rsp + 0x13c], 0x108
mov dword [rsp + 0x140], 0x108
mov dword [rsp + 0x144], 0x108
mov dword [rsp + 0x148], 0
mov dword [rsp + 0x58], 0x23
jmp 0x1400011b4
mov eax, dword [rsp + 0x58]
sub eax, 1
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jl 0x1400011d9
movsxd rax, dword [rsp + 0x58]
mov eax, dword [rsp + rax*4 + 0xc0]
shr eax, 3
movsxd rcx, dword [rsp + 0x58]
movzx eax, al
mov word [rsp + rcx*2 + 0x70], ax
jmp 0x1400011a9
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140001241
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x170]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov word [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov dx, 2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140015270
add rsp, 0x168
ret
Function at 0x140001c30
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x2a8
mov rax, qword [0x140021220]
xor rax, rsp
mov qword [rsp + 0x298], rax
mov qword [rsp + 0x40], 0
mov r9d, 0x12
xor r8d, r8d
xor edx, edx
lea rcx, [0x140019078]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x140001d20
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x1400179f8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140001d1b
mov dword [rsp + 0x48], 0x208
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x290]
xor r8d, r8d
lea rdx, [0x140017a28]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x30], 0
jne 0x140001d1b
lea rdx, [0x140017a38]
lea rcx, [rsp + 0x80]
call qword [sym.imp.MSVCR90.dll__wcsicmp]
test eax, eax
jne 0x140001d1b
mov eax, 1
jmp 0x140001e0f
jmp 0x140001e0d
mov dword [rsp + 0x58], 0x20
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [0x140019078]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x140001dfb
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetServicesS7OPCIAX64
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140001df9
mov dword [rsp + 0x48], 0x208
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x290]
xor r8d, r8d
lea rdx, str.IsPG
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x30], 0
jne 0x140001df9
lea rdx, [0x140017a80]
lea rcx, [rsp + 0x80]
call qword [sym.imp.MSVCR90.dll__wcsicmp]
test eax, eax
jne 0x140001df9
mov eax, 1
jmp 0x140001e0f
jmp 0x140001e0d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, 1
jmp 0x140001e0f
xor eax, eax
mov rcx, qword [rsp + 0x298]
xor rcx, rsp
call fcn.140015270
add rsp, 0x2a8
ret
Function at 0x140003980
Capabilities:
Access the windows event log
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x288
mov rax, qword [0x140021220]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x268], rax
mov r9, qword [rsp + 0x268]
mov r8, qword [rsp + 0x298]
mov edx, 0x100
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCR90.dll_vswprintf_s]
mov qword [rsp + 0x268], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x260], rax
mov rdx, qword [rsp + 0x290]
add rdx, 0x50
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140003a65
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x260]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov word [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov dx, 4
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140015270
add rsp, 0x288
ret
Function at 0x140006aa0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
jne 0x140006ab3
xor eax, eax
test eax, eax
jne 0x140006ab3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x140006b00
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x140006b18
xor eax, eax
test eax, eax
jne 0x140006b18
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
shl rax, 1
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x68]
mov dword [rax], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x140006b80
mov eax, dword [rsp + 0x38]
jmp 0x140006c03
cmp dword [rsp + 0x30], 1
je 0x140006b95
cmp dword [rsp + 0x30], 2
je 0x140006b95
mov eax, 0xd
jmp 0x140006c03
cmp qword [rsp + 0x60], 0
je 0x140006be9
cmp dword [rsp + 0x34], 0
je 0x140006bdf
mov eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 2
div rcx
test rdx, rdx
jne 0x140006bd6
mov eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, rax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + rcx*2 - 2]
test eax, eax
je 0x140006bdd
mov eax, 0xd
jmp 0x140006c03
jmp 0x140006be9
xor ecx, ecx
mov rax, qword [rsp + 0x60]
mov word [rax], cx
mov eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, rax
mov rax, qword [rsp + 0x68]
mov dword [rax], ecx
xor eax, eax
add rsp, 0x48
ret

Function at 0x140006ec0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor eax, eax
test eax, eax
jne 0x140006ece
xor eax, eax
test eax, eax
jne 0x140006ece
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
add rsp, 0x28
ret
Function at 0x140006f00
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x140006f18
xor eax, eax
test eax, eax
jne 0x140006f18
cmp qword [rsp + 0x60], 0
je 0x140006f36
mov dword [rsp + 0x34], 1
jmp 0x140006f3e
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140006f54
mov eax, 0xd
jmp 0x140006f96
xor eax, eax
test eax, eax
jne 0x140006f24
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cdqe
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x48
ret

Function at 0x140007920
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor eax, eax
test eax, eax
jne 0x14000792e
xor eax, eax
test eax, eax
jne 0x14000792e
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add rsp, 0x28
ret
Function at 0x140007ca0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x2f8
mov rax, qword [0x140021220]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov rcx, qword [rsp + 0x300]
call fcn.1400038f0
test eax, eax
je 0x140007cd9
mov eax, 1
jmp 0x140007eca
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x140007d1b
mov r8, qword [rsp + 0x300]
add r8, 0x50
xor r9d, r9d
lea rdx, str.Couldnt_open_service_manager
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x140007eca
mov r8d, 0x104
lea rdx, [rsp + 0xd0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rdx, qword [rsp + 0x300]
add rdx, 0x50
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
lea rax, str.RPCSS
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
lea r8, str.SIMATIC_S7DOS_Help_Service
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x140007ded
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8, qword [rsp + 0x300]
add r8, 0x50
xor r9d, r9d
lea rdx, str.Couldnt_create_service
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x140007eca
lea rax, [0x140019310]
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x78]
mov edx, 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov dword [rsp + 0x88], 1
mov dword [rsp + 0x8c], 0x2710
mov dword [rsp + 0x90], 1
mov dword [rsp + 0x94], 0x2710
mov dword [rsp + 0x98], 1
mov dword [rsp + 0x9c], 0x2710
mov dword [rsp + 0xa0], 0x15180
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0xb8], 3
lea rax, [rsp + 0x88]
mov qword [rsp + 0xc0], rax
lea r8, [rsp + 0xa0]
mov edx, 2
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.140015270
add rsp, 0x2f8
ret
Function at 0x140007ef0
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.1400038f0
test eax, eax
jne 0x140007f11
mov eax, 1
jmp 0x140008005
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140007f50
mov r8, qword [rsp + 0x70]
add r8, 0x50
xor r9d, r9d
lea rdx, str.Couldnt_open_service_manager
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x140008005
mov rdx, qword [rsp + 0x70]
add rdx, 0x50
mov r8d, 0x10020
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140007fa1
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8, qword [rsp + 0x70]
add r8, 0x50
xor r9d, r9d
lea rdx, str.Couldnt_open_service
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x140008005
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [rsp + 0x28], 0
je 0x140007fe9
mov eax, 1
jmp 0x140008005
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Service_could_not_be_deleted:__d
mov rcx, qword [rsp + 0x70]
call fcn.140003980
xor eax, eax
add rsp, 0x68
ret
Function at 0x140008010
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x258
mov rax, qword [0x140021220]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rcx, qword [rsp + 0x260]
call fcn.1400038f0
test eax, eax
jne 0x140008049
mov eax, 1
jmp 0x14000819e
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14000808b
mov r8, qword [rsp + 0x260]
add r8, 0x50
xor r9d, r9d
lea rdx, str.Couldnt_open_service_manager
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x14000819e
mov rdx, qword [rsp + 0x260]
add rdx, 0x50
mov r8d, 0x10
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x230], rax
cmp qword [rsp + 0x230], 0
jne 0x1400080eb
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8, qword [rsp + 0x260]
add r8, 0x50
xor r9d, r9d
lea rdx, str.Couldnt_open_service
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x14000819e
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [rsp + 0x23c], eax
mov dword [rsp + 0x238], 0
cmp dword [rsp + 0x23c], 0
jne 0x140008127
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x238], eax
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [rsp + 0x23c], 0
jne 0x140008157
cmp dword [rsp + 0x238], 0x420
jne 0x14000815e
mov eax, 1
jmp 0x14000819e
mov r9d, dword [rsp + 0x238]
lea r8, str.Service_could_not_be_started__LastError_d
mov edx, 0x100
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCR90.dll_swprintf_s]
mov r8, qword [rsp + 0x260]
add r8, 0x50
mov r9d, 0x10010
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140015270
add rsp, 0x258
ret
Function at 0x1400081c0
Capabilities:
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rcx, qword [rsp + 0x60]
call fcn.1400038f0
test eax, eax
jne 0x1400081e1
mov eax, 1
jmp 0x140008301
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140008220
mov r8, qword [rsp + 0x60]
add r8, 0x50
xor r9d, r9d
lea rdx, str.Couldnt_open_service_manager
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x140008301
mov rdx, qword [rsp + 0x60]
add rdx, 0x50
mov r8d, 0x24
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140008274
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8, qword [rsp + 0x60]
add r8, 0x50
xor r9d, r9d
lea rdx, str.Couldnt_open_service
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x140008301
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_ControlService]
cmp dword [rsp + 0x34], 1
je 0x1400082e6
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1400082e4
mov r8, qword [rsp + 0x60]
add r8, 0x50
xor r9d, r9d
lea rdx, str.QueryServiceStatus_...__failed__Service_could_not_be_stopped
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x140008301
jmp 0x140008289
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
add rsp, 0x58
ret
Function at 0x140008310
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rcx, qword [rsp + 0x60]
call fcn.1400038f0
test eax, eax
jne 0x14000832e
xor eax, eax
jmp 0x14000842a
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140008370
mov r8, qword [rsp + 0x60]
add r8, 0x50
xor r9d, r9d
lea rdx, str.Couldnt_open_service_manager
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x80004005
jmp 0x14000842a
mov rdx, qword [rsp + 0x60]
add rdx, 0x50
mov r8d, 0x24
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400083c4
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8, qword [rsp + 0x60]
add r8, 0x50
xor r9d, r9d
lea rdx, str.Couldnt_open_service
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x80004005
jmp 0x14000842a
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140008410
mov r8, qword [rsp + 0x60]
add r8, 0x50
xor r9d, r9d
lea rdx, str.QueryServiceStatus_...__failed
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x80004005
jmp 0x14000842a
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x34]
add rsp, 0x58
ret