joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018c60
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 [0x14029fbf8]
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 0x140018d0b
lea rcx, [rbp - 0x80]
call fcn.140005480
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.140009120
lea rcx, [rbp - 0x70]
call fcn.14000cb50
nop
lea rcx, [rbp - 0x80]
call fcn.14000ba70
lea eax, [rbx + 0x6e]
jmp 0x140018e9e
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 0x140018e02
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 0x140018daf
call fcn.140005480
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.140009120
lea rcx, [rbp - 0x70]
call fcn.14000cb50
nop
jmp 0x140018def
call fcn.140005480
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.140009120
mov edx, edi
lea rcx, [rbp - 0x70]
call fcn.14001bb40
lea rcx, [rbp - 0x70]
call fcn.14000cb50
nop
lea rcx, [rbp - 0x80]
call fcn.14000ba70
mov eax, 0x65f
jmp 0x140018e9e
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 rdx, qword [rax]
mov ecx, 0x10
mov eax, dword [rcx + rdx]
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
test al, 1
jne 0x140018e4e
or eax, 1
mov dword [rcx + rdx], eax
mov ecx, r8d
add rcx, rdx
call fcn.14000b960
nop
cmp byte [r8 + rdx + 1], 0
je 0x140018e94
lea rdx, str.Service_installed_successfully
lea rbx, [0x1402a6fe0]
mov rcx, rbx
call fcn.140012600
mov rax, qword [0x1402a6fe0]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140013c50
movzx edx, al
mov rcx, rbx
call fcn.140013a90
mov rcx, rbx
call fcn.1400118c0
mov rdx, rdi
call fcn.140018ec0
xor eax, eax
mov rcx, qword [rbp + 0xa8]
xor rcx, rsp
call fcn.140199a10
add rsp, 0x1b0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140018ec0
Capabilities:
Modify service

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x90
mov qword [r11 - 0x78], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x14029fbf8]
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 rsi, rax
test rax, rax
je 0x140019088
mov r8d, 0xf003f
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x140019007
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 0x140018ffc
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 0x140018fb6
or eax, 1
mov dword [rcx + r8], eax
mov ecx, edx
add rcx, r8
call fcn.14000b960
nop
cmp byte [rdx + r8 + 1], 0
je 0x140018ffc
lea rdx, str.Cannot_set_recovery_bahaviour_
lea rbx, [0x1402a6fe0]
mov rcx, rbx
call fcn.140012600
mov rax, qword [0x1402a6fe0]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140013c50
movzx edx, al
mov rcx, rbx
call fcn.140013a90
mov rcx, rbx
call fcn.1400118c0
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
jmp 0x14001907d
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 0x140019037
or eax, 1
mov dword [rcx + r8], eax
mov ecx, edx
add rcx, r8
call fcn.14000b960
nop
cmp byte [rdx + r8 + 1], 0
je 0x14001907d
lea rdx, str.Cannot_open_service_
lea rbx, [0x1402a6fe0]
mov rcx, rbx
call fcn.140012600
mov rax, qword [0x1402a6fe0]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140013c50
movzx edx, al
mov rcx, rbx
call fcn.140013a90
mov rcx, rbx
call fcn.1400118c0
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
jmp 0x1400190ff
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 0x1400190b8
or eax, 1
mov dword [rcx + r8], eax
mov ecx, edx
add rcx, r8
call fcn.14000b960
nop
cmp byte [rdx + r8 + 1], 0
je 0x1400190ff
lea rdx, str.Cannot_connect_to_the_service_control_manager_
lea rbx, [0x1402a6fe0]
mov rcx, rbx
call fcn.140012600
mov rax, qword [0x1402a6fe0]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140013c50
movzx edx, al
mov rcx, rbx
call fcn.140013a90
mov rcx, rbx
call fcn.1400118c0
nop
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140199a10
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140019a40
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 [0x14029fbf8]
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.14019bdd0
lea rcx, [rsp + 0x90]
call fcn.14001a610
nop
xor ebp, ebp
mov ebx, ebp
cmp qword [rdi], rbx
je 0x140019ad3
mov rax, qword [rdi]
nop dword [rax]
nop word [rax + rax]
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.14001ac50
mov rcx, rax
call fcn.14001afd0
inc ebx
mov rax, qword [rdi + rbx*8]
test rax, rax
jne 0x140019ab0
lea rcx, [rsp + 0x90]
call fcn.14001afd0
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x90]
call fcn.14001a540
cmp qword [rax + 0x18], 8
jb 0x140019afc
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 0x140019b58
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.140007b00
test bl, bl
je 0x140019c26
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 0x140019b99
or ecx, 1
mov dword [rax + rdx], ecx
mov ecx, r8d
add rcx, rdx
call fcn.14000b960
nop
cmp byte [r8 + rdx + 1], 0
je 0x140019c26
lea rdx, str.ChangeServiceConfig_returned_0x
lea rdi, [0x1402a6fe0]
mov rcx, rdi
call fcn.140012600
mov rax, qword [0x1402a6fe0]
movsxd rcx, dword [rax + 4]
add rcx, rdi
and dword [rcx + 0x18], 0xfffff9ff
or dword [rcx + 0x18], 0x800
mov edx, ebx
mov rcx, rdi
call fcn.14000cd70
mov rax, qword [0x1402a6fe0]
movsxd rdx, dword [rax + 4]
add rdx, rdi
and dword [rdx + 0x18], 0xfffff3ff
or dword [rdx + 0x18], 0x200
mov rax, qword [0x1402a6fe0]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov dl, 0xa
call fcn.140013c50
movzx edx, al
mov rcx, rdi
call fcn.140013a90
mov rcx, rdi
call fcn.1400118c0
nop
lea rcx, [rsp + 0x118]
call fcn.14001a570
nop
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x118], rax
lea rcx, [rsp + 0x118]
call fcn.140176f68
nop
xor eax, eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140199a10
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x190
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001a2e0
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14029fbf8]
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 0x14001a318
call fcn.140199a3c
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 0x14001a3e2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xea
jne 0x14001a3e4
mov ecx, dword [rsp + 0x30]
call fcn.140199a34
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x14001a371
mov eax, 0xe
jmp 0x14001a3e4
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call fcn.14019bdd0
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 0x14001a3c4
mov rcx, qword [rbx + 0x10]
call fcn.140199a3c
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov dword [rsi], ebp
jmp 0x14001a3e2
mov dword [rbx + 0x24], ebp
cmp dword [rsi], ebp
ja 0x14001a3d0
mov qword [rdi], rbp
jmp 0x14001a3e2
mov rcx, qword [rbx + 0x18]
mov rdx, rdi
mov rcx, qword [rcx]
call fcn.140018690
inc dword [rbx + 0x24]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140199a10
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140022c10
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 [0x14029fbf8]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor r12d, r12d
mov r14d, r12d
mov qword [rsp + 0x50], r12
lea rax, [0x1402a9260]
nop dword [rax + rax]
mov rsi, qword [r14 + rax]
cmp byte [rsi + 0x40], 1
je 0x140022c74
cmp byte [rsi + 0x40], 3
jne 0x140022ded
mov qword [rsp + 0x60], r12
lea rdx, [rsi + 8]
cmp qword [rdx + 0x18], 8
jb 0x140022c87
mov rdx, qword [rdx]
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov ebp, eax
test eax, eax
jne 0x140022e04
mov rbx, qword [rsi + 0x28]
mov rdi, qword [rsi + 0x30]
cmp rbx, rdi
je 0x140022dd6
cmp byte [rsi + 0x40], 3
jne 0x140022d2a
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x68], r12d
mov r15, qword [rsp + 0x60]
mov r14, qword [rbx]
mov rax, qword [r14]
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [0x1402109f8]
mov rcx, r14
call rbp
mov rdx, rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x140022dc4
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rax, qword [rbx]
mov rbp, qword [rax]
mov r14, rbp
mov r12, rax
mov qword [rsp + 0x70], rax
mov rbp, qword [rbp + 8]
mov rcx, rbp
call qword [0x1402109f8]
mov rcx, r12
call rbp
mov r13, rax
mov rbp, qword [r14]
mov rcx, rbp
call qword [0x1402109f8]
mov rcx, r12
call rbp
mov r12, rax
mov rbp, qword [r14 + 0x10]
mov rcx, rbp
call qword [0x1402109f8]
mov r15, qword [rsp + 0x70]
mov rcx, r15
call rbp
mov r14d, eax
mov rdx, qword [r15]
mov rbp, qword [rdx + 0x18]
mov rcx, rbp
call qword [0x1402109f8]
mov rcx, r15
call rbp
mov rdx, rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r12
mov r9d, r14d
xor r8d, r8d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebp, eax
test eax, eax
jne 0x140022e04
xor r12d, r12d
add rbx, 8
cmp rbx, rdi
jne 0x140022cd2
mov r14, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140022de6
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
lea rax, [0x1402a9260]
add r14, 8
mov qword [rsp + 0x50], r14
cmp r14, 0x60
jb 0x140022c60
xor eax, eax
jmp 0x140022e1c
call fcn.140022b60
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140022e1a
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebp
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140199a10
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 0x140022e70
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14029fbf8]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp byte [rcx + 0x41], 2
jne 0x140022ee7
cmp qword [rcx + 0x20], 8
lea rdx, [rcx + 8]
mov qword [rsp + 0x30], 0
jb 0x140022ea2
mov rdx, qword [rdx]
mov rcx, qword [rcx]
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 ebx, eax
test eax, eax
jne 0x140022efc
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
mov ebx, eax
test eax, eax
jne 0x140022efc
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140022ee7
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140199a10
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140022f0c
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140199a10
add rsp, 0x40
pop rbx
ret
Function at 0x140031b50
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, [0x1402441c0]
call fcn.1401a7c50
test eax, eax
jne 0x140031bc9
mov byte [rdi + 0x50], 1
mov r8, rbp
mov dword [rdi + 0x58], r14d
mov edx, 1
lea rcx, [rdi + 0x20]
call fcn.1400297f0
test eax, eax
jne 0x140031bf1
mov r8d, esi
lea edx, [rax + 2]
lea rcx, [rdi + 0x20]
call fcn.140029950
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 0x140032120
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rsi
push r12
push r14
push r15
mov eax, 0x80e0
call fcn.140199a60
sub rsp, rax
mov rax, qword [0x14029fbf8]
xor rax, rsp
mov qword [rsp + 0x80c0], rax
mov rbp, r9
mov esi, edx
mov r14, r8
mov r15, rcx
mov rcx, qword [str.P_a_]
lea r12, str.P_a_
cmp rcx, r12
je 0x140032191
test dword [rcx + 0x44], 0x100
je 0x140032191
cmp byte [rcx + 0x41], 5
jb 0x140032191
mov rcx, qword [rcx + 0x38]
lea r8, [0x140248f78]
mov edx, 0xa
call fcn.140022ad0
mov rcx, qword [str.P_a_]
test r14, r14
je 0x140032353
test rbp, rbp
je 0x140032353
cmp esi, 0xffc
jbe 0x1400321b5
mov eax, 0x57
jmp 0x1400322f2
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.1401c0fcc
test eax, eax
jne 0x1400321ab
mov qword [rsp + 0x80d0], rdi
lea rdi, [rsp + 0xc8]
cmp esi, 1
jbe 0x140032216
lea eax, [rsi - 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.1401c0fcc
test eax, eax
je 0x14003223e
mov eax, 0x57
jmp 0x1400322ea
mov rax, qword [r15 + 8]
mov byte [rdi + 0xd], 0
mov qword [rsp + 0x80d8], rbx
mov rdi, qword [rax]
mov rcx, rdi
call qword [0x1402109f8]
lea rdx, [rsp + 0x20]
lea rcx, [r15 + 8]
call rdi
mov byte [r15 + 0x68], 0
mov rcx, qword [str.P_a_]
cmp rcx, r12
je 0x14003229a
test dword [rcx + 0x44], 0x100
je 0x14003229a
cmp byte [rcx + 0x41], 5
jb 0x14003229a
mov rcx, qword [rcx + 0x38]
lea r8, [0x140248f78]
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call fcn.140022ad0
mov r8, r14
mov edx, esi
mov rcx, r15
call fcn.140032390
mov edi, eax
test eax, eax
je 0x140032312
mov rcx, qword [str.P_a_]
cmp rcx, r12
je 0x1400322e0
test dword [rcx + 0x44], 0x100
je 0x1400322e0
cmp byte [rcx + 0x41], 2
jb 0x1400322e0
mov rcx, qword [rcx + 0x38]
lea r8, [0x140248f78]
mov edx, 0xd
mov r9d, eax
call fcn.140022b00
mov eax, edi
mov rbx, qword [rsp + 0x80d8]
mov rdi, qword [rsp + 0x80d0]
mov rcx, qword [rsp + 0x80c0]
xor rcx, rsp
call fcn.140199a10
add rsp, 0x80e0
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret
xor ecx, ecx
mov edi, ecx
test rsi, rsi
je 0x14003234f
mov rbx, rbp
nop
mov rax, qword [r14 + rdi*8]
mov qword [rbx + 8], rax
test ecx, ecx
jne 0x14003233d
mov r8, rbp
mov edx, edi
mov rcx, r15
call fcn.1400324c0
mov ecx, eax
jmp 0x140032343
mov dword [rbx], 2
inc rdi
add rbx, 0x28
cmp rdi, rsi
jb 0x140032320
xor eax, eax
jmp 0x1400322e2
cmp rcx, r12
je 0x14003237c
test dword [rcx + 0x44], 0x100
je 0x14003237c
cmp byte [rcx + 0x41], 2
jb 0x14003237c
mov rcx, qword [rcx + 0x38]
lea r8, [0x140248f78]
mov edx, VariantTimeToDosDateTime
call fcn.140022ad0
mov eax, 6
jmp 0x1400322f2
Function at 0x140032ba0
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 0x140032bb9
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x140032c73
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
cmp eax, 2
jne 0x140032c2b
xor edi, edi
mov rcx, qword [str.P_a_]
lea rax, str.P_a_
cmp rcx, rax
je 0x140032c73
test dword [rcx + 0x44], 0x100
je 0x140032c73
cmp byte [rcx + 0x41], 4
jb 0x140032c73
cmp qword [rbx + 0x18], 8
jb 0x140032c06
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x140249108]
mov edx, 0xa
mov r9, rbx
call fcn.1400328b0
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [str.P_a_]
lea rax, str.P_a_
cmp rcx, rax
je 0x140032c73
test dword [rcx + 0x44], 0x100
je 0x140032c73
cmp byte [rcx + 0x41], 2
jb 0x140032c73
cmp qword [rbx + 0x18], 8
jb 0x140032c57
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x140249108]
mov edx, VariantTimeToDosDateTime
mov dword [rsp + 0x20], edi
mov r9, rbx
call fcn.140032920
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140037340
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 [0x14029fbf8]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx edi, dx
mov rbx, rcx
mov rcx, qword [str.P_a_]
lea rsi, str.P_a_
cmp rcx, rsi
je 0x140037398
test byte [rcx + 0x44], 1
je 0x140037398
cmp byte [rcx + 0x41], 4
jb 0x140037398
mov rcx, qword [rcx + 0x38]
lea r8, [0x1402492c0]
mov edx, VariantTimeToDosDateTime
call fcn.140022ad0
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 0x140037418
mov rcx, qword [str.P_a_]
cmp rcx, rsi
je 0x14003740e
test byte [rcx + 0x44], 1
je 0x14003740e
cmp byte [rcx + 0x41], 2
jb 0x14003740e
mov rcx, qword [rcx + 0x38]
lea edx, [rax + 0xd]
lea r9, [rbx + 0x68]
lea r8, [0x1402492c0]
call fcn.1400328b0
mov eax, 0x6e
jmp 0x1400374e5
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 0x1400374a2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xea
je 0x1400374a2
mov rcx, qword [str.P_a_]
cmp rcx, rsi
je 0x140037493
test byte [rcx + 0x44], 1
je 0x140037493
cmp byte [rcx + 0x41], 2
jb 0x140037493
mov rcx, qword [rcx + 0x38]
lea r9, [rbx + 0x68]
mov edx, 0xd
mov dword [rsp + 0x20], eax
lea r8, [0x1402492c0]
call fcn.140036fe0
mov rcx, rbx
call fcn.140037c90
mov eax, 0x6e
jmp 0x1400374e5
mov eax, dword [rsp + 0x40]
cmp eax, 0x60
jae 0x1400374e3
mov rcx, qword [str.P_a_]
cmp rcx, rsi
je 0x1400374d4
test byte [rcx + 0x44], 1
je 0x1400374d4
cmp byte [rcx + 0x41], 2
jb 0x1400374d4
mov rcx, qword [rcx + 0x38]
lea r9, [rbx + 0x68]
mov dword [rsp + 0x20], eax
call fcn.140037060
mov rcx, rbx
call fcn.140037c90
mov eax, 0x6e
jmp 0x1400374e5
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140199a10
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret