joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400143e0
Capabilities:
Create service
Modify service

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x1402adcf8]
xor rax, rsp
mov qword [rbp + 0xa8], rax
mov r12, r9
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov r15, qword [rbp + 0x110]
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 [rsi], rax
test rax, rax
jne 0x14001448b
lea rcx, [rbp - 0x80]
call fcn.140005ff0
xor ebx, ebx
mov qword [rbp + 0x88], rbx
mov qword [rbp + 0x90], 7
mov word [rbp + 0x78], bx
lea rdx, str.Cannot_open_service_manager._Please_run_with_administrative_rights.
lea rcx, [rbp - 0x70]
call fcn.1400104d0
lea rcx, [rbp - 0x70]
call fcn.140006820
nop
lea rcx, [rbp - 0x80]
call fcn.140004cc0
lea eax, [rbx + 0x6e]
jmp 0x1400145fe
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CreateServiceW]
mov qword [rsi + 8], rax
test rax, rax
jne 0x14001457f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
lea rcx, [rbp - 0x80]
cmp eax, 0x431
jne 0x14001452f
call fcn.140005ff0
mov qword [rbp + 0x88], rbx
mov qword [rbp + 0x90], 7
mov word [rbp + 0x78], bx
lea rdx, str.Cannot_open_service._Please_run_with_administrative_rights._ERROR_SERVICE_EXISTS.
lea rcx, [rbp - 0x70]
call fcn.1400104d0
lea rcx, [rbp - 0x70]
call fcn.140006820
nop
jmp 0x14001456f
call fcn.140005ff0
mov qword [rbp + 0x88], rbx
mov qword [rbp + 0x90], 7
mov word [rbp + 0x78], bx
lea rdx, str.Cannot_open_service._Please_run_with_administrative_rights._Error
lea rcx, [rbp - 0x70]
call fcn.1400104d0
mov edx, edi
lea rcx, [rbp - 0x70]
call fcn.1400170a0
lea rcx, [rbp - 0x70]
call fcn.140006820
nop
lea rcx, [rbp - 0x80]
call fcn.140004cc0
mov eax, 0x65f
jmp 0x1400145fe
mov qword [rbp + 0xa0], r12
lea r8, [rbp + 0xa0]
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 r8, qword [rax]
mov ecx, 0x10
mov eax, dword [rcx + r8]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
test al, 1
jne 0x1400145cd
or eax, 1
mov dword [rcx + r8], eax
mov ecx, r9d
add rcx, r8
call fcn.140004bb0
nop
cmp byte [r9 + r8 + 1], 0
je 0x1400145f4
lea rdx, str.Service_installed_successfully
lea rcx, [0x1402b5400]
call fcn.14000e600
lea rcx, [0x1402b5400]
call fcn.14000e9f0
mov rdx, rdi
call fcn.140014620
xor eax, eax
mov rcx, qword [rbp + 0xa8]
xor rcx, rsp
call fcn.1401a8cb0
add rsp, 0x1b0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140014620
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 [0x1402adcf8]
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 0x1400147a2
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 0x140014740
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 0x140014735
mov rcx, qword gs:[0x58]
mov r8, qword [rcx]
mov ecx, 0x10
mov eax, dword [rcx + r8]
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
test al, 1
jne 0x14001470e
or eax, 1
mov dword [rcx + r8], eax
mov ecx, edx
add rcx, r8
call fcn.140004bb0
nop
cmp byte [rdx + r8 + 1], 0
je 0x140014735
lea rdx, str.Cannot_set_recovery_bahaviour_
lea rcx, [0x1402b5400]
call fcn.14000e600
lea rcx, [0x1402b5400]
call fcn.14000e9f0
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
jmp 0x140014797
mov rax, qword gs:[0x58]
mov r8, qword [rax]
mov ecx, 0x10
mov eax, dword [rcx + r8]
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
test al, 1
jne 0x140014770
or eax, 1
mov dword [rcx + r8], eax
mov ecx, edx
add rcx, r8
call fcn.140004bb0
nop
cmp byte [rdx + r8 + 1], 0
je 0x140014797
lea rdx, str.Cannot_open_service_
lea rcx, [0x1402b5400]
call fcn.14000e600
lea rcx, [0x1402b5400]
call fcn.14000e9f0
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
jmp 0x1400147fa
mov rax, qword gs:[0x58]
mov r8, qword [rax]
mov ecx, 0x10
mov eax, dword [rcx + r8]
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
test al, 1
jne 0x1400147d2
or eax, 1
mov dword [rcx + r8], eax
mov ecx, edx
add rcx, r8
call fcn.140004bb0
nop
cmp byte [rdx + r8 + 1], 0
je 0x1400147fa
lea rdx, str.Cannot_connect_to_the_service_control_manager_
lea rcx, [0x1402b5400]
call fcn.14000e600
lea rcx, [0x1402b5400]
call fcn.14000e9f0
nop
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1401a8cb0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
Function at 0x140014820
Capabilities:
Start service

Disassembly:
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
mov rsi, rcx
mov rax, qword gs:[0x58]
mov rdi, qword [rax]
mov r14d, 0x10
mov eax, dword [r14 + rdi]
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
test al, 1
jne 0x1400059a2
or eax, 1
mov dword [r14 + rdi], eax
mov ecx, edx
add rcx, rdi
call fcn.140004bb0
nop
mov ebx, edx
add rbx, rdi
cmp byte [rbx + 1], 0
je 0x1400059cc
lea rdx, str.unsigned_long___cdecl_MinifilterStartCommand::Execute_int_wchar_t____
lea rcx, [0x1402b5400]
call fcn.14000e600
lea rcx, [0x1402b5400]
call fcn.14000e9f0
mov eax, dword [r14 + rdi]
test al, 1
jne 0x1400059e4
or eax, 1
mov dword [r14 + rdi], eax
mov rcx, rbx
call fcn.140004bb0
nop
cmp byte [rbx + 1], 0
je 0x140005a09
lea rdx, str.Start_Minifilter
lea rcx, [0x1402b5400]
call fcn.14000e600
lea rcx, [0x1402b5400]
call fcn.14000e9f0
mov rcx, qword [rsi + 8]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
jmp 0x140014820
push rbx
sub rsp, 0x150
mov qword [rsp + 0x20], 0xfffffffffffffffe
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_StartServiceW]
test eax, eax
jne 0x14001491d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x30]
cmp eax, 0x420
jne 0x14001489e
call fcn.140005ff0
xor eax, eax
mov qword [rsp + 0x138], rax
mov qword [rsp + 0x140], 7
mov word [rsp + 0x128], ax
lea rdx, str.Cannot_start_service._ERROR_SERVICE_ALREADY_RUNNING
lea rcx, [rsp + 0x40]
call fcn.1400104d0
lea rcx, [rsp + 0x40]
call fcn.140006820
nop
jmp 0x14001490c
call fcn.140005ff0
xor eax, eax
mov qword [rsp + 0x140], 7
mov qword [rsp + 0x138], rax
mov word [rsp + 0x128], ax
cmp ebx, 2
jne 0x1400148e4
lea rdx, str.Cannot_start_service._ERROR_FILE_NOT_FOUND
lea rcx, [rsp + 0x40]
call fcn.1400104d0
lea rcx, [rsp + 0x40]
call fcn.140006820
nop
jmp 0x14001490c
lea rdx, str.Cannot_start_service._Error
lea rcx, [rsp + 0x40]
call fcn.1400104d0
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.1400170a0
lea rcx, [rsp + 0x40]
call fcn.140006820
nop
lea rcx, [rsp + 0x30]
call fcn.140004cc0
mov eax, 0x6e
jmp 0x140014976
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov ecx, 0x10
mov eax, dword [rcx + rdx]
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
test al, 1
jne 0x14001494d
or eax, 1
mov dword [rcx + rdx], eax
mov ecx, r8d
add rcx, rdx
call fcn.140004bb0
nop
cmp byte [r8 + rdx + 1], 0
je 0x140014974
lea rdx, str.Service_started_successfully.
lea rcx, [0x1402b5400]
call fcn.14000e600
lea rcx, [0x1402b5400]
call fcn.14000e9f0
xor eax, eax
add rsp, 0x150
pop rbx
ret
Function at 0x1400150d0
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 [0x1402adcf8]
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.1401ab060
lea rcx, [rsp + 0x90]
call fcn.140015c40
nop
xor ebp, ebp
mov ebx, ebp
cmp qword [rdi], rbx
je 0x140015163
mov rax, qword [rdi]
nop dword [rax]
nop word [rax + rax]
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.140016200
mov rcx, rax
call fcn.140016530
inc ebx
mov rax, qword [rdi + rbx*8]
test rax, rax
jne 0x140015140
lea rcx, [rsp + 0x90]
call fcn.140016530
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x90]
call fcn.140015b90
cmp qword [rax + 0x18], 8
jb 0x14001518c
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 r8, qword [rsp + 0x80]
cmp r8, 8
jb 0x1400151e8
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.14000c430
test bl, bl
je 0x140015292
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, 0x10
mov ecx, dword [rax + rdx]
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
test cl, 1
jne 0x140015229
or ecx, 1
mov dword [rax + rdx], ecx
mov ecx, r8d
add rcx, rdx
call fcn.140004bb0
nop
cmp byte [r8 + rdx + 1], 0
je 0x140015292
lea rdx, str.ChangeServiceConfig_returned_0x
lea rdi, [0x1402b5400]
mov rcx, rdi
call fcn.14000e600
mov rax, qword [0x1402b5400]
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.140006de0
mov rax, qword [0x1402b5400]
movsxd rdx, dword [rax + 4]
add rdx, rdi
and dword [rdx + 0x18], 0xfffff3ff
or dword [rdx + 0x18], 0x200
mov rcx, rdi
call fcn.14000e9f0
nop
lea rcx, [rsp + 0x118]
call fcn.140015bc0
nop
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x118], rax
lea rcx, [rsp + 0x118]
call fcn.140186204
nop
xor eax, eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1401a8cb0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x190
pop rdi
pop rsi
pop rbp
ret
Function at 0x140015930
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1402adcf8]
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 0x140015968
call fcn.1401a8cdc
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 0x140015a32
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xea
jne 0x140015a34
mov ecx, dword [rsp + 0x30]
call fcn.1401a8cd4
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1400159c1
mov eax, 0xe
jmp 0x140015a34
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call fcn.1401ab060
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 0x140015a14
mov rcx, qword [rbx + 0x10]
call fcn.1401a8cdc
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov dword [rsi], ebp
jmp 0x140015a32
mov dword [rbx + 0x24], ebp
cmp dword [rsi], ebp
ja 0x140015a20
mov qword [rdi], rbp
jmp 0x140015a32
mov rcx, qword [rbx + 0x18]
mov rdx, rdi
mov rcx, qword [rcx]
call fcn.140013e30
inc dword [rbx + 0x24]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401a8cb0
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001d3e0
Capabilities:
Delete registry key

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x1402adcf8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, rdx
test rdx, rdx
je 0x14001d521
mov qword [rsp + 0x50], rbx
lea rbx, [0x1402ae898]
mov qword [rsp + 0x58], rbp
lea rbp, [0x1402aebf0]
mov qword [rsp + 0x68], r14
xor r14d, r14d
mov qword [rsp + 0x60], rdi
cmp byte [rbx + 0x39], 2
jne 0x14001d4ff
cmp qword [rbx + 0x18], 8
mov qword [rsp + 0x30], r14
jb 0x14001d441
mov rdx, qword [rbx]
jmp 0x14001d444
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]
mov edi, eax
test eax, eax
jne 0x14001d47f
xor edx, edx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
mov rcx, qword [rsp + 0x30]
mov edi, eax
test eax, eax
je 0x14001d4f4
test rcx, rcx
je 0x14001d48a
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp edi, 2
jne 0x14001d4bf
mov rcx, qword [0x1402aebf0]
cmp rcx, rbp
je 0x14001d4ff
test dword [rcx + 0x44], 0x8000
je 0x14001d4ff
cmp byte [rcx + 0x41], dil
jb 0x14001d4ff
mov rcx, qword [rcx + 0x38]
lea edx, [rdi + 8]
lea r8, [0x140251db0]
call fcn.14001d350
jmp 0x14001d4ff
mov rcx, qword [0x1402aebf0]
cmp rcx, rbp
je 0x14001d4ff
test dword [rcx + 0x44], 0x8000
je 0x14001d4ff
cmp byte [rcx + 0x41], 2
jb 0x14001d4ff
mov rcx, qword [rcx + 0x38]
lea r8, [0x140251db0]
mov edx, VariantTimeToDosDateTime
mov r9d, edi
call fcn.14001d380
jmp 0x14001d4ff
test rcx, rcx
je 0x14001d4ff
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
add rbx, 0x48
sub rsi, 1
jne 0x14001d426
mov r14, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401a8cb0
add rsp, 0x40
pop rsi
ret
Function at 0x14001d540
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 [0x1402adcf8]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rsi, [0x1402ae898]
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 0x14001d6c8
mov qword [rsp + 0x60], r15
cmp qword [rsi + 0x18], 8
jb 0x14001d5af
mov rdx, qword [rsi]
jmp 0x14001d5b2
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 0x14001d6e3
mov rbx, qword [rsi + 0x20]
mov rdi, qword [rsi + 0x28]
cmp rbx, rdi
je 0x14001d6b8
nop
cmp byte [rsi + 0x38], 3
jne 0x14001d645
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 0x14001d6a6
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 0x14001d6e3
xor r15d, r15d
add rbx, 8
cmp rbx, rdi
jne 0x14001d600
mov r14, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14001d6c8
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 0x14001d702
jmp 0x14001d590
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call fcn.14001d3e0
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14001d6fe
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebp
jmp 0x14001d704
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401a8cb0
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 0x14002bc60
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor eax, eax
xor r14d, r14d
mov qword [rcx], rax
mov rbp, r8
mov qword [rcx + 8], rax
mov rdi, rcx
mov qword [rcx + 0x10], rax
mov esi, r9d
mov qword [rcx + 0x18], rdx
lea rax, vtable.SqliteStatement.0
mov qword [rcx + 0x30], rdx
lea r8d, [r14 + 6]
lea rdx, str.SELECT_FILES.FILE_ID__SEGMENTS_SLOW.CLUSTERS__SEGMENTS_FAST.CLUSTERS_FROM_FILES_LEFT_JOIN_SEGMENTS_AS_SEGMENTS_SLOW_ON_FILES.FILE_ID__SEGMENTS_SLOW.FILE_ID_AND_SEGMENTS_SLOW.SEGMENT_ID__0__LEFT_JOIN_SEGMENTS_AS_SEGMENTS_FAST_ON_FILES.FILE_ID__SEGMENTS_FAST.FILE_ID_AND_SEGMENTS_FAST.SEGMENT_ID__1__WHERE_FILES.FILE_STATE__1_AND_FILES.FILE_ID____file_id_ORDER_BY_FILES.FILE_ID_LIMIT__maxfiles
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x38], rdx
mov dword [rcx + 0x28], r14d
mov qword [rcx + 0x40], r14
mov qword [rcx + 0x48], r14
mov byte [rcx + 0x50], r14b
lea rcx, str.SELECT
call fcn.1401b6ee0
test eax, eax
jne 0x14002bcd9
mov byte [rdi + 0x50], 1
mov r8, rbp
mov dword [rdi + 0x58], r14d
mov edx, 1
lea rcx, [rdi + 0x20]
call fcn.140023760
test eax, eax
jne 0x14002bd01
mov r8d, esi
lea edx, [rax + 2]
lea rcx, [rdi + 0x20]
call fcn.1400238c0
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14002c230
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
mov eax, 0x80e0
call fcn.1401a8d00
sub rsp, rax
mov rax, qword [0x1402adcf8]
xor rax, rsp
mov qword [rsp + 0x80c0], rax
mov rbp, r9
mov ebx, edx
mov r14, r8
mov r15, rcx
mov rcx, qword [0x1402aebf0]
lea rsi, [0x1402aebf0]
cmp rcx, rsi
je 0x14002c2a0
test dword [rcx + 0x44], 0x100
je 0x14002c2a0
cmp byte [rcx + 0x41], 5
jb 0x14002c2a0
mov rcx, qword [rcx + 0x38]
lea r8, [0x140257d00]
mov edx, 0xa
call fcn.14001d350
mov rcx, qword [0x1402aebf0]
test r14, r14
je 0x14002c448
test rbp, rbp
je 0x14002c448
cmp ebx, 0xffc
jbe 0x14002c2c4
mov eax, 0x57
jmp 0x14002c350
lea r8, str.SELECT_FILES.FILE_ID_id__FILES.FILE_STATE__SEGMENTS.SEGMENT_ID__SEGMENTS.CLUSTERS____FROM_FILES_LEFT_JOIN_SEGMENTS_on_SEGMENTS.FILE_ID__FILES.FILE_ID____WHERE__id___
mov edx, 0x8096
lea rcx, [rsp + 0x20]
call fcn.1401d025c
test eax, eax
jne 0x14002c2ba
mov qword [rsp + 0x80d8], rdi
lea rdi, [rsp + 0xc8]
cmp ebx, 1
jbe 0x14002c325
lea eax, [rbx - 1]
lea rdx, [rax*8]
movabs rax, 0x3f3d646920524f20
mov rcx, rdx
lea rdi, [rsp + 0xc8]
shr rcx, 3
rep stosq qword [rdi], rax
lea rdi, [rsp + 0xc8]
add rdi, rdx
lea rdx, [rsp + 0x80b6]
mov rcx, rdi
sub rdx, rdi
lea r8, str.__ORDER_BY_id
call fcn.1401d025c
test eax, eax
je 0x14002c36f
mov eax, 0x57
mov rdi, qword [rsp + 0x80d8]
mov rcx, qword [rsp + 0x80c0]
xor rcx, rsp
call fcn.1401a8cb0
add rsp, 0x80e0
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret
mov rax, qword [r15 + 8]
lea rcx, [r15 + 8]
lea rdx, [rsp + 0x20]
mov byte [rdi + 0xd], 0
call qword [rax]
mov byte [r15 + 0x68], 0
mov rcx, qword [0x1402aebf0]
cmp rcx, rsi
je 0x14002c3b7
test dword [rcx + 0x44], 0x100
je 0x14002c3b7
cmp byte [rcx + 0x41], 5
jb 0x14002c3b7
mov rcx, qword [rcx + 0x38]
lea r8, [0x140257d00]
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call fcn.14001d350
mov r8, r14
mov edx, ebx
mov rcx, r15
call fcn.14002c480
mov edi, eax
test eax, eax
je 0x14002c404
mov rcx, qword [0x1402aebf0]
cmp rcx, rsi
je 0x14002c3fd
test dword [rcx + 0x44], 0x100
je 0x14002c3fd
cmp byte [rcx + 0x41], 2
jb 0x14002c3fd
mov rcx, qword [rcx + 0x38]
lea r8, [0x140257d00]
mov edx, 0xd
mov r9d, eax
call fcn.14001d380
mov eax, edi
jmp 0x14002c348
xor ecx, ecx
mov rsi, rbx
mov edi, ecx
test ebx, ebx
je 0x14002c441
mov rbx, rbp
mov rax, qword [r14 + rdi*8]
mov qword [rbx + 8], rax
test ecx, ecx
jne 0x14002c42f
mov r8, rbp
mov edx, edi
mov rcx, r15
call fcn.14002c5b0
mov ecx, eax
jmp 0x14002c435
mov dword [rbx], 2
inc rdi
add rbx, 0x28
cmp rdi, rsi
jb 0x14002c412
xor eax, eax
jmp 0x14002c348
cmp rcx, rsi
je 0x14002c471
test dword [rcx + 0x44], 0x100
je 0x14002c471
cmp byte [rcx + 0x41], 2
jb 0x14002c471
mov rcx, qword [rcx + 0x38]
lea r8, [0x140257d00]
mov edx, VariantTimeToDosDateTime
call fcn.14001d350
mov eax, 6
jmp 0x14002c350
Function at 0x14002cc90
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x14002cca9
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x14002cd63
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
cmp eax, 2
jne 0x14002cd1b
xor edi, edi
mov rcx, qword [0x1402aebf0]
lea rax, [0x1402aebf0]
cmp rcx, rax
je 0x14002cd63
test dword [rcx + 0x44], 0x100
je 0x14002cd63
cmp byte [rcx + 0x41], 4
jb 0x14002cd63
cmp qword [rbx + 0x18], 8
jb 0x14002ccf6
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x140257e80]
mov edx, 0xa
mov r9, rbx
call fcn.14002c9a0
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [0x1402aebf0]
lea rax, [0x1402aebf0]
cmp rcx, rax
je 0x14002cd63
test dword [rcx + 0x44], 0x100
je 0x14002cd63
cmp byte [rcx + 0x41], 2
jb 0x14002cd63
cmp qword [rbx + 0x18], 8
jb 0x14002cd47
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x140257e80]
mov edx, VariantTimeToDosDateTime
mov dword [rsp + 0x20], edi
mov r9, rbx
call fcn.14002ca10
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret