joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140068dc8
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 0x140068f27
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 3
jne 0x140068f15
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140069cf8
test al, al
je 0x140068ece
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.14002520c
mov rbx, rax
test rax, rax
jne 0x140068e75
mov rcx, qword [rsp + 0x28]
lea r8, str.onecoreinternal_sdkincwilopensourcewil_filesystem.h
mov ebx, 0x8007000e
lea edx, [rax + 0x7b]
mov r9d, ebx
call fcn.1400205f4
mov eax, ebx
jmp 0x140068f29
mov r9, rsi
mov r8, rdi
mov rdx, rbp
mov rcx, rbx
call fcn.14000811c
mov esi, eax
test eax, eax
jns 0x140068e93
mov edx, 0x7c
jmp 0x140068ea6
mov rcx, rbx
call fcn.140068dc8
mov esi, eax
test eax, eax
jns 0x140068ec6
mov edx, 0x7d
mov rcx, qword [rsp + 0x28]
lea r8, str.onecoreinternal_sdkincwilopensourcewil_filesystem.h
mov r9d, eax
call fcn.1400205f4
mov rcx, rbx
call fcn.14002523c
mov eax, esi
jmp 0x140068f29
mov rcx, rbx
call fcn.14002523c
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 0x140068f27
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
je 0x140068f27
test eax, eax
je 0x140068f27
mov edx, 0x84
mov rcx, qword [rsp + 0x28]
lea r8, str.onecoreinternal_sdkincwilopensourcewil_filesystem.h
mov r9d, eax
call fcn.140052874
jmp 0x140068f29
cmp eax, 0xb7
je 0x140068f27
test eax, eax
je 0x140068f27
mov edx, 0x8a
jmp 0x140068eff
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 0x140068f48
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 [0x1400dc7a8]
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 0x140068f96
lea rdx, [0x1400b3ae4]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
jne 0x140068f98
xor esi, esi
test esi, esi
je 0x140069172
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.14000e5c8
nop
lea rcx, [rsp + 0x50]
call fcn.140066640
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x64]
lea rdx, [0x1400bd880]
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 0x140069108
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 0x1400690e9
lea rdx, [0x1400bd878]
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 0x1400690e9
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.140066640
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 0x1400690dd
xor r8d, r8d
mov edx, r14d
call fcn.140068f48
jmp 0x1400690e9
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 0x14006901a
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140069121
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 0x140069167
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 0x140069167
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, [0x1400bd800]
call fcn.140065c48
nop
lea rcx, [rsp + 0x50]
call fcn.14000e3c0
nop
jmp 0x140069178
mov eax, esi
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.140024b20
mov rbx, qword [rsp + 0x380]
add rsp, 0x350
pop r14
pop rdi
pop rsi
ret
Function at 0x14006920c
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 0x14006944d
mov rbx, r12
mov dword [rdi], r15d
lea edx, [r15 + 0x22]
cmp word [rbx], r15w
je 0x140069329
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jae 0x1400692b2
movzx ecx, word [rbx]
test cx, cx
je 0x1400692ad
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_iswspace]
nop dword [rax + rax]
test eax, eax
je 0x1400692ad
add rbx, 2
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jb 0x140069283
mov edx, 0x22
mov rax, rbx
sub rax, r12
and rax, 0xfffffffffffffffe
cmp rax, 0xfa0
je 0x140069329
movzx ecx, word [rbx]
test cx, cx
je 0x140069329
cmp cx, dx
jne 0x140069315
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 0x140069327
add rbx, 2
inc dword [rdi]
mov rcx, rbx
sub rcx, r12
mov edx, 0x22
sar rcx, 1
cmp rcx, r13
jb 0x14006926b
jmp 0x140069329
cmp word [rbx], r15w
je 0x1400692ed
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 0x140069308
jmp 0x1400692ed
inc dword [rdi]
cmp dword [rdi], r15d
je 0x14006944d
movsxd rcx, dword [rdi]
mov eax, 8
mul rcx
mov rcx, 0xffffffffffffffff
lea rdx, [0x1400b35f2]
cmovo rax, rcx
mov rcx, rax
call fcn.14002520c
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14006944d
mov rbx, r12
mov ebp, r15d
mov r14, rax
mov esi, 0x22
cmp word [rbx], r15w
je 0x140069419
cmp ebp, dword [rdi]
jge 0x140069419
jmp 0x1400693a3
movzx ecx, word [rbx]
test cx, cx
je 0x1400693b1
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_iswspace]
nop dword [rax + rax]
test eax, eax
je 0x1400693b1
add rbx, 2
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jb 0x140069387
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
je 0x140069419
cmp word [rbx], r15w
je 0x140069419
lea rcx, [rbx + 2]
cmp word [rbx], si
je 0x1400693d1
mov rcx, rbx
mov qword [r14], rcx
inc ebp
add r14, 8
cmp word [rbx], si
jne 0x140069446
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 0x140069419
cmp word [rbx], r15w
je 0x140069407
mov word [rbx], r15w
add rbx, 2
mov rcx, rbx
sub rcx, r12
sar rcx, 1
cmp rcx, r13
jb 0x140069373
mov rax, qword [rsp + 0x58]
jmp 0x14006944f
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 0x1400693f9
cmp word [rbx], r15w
je 0x140069407
add rbx, 2
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jb 0x140069420
jmp 0x1400693f9
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 0x140069554
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 0x1400695f9
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 0x1400695bc
cmp eax, 0xb7
je 0x1400695bc
lea r8, str._UtilFileSystem__CreateDirectory__ls_failed._0x_08x
mov edx, 0x5f
mov r9, rbx
mov dword [rsp + 0x20], eax
lea rcx, [0x1400bd800]
call fcn.14004e67c
xor eax, eax
jmp 0x140069625
test rsi, rsi
je 0x1400695f9
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 0x1400695f9
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 0x1400695a5
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 0x1400698ec
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 [0x1400dc7a8]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov r14, rdx
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.1400498f0
nop
lea rcx, [rsp + 0x40]
call fcn.140066640
mov rax, qword [rsp + 0x40]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x54]
lea rdx, [0x1400bd880]
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 0x140069ab8
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 0x140069a9d
lea rdx, [0x1400bd878]
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 0x140069a9d
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.140066640
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 0x140069a7c
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 0x140069a70
test eax, eax
jne 0x140069a9d
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400698ec
mov edi, eax
test eax, eax
jns 0x140069a9d
lea rcx, [rsp + 0x30]
call fcn.140068d8c
jmp 0x140069ad3
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 0x140069b07
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 0x140069980
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140069ad1
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.140024b20
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 0x140069ad3
Function at 0x140069de8
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 [0x1400dc7a8]
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 0x140069f84
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xea
jne 0x140069f84
mov ecx, dword [rbp - 0x19]
lea rdx, [0x1400b35f2]
call fcn.14002520c
mov r14, rax
test rax, rax
je 0x140069f84
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 0x140069f7c
mov esi, edi
cmp dword [rbp - 0x15], edi
jbe 0x140069f7c
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.140069d60
cmp qword [rbp - 0x11], rdi
je 0x140069f68
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 0x140069f68
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 0x140069f68
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount64]
nop dword [rax + rax]
cmp rax, r15
jae 0x140069f68
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 0x140069f21
call fcn.14001be24
test eax, eax
jns 0x140069f21
lea rcx, [rbp - 0x11]
call fcn.140057114
inc esi
cmp esi, dword [rbp - 0x15]
jb 0x140069ebd
mov rcx, r14
call fcn.14002523c
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 0x140069fb6
call fcn.14001be24
mov edi, eax
mov eax, edi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140024b20
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 0x14006a268
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rbx, rcx
call fcn.14006a250
test al, al
je 0x14006a446
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.14006a184
test al, al
je 0x14006a2ef
mov eax, dword [rbx]
cmp dword [rsp + 0x58], eax
jne 0x14006a2ef
mov rax, qword [rbx + 4]
cmp qword [rsp + 0x5c], rax
jne 0x14006a2ef
mov eax, dword [rbx + 0x10]
cmp dword [rsp + 0x68], eax
je 0x14006a446
mov r9d, dword [rbx + 0x14]
lea r8, [0x1400bd9f8]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rbp - 0x60]
call fcn.14003f4fc
test eax, eax
js 0x14006a446
mov r9d, dword [rbx + 0x10]
lea r8, [0x1400b35f8]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rbp - 0x40]
call fcn.14003f4fc
test eax, eax
js 0x14006a446
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 0x14006a446
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 0x14006a446
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 0x14006a446
lea rax, [0x1400b3ae4]
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 0x14006a446
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.140024b20
mov rbx, qword [rsp + 0x208]
add rsp, 0x1f0
pop rbp
ret
Function at 0x14006a470
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r9d, dword [rcx + 0x14]
lea r8, str._08x
mov rdi, rcx
xor ebx, ebx
lea rcx, [rsp + 0x38]
lea edx, [rbx + 0x10]
call fcn.14003f4fc
test eax, eax
js 0x14006a51b
lea rax, [rsp + 0x30]
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x28], rax
lea r8, str.SoftwareMicrosoftWindows_SearchTracingEventThrottleState
mov dword [rsp + 0x20], 2
call fcn.14001ec70
test eax, eax
jne 0x14006a51b
mov rcx, qword [rsp + 0x30]
lea r9d, [rbx + 3]
mov dword [rsp + 0x28], SafeArrayPutElement
lea rdx, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
mov edx, 1
test eax, eax
movzx ebx, bl
cmove ebx, edx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov al, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140024b20
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x14006a8fc
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
movzx eax, word [rcx + 8]
mov edi, r9d
movzx esi, r8w
mov ebp, edx
mov rbx, rcx
mov dword [rsp + 0x28], edi
mov r9d, esi
mov dword [rsp + 0x20], eax
lea r8, str._EventLog__CEventLog::Report___called__Severity_0x_04x__Category__d__Args__d
mov edx, 0x3e
lea rcx, str.onecoreuap_base_appmodel_searchcommonpkmutildeventlog.cxx
call fcn.14000b090
mov edx, ebp
call fcn.14006a53c
test al, al
jne 0x14006a9b4
call fcn.1400269d4
test al, al
je 0x14006a9b4
and qword [rsp + 0x40], 0
mov r9d, ebp
mov rax, qword [rsp + 0x80]
movzx edx, si
movzx r8d, word [rbx + 8]
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
mov word [rsp + 0x28], di
and qword [rsp + 0x20], 0
call qword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_ReportEventW]
nop dword [rax + rax]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14006a9ae
movzx eax, ax
or eax, 0x80070000
test ebx, ebx
jne 0x14006a9d4
jmp 0x14006a9b9
mov eax, 0x800003f7
mov r9d, eax
lea r8, str._EventLog__ReportEvent___Failed._0x_08x
mov edx, 0x62
lea rcx, str.onecoreuap_base_appmodel_searchcommonpkmutildeventlog.cxx
call fcn.14004e67c
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x14006b300
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rdx
lea r9, [rsp + 0x30]
mov r8, rdx
mov rdi, rcx
mov rdx, rcx
call fcn.14001f168
test al, al
lea rdx, [rsp + 0x30]
mov rcx, rdi
cmove rdx, rbx
call qword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegDeleteKeyW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140024b20
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
Function at 0x14006b378
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rdx
lea r9, [rsp + 0x30]
mov r8, rdx
mov rdx, 0xffffffff80000002
call fcn.14001f168
test al, al
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
cmove rdx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140024b20
add rsp, 0x250
pop rbx
ret

Function at 0x14006b3e8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, qword [rsp + 0x280]
lea rsi, str.SOFTWAREMicrosoftWindows_Search
mov rdi, r8
lea r9, [rsp + 0x30]
mov r8, rsi
mov rdx, 0xffffffff80000002
call fcn.14001f168
test al, al
lea rdx, [rsp + 0x30]
mov eax, dword [rsp + 0x288]
mov r9d, 4
mov dword [rsp + 0x28], eax
cmove rdx, rsi
mov r8, rdi
mov qword [rsp + 0x20], rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140024b20
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret