joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021be5
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
xor eax, eax
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x58]
lea rsp, [rbp + 0x60]
pop rbp
ret
mov eax, 1
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x58]
lea rsp, [rbp + 0x60]
pop rbp
ret
mov eax, 1
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x58]
lea rsp, [rbp + 0x60]
pop rbp
ret
xor eax, eax
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x58]
lea rsp, [rbp + 0x60]
pop rbp
ret
xor eax, eax
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x58]
lea rsp, [rbp + 0x60]
pop rbp
ret
mov dword [rbp + 0x38], eax
mov eax, dword [rbp + 0x38]
test eax, eax
jne 0x140005b1c
jmp 0x140003320
mov eax, dword [rbp + 0x24]
and eax, 0xffffff80
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
test eax, 0x80
je 0x140021b64
jmp 0x140006aed
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
test rax, rax
jne 0x140019f37
jmp 0x140015a05
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rdx, qword [rbp + 0x70]
mov ecx, dword [rbp + 0x78]
mov ecx, ecx
mov ebx, dword [rbp + 0x24]
or ebx, 0x40
lea rsi, [rbp + 0x24]
mov qword [rbp + 0x30], rcx
mov rcx, rdx
mov rdx, qword [rbp + 0x30]
mov r8d, ebx
mov r9, rsi
call rax
jmp 0x140016b3b
mov rax, qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rdx, qword [rbp + 0x70]
lea rcx, [rbp]
mov qword [rbp + 0x48], rcx
mov rcx, rdx
mov rdx, qword [rbp + 0x48]
mov r8d, 0x30
call rax
jmp 0x14001c848
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x70], rcx
mov dword [rbp + 0x78], edx
mov eax, dword [rbp + 0x78]
test eax, eax
jne 0x140021b96
jmp 0x1400144a0
Function at 0x140001390
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x28]
sub rsp, 0x120
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
mov rax, qword [0x140036038]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rdi, rdx
mov rbx, rcx
lea rcx, str.it_run_only_Win2000_and_autorun_call_process.
call fcn.14000a500
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x80]
call fcn.14000f580
mov dword [rbp - 0x80], 0x68
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
movdqa xmm0, xmmword [0x140030c50]
movdqu xmmword [rbp], xmm0
mov byte [rbp - 0x10], al
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rbx + r8], 0
jne 0x140001410
mov rdx, rbx
lea rcx, [rbp - 0x10]
call fcn.140004420
call fcn.140002300
test rax, rax
je 0x1400014a0
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rdx, qword [rbp - 0x10]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x48], rcx
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x140001504
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, 0x25f
lea rcx, str.LINE:__d_ERR:_CreateProcessAsUser_error..._d
call fcn.14000a620
jmp 0x140001569
lea rcx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rcx, qword [rbp - 0x10]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140001504
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, 0x271
lea rcx, str.LINE:__d_ERR:_CreateProcess_error..._d
call fcn.14000a620
jmp 0x140001569
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rdx, qword [rbp - 0x10]
lea rcx, str.Path___s
call fcn.14000a500
mov rdx, rdi
lea rcx, str.command___s
call fcn.14000a500
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rdx, qword [rbp - 0x10]
lea r8, [0x14002e740]
lea rcx, str.Run__s_and__s_wait__SUC...
call fcn.14000a500
mov ebx, 1
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x1400015a0
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000159b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400015c3
call fcn.14000d4b4
mov eax, ebx
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.14000d490
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14001179c
int3
Function at 0x140001b10
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x140036038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov rdx, rcx
lea rcx, str.Delete_file__s.
call fcn.14000a500
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140002630
nop
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140001bcf
lea rcx, str.This_file_didnt_exists__delete_file_function_exit.
call fcn.14000a500
mov bl, 1
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140001bb9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bb4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001c48
call fcn.14000d4b4
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000d490
add rsp, 0x50
pop rbx
ret
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x140001c06
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
and eax, 0xfffffffe
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140001b75
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.DeleteFile_error__d
call fcn.14000a590
xor bl, bl
jmp 0x140001b77
call fcn.14001179c
int3
Function at 0x140002080
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x148]
sub rsp, 0x230
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140036038]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rbx, rcx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
mov dword [rsp + 0x70], 0x130
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
mov r14d, eax
xor edx, edx
mov r8d, 0x80
lea rcx, [rbp + 0xa0]
call fcn.14000f580
mov r8, rbx
mov edx, 0x80
lea rcx, [rbp + 0xa0]
call fcn.140011a34
lea rcx, [rbp + 0xa0]
call fcn.1400156b0
xor esi, esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], sil
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], sil
jne 0x140002131
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140004420
nop
test r14d, r14d
je 0x140002280
xor edx, edx
mov r8d, 0x80
lea rcx, [rbp + 0xa0]
call fcn.14000f580
lea r8, [rbp - 0x64]
mov edx, 0x80
lea rcx, [rbp + 0xa0]
call fcn.140011a34
lea rcx, [rbp + 0xa0]
call fcn.1400156b0
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 0xf
mov byte [rsp + 0x28], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400021a0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140004420
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rcx, qword [rsp + 0x48]
call fcn.140012030
mov rcx, rdi
test eax, eax
je 0x140002236
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_Process32Next]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000222f
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000222a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400022f2
call fcn.14000d4b4
test ebx, ebx
jmp 0x14000214b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140002279
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002274
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400022f8
call fcn.14000d4b4
mov esi, 1
jmp 0x14000228a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1400022c3
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400022be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400022ec
call fcn.14000d4b4
mov eax, esi
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.14000d490
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.14001179c
nop
call fcn.14001179c
nop
call fcn.14001179c
int3
Function at 0x1400050e0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push rbx
sub rsp, 0x190
mov rax, qword [0x140036038]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbx, r8
test rcx, rcx
je 0x140005112
cmp edx, 1
je 0x14000511b
mov eax, 1
jmp 0x140005342
cmp edx, 1
jne 0x14000532d
cmp dword [r8 + 4], 0
je 0x14000512e
xor r8d, r8d
lea rdx, [0x14002edc0]
jmp 0x14000513c
lea r8, str.temp
lea rdx, str.E220AutoRunLog.tmp
call fcn.140009b50
cmp dword [rbx + 8], 0
je 0x140005340
xor edx, edx
mov dword [rsp + 0x50], 1
mov r8d, 0x104
lea rcx, [rsp + 0x70]
call fcn.14000f580
lea r8, str.SYSTEMCurrentControlSetServiceshwdatacard
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.140011a34
lea rax, [rsp + 0x60]
xor ebx, ebx
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x70]
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140005313
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
lea r9d, [rbx + 4]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.QCDriverPowerManagementEnabled
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140005202
lea rdx, [rsp + 0x70]
lea rcx, str.Could_not_set_Power_Management_key_for__s.
call fcn.14000a590
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
lea rdx, str.QCDriverResident
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140005244
lea rdx, [rsp + 0x70]
lea rcx, str.Could_not_set_Resident_key_for__s.
call fcn.14000a590
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x104
call fcn.14000f580
lea r8, str.SYSTEMCurrentControlSetServiceshwusbfake
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.140011a34
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x70]
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140005313
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
lea rdx, str.QCDriverResident
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1400052fa
lea rdx, [rsp + 0x70]
lea rcx, str.Could_not_set_Resident_key_for__s.
call fcn.14000a590
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.Set_reg_info_SUS
call fcn.14000a500
jmp 0x140005340
lea rcx, str.Could_not_create_the_registry_key.
call fcn.14000a590
lea rcx, str.Set_reg_into_Failed
call fcn.14000a590
jmp 0x140005340
lea r8, str.temp
lea rdx, str.E220AutoRunLog.tmp
call fcn.140009b50
xor eax, eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14000d490
add rsp, 0x190
pop rbx
ret
Function at 0x1400072c0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140036038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov esi, eax
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
test rax, rax
je 0x14000737c
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140007373
nop dword [rax]
cmp qword [rbx + 0x18], 0x10
mov r8, rbx
jb 0x14000732d
mov r8, qword [rbx]
lea rax, [rsp + 0x4c]
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140007353
inc rax
test ecx, ecx
jne 0x140007340
test edx, edx
jne 0x140007361
cmp dword [rsp + 0x28], esi
jne 0x1400073f0
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140007320
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400073b6
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400073b1
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140007436
mov rcx, r8
call fcn.14000d4b4
xor eax, eax
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000d490
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000742f
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14000742a
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140007436
mov rcx, r8
call fcn.14000d4b4
mov eax, 1
jmp 0x1400073b8
call fcn.14001179c
int3
Function at 0x140007930
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140036038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
xor edi, edi
call fcn.140008d60
mov rcx, qword [rbx + 8]
test rcx, rcx
jne 0x14000796d
lea rcx, str.Couldnt_open_service_manager
call fcn.14000a590
jmp 0x140007a82
cmp qword [rbx + 0x10], rdi
jne 0x1400079b0
cmp qword [0x140036d38], 0x10
lea rdx, [0x140036d20]
mov r8d, 0xf01ff
cmovae rdx, qword [0x140036d20]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1400079b0
lea rcx, str.Couldnt_open_service
call fcn.14000a590
jmp 0x140007a82
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbx + 0x10]
lea r8, [rsp + 0x20]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140007a6e
mov eax, dword [rsp + 0x24]
cmp eax, 4
jne 0x140007a48
lea rcx, str.Service_state_is_SERVICE_RUNNING.
call fcn.14000a500
mov rcx, qword [rbx + 0x10]
lea r8, [rsp + 0x20]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140007a10
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.unInstall_Service_Error.Error_Code:_d.
jmp 0x140007a7b
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov edi, eax
test eax, eax
je 0x140007a39
lea rcx, str.Uninstall_service_successfully.
call fcn.14000a500
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007a82
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
jmp 0x140007a82
cmp eax, 1
jne 0x140007a5b
lea rcx, str.Service_state_is_SERVICE_STOPPED.
call fcn.14000a500
jmp 0x140007a10
lea rcx, str.Service_state_isnt_SERVICE_RUNNING_or_SERVICE_STOPPED_it_is_other_state_.we_dont_delete_it
call fcn.14000a500
mov edi, 1
jmp 0x140007a82
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Notify_SERVICE_CONTROL_INTERROGATE_failed.Error_Code:_d.
mov edx, eax
call fcn.14000a590
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140007a99
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rbx + 0x10], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140007ab0
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rbx + 8], 0
test edi, edi
setne al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000d490
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140008a30
Capabilities:
Modify service

Disassembly:
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x60
cmp qword [rcx + 0x10], 0
mov rdi, rcx
je 0x140008bac
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140008bac
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x80], rsi
call qword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov rsi, rax
test rax, rax
jne 0x140008b34
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41f
je 0x140008aa1
lea rcx, str.LockServiceDatabase_fail
call fcn.14000a590
mov rbx, qword [rsp + 0x70]
xor eax, eax
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov edx, 0x118
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
jne 0x140008ac2
lea rcx, str.LocalAlloc_is_fail
jmp 0x140008a87
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x78]
mov r8d, 0x118
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceLockStatusA]
test eax, eax
jne 0x140008af5
lea rcx, str.QueryServiceLockStatus
call fcn.14000a500
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140008a8c
cmp dword [rbx], 0
je 0x140008b13
mov r8d, dword [rbx + 0x10]
lea rcx, str.Locked_by:__s__duration:__d_seconds_n
mov rdx, qword [rbx + 8]
call fcn.14000a500
jmp 0x140008a8c
lea rcx, str.No_longer_locked_n
call fcn.14000a500
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, str.Could_not_lock_database
call fcn.14000a500
mov rcx, qword [rdi + 0x10]
xor eax, eax
mov qword [rsp + 0x50], rax
mov edx, 0xffffffff
mov qword [rsp + 0x48], rax
mov r9d, edx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
lea r8d, [rax + 2]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x140008b7f
lea rcx, str.ChangeServiceConfig_fail
call fcn.14000a590
lea rcx, str.ChangeServiceConfig_SUCCESS_n
call fcn.14000a500
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
mov rbx, qword [rsp + 0x70]
mov eax, 1
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
xor eax, eax
add rsp, 0x60
pop rdi
ret
Function at 0x140008bc0
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140036038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbp, rcx
lea rdx, [rsp + 0x20]
mov rcx, qword [rcx + 0x10]
xor edi, edi
mov esi, edi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140008d3b
cmp dword [rsp + 0x24], 4
jne 0x140008c0f
lea rcx, str.Service_has_been_started
call fcn.14000a500
mov al, 1
jmp 0x140008d49
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x10]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x140008c5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [0x140036d38], 0x10
lea rdx, [0x140036d20]
mov r8d, eax
lea rcx, str.error_happens_during_starting_a_service:__s_Error_Code:_d
cmovae rdx, qword [0x140036d20]
call fcn.14000a590
jmp 0x140008d47
mov rcx, qword [rbp + 0x10]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140008d3b
mov eax, dword [rsp + 0x24]
cmp eax, 2
jne 0x140008d1d
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], r14
mov r14d, 0x2710
mov eax, 0xcccccccd
mul dword [rsp + 0x38]
mov ebx, edx
shr ebx, 3
cmp ebx, 0x3e8
jae 0x140008caf
mov ebx, 0x3e8
jmp 0x140008cb6
cmp ebx, r14d
cmova ebx, r14d
mov edx, ebx
lea rcx, str.ChangeSrvStatusToRuning_sleep_:_d
call fcn.14000a500
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbp + 0x10]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140008d0c
cmp dword [rsp + 0x34], edi
jbe 0x140008cf3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [rsp + 0x34]
mov esi, eax
jmp 0x140008d01
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, dword [rsp + 0x38]
ja 0x140008d0c
mov eax, dword [rsp + 0x24]
cmp eax, 2
je 0x140008c92
jmp 0x140008d10
mov eax, dword [rsp + 0x24]
mov rbx, qword [rsp + 0x78]
mov r14, qword [rsp + 0x80]
cmp eax, 4
jne 0x140008d32
lea rcx, str.StartService_SUCCESS._n
call fcn.14000a500
mov al, 1
jmp 0x140008d49
lea rcx, str.StartService_fail._n
jmp 0x140008d42
lea rcx, str.Query_Services_status_fail
call fcn.14000a590
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000d490
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret