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

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x48
cmp byte [0x1400d22ad], 0
jne 0x14002d498
cmp byte [0x1400d22ac], 0
jne 0x14002d498
and qword [rbp - 0x18], 0
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], rax
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov bl, 1
mov dword [rsp + 0x20], 0x20019
mov rdx, 0xffffffff80000002
mov byte [0x1400d22ad], bl
call fcn.140025224
test eax, eax
jne 0x14002d498
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x28]
mov dword [rbp + 0x18], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ETWLogging
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x14004deb8
xor bl, bl
cmp dword [0x1400d2988], 0
mov byte [0x1400d22ac], bl
mov dword [rbp + 0x18], 4
ja 0x14002d488
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x30]
xor r8d, r8d
lea rdx, str.ETWBufferSize
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x14004ded1
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
add rsp, 0x48
pop rbx
pop rbp
ret
cmp dword [rbp + 0x20], 4
jne 0x14002d438
cmp dword [rbp + 0x28], 0
ja 0x14002d43a
jmp 0x14002d438
cmp dword [rbp + 0x20], 4
jne 0x14002d488
mov edx, dword [rbp + 0x30]
test edx, edx
je 0x14002d488
call fcn.140073ccc
nop
jmp 0x14002d488
Function at 0x14002d4a8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x350
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov rsi, rcx
xor ebx, ebx
mov byte [rsp + 0x30], bl
mov edi, 0x104
mov edx, edi
lea rcx, [rsp + 0x130]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
sete al
mov rcx, qword [rsp + 0x358]
test al, al
jne 0x14004def2
mov edx, edi
lea rax, [rsp + 0x130]
cmp word [rax], bx
je 0x14002d51e
add rax, 2
sub rdx, 1
jne 0x14002d50f
mov rax, rdx
mov rcx, rdi
sub rcx, rdx
neg rax
sbb r8, r8
and r8, rcx
mov rax, rdx
neg rax
sbb r9d, r9d
not r9d
and r9d, 0x80070057
test rdx, rdx
je 0x14002d5a7
sub rdi, r8
lea rcx, [rsp + 0x130]
lea rcx, [rcx + r8*2]
je 0x14002d589
mov eax, 0x7ffffffe
lea rdx, str.propsys.dll
sub rdx, rcx
test rax, rax
je 0x14002d589
movzx r8d, word [rdx + rcx]
test r8w, r8w
je 0x14002d589
mov word [rcx], r8w
add rcx, 2
dec rax
sub rdi, 1
jne 0x14002d568
lea rax, [rcx - 2]
test rdi, rdi
cmovne rax, rcx
mov word [rax], bx
neg rdi
sbb r9d, r9d
not r9d
and r9d, 0x8007007a
mov rcx, qword [rsp + 0x358]
test r9d, r9d
js 0x14004df03
lea r8, [rsp + 0x48]
xor edx, edx
lea rcx, [rsp + 0x130]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x358]
test eax, eax
je 0x14004df14
mov r9d, 0x20019
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x70]
call fcn.14002f110
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], 8
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
lea rdx, str.SchemaCacheTimestamp
lea rcx, [rsp + 0x70]
call fcn.140035e80
test eax, eax
je 0x14004df25
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CompareFileTime]
nop dword [rax + rax]
test eax, eax
jne 0x14004df25
mov byte [rsp + 0x30], bl
lea rcx, [rsp + 0x70]
call fcn.140014d5c
nop
mov al, bl
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.140036e80
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea r8, [0x1400ad720]
mov edx, 0xd9
call fcn.140064090
lea r8, [0x1400ad720]
mov edx, 0xda
call fcn.140068d74
lea r8, [0x1400ad720]
mov edx, 0xdd
call fcn.140064090
mov eax, dword [rsp + 0x5c]
mov dword [rsi], eax
mov eax, dword [rsp + 0x60]
mov dword [rsi + 4], eax
mov bl, 1
jmp 0x14002d659
Function at 0x14002d69c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x38
lea rax, [rbp + 0x30]
mov ebx, 1
mov qword [rsp + 0x28], rax
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdx, 0xffffffff80000002
mov dword [rsp + 0x20], ebx
call fcn.140025224
test eax, eax
jg 0x14004df3c
js 0x14002d73a
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
and dword [rbp + 0x28], 0
lea r9, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea r8, str.EnableDefaultScope
lea rax, [rbp + 0x28]
mov dword [rbp + 0x20], 4
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x18], 4
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHGetValueW]
nop dword [rax + rax]
test eax, eax
jle 0x14002d724
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x14004df4b
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov al, bl
add rsp, 0x38
pop rbx
pop rbp
ret
movzx eax, ax
or eax, 0x80070000
test eax, eax
jmp 0x14002d6d3
cmp dword [rbp + 0x18], 4
je 0x14004df56
call fcn.14009fefc
cmp dword [rbp + 0x20], 4
je 0x14004df61
call fcn.14009fefc
mov eax, dword [rbp + 0x28]
neg eax
sbb cl, cl
and bl, cl
jmp 0x14002d72a

Function at 0x14002d74c
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x38
lea rax, [rsp + 0x68]
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x28], rax
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov dword [rsp + 0x20], 0xf003f
call fcn.140025224
xor edi, edi
mov ebx, eax
test eax, eax
jg 0x14004df70
test ebx, ebx
js 0x14002d826
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x60]
mov eax, 4
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x60], eax
lea r8, [0x1400aaf48]
mov dword [rsp + 0x58], eax
xor edx, edx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHGetValueW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jg 0x14004df7e
test ebx, ebx
js 0x14002d815
cmp dword [rsp + 0x50], 1
jne 0x14002d815
mov rcx, qword [rsp + 0x68]
lea rdx, str.PreviousSettings
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHDeleteKeyW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14002d80c
movzx ebx, ax
or ebx, 0x80070000
cmp ebx, 0x80070002
cmove ebx, edi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14002d784
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14002d7da
Function at 0x14002dabc
Capabilities:
Create directory

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r14, r8
mov rdi, rdx
mov qword [rsp + 0x38], rdx
xor r15d, r15d
test r8, r8
je 0x14002daf3
mov byte [r8], r15b
mov edx, 2
mov rcx, qword [rcx + 8]
call fcn.1400349a0
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.14002eeb4
mov rdx, rax
lea rcx, [rsp + 0x100]
call fcn.14002df14
nop
mov ebx, r15d
mov dword [rsp + 0x30], ebx
mov rcx, qword [rsp + 0x108]
call fcn.14002db98
test al, al
je 0x14004e058
mov rcx, qword [rsp + 0x108]
call fcn.14002db98
test al, al
je 0x14004e15e
lea rcx, [rsp + 0x100]
call fcn.140011278
nop
mov rcx, rdi
call fcn.140011278
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140036e80
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathSkipRootW]
nop dword [rax + rax]
mov rsi, rax
mov r9, rsi
sub r9, qword [rsp + 0x108]
sar r9, 1
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x100]
call fcn.1400127e0
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x1a0]
call fcn.140066898
mov rcx, qword [rsp + 0x1a8]
call fcn.14002db98
test al, al
jne 0x14004e127
xor edx, edx
mov rcx, qword [rsp + 0x1a8]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14004e127
test ebx, ebx
js 0x14004e127
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14004e0ee
movzx ebx, bx
or ebx, 0x80070000
mov dword [rsp + 0x30], ebx
mov rcx, qword [rsp + 0x278]
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x28], rax
lea rax, str.PathComponent:__ls
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, str.onecoreuap_base_appmodel_searchcommonpkmutillindexmove.cxx
mov edx, 0x18f
call fcn.14005b00c
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFindNextComponentW]
nop dword [rax + rax]
mov rsi, rax
lea rcx, [rsp + 0x1a0]
call fcn.140011278
test rsi, rsi
je 0x14002db3b
cmp word [rsi], r15w
jne 0x14004e06f
jmp 0x14002db3b
test r14, r14
je 0x14004e167
mov byte [r14], 1
mov rcx, qword [rsp + 0x108]
call fcn.140068d94
nop
jmp 0x14002db50

Function at 0x14002db98
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsUNCServerW]
nop dword [rax + rax]
test eax, eax
jne 0x14002dbeb
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsUNCServerShareW]
nop dword [rax + rax]
test eax, eax
jne 0x14002dbeb
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14002dbeb
test al, 0x10
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
mov al, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14002dc7c
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x768]
sub rsp, 0x860
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rbp + 0x750], rax
mov rdi, rcx
xor esi, esi
test rcx, rcx
je 0x14002ddc8
cmp word [rcx], si
je 0x14002ddc8
xor r8d, r8d
xor edx, edx
lea rcx, str.PATH
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdi + rcx*2], si
jne 0x14002dcde
lea ebx, [rcx + rax]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0x401
mov word [rsp + 0x48], si
lea rax, [0x1400a3e28]
mov qword [rsp + 0x30], rax
lea edx, [rbx + 0x104]
lea rcx, [rsp + 0x30]
call fcn.140011b30
mov rdx, rax
lea r8d, [rbx + 0x104]
lea rcx, str.PATH
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
call fcn.14001b360
mov rax, qword [rsp + 0x30]
movabs r10, 0x8cc4973714525370
or ebx, 0xffffffff
mov r9d, ebx
mov r8d, dword [rsp + 0x44]
lea rdx, [0x1400ab134]
lea rcx, [rsp + 0x30]
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rax, qword [rsp + 0x30]
movabs r10, 0x8cc4973714525370
mov r9d, ebx
mov r8d, dword [rsp + 0x44]
mov rdx, rdi
lea rcx, [rsp + 0x30]
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rdx, qword [rsp + 0x38]
lea rcx, str.PATH
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableW]
nop dword [rax + rax]
test eax, eax
je 0x14004e1cc
lea rcx, [rsp + 0x30]
call fcn.14002f1f8
xor eax, eax
mov rcx, qword [rbp + 0x750]
xor rcx, rsp
call fcn.140036e80
lea r11, [rsp + 0x860]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea r8, str.FSOp::AddCICommonToPath:__Unexpected_failure___SetEnvironmentVariable_returned_FALSE
mov edx, 0x90
lea rcx, str.onecoreuap_base_appmodel_searchcommonpkmutill_ssfsutil.cxx
call fcn.140059cb4
mov rcx, qword [rbp + 0x768]
mov r9d, 0x8000ffff
lea r8, [0x1400b2940]
mov edx, SysAllocStringByteLen
call fcn.140068d74
int3
Function at 0x14002ec88
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x4e0]
sub rsp, 0x5e0
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rbp + 0x4d0], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x60], rdx
and dword [rsp + 0x30], 0
call fcn.14002eeb4
mov dword [rsp + 0x30], 1
mov rdx, qword [rdi + 8]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathCanonicalizeW]
nop dword [rax + rax]
or esi, 0xffffffff
test eax, eax
je 0x14002ed31
lea rdx, [rbp + 0xb0]
lea rcx, [rsp + 0x70]
call fcn.140011230
nop
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
movabs r10, 0x8cc4973714525370
mov r9d, esi
xor r8d, r8d
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
nop
lea rcx, [rsp + 0x70]
call fcn.140011278
mov r8d, 0x104
lea rdx, [rbp + 0x2c0]
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
je 0x14002ed79
mov rax, qword [rbx]
movabs r10, 0x8cc4973714525370
mov r9d, esi
xor r8d, r8d
lea rdx, [rbp + 0x2c0]
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.14002eeb4
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.14002ec24
nop
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
movabs r10, 0x8cc4973714525370
mov r9d, esi
xor r8d, r8d
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
nop
lea rcx, [rbp + 0x10]
call fcn.140011278
mov eax, dword [rbx + 0x14]
cmp eax, 0xb
jb 0x14002edf2
mov r8d, SafeArrayGetDim
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.1400127ac
lea rdx, str.SearchData
mov rcx, rax
call fcn.140018c48
test eax, eax
je 0x14002ee4f
mov eax, dword [rbx + 0x14]
cmp eax, 6
jb 0x14002ee21
mov r8d, 6
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.1400127ac
lea rdx, [0x1400a9ef8]
mov rcx, rax
call fcn.140018c48
test eax, eax
je 0x14004e292
mov rcx, rdi
call fcn.140011278
mov rax, rbx
mov rcx, qword [rbp + 0x4d0]
xor rcx, rsp
call fcn.140036e80
mov rbx, qword [rsp + 0x610]
add rsp, 0x5e0
pop rdi
pop rsi
pop rbp
ret
mov edx, dword [rbx + 0x14]
sub edx, 0xb
mov rcx, rbx
call fcn.140011b00
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.14002eeb4
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14002ec24
nop
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
movabs r10, 0x8cc4973714525370
mov r9d, esi
xor r8d, r8d
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
nop
lea rcx, [rsp + 0x70]
call fcn.140011278
jmp 0x14002ee21
mov edx, dword [rbx + 0x14]
sub edx, 6
mov rcx, rbx
call fcn.140011b00
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.14002eeb4
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14002ec24
nop
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
movabs r10, 0x8cc4973714525370
mov r9d, esi
xor r8d, r8d
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
nop
jmp 0x14002ee9c
Function at 0x14002f2d0
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
je 0x14002f30a
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
je 0x14004e810
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
add rsp, 0x28
ret
mov ecx, 6
jmp 0x14002f2f6
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, 1
jmp 0x14002f304
Function at 0x1400304bc
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400d1548]
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.140030a1c
test eax, eax
js 0x140030567
lea rax, [rsp + 0x30]
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x28], rax
lea r8, str.SoftwareMicrosoftWindows_SearchTracingEventThrottleState
mov dword [rsp + 0x20], 2
call fcn.140025224
test eax, eax
jne 0x140030567
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.140036e80
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1400313b4
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rdi, qword [0x1400d0a30]
mov rcx, rdi
call fcn.140030d88
test eax, eax
jne 0x140031490
mov rcx, rdi
call fcn.140030e38
mov ebx, eax
test eax, eax
js 0x14004f2f0
mov rcx, qword [0x1400d0a30]
mov rax, qword [rcx]
movabs r10, 0xfa652e1a7a559870
mov rax, qword [rax + 0x68]
call qword [case.0x14001f589.0]
mov ebx, eax
test eax, eax
js 0x14004f317
mov rcx, qword [0x1400d0a30]
mov edx, 4
call fcn.1400349a0
mov rax, qword [rdi]
movabs r10, 0xa5808fd316d54870
mov rax, qword [rax + 0x80]
mov rcx, rdi
call qword [case.0x14001f589.0]
mov ebx, eax
test eax, eax
js 0x14004f2f7
mov r8d, SafeArrayGetLBound
lea rdx, [0x1400ab490]
lea rcx, [rsp + 0x38]
call fcn.1400314d4
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov edx, 4
mov dword [rsp + 0x30], 1
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
nop dword [rax + rax]
lea rcx, [rsp + 0x38]
call fcn.1400314a4
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, 0x2ed
jmp 0x14004f2fc
mov edx, 0x2f2
mov rcx, qword [rsp + 0x28]
lea r8, str.onecoreuap_base_appmodel_searchcommondcomsvcdcomsvc.cxx
mov r9d, ebx
call fcn.140028864
mov eax, ebx
jmp 0x140031492
mov edx, 0x2ee
jmp 0x14004f2fc

Function at 0x1400317b8
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
cmp dword [0x1400d3cac], 0
mov esi, r9d
movzx ebp, r8w
mov edi, edx
mov rbx, rcx
jne 0x14003183d
call fcn.140031718
test al, al
jne 0x14003183d
mov rcx, rbx
call fcn.140031864
test eax, eax
je 0x140031858
call fcn.140038d24
test al, al
je 0x14003183d
and qword [rsp + 0x40], 0
mov r9d, edi
mov rax, qword [rsp + 0x80]
movzx edx, bp
movzx r8d, word [rbx + 0x68]
mov rcx, qword [rbx + 0x60]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
mov word [rsp + 0x28], si
and qword [rsp + 0x20], 0
call qword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_ReportEventW]
nop dword [rax + rax]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
xor eax, eax
jmp 0x140031842
Function at 0x140033f90
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rbp + 0x70], rax
xor r14d, r14d
mov sil, r14b
lea rax, [rbp - 0x80]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x41
mov word [rbp - 0x80], r14w
lea rax, [0x1400a2bc8]
mov qword [rsp + 0x68], rax
lea rax, [0x1400a2b08]
mov qword [rsp + 0x60], rax
mov dword [rbp + 8], r14d
mov qword [rbp + 0x10], r14
mov qword [rsp + 0x20], r14
mov r9d, 0x2001f
lea r8, [0x1400ab9d0]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x60]
call fcn.140013564
test eax, eax
js 0x14003416f
mov dword [rsp + 0x30], r14d
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14003416f
lea r9, [rsp + 0x30]
xor r8d, r8d
lea edi, [r14 + 4]
mov edx, edi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetKeySecurity]
nop dword [rax + rax]
cmp eax, 0x7a
jne 0x14003416f
mov ecx, dword [rsp + 0x30]
lea rdx, [0x1400aa300]
call fcn.14003756c
mov rbx, rax
test rax, rax
je 0x14003416f
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140050886
lea r9, [rsp + 0x30]
mov r8, rax
mov edx, edi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetKeySecurity]
nop dword [rax + rax]
test eax, eax
jg 0x14005088b
test eax, eax
js 0x140034166
mov qword [rsp + 0x40], r14
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x34]
mov rcx, rbx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetSecurityDescriptorDacl]
nop dword [rax + rax]
test eax, eax
je 0x140050898
cmp dword [rsp + 0x34], r14d
je 0x140034166
mov dword [rsp + 0x38], 0x44
lea r9, [rsp + 0x38]
lea r8, [rbp + 0x20]
xor edx, edx
lea ecx, [rdx + 0x1a]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
nop dword [rax + rax]
test eax, eax
je 0x1400508aa
mov edi, r14d
mov sil, r14b
lea r8, [rsp + 0x48]
mov edx, edi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetAce]
nop dword [rax + rax]
test eax, eax
je 0x140034166
mov rdx, qword [rsp + 0x48]
add rdx, 8
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
jne 0x14003414d
inc edi
jmp 0x14003410d
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 4]
and ecx, 0xf003f
cmp ecx, 0xf003f
jne 0x140034149
mov sil, 1
mov rcx, rbx
call fcn.14003759c
nop
lea rcx, [rsp + 0x60]
call fcn.140014d5c
mov al, sil
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140036e80
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov eax, 6
movzx eax, ax
or eax, 0x80070000
jmp 0x1400340a2
call fcn.14001d618
test eax, eax
js 0x140034166
jmp 0x1400340d5
call fcn.14001d618
test eax, eax
js 0x140034166
jmp 0x14003410a
Function at 0x140035e80
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
je 0x1400510b6
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
je 0x1400510d2
test eax, eax
jne 0x1400510bd
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov ecx, 6
jmp 0x1400510bf
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x140035ef7
mov ecx, 0x7a
jmp 0x1400510bf
Function at 0x140040250
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x3708
call fcn.14003a030
sub rsp, rax
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rsp + 0x36f0], rax
mov rax, r9
mov r9, qword [rsp + 0x3730]
mov r9, qword [r9]
mov r8, rax
mov edx, 0xdac
lea rcx, [rsp + 0x1b90]
call fcn.14003ffce
test eax, eax
js 0x14004034e
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
nop dword [rax + rax]
mov r9d, eax
lea rax, [rsp + 0x1b90]
mov qword [rsp + 0x20], rax
lea r8, str._4d__s_n
mov edx, 0xdac
lea rcx, [rsp + 0x30]
call fcn.140030a1c
test eax, eax
js 0x1400402ea
cmp byte [0x1400d22ac], 0
je 0x1400402ea
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
nop dword [rax + rax]
lea rdx, [rsp + 0x30]
call fcn.14007437c
cmp byte [0x1400d22ad], 0
jne 0x140040302
call fcn.14002d39c
cmp byte [0x1400d22ac], 0
jne 0x140040329
lea rdx, [0x1400aa890]
mov rcx, qword [0x1400d0680]
call qword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventEnabled]
nop dword [rax + rax]
test al, al
je 0x14004034e
test byte [0x1400d3b42], 0x20
je 0x14004034e
lea r8, [rsp + 0x1b90]
lea rdx, [0x1400aa890]
lea rcx, [0x1400d0680]
call fcn.14005cfe8
nop
jmp 0x140040350
mov rcx, qword [rsp + 0x36f0]
xor rcx, rsp
call fcn.140036e80
add rsp, 0x3708
ret