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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140074faf
call fcn.140077e90
mov dword [rax], 0x16
call fcn.1400861f4
xor eax, eax
jmp 0x14007503d
mov rdx, r9
mov rcx, r8
call fcn.140075060
mov rbx, rax
test rax, rax
je 0x14007503a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400750d0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140075027
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140077ed0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14007500e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14007501d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14004ac60
jmp 0x14007503a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140075037
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400802b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400802d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400802d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14008a738
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140083e54
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14008a7d9
cmp ebx, dword [rsp + 0x30]
je 0x14008a7d2
test esi, esi
je 0x14008a7d2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14008a7ad
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14008a7ba
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14008a797
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14008a7be
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14008a7db
mov eax, 1
jmp 0x14008a7db
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14008b5e4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14008b66b
mov rsi, rbx
cmp word [rax], bp
je 0x14008b62a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14008b614
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14008b610
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002bd40
mov rdi, rax
test rax, rax
je 0x14008b658
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140068520
mov rbp, rdi
xor ecx, ecx
call fcn.14004ac60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14008db6c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400ed028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14008dbb6
call fcn.140077eb0
mov dword [rax], 0xf
call fcn.140077e90
mov dword [rax], 0xd
call fcn.1400861f4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140066a90
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14008dbc1
lea eax, [rbx + 1]
jmp 0x14008dba3
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14008dba1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14008dba3

Function at 0x14008e18c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14008e1a2
mov al, 1
jmp 0x14008e202
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14008e1b3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14008e200
mov ecx, dword [rcx + 0x18]
nop
call fcn.140077fdc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14008e200
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14008e200
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14008e200
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14008e202
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400ae230
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1400ed028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x1400ae2a1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1400ae2ab
mov dil, 1
test bl, bl
je 0x1400ae28a
cmp byte [rsi + 8], 0
je 0x1400ae2a6
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140066a90
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rsi]
jmp 0x1400ae25d
mov rcx, qword [rsi]
jmp 0x1400ae27f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 0
je 0x1400ae2d3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400ae2d8
xor edi, edi
jmp 0x1400ae28a
mov rcx, qword [rsi]
jmp 0x1400ae2c0
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 0
je 0x1400ae2ff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x1400ae28a
mov rcx, qword [rsi]
jmp 0x1400ae2ef
Function at 0x1400ae310
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x140
movaps xmmword [rsp + 0x130], xmm6
mov ebx, r9d
mov edi, r8d
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x1400ed028]
xor rax, rsp
mov qword [rsp + 0x128], rax
mov qword [rsp + 0x40], 0xa
mov rax, qword [0x1400da250]
mov al, byte [rax + 0xa]
test al, al
jne 0x1400ae5bd
movabs r13, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x120], r13
movaps xmm6, xmmword [0x1400d0a80]
movaps xmmword [rsp + 0x110], xmm6
lea r15, [rsp + 0x80]
mov rcx, r14
mov rdx, r15
call fcn.14002a520
cmp byte [r15 + 0x17], 0
js 0x1400ae441
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x120], rax
movups xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x110], xmm0
lea r12, [rsp + 0x80]
mov rcx, r12
call fcn.140047c30
lea r15, [rsp + 0xf0]
mov qword [r15 + 0x10], r13
movaps xmmword [r15], xmm6
mov rcx, r14
mov rdx, r15
call fcn.1400affe0
xorps xmm0, xmm0
movups xmmword [r12 + 0x60], xmm0
movups xmmword [r12 + 0x50], xmm0
movups xmmword [r12 + 0x40], xmm0
movups xmmword [r12 + 0x30], xmm0
movabs rax, 0x4000000070
mov qword [r12], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [r12 + 8], rax
lea rax, str.runas
mov qword [r12 + 0x10], rax
cmp byte [rsp + 0x127], 0
js 0x1400ae463
lea rax, [rsp + 0x110]
jmp 0x1400ae46b
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0x88]
lea rcx, [rsp + 0x110]
call fcn.140044ab0
jmp 0x1400ae3c2
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x98], rax
cmp byte [rsp + 0x107], 0
jns 0x1400ae485
mov r15, qword [rsp + 0xf0]
lea rcx, [rsp + 0x80]
mov qword [rcx + 0x20], r15
xor r14d, r14d
mov qword [rcx + 0x28], r14
xor dil, 1
movzx eax, dil
mov dword [rcx + 0x30], eax
mov qword [rcx + 0x38], r14
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1400ae51b
test bl, bl
je 0x1400ae513
lea rdi, [rsp + 0x40]
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.LaunchElevatedProcess
lea r8, str....._baseprocesslaunch_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x9e
call fcn.14004b4f0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14004c980
mov rcx, qword [rsp + 0xe8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call fcn.14004ca00
mov r14, qword [rsp + 0xe8]
mov rcx, rsi
mov rdx, r14
call fcn.140025f40
cmp byte [rsp + 0x107], 0
jns 0x1400ae53d
mov rcx, qword [rsp + 0xf0]
call fcn.1400656f4
cmp byte [rsp + 0x127], 0
jns 0x1400ae554
mov rcx, qword [rsp + 0x110]
call fcn.1400656f4
mov qword [rsp + 0x40], 0xa
mov rax, qword [0x1400da250]
mov al, byte [rax + 0xa]
test al, al
jne 0x1400ae599
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.140066a90
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x130]
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, al
lea r8, [rsp + 0x80]
mov qword [r8], 0
lea rdx, [rsp + 0x40]
mov r9d, 2
call fcn.140045ca0
jmp 0x1400ae56b
movzx ecx, al
lea rax, str.LaunchElevatedProcess
lea r8, [rsp + 0x80]
mov qword [r8], rax
lea rdx, [rsp + 0x40]
mov r9d, 1
call fcn.1400450b0
jmp 0x1400ae363
Function at 0x1400ae640
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x1400ed028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x1400fe648], 0
je 0x1400ae686
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.140066a90
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x1400fe620]
test rdi, rdi
je 0x1400ae727
test byte [0x1400ef0c0], 1
je 0x1400ae669
cmp byte [rdi + 0x17], 0
jns 0x1400ae6a8
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400fe648], rax
inc rax
cmp rax, 1
ja 0x1400ae669
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140068bd0
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1400ae7e9
xor esi, esi
jmp 0x1400ae669
mov ecx, 0x18
call fcn.1400656b8
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140068bd0
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x1400d0a80]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.140096860
movzx eax, byte [rdi + 0x17]
mov rcx, rdi
test al, al
jns 0x1400ae78f
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
jne 0x1400ae7b5
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.140044bb0
mov qword [0x1400fe620], rdi
jmp 0x1400ae696
add rax, rax
test rax, rax
je 0x1400ae794
lea rdx, [rax - 2]
cmp word [rcx + rax - 2], 0x5c
mov rax, rdx
jne 0x1400ae7b8
cmp rdx, 0xfffffffffffffffe
je 0x1400ae794
sar rdx, 1
inc rdx
mov rcx, rdi
mov r8, 0xffffffffffffffff
call fcn.1400425f0
jmp 0x1400ae794
mov rcx, qword [0x1400fe620]
lea rdx, [rsp + 0x40]
call fcn.140025a80
mov rcx, qword [0x1400fe620]
call fcn.1400ac050
cmp word [rax], 0x5c
je 0x1400ae825
mov rcx, qword [0x1400fe620]
lea rdx, [0x1400d2eba]
mov r8d, 1
call fcn.140044bb0
mov rcx, qword [0x1400fe620]
lea rdx, str.debug.log
mov r8d, 9
call fcn.140044bb0
mov rcx, qword [0x1400fe620]
cmp byte [rcx + 0x17], 0
jns 0x1400ae84e
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400fe648], rax
inc rax
cmp rax, 1
ja 0x1400ae669
mov qword [0x1400fe648], 0
jmp 0x1400ae720
Function at 0x1400c06f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rdx, rdx
je 0x1400c0703
cmp dword [0x140104758], ecx
jle 0x1400c070a
add rsp, 0x28
pop rdi
pop rsi
ret
mov rsi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
mov rcx, rsi
mov rdx, rdi
call fcn.1400c0750
test edi, edi
je 0x1400c0703
cmp byte [rsi + rdi - 1], 0xa
je 0x1400c0703
lea rcx, str._n_l_
mov edx, 1
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400c0750

Function at 0x1400c0750
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1400ed028]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
lea r14, [rsp + 0x34]
mov r15, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, rsi
jae 0x1400c07c7
mov dword [rsp + 0x34], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r15
mov ecx, dword [rsp + 0x34]
test eax, eax
cmovne eax, ecx
je 0x1400c07c7
add rdi, rax
test ecx, ecx
jne 0x1400c078d
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140066a90
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14000350c
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov esi, 1
mov ecx, esi
call fcn.140014880
test eax, eax
je 0x140003555
lea rax, str.CMcAWFwkService::InstallService___r_n
mov r9d, LoadRegTypeLib
lea r8, str.CMcAWFwkService::InstallService
mov qword [rsp + 0x20], rax
lea rdx, str.E:BT_ad7a08e3_3faa_4683_b8f2_1da0b0dd1c71UBF_1ActivationWizardHost_srcAWFwkMcAWtFwkService.cpp
mov ecx, esi
call fcn.140001e30
mov rcx, rbx
call fcn.140005da4
test eax, eax
je 0x1400035c7
xor edx, edx
xor ecx, ecx
mov r8d, 0xc0000000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x1400035c5
mov r8d, 3
lea rdx, [0x14005b078]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x1400035bc
lea rax, [0x14005bcf8]
mov edx, esi
lea r8, [rsp + 0x48]
mov qword [rsp + 0x48], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000566c
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x1368]
mov eax, 0x1460
call fcn.140020310
sub rsp, rax
mov rax, qword [0x14007e4a8]
xor rax, rsp
mov qword [rbp + 0x1350], rax
xor r14d, r14d
mov qword [rcx + 8], rdx
test r8, r8
mov qword [rcx + 0x18], r14
lea rax, vtable.CNTService.0
mov dword [rcx + 0x20], r14d
cmovne rdx, r8
mov qword [rcx], rax
mov qword [rcx + 0x10], rdx
lea ebx, [r14 + 0x10]
mov dword [rcx + 0x64], ebx
mov rdi, rcx
mov qword [rcx + 0x40], r14
mov dword [rcx + 0x48], 1
mov qword [rcx + 0x50], r14
mov dword [rcx + 0x5c], r14d
mov dword [rcx + 0x60], 0xf01ff
mov dword [rcx + 0x68], 2
mov dword [rcx + 0x6c], 1
mov qword [rcx + 0x70], r14
mov dword [rcx + 0x78], r14d
mov qword [rcx + 0x80], r14
mov qword [rcx + 0x88], r14
mov qword [rcx + 0x90], r14
add rcx, 0x98
mov dword [rcx], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rdi + 0xa8], 2
mov eax, r14d
mov qword [0x140080718], rdi
sete al
mov dword [rdi + 0x58], eax
mov dword [0x140080710], 1
mov dword [rdi + 0x24], ebx
mov dword [rdi + 0x34], r14d
cmp dword [rdi + 0x58], r14d
je 0x140005830
mov eax, 0xff
mov dword [rsp + 0x40], 0x1000
mov ebx, 0x200
mov dword [rsp + 0x44], eax
mov r8d, ebx
mov dword [rsp + 0x48], eax
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140021f80
mov r8d, ebx
lea rcx, [rbp + 0x150]
xor edx, edx
call fcn.140021f80
mov r8d, dword [rsp + 0x40]
lea rcx, [rbp + 0x350]
xor edx, edx
call fcn.140021f80
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rax, [rsp + 0x4c]
xor ecx, ecx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x350]
lea rax, [rbp + 0x150]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x140005830
lea rcx, [rbp + 0x350]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x140005830
lea rcx, [rbp + 0x350]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, eax
mov ebx, eax
call fcn.14001ff64
lea r8, [rbp + 0x350]
mov qword [rdi + 0x50], rax
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.ADVAPI32.dll_CopySid]
mov rax, rdi
mov rcx, qword [rbp + 0x1350]
xor rcx, rsp
call fcn.140020250
lea r11, [rsp + 0x1460]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400058bc
Capabilities:
Continue service
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14007e4a8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x1400059f0
mov rdx, qword [rbx + 8]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x1400059a2
lea r14, [rbx + 0x24]
mov rcx, rax
mov r8, r14
lea edx, [rdi + 3]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140005997
mov rdx, qword [rbx + 0x10]
lea rcx, str.Stopping__s.
call fcn.140006bc0
jmp 0x140005958
cmp dword [rbx + 0x28], 5
jne 0x140005973
lea rcx, [0x14005df20]
call fcn.140006bc0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140005946
cmp dword [rbx + 0x28], 4
mov rdx, qword [rbx + 0x10]
jne 0x14000598b
mov edi, 1
lea rcx, str._n_s_stopped._n
jmp 0x140005992
lea rcx, str._n_s_failed_to_stop._n
call fcn.140006bc0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400059e5
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140005cec
cmp qword [rax + 0x18], 8
jb 0x1400059b9
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.OpenService_failed____s_n
call fcn.140006bc0
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1400059e5
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
call fcn.140002570
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140005a33
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140005cec
cmp qword [rax + 0x18], 8
jb 0x140005a07
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.OpenSCManager_failed____s_n
call fcn.140006bc0
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140005a33
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
call fcn.140002570
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140020250
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140005b50
Capabilities:
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14007e4a8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x140005c84
mov rdx, qword [rbx + 8]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140005c36
lea r14, [rbx + 0x24]
mov rcx, rax
mov r8, r14
lea edx, [rdi + 1]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140005c2b
mov rdx, qword [rbx + 0x10]
lea rcx, str.Stopping__s.
call fcn.140006bc0
jmp 0x140005bec
cmp dword [rbx + 0x28], 3
jne 0x140005c07
lea rcx, [0x14005df20]
call fcn.140006bc0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140005bda
cmp dword [rbx + 0x28], 1
mov rdx, qword [rbx + 0x10]
jne 0x140005c1f
mov edi, 1
lea rcx, str._n_s_stopped._n
jmp 0x140005c26
lea rcx, str._n_s_failed_to_stop._n
call fcn.140006bc0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140005c79
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140005cec
cmp qword [rax + 0x18], 8
jb 0x140005c4d
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.OpenService_failed____s_n
call fcn.140006bc0
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140005c79
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
call fcn.140002570
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140005cc7
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140005cec
cmp qword [rax + 0x18], 8
jb 0x140005c9b
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.OpenSCManager_failed____s_n
call fcn.140006bc0
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140005cc7
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
call fcn.140002570
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140020250
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000617c
Capabilities:
Pause service
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14007e4a8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x1400062b0
mov rdx, qword [rbx + 8]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140006262
lea r14, [rbx + 0x24]
mov rcx, rax
mov r8, r14
lea edx, [rdi + 2]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140006257
mov rdx, qword [rbx + 0x10]
lea rcx, str.Stopping__s.
call fcn.140006bc0
jmp 0x140006218
cmp dword [rbx + 0x28], 6
jne 0x140006233
lea rcx, [0x14005df20]
call fcn.140006bc0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140006206
cmp dword [rbx + 0x28], 7
mov rdx, qword [rbx + 0x10]
jne 0x14000624b
mov edi, 1
lea rcx, str._n_s_stopped._n
jmp 0x140006252
lea rcx, str._n_s_failed_to_stop._n
call fcn.140006bc0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400062a5
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140005cec
cmp qword [rax + 0x18], 8
jb 0x140006279
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.OpenService_failed____s_n
call fcn.140006bc0
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1400062a5
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
call fcn.140002570
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400062f3
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140005cec
cmp qword [rax + 0x18], 8
jb 0x1400062c7
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.OpenSCManager_failed____s_n
call fcn.140006bc0
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1400062f3
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
call fcn.140002570
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140020250
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret