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

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
call fcn.1400026a0
mov rdx, qword [rbx + 8]
test rdx, rdx
jne 0x140003d70
lea eax, [rdx + 1]
add rsp, 0x50
pop rbx
ret
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x60], rdi
call fcn.140003f70
lea rcx, [rsp + 0x30]
call fcn.140002230
mov rdx, qword [rsp + 0x48]
mov edi, eax
cmp rdx, 0xf
jbe 0x140003dc4
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003dbf
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003e2b
call fcn.14000471c
test edi, edi
je 0x140003e8d
mov rdx, qword [rbx + 8]
lea rcx, [rsp + 0x30]
call fcn.140003f70
lea rcx, [rsp + 0x30]
call fcn.140002230
mov r8d, eax
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdx, qword [rsp + 0x48]
mov rbx, rax
cmp rdx, 0xf
jbe 0x140003e37
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003e32
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003e32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000471c
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140003e8d
xor eax, eax
lea r8, [0x140003d30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rbx
call section..text
test al, al
je 0x140003e80
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x50
pop rbx
ret
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdi, qword [rsp + 0x60]
mov eax, 1
add rsp, 0x50
pop rbx
ret

Function at 0x140005040
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000508a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000508a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000508a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000508a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000508a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000508c
xor al, al
add rsp, 0x28
ret
Function at 0x140003e80
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003eb4
cmp word [rcx], 0x5a4d
jne 0x140003eb4
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003eb4
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003eb4
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003dc0
test eax, eax
jne 0x140003ed0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003e30
test rax, rax
je 0x140003ec5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000467f
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004580
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004520
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140005140
Capabilities:
Parse pe header

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

Function at 0x140005211
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x142811850]
mov r8, rcx
mov rcx, r9
call fcn.140005140
test eax, eax
je 0x14000523d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140005164
xor eax, eax
add rsp, 0x28
ret
Function at 0x140004540
Capabilities:
Access the windows event log

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [r11 - 0x50], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x140299ac8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov ebp, r9d
mov r15d, r8d
mov esi, edx
mov r14, rcx
mov rbx, qword [rsp + 0xd0]
cmp qword [rcx + 8], 0
je 0x140004732
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
xor r12d, r12d
mov qword [r11 - 0x38], r12
mov rdx, qword [rbx + 8]
sub rdx, qword [rbx]
sar rdx, 5
movabs r13, 0x1fffffffffffffff
test rdx, rdx
je 0x1400045d3
cmp rdx, r13
jbe 0x1400045c9
call fcn.1400065d0
int3
lea rcx, [rsp + 0x60]
call fcn.140006650
mov rdi, qword [rbx + 8]
mov rbx, qword [rbx]
cmp rbx, rdi
je 0x14000460c
nop
cmp qword [rbx + 0x18], 8
jb 0x1400045ec
mov rax, qword [rbx]
jmp 0x1400045ef
mov rax, rbx
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.140009020
add rbx, 0x20
cmp rbx, rdi
jne 0x1400045e0
cmp qword [r14 + 0x20], 0
je 0x140004635
lea rax, [r14 + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140004621
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.140009020
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
sub rcx, rbx
sar rcx, 3
test ebp, ebp
je 0x140004661
sub ebp, 1
je 0x140004659
cmp ebp, 1
je 0x140004659
mov r9d, r12d
jmp 0x140004667
mov r9d, 0x40000010
jmp 0x140004667
mov r9d, 0x40000011
mov edx, r12d
mov eax, 2
test r15d, r15d
cmove dx, ax
test esi, esi
je 0x140004697
sub esi, 1
je 0x140004689
sub esi, 1
je 0x14000469b
cmp esi, 1
je 0x140004690
mov eax, 4
jmp 0x14000469b
mov eax, 1
jmp 0x14000469b
movzx eax, r12w
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], r12d
mov word [rsp + 0x28], cx
mov qword [rsp + 0x20], r12
movzx r8d, dx
movzx edx, ax
mov rcx, qword [r14 + 8]
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
nop
test rbx, rbx
je 0x140004732
mov rax, qword [rsp + 0x70]
sub rax, rbx
sar rax, 3
cmp rax, r13
jbe 0x1400046e2
call fcn.1401a1868
int3
lea rax, [rax*8]
cmp rax, 0x1000
jb 0x14000472a
test bl, 0x1f
je 0x1400046fd
call fcn.1401a1868
int3
mov rax, qword [rbx - 8]
cmp rax, rbx
jb 0x14000470c
call fcn.1401a1868
int3
sub rbx, rax
cmp rbx, 8
jae 0x14000471b
call fcn.1401a1868
int3
cmp rbx, 0x27
jbe 0x140004727
call fcn.1401a1868
int3
mov rbx, rax
mov rcx, rbx
call fcn.140193788
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401938e0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000c060
Capabilities:
Query service status
Stop service

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rbx, rcx
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 0x14000c0a7
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 0x14000c0ed
lea rdx, str.unsigned_long___cdecl_MinifilterStopCommand::Execute_int_wchar_t____
lea rdi, [0x1402a0eb0]
mov rcx, rdi
call fcn.140012600
mov rax, qword [0x1402a0eb0]
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
mov rcx, qword [rbx + 8]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.1400192b0
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 [0x140299ac8]
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, [0x1402a0eb0]
mov rcx, rbx
call fcn.140012600
mov rax, qword [0x1402a0eb0]
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.1401938e0
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 [0x140299ac8]
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, [0x1402a0eb0]
mov rcx, rbx
call fcn.140012600
mov rax, qword [0x1402a0eb0]
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, [0x1402a0eb0]
mov rcx, rbx
call fcn.140012600
mov rax, qword [0x1402a0eb0]
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, [0x1402a0eb0]
mov rcx, rbx
call fcn.140012600
mov rax, qword [0x1402a0eb0]
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.1401938e0
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 [0x140299ac8]
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.140195ca0
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, [0x1402a0eb0]
mov rcx, rdi
call fcn.140012600
mov rax, qword [0x1402a0eb0]
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 [0x1402a0eb0]
movsxd rdx, dword [rax + 4]
add rdx, rdi
and dword [rdx + 0x18], 0xfffff3ff
or dword [rdx + 0x18], 0x200
mov rax, qword [0x1402a0eb0]
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.140170e38
nop
xor eax, eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1401938e0
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 [0x140299ac8]
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.14019390c
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.140193904
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.140195ca0
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.14019390c
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.1401938e0
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 [0x140299ac8]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor r12d, r12d
mov r14d, r12d
mov qword [rsp + 0x50], r12
lea rax, [0x1402a3130]
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 [0x14020a9f8]
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 [0x14020a9f8]
mov rcx, r12
call rbp
mov r13, rax
mov rbp, qword [r14]
mov rcx, rbp
call qword [0x14020a9f8]
mov rcx, r12
call rbp
mov r12, rax
mov rbp, qword [r14 + 0x10]
mov rcx, rbp
call qword [0x14020a9f8]
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 [0x14020a9f8]
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, [0x1402a3130]
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.1401938e0
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 [0x140299ac8]
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.1401938e0
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.1401938e0
add rsp, 0x40
pop rbx
ret
Function at 0x140031b40
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, [0x14023dc20]
call fcn.1401a1b20
test eax, eax
jne 0x140031bb9
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 0x140031be1
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