joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027370
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Move file

Disassembly:
push rbx
mov eax, 0x1040
call fcn.14003f630
sub rsp, rax
mov rax, qword [0x14007f080]
xor rax, rsp
mov qword [rsp + 0x1030], rax
lea rdx, str.ConfigPathMigrationComplete
lea rcx, [0x140086da0]
call fcn.14000f600
cmp byte [rax], 0
jne 0x1400275a8
lea rdx, str.ConfigPathMigrationComplete
lea rcx, [0x140086d40]
call fcn.14000f600
cmp byte [rax], 0
jne 0x1400275a8
mov r8b, 1
lea rdx, str.ConfigPathMigrationComplete
lea rcx, [0x140086da0]
call fcn.1400102a0
call fcn.140001a70
mov rcx, rax
test rax, rax
je 0x1400275c3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x20]
mov rdx, 0xffffffff80000002
call fcn.1400278c0
test al, al
jne 0x14002757f
lea r8, [rsp + 0x20]
mov rdx, 0xffffffff80000001
call fcn.1400278c0
test al, al
jne 0x14002757f
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x30]
call fcn.14005fd20
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x830]
call fcn.14005fd20
mov r9d, 1
lea r8d, [r9 + 0x19]
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14002757f
mov r9d, 1
lea r8d, [r9 + 0x1b]
lea rdx, [rsp + 0x830]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14002757f
lea rax, [rsp + 0x30]
sub rax, 2
lea rax, [rax + 2]
cmp word [rax], 0
jne 0x1400274a2
movups xmm1, xmmword [0x14006f420]
movups xmmword [rax], xmm1
movsd xmm2, qword [0x14006f430]
movsd qword [rax + 0x10], xmm2
mov ecx, dword [0x14006f438]
mov dword [rax + 0x18], ecx
lea rax, [rsp + 0x830]
sub rax, 2
nop dword [rax + rax]
lea rax, [rax + 2]
cmp word [rax], 0
jne 0x1400274e0
movups xmmword [rax], xmm1
movsd qword [rax + 0x10], xmm2
mov dword [rax + 0x18], ecx
xor r8d, r8d
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor r8d, r8d
lea rdx, [rsp + 0x830]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea rax, [rsp + 0x30]
sub rax, 2
lea rax, [rax + 2]
cmp word [rax], 0
jne 0x140027521
movups xmm0, xmmword [str.config]
movups xmmword [rax], xmm0
lea rax, [rsp + 0x830]
sub rax, 2
lea rax, [rax + 2]
cmp word [rax], 0
jne 0x140027541
movups xmmword [rax], xmm0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002757b
mov r8d, 2
lea rdx, [rsp + 0x830]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14002757f
mov bl, 1
jmp 0x140027581
xor bl, bl
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1400275a3
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, bl
jmp 0x1400275aa
mov al, 1
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14003f1d0
add rsp, 0x1040
pop rbx
ret
mov ecx, 0x80004005
call fcn.1400018b0
int3
Function at 0x1400278c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x850
mov rax, qword [0x14007f080]
xor rax, rsp
mov qword [rsp + 0x840], rax
xor ecx, ecx
mov rax, rdx
mov word [rsp + 0x40], cx
lea rdx, str.SoftwareProcessLasso
lea rcx, [rsp + 0x30]
mov rbx, r8
mov qword [rsp + 0x20], rcx
mov r9d, 1
mov rcx, rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002795c
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x38], 0x800
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ConfigFolderEx
mov dword [rsp + 0x3c], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x14002797f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.140002ef0
xor al, al
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.14003f1d0
add rsp, 0x850
pop rbx
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140027991
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140002da0
mov al, 1
jmp 0x140027966
Function at 0x140027fb0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x14007f080]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, r8
mov rdi, rdx
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 1
xor eax, eax
mov qword [rdx], rax
call fcn.140001a70
mov rcx, rax
test rax, rax
je 0x140028187
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
mov dword [rsp + 0x20], 1
xor ebp, ebp
mov word [rsp + 0x30], bp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov r8d, 0x103
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rbx, [rbp - 1]
test eax, eax
je 0x1400280cb
lea rcx, [rsp + 0x30]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], bp
jne 0x140028046
dec eax
movsxd rcx, eax
test eax, eax
jle 0x140028073
cmp word [rsp + rcx*2 + 0x30], 0x5c
je 0x14002806c
dec eax
dec rcx
test rcx, rcx
jg 0x140028058
jmp 0x140028073
cdqe
mov word [rsp + rax*2 + 0x30], bp
lea rax, [rsp + 0x30]
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], bp
jne 0x140028080
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140002da0
test rsi, rsi
jne 0x1400280a1
mov r8d, ebp
jmp 0x1400280ae
mov r8, rbx
inc r8
cmp word [rsi + r8*2], bp
jne 0x1400280a4
mov rdx, rsi
mov rcx, rdi
call fcn.140002b60
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140028161
mov word [rsp + 0x30], bp
xor r9d, r9d
lea r8d, [r9 + 0x24]
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140028158
lea rax, [rsp + 0x30]
mov r8, rbx
inc r8
cmp word [rax + r8*2], bp
jne 0x1400280f0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140002da0
lea rdx, str.media
mov r8, rbx
inc r8
cmp word [rdx + r8*2], bp
jne 0x140028111
mov rcx, rdi
call fcn.140002b60
test rsi, rsi
je 0x14002813c
nop dword [rax + rax]
inc rbx
cmp word [rsi + rbx*2], bp
jne 0x140028130
mov rbp, rbx
mov r8d, ebp
mov rdx, rsi
mov rcx, rdi
call fcn.140002b60
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140028161
mov rcx, rdi
call fcn.140002ef0
nop
mov rax, rdi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14003f1d0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400018b0
int3
Function at 0x1400281a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [rcx + 0x3270]
mov ebx, 0xffffffff
cmp dword [rcx - 0x10], 0
je 0x1400281c8
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140028208
lea r8, str.lower.wav
lea rdx, [rsp + 0x40]
call fcn.140027fb0
nop
mov rdx, rax
lea rcx, [rsi + 0x3270]
call fcn.140004960
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140028208
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsi + 0x3270]
cmp dword [rcx - 0x10], 0
je 0x140028220
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140028260
lea r8, str.Windows_Pop_up_Blocked.wav
lea rdx, [rsp + 0x48]
call fcn.140027fb0
nop
mov rdx, rax
lea rcx, [rsi + 0x3270]
call fcn.140004960
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140028260
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsi + 0x3278]
cmp dword [rcx - 0x10], 0
je 0x140028278
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400282b8
lea r8, str._raise.wav
lea rdx, [rsp + 0x50]
call fcn.140027fb0
nop
mov rdx, rax
lea rcx, [rsi + 0x3278]
call fcn.140004960
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400282b8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsi + 0x3278]
cmp dword [rcx - 0x10], 0
je 0x1400282d0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14002830e
lea r8, str.Windows_Feed_Discovered.wav
lea rdx, [rsp + 0x58]
call fcn.140027fb0
nop
mov rdx, rax
lea rcx, [rsi + 0x3278]
call fcn.140004960
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14002830e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x14002a370
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x2070
call fcn.14003f630
sub rsp, rax
mov rax, qword [0x14007f080]
xor rax, rsp
mov qword [rsp + 0x2060], rax
mov rsi, rdx
mov rcx, rdx
call fcn.140002ef0
xor r14d, r14d
mov qword [rsp + 0x48], r14
lea rdx, [rsp + 0x48]
call fcn.140016c30
nop
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r14 + 3]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov rbx, 0xffffffffffffffff
cmp rax, rbx
jne 0x14002a403
mov rcx, rsi
call fcn.140002ef0
jmp 0x14002a54b
mov dword [rsp + 0x40], r14d
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp eax, 0x1000
jae 0x14002a53a
cmp dword [rsp + 0x40], 0
jne 0x14002a53a
test eax, eax
jne 0x14002a44b
mov rcx, rsi
call fcn.140002ef0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dil, 1
jmp 0x14002a54e
xor edx, edx
mov r8d, 0x2002
lea rcx, [rsp + 0x50]
call fcn.14005fd20
mov dword [rsp + 0x44], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x44]
mov r8d, ebp
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002a542
lea rax, [rsp + 0x50]
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14002a490
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140002da0
lea r8, [0x14006cce4]
lea rdx, [0x140071900]
mov rcx, rsi
call fcn.1400024d0
lea r8, [0x14006cce4]
lea rdx, [0x140071908]
mov rcx, rsi
call fcn.1400024d0
lea r8, [0x14006cce4]
lea rdx, [0x140071904]
mov rcx, rsi
call fcn.1400024d0
lea r8, [0x14006cce4]
lea rdx, [0x14006f0a4]
mov rcx, rsi
call fcn.1400024d0
lea r8, [0x14006cce4]
lea rdx, [0x14006dba4]
mov rcx, rsi
call fcn.1400024d0
lea r8, [0x14006cce4]
lea rdx, [0x14007190c]
mov rcx, rsi
call fcn.1400024d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dil, 1
jmp 0x14002a54e
mov rcx, rsi
call fcn.140002ef0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor dil, dil
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14002a56b
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, dil
mov rcx, qword [rsp + 0x2060]
xor rcx, rsp
call fcn.14003f1d0
lea r11, [rsp + 0x2070]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14002a9d0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x14007f080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x30f0]
test rcx, rcx
je 0x14002aa8b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x30f0], 0
call fcn.140001a70
mov rcx, rax
test rax, rax
je 0x14002aaa5
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140027e60
lea rdx, str..pl_lock
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14002aa50
lea rcx, [rsp + 0x20]
call fcn.140002b60
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14002aa8b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14003f1d0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400018b0
int3

Function at 0x14002aab0
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x14007f080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
call fcn.140001a70
mov rcx, rax
test rax, rax
je 0x14002ab72
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140027e60
lea rdx, str..pl_lock
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x14002ab10
lea rcx, [rsp + 0x20]
call fcn.140002b60
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, eax
sete sil
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14002ab51
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, sil
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14003f1d0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400018b0
int3
Function at 0x14002e060
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14007f080]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rdx
xor ecx, ecx
xor edx, edx
lea r8d, [rdx + 0x25]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x14002e1f4
mov r8d, 0xf01ff
mov qword [rsp + 0x80], rsi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x14002e1e1
lea r9, [rsp + 0x60]
mov dword [rsp + 0x60], 0
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002e1d8
mov eax, dword [rsp + 0x60]
add eax, 0x400
mov dword [rsp + 0x60], eax
cmp eax, 0x2000
jbe 0x14002e107
mov dword [rsp + 0x60], 0x2000
mov eax, 0x2000
mov ecx, eax
call fcn.14003ef40
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.14005fd20
mov r8d, dword [rsp + 0x60]
lea r9, [rsp + 0x60]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x14002e1ce
cmp dword [rdi + 4], 4
jne 0x14002e1ae
mov rax, qword [rdi + 0x38]
lea rcx, [rdi + 0x20]
mov r9d, dword [rdi + 8]
mov r8d, 3
mov edx, dword [rdi]
mov qword [rsp + 0x50], rax
mov rax, qword [rdi + 0x30]
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], rax
mov rax, qword [rdi + 0x28]
mov qword [rsp + 0x38], rax
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x30], rcx
mov rcx, rsi
mov qword [rsp + 0x28], rax
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x20], rax
mov dword [rdi + 4], 3
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x14002e1ce
mov ecx, 1
call qword [sym.imp.ADVAPI32.dll_NotifyBootConfigStatus]
xor edx, edx
mov rcx, rdi
call fcn.14003eed0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x14002e1ec
xor edx, edx
mov rcx, rdi
call fcn.14003eed0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov rsi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14003f1d0
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x14002e210
Capabilities:
Query service status
Start service

Disassembly:
push rbx
push r12
push r14
sub rsp, 0x80
mov rax, qword [0x14007f080]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r12, rdx
movzx ebx, r8b
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 0x25]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
je 0x14002e3c7
mov r8d, 0xf01ff
mov qword [rsp + 0x70], r15
mov rdx, r12
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r15, rax
test rax, rax
je 0x14002e3b7
xor eax, eax
lea rdx, [rsp + 0x20]
xorps xmm0, xmm0
mov qword [rsp + 0x30], rax
mov rcx, r15
mov dword [rsp + 0x38], eax
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14002e3ae
mov eax, dword [rsp + 0x24]
add eax, 0xfffffffe
test eax, 0xfffffffd
je 0x14002e2bd
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x14002e3ae
test bl, bl
je 0x14002e398
mov qword [rsp + 0xb0], rsi
mov ecx, 0x3e8
mov qword [rsp + 0x78], rdi
call qword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov qword [rsp + 0xa0], rbp
nop word [rax + rax]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
xor ecx, ecx
mov r8d, 0x20001
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x14002e378
mov r8d, 0x84
mov rdx, r12
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
jne 0x14002e338
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14002e378
xor eax, eax
lea rdx, [rsp + 0x40]
xorps xmm0, xmm0
mov qword [rsp + 0x50], rax
mov rcx, rbp
mov dword [rsp + 0x58], eax
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x14002e378
cmp dword [rsp + 0x44], 4
je 0x14002e383
inc esi
cmp esi, 0x1e
jb 0x14002e2f0
mov rbp, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0x78]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x14002e3c2
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14003f1d0
add rsp, 0x80
pop r14
pop r12
pop rbx
ret
Function at 0x14002e7c0
Capabilities:
Start service

Disassembly:
push rdi
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14002e7e2
add rsp, 0x20
pop rdi
ret
mov r8d, InitCommonControls
mov qword [rsp + 0x38], rsi
lea rdx, str.ProcessGovernor
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x14002e81b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x38]
xor al, al
add rsp, 0x20
pop rdi
ret
xor r8d, r8d
mov qword [rsp + 0x30], rbx
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
mov rcx, rsi
setne bl
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x38]
movzx eax, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14002ee60
Capabilities:
Modify service

Disassembly:
push rdi
sub rsp, 0x60
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14002ee82
add rsp, 0x60
pop rdi
ret
mov r8d, 2
mov qword [rsp + 0x78], rsi
lea rdx, str.ProcessGovernor
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x14002eebb
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x78]
xor al, al
add rsp, 0x60
pop rdi
ret
xor eax, eax
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x50], rax
mov edx, 0xffffffff
mov qword [rsp + 0x48], rax
mov r9d, edx
mov qword [rsp + 0x40], rax
mov rcx, rsi
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_ChangeServiceConfigW]
test eax, eax
mov rcx, rsi
setne bl
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x78]
movzx eax, bl
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x14002ef30
Capabilities:
Query service status
Stop service

Disassembly:
push rsi
sub rsp, 0x70
mov rax, qword [0x14007f080]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x14002ef6e
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14003f1d0
add rsp, 0x70
pop rsi
ret
mov r8d, 0xa0
mov qword [rsp + 0x90], rdi
lea rdx, str.ProcessGovernor
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x14002efa4
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x14002f069
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14002efc4
cmp dword [rsp + 0x44], 4
je 0x14002efc4
mov al, 1
jmp 0x14002f069
mov qword [rsp + 0x88], rbp
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rdi
xor bpl, bpl
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14002f04b
mov qword [rsp + 0x80], rbx
mov ecx, 0xfa
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jle 0x14002f040
nop dword [rax]
cmp ebx, 0x14
jge 0x14002f043
cmp dword [rsp + 0x24], 1
je 0x14002f040
mov ecx, 0xfa
inc ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jg 0x14002f010
cmp ebx, 0x14
jge 0x14002f043
mov bpl, 1
mov rbx, qword [rsp + 0x80]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, bpl
mov rbp, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14003f1d0
add rsp, 0x70
pop rsi
ret
Function at 0x14002f090
Capabilities:
Delete service

Disassembly:
push rdi
sub rsp, 0x20
call fcn.14002ef30
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14002f0b9
add rsp, 0x20
pop rdi
ret
mov r8d, 0xf01ff
mov qword [rsp + 0x38], rsi
lea rdx, str.ProcessGovernor
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x14002f0f2
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x38]
xor al, al
add rsp, 0x20
pop rdi
ret
mov rcx, rsi
mov qword [rsp + 0x30], rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
mov rcx, rsi
setne bl
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x38]
movzx eax, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret