joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004560
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140225e48]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor eax, eax
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x38], rax
lea r9, [rbp - 0x20]
mov dword [rbp - 0x38], eax
mov rdi, rdx
lea rdx, str.SELECT_PARAM_VALUE_FROM_GLOBAL_PARAMS_WHERE_PARAM_NAMELOWER__Name_
xorps xmm0, xmm0
lea rax, [rbp - 0x40]
mov qword [rbp - 0x28], rdx
mov rsi, r8
mov qword [rsp + 0x20], rax
movdqu xmmword [rbp - 0x20], xmm0
mov rcx, qword [rcx + 0x10]
or r8d, 0xffffffff
call fcn.140063d10
mov ebx, eax
test eax, eax
jne 0x1400045fc
mov dword [rbp - 0x38], 1
or rax, 0xffffffffffffffff
nop
cmp word [rdi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400045d0
mov rcx, qword [rbp - 0x20]
lea r9d, [rax + rax]
mov r8, rdi
mov qword [rsp + 0x20], 0
mov edx, 1
call fcn.1400653d0
mov ebx, eax
test ebx, ebx
jne 0x140004679
mov eax, dword [rbp - 0x38]
test eax, eax
je 0x14000461a
add eax, 0xfffffffd
cmp eax, 1
ja 0x140004649
mov rcx, qword [rbp - 0x20]
call fcn.140056910
jmp 0x140004642
mov rax, qword [rbp - 0x30]
lea rcx, [rbp - 0x40]
mov rdx, qword [rbp - 0x28]
lea r9, [rbp - 0x20]
mov qword [rsp + 0x20], rcx
or r8d, 0xffffffff
mov rcx, qword [rax + 0x10]
call fcn.140063d10
mov ebx, eax
test eax, eax
jne 0x140004679
mov dword [rbp - 0x38], 1
mov rcx, qword [rbp - 0x20]
call fcn.140055990
mov ecx, eax
mov ebx, eax
sub ecx, 0x64
je 0x140004672
cmp ecx, 1
je 0x140004669
mov dword [rbp - 0x38], 3
jmp 0x140004679
mov dword [rbp - 0x38], 4
jmp 0x140004679
mov dword [rbp - 0x38], 2
lea eax, [rbx - 0x64]
cmp eax, 1
jbe 0x140004685
test ebx, ebx
jne 0x1400046a2
cmp dword [rbp - 0x38], 2
jne 0x14000469d
mov rcx, qword [rbp - 0x20]
xor edx, edx
call fcn.140055f90
mov qword [rsi], rax
xor ebx, ebx
jmp 0x1400046a2
mov ebx, 0x15
mov rcx, qword [rbp - 0x20]
call fcn.140056340
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400eb3e0
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000bcd0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x140225e48]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rdx
lea rcx, [rsp + 0x20]
mov edx, 0x208
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x14000bd41
lea rax, [rsp + 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14000bd10
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000c240
mov r8d, 0x20
lea rdx, str.iaStorAfsServiceusage_stats.db
mov rcx, rbx
call fcn.14000c600
xor eax, eax
jmp 0x14000bd46
mov eax, 0x6e
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400eb3e0
add rsp, 0x240
pop rbx
ret
Function at 0x14000bf60
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rax, qword [0x140225e48]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], di
mov rax, qword [rcx]
lea rdx, [rsp + 0x28]
call qword [rax + 0x38]
mov ebx, eax
test eax, eax
jne 0x14000bfd4
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x14000bfcc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
cmp ebx, 2
cmovne edi, ebx
mov ebx, edi
mov rax, qword [rsp + 0x40]
cmp rax, 8
jb 0x14000c046
inc rax
mov rcx, qword [rsp + 0x28]
movabs rdx, 0x7fffffffffffffff
cmp rax, rdx
jbe 0x14000bffc
call fcn.14011efd0
int3
add rax, rax
cmp rax, 0x1000
jb 0x14000c041
test byte [rsp + 0x28], 0x1f
je 0x14000c014
call fcn.14011efd0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14000c023
call fcn.14011efd0
int3
sub rcx, rax
cmp rcx, 8
jae 0x14000c032
call fcn.14011efd0
int3
cmp rcx, 0x27
jbe 0x14000c03e
call fcn.14011efd0
int3
mov rcx, rax
call fcn.1400ea89c
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400eb3e0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x14000d880
Capabilities:
Query service status
Stop service

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov ecx, 0x130
mov eax, dword [rcx + rdx]
test al, 1
jne 0x14000d8cf
or eax, 1
mov dword [rcx + rdx], eax
mov ecx, 0x138
add rcx, rdx
xor eax, eax
mov qword [rcx], rax
call sym.iaStorAfsService.exe_private:_void___cdecl_GlobalLogger::constructor_void____ptr64
lea rcx, [0x1401b3c50]
call fcn.1400ebd30
nop
cmp byte [sym.iaStorAfsService.exe_bool_GlobalLogger::_printOnDebug], 0
je 0x14000d8f7
lea rdx, str.unsigned_long___cdecl_MinifilterStopCommand::Execute_int_wchar_t____
lea rcx, [0x14022d0e0]
call fcn.14000abf0
lea rcx, [0x14022d0e0]
call fcn.14000e410
mov rcx, qword [rbx + 8]
add rsp, 0x30
pop rbx
jmp fcn.140012f90
Function at 0x1400129b0
Capabilities:
Create service
Modify service

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x180
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x140225e48]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov r14, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov rbp, qword [rsp + 0x1d0]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov qword [rdi], rax
test rax, rax
jne 0x140012a58
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x78]
call fcn.140114650
lea rcx, [rsp + 0x78]
call fcn.14000df10
nop
lea rdx, str.Cannot_open_service_manager._Please_run_with_administrative_rights.
lea rcx, [rsp + 0x88]
call fcn.14000abf0
lea rcx, [rsp + 0x88]
call fcn.14000e410
nop
lea rcx, [rsp + 0x78]
call fcn.140026a40
mov eax, 0x6e
jmp 0x140012be4
xor ecx, ecx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CreateServiceW]
mov qword [rdi + 8], rax
test rax, rax
jne 0x140012b57
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x78]
cmp eax, 0x431
jne 0x140012b02
call fcn.140114650
lea rcx, [rsp + 0x78]
call fcn.14000df10
nop
lea rdx, str.Cannot_open_service._Please_run_with_administrative_rights._ERROR_SERVICE_EXISTS.
lea rcx, [rsp + 0x88]
call fcn.14000abf0
lea rcx, [rsp + 0x88]
call fcn.14000e410
nop
jmp 0x140012b43
call fcn.140114650
lea rcx, [rsp + 0x78]
call fcn.14000df10
nop
lea rdx, str.Cannot_open_service._Please_run_with_administrative_rights._Error
lea rcx, [rsp + 0x88]
call fcn.14000abf0
mov edx, ebx
lea rcx, [rsp + 0x88]
call fcn.140016d60
lea rcx, [rsp + 0x88]
call fcn.14000e410
nop
lea rcx, [rsp + 0x78]
call fcn.140026a40
mov eax, 0x65f
jmp 0x140012be4
mov qword [rsp + 0x170], r14
lea r8, [rsp + 0x170]
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov edx, 0x130
mov eax, dword [rdx + rcx]
test al, 1
jne 0x140012bb2
or eax, 1
mov dword [rdx + rcx], eax
mov eax, 0x138
add rcx, rax
xor eax, eax
mov qword [rcx], rax
call sym.iaStorAfsService.exe_private:_void___cdecl_GlobalLogger::constructor_void____ptr64
lea rcx, [0x1401b3c50]
call fcn.1400ebd30
nop
cmp byte [sym.iaStorAfsService.exe_bool_GlobalLogger::_printOnDebug], 0
je 0x140012bda
lea rdx, str.Service_installed_successfully
lea rcx, [0x14022d0e0]
call fcn.14000abf0
lea rcx, [0x14022d0e0]
call fcn.14000e410
mov rdx, rbx
call fcn.140012c10
xor eax, eax
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.1400eb3e0
add rsp, 0x180
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140012c10
Capabilities:
Modify service

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x90
mov qword [r11 - 0x78], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x140225e48]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbx, rdx
mov qword [r11 - 0x28], 1
xor ecx, ecx
mov qword [r11 - 0x20], 1
mov qword [r11 - 0x18], rcx
mov dword [rsp + 0x28], 0xffffffff
mov qword [r11 - 0x60], rcx
mov qword [r11 - 0x68], rcx
mov dword [rsp + 0x40], 3
lea rax, [r11 - 0x28]
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x38], rcx
mov qword [r11 - 0x30], 7
mov word [rsp + 0x50], cx
xor edx, edx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140012db2
mov r8d, 0xf003f
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x140012d42
lea r8, [rsp + 0x28]
mov edx, 2
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
test eax, eax
jg 0x140012d37
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx]
mov ecx, 0x130
mov eax, dword [rcx + rdx]
test al, 1
jne 0x140012d0f
or eax, 1
mov dword [rcx + rdx], eax
mov ecx, 0x138
add rcx, rdx
xor eax, eax
mov qword [rcx], rax
call sym.iaStorAfsService.exe_private:_void___cdecl_GlobalLogger::constructor_void____ptr64
lea rcx, [0x1401b3c50]
call fcn.1400ebd30
nop
cmp byte [sym.iaStorAfsService.exe_bool_GlobalLogger::_printOnDebug], 0
je 0x140012d37
lea rdx, str.Cannot_set_recovery_bahaviour_
lea rcx, [0x14022d0e0]
call fcn.14000abf0
lea rcx, [0x14022d0e0]
call fcn.14000e410
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
jmp 0x140012da7
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov ecx, 0x130
mov eax, dword [rcx + rdx]
test al, 1
jne 0x140012d7f
or eax, 1
mov dword [rcx + rdx], eax
mov ecx, 0x138
add rcx, rdx
xor eax, eax
mov qword [rcx], rax
call sym.iaStorAfsService.exe_private:_void___cdecl_GlobalLogger::constructor_void____ptr64
lea rcx, [0x1401b3c50]
call fcn.1400ebd30
nop
cmp byte [sym.iaStorAfsService.exe_bool_GlobalLogger::_printOnDebug], 0
je 0x140012da7
lea rdx, str.Cannot_open_service_
lea rcx, [0x14022d0e0]
call fcn.14000abf0
lea rcx, [0x14022d0e0]
call fcn.14000e410
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
jmp 0x140012e18
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov ecx, 0x130
mov eax, dword [rcx + rdx]
test al, 1
jne 0x140012def
or eax, 1
mov dword [rcx + rdx], eax
mov ecx, 0x138
add rcx, rdx
xor eax, eax
mov qword [rcx], rax
call sym.iaStorAfsService.exe_private:_void___cdecl_GlobalLogger::constructor_void____ptr64
lea rcx, [0x1401b3c50]
call fcn.1400ebd30
nop
cmp byte [sym.iaStorAfsService.exe_bool_GlobalLogger::_printOnDebug], 0
je 0x140012e18
lea rdx, str.Cannot_connect_to_the_service_control_manager_
lea rcx, [0x14022d0e0]
call fcn.14000abf0
lea rcx, [0x14022d0e0]
call fcn.14000e410
nop
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400eb3e0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
Function at 0x140013420
Capabilities:
Modify service

Disassembly:
push rbx
sub rsp, 0x160
mov qword [rsp + 0x60], 0xfffffffffffffffe
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
mov r8d, edx
or edx, r9d
mov rcx, qword [rcx + 8]
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfigW]
test eax, eax
jne 0x140013508
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x68]
call fcn.140114650
lea rcx, [rsp + 0x68]
call fcn.14000df10
nop
lea rdx, str.ChangeServiceConfig_returned_0x
lea rcx, [rsp + 0x78]
call fcn.14000abf0
mov rcx, qword [rsp + 0x78]
movsxd rdx, dword [rcx + 4]
and dword [rsp + rdx + 0x90], 0xfffff9ff
or dword [rsp + rdx + 0x90], 0x800
mov edx, ebx
lea rcx, [rsp + 0x78]
call fcn.140016d60
mov rax, qword [rsp + 0x78]
movsxd rcx, dword [rax + 4]
and dword [rsp + rcx + 0x90], 0xfffff3ff
or dword [rsp + rcx + 0x90], 0x200
lea rcx, [rsp + 0x78]
call fcn.14000e410
nop
lea rcx, [rsp + 0x68]
call fcn.140026a40
xor eax, eax
add rsp, 0x160
pop rbx
ret
Function at 0x140013700
Capabilities:
Modify service

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x190
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x1c0], rbx
mov rax, qword [0x140225e48]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rdi, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0xe8
lea rcx, [rsp + 0x90]
call fcn.140114650
lea rcx, [rsp + 0x90]
call fcn.1400142c0
nop
xor ebp, ebp
mov ebx, ebp
cmp qword [rdi], rbx
je 0x140013793
mov rax, qword [rdi]
nop dword [rax]
nop word [rax + rax]
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.140015ba0
mov rcx, rax
call fcn.140016280
inc ebx
mov rax, qword [rdi + rbx*8]
test rax, rax
jne 0x140013770
lea rcx, [rsp + 0x90]
call fcn.140016280
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x90]
call fcn.140014210
cmp qword [rax + 0x18], 8
jb 0x1400137bc
mov rax, qword [rax]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
or r9d, 0xffffffff
or r8d, r9d
or edx, r9d
mov rcx, qword [rsi + 8]
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfigW]
test eax, eax
sete bl
mov rax, qword [rsp + 0x80]
cmp rax, 8
jb 0x14001386b
inc rax
mov rcx, qword [rsp + 0x68]
movabs rdx, 0x7fffffffffffffff
cmp rax, rdx
jbe 0x140013823
call fcn.14011efd0
int3
add rax, rax
cmp rax, 0x1000
jb 0x140013866
test cl, 0x1f
je 0x140013839
call fcn.14011efd0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140013848
call fcn.14011efd0
int3
sub rcx, rax
cmp rcx, 8
jae 0x140013857
call fcn.14011efd0
int3
cmp rcx, 0x27
jbe 0x140013863
call fcn.14011efd0
int3
mov rcx, rax
call fcn.1400ea89c
test bl, bl
je 0x140013923
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx]
mov eax, 0x130
mov ecx, dword [rax + rdx]
test cl, 1
jne 0x1400138b9
or ecx, 1
mov dword [rax + rdx], ecx
mov ecx, 0x138
add rcx, rdx
xor eax, eax
mov qword [rcx], rax
call sym.iaStorAfsService.exe_private:_void___cdecl_GlobalLogger::constructor_void____ptr64
lea rcx, [0x1401b3c50]
call fcn.1400ebd30
nop
cmp byte [sym.iaStorAfsService.exe_bool_GlobalLogger::_printOnDebug], 0
je 0x140013923
lea rdx, str.ChangeServiceConfig_returned_0x
lea rdi, [0x14022d0e0]
mov rcx, rdi
call fcn.14000abf0
mov rax, qword [0x14022d0e0]
movsxd rdx, dword [rax + 4]
add rdx, rdi
and dword [rdx + 0x18], 0xfffff9ff
or dword [rdx + 0x18], 0x800
mov edx, ebx
mov rcx, rdi
call fcn.140016d60
mov rax, qword [0x14022d0e0]
movsxd rdx, dword [rax + 4]
add rdx, rdi
and dword [rdx + 0x18], 0xfffff3ff
or dword [rdx + 0x18], 0x200
mov rcx, rdi
call fcn.14000e410
nop
lea rcx, [rsp + 0x118]
call fcn.140014240
nop
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x118], rax
lea rcx, [rsp + 0x118]
call fcn.1400ee000
nop
xor eax, eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400eb3e0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x190
pop rdi
pop rsi
pop rbp
ret
Function at 0x140013fa0
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140225e48]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ebp, ebp
mov rbx, rcx
mov qword [rdx], rbp
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140013fd8
call fcn.1400eb444
mov qword [rbx + 0x10], rbp
mov rcx, qword [rbx + 8]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea rsi, [rbx + 0x20]
mov qword [rsp + 0x28], rsi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_service_core_l1_1_1.dll_EnumDependentServicesW]
test eax, eax
jne 0x1400140a2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xea
jne 0x1400140a4
mov ecx, dword [rsp + 0x30]
call fcn.1400eb43c
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x140014031
mov eax, 0xe
jmp 0x1400140a4
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call fcn.140114650
mov r8, qword [rbx + 0x10]
lea rax, [rsp + 0x30]
mov r9d, dword [rsp + 0x30]
mov edx, 1
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x28], rsi
mov qword [rbx + 0x18], r8
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_service_core_l1_1_1.dll_EnumDependentServicesW]
test eax, eax
jne 0x140014084
mov rcx, qword [rbx + 0x10]
call fcn.1400eb444
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov dword [rsi], ebp
jmp 0x1400140a2
mov dword [rbx + 0x24], ebp
cmp dword [rsi], ebp
ja 0x140014090
mov qword [rdi], rbp
jmp 0x1400140a2
mov rcx, qword [rbx + 0x18]
mov rdx, rdi
mov rcx, qword [rcx]
call fcn.140012390
inc dword [rbx + 0x24]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400eb3e0
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001db30
Capabilities:
Delete registry key

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x140225e48]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
test rdx, rdx
je 0x14001dbcc
mov qword [rsp + 0x50], rbx
lea rbx, [0x140226b28]
mov qword [rsp + 0x58], rsi
xor esi, esi
cmp byte [rbx + 0x39], 2
jne 0x14001dbb8
cmp qword [rbx + 0x18], 8
mov qword [rsp + 0x30], rsi
jb 0x14001db77
mov rdx, qword [rbx]
jmp 0x14001db7a
mov rdx, rbx
mov rcx, qword [rbx - 8]
lea rax, [rsp + 0x30]
mov r9d, 0x1000b
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x14001dbad
xor edx, edx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001dbb8
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
add rbx, 0x48
sub rdi, 1
jne 0x14001db60
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400eb3e0
add rsp, 0x40
pop rdi
ret
Function at 0x14001dbf0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x140225e48]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rsi, [0x140226b28]
xor r15d, r15d
mov r14d, r15d
mov qword [rsp + 0x50], r15
nop dword [rax + rax]
movzx eax, byte [rsi + 0x38]
dec al
test al, 0xfd
jne 0x14001dd78
mov qword [rsp + 0x60], r15
cmp qword [rsi + 0x18], 8
jb 0x14001dc5f
mov rdx, qword [rsi]
jmp 0x14001dc62
mov rdx, rsi
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsi - 8]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov ebp, eax
test eax, eax
jne 0x14001dd93
mov rbx, qword [rsi + 0x20]
mov rdi, qword [rsi + 0x28]
cmp rbx, rdi
je 0x14001dd68
nop
cmp byte [rsi + 0x38], 3
jne 0x14001dcf5
mov dword [rsp + 0x70], r15d
mov dword [rsp + 0x68], r15d
mov rbp, qword [rsp + 0x60]
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rdx, rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x14001dd56
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov rax, qword [rbx]
mov rdx, qword [rax]
mov rbp, rdx
mov r12, rax
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov r13, rax
mov rcx, r12
call qword [rbp]
mov r15, rax
mov rcx, r12
call qword [rbp + 0x10]
mov ebp, eax
mov rdx, qword [r12]
mov rcx, r12
call qword [rdx + 0x18]
mov rdx, rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r15
mov r9d, ebp
xor r8d, r8d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebp, eax
test eax, eax
jne 0x14001dd93
xor r15d, r15d
add rbx, 8
cmp rbx, rdi
jne 0x14001dcb0
mov r14, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14001dd78
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
add r14, 0x48
mov qword [rsp + 0x50], r14
add rsi, 0x48
cmp r14, 0x360
jae 0x14001ddb2
jmp 0x14001dc40
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call fcn.14001db30
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14001ddae
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebp
jmp 0x14001ddb4
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400eb3e0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14001f490
Capabilities:
Get volume information via ioctl

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140225e48]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx edi, dx
mov rbx, rcx
mov rcx, qword [0x140226b10]
lea rsi, [0x140226b10]
cmp rcx, rsi
je 0x14001f4e8
test byte [rcx + 0x1c], 1
je 0x14001f4e8
cmp byte [rcx + 0x19], 4
jb 0x14001f4e8
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401e0448]
mov edx, VariantTimeToDosDateTime
call fcn.14001f000
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
lea rcx, [rbx + 0x68]
mov edx, 0xc0000000
mov word [rbx + 0x70], di
mov word [rbx + 0x7e], di
lea r8d, [r9 + 7]
mov dword [rsp + 0x20], 3
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov qword [rbx + 0x88], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x14001f568
mov rcx, qword [0x140226b10]
cmp rcx, rsi
je 0x14001f55e
test byte [rcx + 0x1c], 1
je 0x14001f55e
cmp byte [rcx + 0x19], 2
jb 0x14001f55e
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0xd]
lea r9, [rbx + 0x68]
lea r8, [0x1401e0448]
call fcn.14001f090
mov eax, 0x6e
jmp 0x14001f635
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], rdx
lea rax, [rbx + 8]
mov dword [rsp + 0x28], 0x60
mov edx, 0x90064
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
test eax, eax
jne 0x14001f5f2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xea
je 0x14001f5f2
mov rcx, qword [0x140226b10]
cmp rcx, rsi
je 0x14001f5e3
test byte [rcx + 0x1c], 1
je 0x14001f5e3
cmp byte [rcx + 0x19], 2
jb 0x14001f5e3
mov rcx, qword [rcx + 0x10]
lea r9, [rbx + 0x68]
mov edx, 0xd
mov dword [rsp + 0x20], eax
lea r8, [0x1401e0448]
call fcn.14001f100
mov rcx, rbx
call fcn.14001fdc0
mov eax, 0x6e
jmp 0x14001f635
mov eax, dword [rsp + 0x40]
cmp eax, 0x60
jae 0x14001f633
mov rcx, qword [0x140226b10]
cmp rcx, rsi
je 0x14001f624
test byte [rcx + 0x1c], 1
je 0x14001f624
cmp byte [rcx + 0x19], 2
jb 0x14001f624
mov rcx, qword [rcx + 0x10]
lea r9, [rbx + 0x68]
mov dword [rsp + 0x20], eax
call fcn.14001f180
mov rcx, rbx
call fcn.14001fdc0
mov eax, 0x6e
jmp 0x14001f635
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400eb3e0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret