joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140067af0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, r8
mov esi, edx
mov rdi, rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
cmp qword [rdi + 0xb0], 0
jne 0x140067b34
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x140067bad
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8, qword [rbx + 8]
mov edx, esi
mov rcx, qword [rdi + 0xb0]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
cmp eax, 0xea
jne 0x140067b94
mov eax, dword [rsp + 0x50]
lea edx, [rax + rax]
mov dword [rsp + 0x50], edx
mov rcx, rbx
call fcn.14001d264
nop
jmp 0x140067b3b
test eax, eax
je 0x140067b9c
mov ecx, eax
jmp 0x140067b24
mov edx, dword [rsp + 0x50]
mov rcx, rbx
call fcn.14001d588
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140067e04
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, r9
xor ecx, ecx
mov rsi, r8
mov rbp, rdx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [rbx + 0xb0]
test rcx, rcx
jne 0x140067e53
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x140067e8d
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
cmp eax, 0xea
jne 0x140067e80
lea ecx, [rax - 0x70]
jmp 0x140067e43
test eax, eax
je 0x140067e88
mov ecx, eax
jmp 0x140067e43
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140067f64
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
jne 0x140067f89
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x140067fcd
mov dword [rsp + 0x28], 8
lea rdx, [0x1400b49f8]
mov qword [rsp + 0x20], r8
mov r9d, 3
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140067fba
mov ecx, eax
jmp 0x140067f79
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, 1
add rsp, 0x38
ret
Function at 0x140067fdc
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0xb0], 0
mov rsi, rdx
mov rdi, rcx
jne 0x140068010
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x140068067
mov eax, dword [r8 + 0x14]
xor edx, edx
mov rcx, r8
lea ebx, [rax*2 + 2]
call fcn.14001d264
mov rcx, qword [rdi + 0xb0]
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov rdx, rsi
mov ebx, 1
mov qword [rsp + 0x20], rax
mov r9d, ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140068057
mov ecx, eax
jmp 0x140068000
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140068080
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
jne 0x1400680a5
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x1400680df
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, r8d
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x1400680cc
mov ecx, eax
jmp 0x140068095
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, 1
add rsp, 0x38
ret
Function at 0x140068158
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor edx, edx
mov rdi, rcx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x1400682b7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 3
jne 0x1400682a5
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140069088
test al, al
je 0x14006825e
mov rsi, qword [rsp + 0x38]
mov rcx, 0xffffffffffffffff
mov eax, 2
lea rbp, [rsi + 1]
mul rbp
lea rdx, [0x1400b35f2]
cmovo rax, rcx
mov rcx, rax
call fcn.14002507c
mov rbx, rax
test rax, rax
jne 0x140068205
mov rcx, qword [rsp + 0x28]
lea r8, str.onecoreinternal_sdkincwilopensourcewil_filesystem.h
mov ebx, 0x8007000e
lea edx, [rax + 0x7b]
mov r9d, ebx
call fcn.1400205b4
mov eax, ebx
jmp 0x1400682b9
mov r9, rsi
mov r8, rdi
mov rdx, rbp
mov rcx, rbx
call fcn.14000811c
mov esi, eax
test eax, eax
jns 0x140068223
mov edx, 0x7c
jmp 0x140068236
mov rcx, rbx
call fcn.140068158
mov esi, eax
test eax, eax
jns 0x140068256
mov edx, 0x7d
mov rcx, qword [rsp + 0x28]
lea r8, str.onecoreinternal_sdkincwilopensourcewil_filesystem.h
mov r9d, eax
call fcn.1400205b4
mov rcx, rbx
call fcn.1400250ac
mov eax, esi
jmp 0x1400682b9
mov rcx, rbx
call fcn.1400250ac
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x1400682b7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
je 0x1400682b7
test eax, eax
je 0x1400682b7
mov edx, 0x84
mov rcx, qword [rsp + 0x28]
lea r8, str.onecoreinternal_sdkincwilopensourcewil_filesystem.h
mov r9d, eax
call fcn.140051cac
jmp 0x1400682b9
cmp eax, 0xb7
je 0x1400682b7
test eax, eax
je 0x1400682b7
mov edx, 0x8a
jmp 0x14006828f
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400682d8
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x350
mov rax, qword [0x1400dc7b8]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov r14d, edx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
mov esi, 1
test rcx, rcx
je 0x140068326
lea rdx, [0x1400b3ad4]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
jne 0x140068328
xor esi, esi
test esi, esi
je 0x140068502
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.14000e5c8
nop
lea rcx, [rsp + 0x50]
call fcn.140065a30
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x64]
lea rdx, [0x1400bd350]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x40], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140068498
lea rdx, [0x1400b35f4]
lea rcx, [rsp + 0x11c]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
je 0x140068479
lea rdx, [0x1400bd348]
lea rcx, [rsp + 0x11c]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
je 0x140068479
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
lea rcx, [rsp + 0x50]
call fcn.140065a30
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x64]
lea rdx, [rsp + 0x11c]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rcx, qword [rsp + 0x58]
test byte [rsp + 0xf0], 0x10
je 0x14006846d
xor r8d, r8d
mov edx, r14d
call fcn.1400682d8
jmp 0x140068479
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
lea rdx, [rsp + 0xf0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400683aa
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400684b1
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
test r14d, r14d
je 0x1400684f7
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x1400684f7
xor esi, esi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, str._UtilFileSystem__Error_delnoding__ls._0x_08x
mov edx, 0xe6
lea rcx, [0x1400bd2d0]
call fcn.140065038
nop
lea rcx, [rsp + 0x50]
call fcn.14000e3c0
nop
jmp 0x140068508
mov eax, esi
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.140024990
mov rbx, qword [rsp + 0x380]
add rsp, 0x350
pop r14
pop rdi
pop rsi
ret
Function at 0x14006859c
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
nop dword [rax + rax]
mov r9d, 0x7cf
lea r12, [0x1400ddff0]
mov r8, rax
mov rcx, r12
lea r13d, [r9 + 1]
mov edx, r13d
call fcn.14000811c
xor r15d, r15d
test eax, eax
js 0x1400687dd
mov rbx, r12
mov dword [rdi], r15d
lea edx, [r15 + 0x22]
cmp word [rbx], r15w
je 0x1400686b9
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jae 0x140068642
movzx ecx, word [rbx]
test cx, cx
je 0x14006863d
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_iswspace]
nop dword [rax + rax]
test eax, eax
je 0x14006863d
add rbx, 2
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jb 0x140068613
mov edx, 0x22
mov rax, rbx
sub rax, r12
and rax, 0xfffffffffffffffe
cmp rax, 0xfa0
je 0x1400686b9
movzx ecx, word [rbx]
test cx, cx
je 0x1400686b9
cmp cx, dx
jne 0x1400686a5
lea rcx, [rbx + 2]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcschr]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400686b7
add rbx, 2
inc dword [rdi]
mov rcx, rbx
sub rcx, r12
mov edx, 0x22
sar rcx, 1
cmp rcx, r13
jb 0x1400685fb
jmp 0x1400686b9
cmp word [rbx], r15w
je 0x14006867d
add rbx, 2
movzx ecx, word [rbx]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_iswspace]
nop dword [rax + rax]
test eax, eax
je 0x140068698
jmp 0x14006867d
inc dword [rdi]
cmp dword [rdi], r15d
je 0x1400687dd
movsxd rcx, dword [rdi]
mov eax, 8
mul rcx
mov rcx, 0xffffffffffffffff
lea rdx, [0x1400b35f2]
cmovo rax, rcx
mov rcx, rax
call fcn.14002507c
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400687dd
mov rbx, r12
mov ebp, r15d
mov r14, rax
mov esi, 0x22
cmp word [rbx], r15w
je 0x1400687a9
cmp ebp, dword [rdi]
jge 0x1400687a9
jmp 0x140068733
movzx ecx, word [rbx]
test cx, cx
je 0x140068741
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_iswspace]
nop dword [rax + rax]
test eax, eax
je 0x140068741
add rbx, 2
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jb 0x140068717
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
je 0x1400687a9
cmp word [rbx], r15w
je 0x1400687a9
lea rcx, [rbx + 2]
cmp word [rbx], si
je 0x140068761
mov rcx, rbx
mov qword [r14], rcx
inc ebp
add r14, 8
cmp word [rbx], si
jne 0x1400687d6
mov edx, esi
lea rcx, [rbx + 2]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcschr]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400687a9
cmp word [rbx], r15w
je 0x140068797
mov word [rbx], r15w
add rbx, 2
mov rcx, rbx
sub rcx, r12
sar rcx, 1
cmp rcx, r13
jb 0x140068703
mov rax, qword [rsp + 0x58]
jmp 0x1400687df
movzx ecx, word [rbx]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_iswspace]
nop dword [rax + rax]
test eax, eax
jne 0x140068789
cmp word [rbx], r15w
je 0x140068797
add rbx, 2
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jb 0x1400687b0
jmp 0x140068789
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400688e4
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, r8
mov rdx, r8
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140068989
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rdi], eax
cmp eax, 0x50
je 0x14006894c
cmp eax, 0xb7
je 0x14006894c
lea r8, str._UtilFileSystem__CreateDirectory__ls_failed._0x_08x
mov edx, 0x5f
mov r9, rbx
mov dword [rsp + 0x20], eax
lea rcx, [0x1400bd2d0]
call fcn.14004db5c
xor eax, eax
jmp 0x1400689b5
test rsi, rsi
je 0x140068989
mov r8, qword [rsi + 8]
mov edx, 4
mov rcx, rbx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetFileSecurityW]
nop dword [rax + rax]
test eax, eax
jne 0x140068989
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rdi], eax
lea r8, str._UtilFileSystem__SetFileSecurity__ls_failed._0x_08x
mov edx, 0x69
jmp 0x140068935
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
bts eax, 0xd
mov rcx, rbx
mov edx, eax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
nop dword [rax + rax]
and dword [rdi], 0
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140068c7c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x240]
sub rsp, 0x340
mov rax, qword [0x1400dc7b8]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov r14, rdx
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.140048e20
nop
lea rcx, [rsp + 0x40]
call fcn.140065a30
mov rax, qword [rsp + 0x40]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x54]
lea rdx, [0x1400bd350]
lea rcx, [rsp + 0x40]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
lea rdx, [rbp - 0x20]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x30], rax
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140068e48
lea rdx, [0x1400b35f4]
lea rcx, [rbp + 0xc]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
je 0x140068e2d
lea rdx, [0x1400bd348]
lea rcx, [rbp + 0xc]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
je 0x140068e2d
mov rax, qword [rsp + 0x40]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
xor r8d, r8d
mov rdx, qword [r14 + 8]
lea rcx, [rsp + 0x40]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
lea rcx, [rsp + 0x40]
call fcn.140065a30
mov rax, qword [rsp + 0x40]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x54]
lea rdx, [rbp + 0xc]
lea rcx, [rsp + 0x40]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rax, qword [rsi]
mov r8d, dword [rbp - 0x20]
test r8b, 0x10
je 0x140068e0c
movabs r10, 0xdffc268f7adceb70
lea rdx, [rsp + 0x40]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [case.0x140001f80.0]
mov edi, eax
test eax, eax
js 0x140068e00
test eax, eax
jne 0x140068e2d
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140068c7c
mov edi, eax
test eax, eax
jns 0x140068e2d
lea rcx, [rsp + 0x30]
call fcn.14006811c
jmp 0x140068e63
movabs r10, 0xe4341ff178580a70
lea rdx, [rsp + 0x40]
mov rcx, rsi
mov rax, qword [rax]
call qword [case.0x140001f80.0]
mov edi, eax
test eax, eax
js 0x140068e97
lea rdx, [rbp - 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140068d10
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140068e61
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
xor edi, edi
lea rcx, [rsp + 0x40]
call fcn.14000e3c0
mov eax, edi
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.140024990
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
jmp 0x140068e63
Function at 0x140069178
Capabilities:
Enumerate services
Query service status
Stop service

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r12
push rbp
push r14
push r15
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov rax, qword [0x1400dc7b8]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor r9d, r9d
lea rax, [rbp - 0x15]
mov qword [r11 - 0x80], rax
mov r12, rcx
mov rcx, qword [rcx]
lea rax, [rbp - 0x19]
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]
nop dword [rax + rax]
xor edi, edi
test eax, eax
jne 0x140069314
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xea
jne 0x140069314
mov ecx, dword [rbp - 0x19]
lea rdx, [0x1400b35f2]
call fcn.14002507c
mov r14, rax
test rax, rax
je 0x140069314
mov r9d, dword [rbp - 0x19]
lea rax, [rbp - 0x15]
mov rcx, qword [r12]
lea edx, [rdi + 1]
mov qword [rsp + 0x28], rax
mov r8, r14
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_service_core_l1_1_1.dll_EnumDependentServicesW]
nop dword [rax + rax]
test eax, eax
je 0x14006930c
mov esi, edi
cmp dword [rbp - 0x15], edi
jbe 0x14006930c
mov eax, esi
lea rcx, [rbp - 0x11]
mov r8d, 0x24
lea rdx, [rax + rax*2]
add rdx, rdx
mov rdx, qword [r14 + rdx*8]
call fcn.1400690f0
cmp qword [rbp - 0x11], rdi
je 0x1400692f8
mov rcx, qword [rbp - 0x11]
lea r8, [rbp - 9]
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rax
mov dword [rbp + 0xf], eax
lea edx, [rax + 1]
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
nop dword [rax + rax]
test eax, eax
je 0x1400692f8
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount64]
nop dword [rax + rax]
lea r15, [rax + 0x7530]
cmp dword [rbp - 5], 1
je 0x1400692f8
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount64]
nop dword [rax + rax]
cmp rax, r15
jae 0x1400692f8
mov ecx, dword [rbp + 0xf]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x11]
lea rdx, [rbp - 9]
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
nop dword [rax + rax]
test eax, eax
jne 0x1400692b1
call fcn.14001bdc0
test eax, eax
jns 0x1400692b1
lea rcx, [rbp - 0x11]
call fcn.140056554
inc esi
cmp esi, dword [rbp - 0x15]
jb 0x14006924d
mov rcx, r14
call fcn.1400250ac
mov rcx, qword [r12]
lea r8, [rbp + 0x17]
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], rax
mov dword [rbp + 0x2f], eax
lea edx, [rax + 1]
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
nop dword [rax + rax]
test eax, eax
jne 0x140069346
call fcn.14001bdc0
mov edi, eax
mov eax, edi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140024990
lea r11, [rsp + 0x90]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400695f8
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x1400dc7b8]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rbx, rcx
call fcn.1400695e0
test al, al
je 0x1400697d6
mov eax, dword [rcx + 0x14]
lea rdx, str.SoftwareMicrosoftWindows_SearchTracingEventThrottleLastReported
and dword [rsp + 0x58], 0
lea rcx, [rsp + 0x58]
and qword [rsp + 0x5c], 0
and dword [rsp + 0x64], 0
and dword [rsp + 0x68], 0
mov dword [rsp + 0x6c], eax
call fcn.140069514
test al, al
je 0x14006967f
mov eax, dword [rbx]
cmp dword [rsp + 0x58], eax
jne 0x14006967f
mov rax, qword [rbx + 4]
cmp qword [rsp + 0x5c], rax
jne 0x14006967f
mov eax, dword [rbx + 0x10]
cmp dword [rsp + 0x68], eax
je 0x1400697d6
mov r9d, dword [rbx + 0x14]
lea r8, [0x1400bd4c8]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rbp - 0x60]
call fcn.14003ea8c
test eax, eax
js 0x1400697d6
mov r9d, dword [rbx + 0x10]
lea r8, [0x1400b35f8]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rbp - 0x40]
call fcn.14003ea8c
test eax, eax
js 0x1400697d6
imul rax, qword [rbx + 4], 0x2710
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x50]
shr rax, 0x20
mov dword [rsp + 0x54], eax
call qword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_FileTimeToSystemTime]
nop dword [rax + rax]
test eax, eax
je 0x1400697d6
lea r8, [rsp + 0x58]
xor ecx, ecx
lea rdx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_SystemTimeToTzSpecificLocalTime]
nop dword [rax + rax]
test eax, eax
je 0x1400697d6
lea rax, [rbp - 0x20]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
xor edx, edx
mov ecx, 0x800
call qword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetTimeFormatW]
nop dword [rax + rax]
test eax, eax
jle 0x1400697d6
lea rax, [0x1400b3ad4]
xor ecx, ecx
mov qword [rbp - 0x80], rax
lea rdx, str.Windows_Search_Service
lea rax, [rbp - 0x60]
mov qword [rbp - 0x78], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x70], rax
lea rax, [rbp - 0x20]
mov qword [rbp - 0x68], rax
call qword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_RegisterEventSourceW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400697d6
and qword [rsp + 0x40], 0
lea rax, [rbp - 0x80]
mov ecx, 4
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
mov r9d, 0x800003f7
mov word [rsp + 0x28], cx
and qword [rsp + 0x20], 0
lea edx, [rcx - 2]
lea r8d, [rcx - 3]
mov rcx, rbx
call qword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_ReportEventW]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_DeregisterEventSource]
nop dword [rax + rax]
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.140024990
mov rbx, qword [rsp + 0x208]
add rsp, 0x1f0
pop rbp
ret