joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400240e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
xor ebp, ebp
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x14002410b
call fcn.14003c408
mov qword [rbx + 0x20], rbp
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14002411d
call fcn.14003c408
mov qword [rbx + 0x18], rbp
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14002412f
call fcn.14003c408
mov qword [rbx + 0x28], rbp
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x140024141
call fcn.14003c408
mov qword [rbx + 0x40], rbp
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140024153
call fcn.14003c408
mov qword [rbx + 0x30], rbp
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140024165
call fcn.14003c408
mov qword [rbx + 0x38], rbp
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x140024177
call fcn.14003c408
mov qword [rbx + 0x48], rbp
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140024189
call fcn.14003c408
mov qword [rbx + 0x50], rbp
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x140024198
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rbx + 0x80]
test rdi, rdi
je 0x1400241f3
mov rax, qword [rdi]
test rax, rax
je 0x1400241e4
mov rcx, rax
mov rsi, qword [rax + 8]
cmp qword [rax], rbp
je 0x1400241c9
mov rcx, qword [rax]
call fcn.14001d2d8
mov rax, qword [rdi]
mov qword [rax], rbp
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400241d6
call fcn.14003c454
mov qword [rdi], rbp
mov qword [rdi], rsi
mov rax, rsi
mov rcx, rsi
test rsi, rsi
jne 0x1400241af
mov rcx, rdi
call fcn.14003c454
mov qword [rbx + 0x80], rbp
mov rdi, qword [rbx + 0x88]
test rdi, rdi
je 0x1400242ab
mov rax, qword [rdi]
test rax, rax
je 0x14002429c
mov rsi, qword [rax + 8]
cmp qword [rax], rbp
jne 0x140024264
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x14002423a
lea edx, [rcx + 5]
call fcn.140016188
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x140024264
cmp dword [0x1400516e0], 4
jl 0x140024264
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], ebp
mov r8d, 0x23
mov qword [rsp + 0x20], rbp
lea rdx, str.Error_deleting_package_list_object.
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi]
mov rax, qword [rcx]
test rax, rax
je 0x140024280
mov rcx, rax
call fcn.140020018
mov rax, qword [rdi]
mov qword [rax], rbp
mov rcx, qword [rdi]
test rcx, rcx
je 0x14002428d
call fcn.14003c454
mov qword [rdi], rbp
mov qword [rdi], rsi
mov rax, rsi
test rsi, rsi
jne 0x14002420f
mov rcx, rdi
call fcn.14003c454
mov qword [rbx + 0x88], rbp
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140025ec4
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
and qword [rsp + 0x38], 0
mov rdi, rcx
mov rcx, qword [rcx + 0x58]
test rcx, rcx
je 0x140025f00
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rdi + 0x58], 0
lea rax, [rsp + 0x38]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftMultimediaComponents
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140025fd8
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
and qword [rsp + 0x30], 0
lea rdx, [0x140044948]
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140025fcd
mov rax, qword [rdi + 0x30]
lea r8, [0x140044d20]
mov r9, qword [rdi + 0x38]
lea rcx, [rsp + 0x40]
mov edx, 0xff
mov qword [rsp + 0x20], rax
call fcn.140001734
mov r8, qword [rdi + 0x30]
lea rdx, str.____Removing_component_database_for__S._r_n
lea ecx, [rbx + 4]
call fcn.1400168a8
mov rbx, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x140025fb3
xor ebx, ebx
jmp 0x140025fc2
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14001a7c0
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14003c810
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x1400265dc
Capabilities:
Delete file

Disassembly:
test rcx, rcx
je 0x140026619
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x140026614
call fcn.140017488
test eax, eax
je 0x140026603
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140026614
call fcn.14003c408
and qword [rbx], 0
add rsp, 0x20
pop rbx
ret

Function at 0x140026620
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor esi, esi
lea rdx, [rsp + 0x240]
mov ecx, 0x104
mov edi, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140026720
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
lea r9, [rsp + 0x240]
mov ecx, r8d
mov eax, 0x4f8b588f
mul r8d
lea rax, str..WMC_
sub ecx, edx
mov qword [rsp + 0x28], rax
shr ecx, 1
add ecx, edx
mov edx, 0x208
shr ecx, 0x10
imul ecx, ecx, 0x186a0
sub r8d, ecx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], r8d
lea r8, str._stmp_05d_s
call fcn.1400017b4
test eax, eax
js 0x140026720
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140026720
or rcx, 0xffffffffffffffff
lea rax, [rsp + 0x30]
mov rbx, rcx
inc rbx
cmp word [rax + rbx*2], si
jne 0x1400266d9
inc rbx
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.14003c460
mov rdi, rax
test rax, rax
je 0x140026720
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rax
call fcn.140001470
test eax, eax
jns 0x140026720
mov rcx, rdi
call fcn.14003c408
mov rdi, rsi
mov rax, rdi
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14003c810
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140026750
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
xor r9d, r9d
test r8, r8
je 0x140026789
or rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], r9w
jne 0x140026760
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret
Function at 0x140026b64
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x160], rax
xor esi, esi
mov rdi, rcx
mov ebx, esi
cmp qword [rcx], rsi
je 0x140026cbe
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], rsi
mov r14d, 0x20019
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea rdx, str.SoftwareMicrosoftMediaPlayerSubscriptions
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140026c0b
lea rax, [rsp + 0x30]
mov r9d, r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerSubscriptions
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
cmovne rcx, rsi
mov qword [rsp + 0x30], rcx
jmp 0x140026c10
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140026c9f
mov rdx, qword [rdi]
lea rax, [rsp + 0x40]
mov r14d, 1
mov qword [rsp + 0x40], rsi
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140026c94
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x38], r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SubscriptionObjectGUID
mov dword [rsp + 0x3c], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140026c89
cmp dword [rsp + 0x38], r14d
cmove ebx, r14d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, qword [rdi]
mov ecx, 4
lea rdx, str.Service__S_is_already_installed._r_n
test ebx, ebx
jne 0x140026cb9
lea rdx, str.Service__S_is_either_not_installed_or_has_not_been_used_yet._r_n
call fcn.1400168a8
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14003c810
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140026cf0
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 8], 0
lea rax, [rbp - 8]
mov rdi, rcx
mov qword [rsp + 0x20], rax
mov ebx, 1
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
mov r9d, ebx
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140026dd9
and dword [rbp + 0x30], eax
lea r9, [rbp + 0x28]
mov rcx, qword [rbp - 8]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.ConsentPromptBehaviorUser
lea rax, [rbp + 0x30]
mov dword [rbp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x38], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140026dcf
cmp dword [rbp + 0x28], 4
jne 0x140026dcf
cmp dword [rbp + 0x30], eax
jne 0x140026dcf
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x140026d9f
lea edx, [rbx + 3]
call fcn.140016188
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x140026dc9
cmp dword [0x1400516e0], 4
jl 0x140026dc9
and dword [rbp - 0x10], 0
lea r9, [rbp - 0x10]
and qword [rsp + 0x20], 0
lea rdx, str._Non_admin_user_cannot_elevate._r_n
mov r8d, 0x21
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rdi + 0x11c]
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret

Function at 0x140026e2c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x98], 4
jne 0x140026e48
xor eax, eax
jmp 0x140026f2c
cmp qword [rcx + 0x48], rbx
jne 0x140026eed
cmp qword [rcx], rbx
je 0x140026e9f
lea rdi, [rcx + 0x18]
cmp qword [rdi], rbx
jne 0x140026f04
cmp dword [rcx + 0x110], ebx
jne 0x140026e78
cmp dword [rcx + 0x118], ebx
je 0x140026f2a
cmp qword [rdi], rbx
jne 0x140026f04
test edx, edx
je 0x140026f2a
mov rdx, qword [rcx]
mov rcx, rdi
call fcn.140016d18
cmp qword [rdi], rbx
setne bl
jmp 0x140026f2a
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x140026ec1
lea edx, [rcx + 3]
call fcn.140016188
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x140026f2a
cmp dword [0x1400516e0], 2
jl 0x140026f2a
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov r8d, 0x24
mov qword [rsp + 0x20], rbx
lea rdx, str.ERROR:_Service_key_is_not_defined._r_n
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140026f2a
cmp qword [rcx], rbx
je 0x140026f0b
cmp qword [rcx + 0x18], rbx
je 0x140026f0b
cmp qword [rcx + 0x28], rbx
je 0x140026f0b
cmp qword [rcx + 0x40], rbx
je 0x140026f0b
mov ebx, 1
jmp 0x140026f2a
cmp qword [rcx], rbx
lea r8, [0x14003f4a0]
lea rdx, str.ERROR:_XML_for_service__S_is_invalid_and_missing_either_the_EULA_or_Privacy_URL._r_n
cmovne r8, qword [rcx]
mov ecx, 2
call fcn.1400168a8
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14002726c
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor esi, esi
mov rbx, rcx
cmp qword [rcx], rsi
je 0x140027418
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rsi
mov r14, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov rcx, r14
lea r9d, [rsi + 2]
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferences
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or rdi, 0xffffffffffffffff
test eax, eax
jne 0x140027317
mov rcx, qword [rbx]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], si
jne 0x1400272e3
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str.DefaultSubscriptionService
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rax, [rsp + 0x50]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerSubscriptions
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400273a4
mov rcx, qword [rsp + 0x50]
lea rdx, str.ActiveService
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x50]
lea rdx, str.ActiveServiceName
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rbx]
inc rdi
cmp word [rcx + rdi*2], si
jne 0x140027365
lea eax, [rdi*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str.ActiveServiceName
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9, qword [rbx]
lea r8, str.SoftwareMicrosoftMediaPlayerServices_s
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140001734
test eax, eax
js 0x140027404
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, r14
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140027404
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, qword [rbx]
lea rdx, str.Default_service_is_now_set_to:__S._r_n
mov ecx, 3
call fcn.1400168a8
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14003c810
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140027b3c
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140027b9a
mov rsi, qword [rcx]
mov rdi, qword [rcx + 8]
test rsi, rsi
je 0x140027b7f
mov rcx, rsi
call fcn.140026888
mov rcx, rsi
call fcn.14003c454
mov rax, qword [rbx + 0x10]
and qword [rax], 0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140027b8e
call fcn.14003c454
and qword [rbx + 0x10], 0
mov qword [rbx + 0x10], rdi
mov rcx, rdi
test rdi, rdi
jne 0x140027b57
lea rcx, [rbx + 0x30]
call fcn.1400265dc
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140027bc5
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140027bc5
call fcn.14003c408
and qword [rbx + 0x38], 0
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x140027bd8
call fcn.14003c408
and qword [rbx + 0x40], 0
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x140027beb
call fcn.14003c408
and qword [rbx + 0x28], 0
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140027bfe
call fcn.14003c408
and qword [rbx + 0x20], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140027c14
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14003f118]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400282c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
xor ebx, ebx
lea rdi, [rcx + 8]
cmp qword [rdi], rbx
jne 0x140028372
lea r9, [0x14003f410]
mov qword [rsp + 0x20], rdi
xor edx, edx
lea r8d, [rbx + 1]
lea rcx, [0x14003f420]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
js 0x14002835e
cmp qword [rdi], 0
mov eax, 0x80004005
cmove ebx, eax
test ebx, ebx
js 0x14002835e
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x140028330
lea edx, [rcx + 7]
call fcn.140016188
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x140028372
cmp dword [0x1400516e0], 6
jl 0x140028372
and dword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
lea rdx, str.XML_Parser:_CoCreateInstance_for_DOM_succeeded._r_n
mov r8d, 0x31
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140028372
mov r8d, ebx
lea rdx, str.XML_Parser:_Failed_to_Load_DOM._Result:_0x_x._r_n
mov ecx, 6
call fcn.1400168a8
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14002c498
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x250], rax
and qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov rsi, 0xffffffff80000002
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferences
mov rcx, rsi
mov r9d, 3
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002c60b
mov r8, qword [rbx + 0x20]
lea rdx, str.DefaultSubscriptionService
mov rcx, qword [rsp + 0x50]
call fcn.140026750
cmp qword [rbx + 0x30], 0
jne 0x14002c54e
mov r8, qword [rbx + 0x20]
test r8, r8
je 0x14002c600
movzx eax, word [r8]
cmp ax, word [0x14003f4a0]
je 0x14002c600
mov rcx, qword [rsp + 0x50]
lea rdx, str.OEMServiceOverride11
call fcn.140026750
jmp 0x14002c600
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x58], 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.OEMServiceOverride11
mov dword [rsp + 0x5c], 0xc8
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002c600
cmp dword [rsp + 0x58], 1
jne 0x14002c600
lea r9, [rsp + 0x70]
mov edx, 0x208
lea r8, str.SoftwareMicrosoftMediaPlayerServices_s
lea rcx, [rbp + 0x40]
call fcn.1400017b4
test eax, eax
js 0x14002c600
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x60]
and qword [rsp + 0x60], 0
lea rdx, [rbp + 0x40]
mov qword [rsp + 0x38], rax
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov rcx, rsi
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002c600
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerServices
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 2
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002c668
mov r8, qword [rbx + 0x40]
lea rdx, str.ServiceExtra
mov rcx, qword [rsp + 0x50]
call fcn.140026750
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.14003c810
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14002d51c
Capabilities:
Query service status

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, r8
mov r14, rdx
mov r8, rdx
mov edi, 1
lea rdx, str.Querying_service__S._r_n
mov r15, r9
lea ecx, [rdi + 3]
call fcn.1400168a8
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor r12d, r12d
mov rbp, rax
test rax, rax
jne 0x14002d57d
mov edi, r12d
jmp 0x14002d66e
mov r8d, 0xf01ff
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x14002d59f
mov edi, r12d
jmp 0x14002d657
lea rdx, [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14002d597
mov eax, dword [rsp + 0x2c]
mov edx, 2
mov dword [rbx], eax
lea ecx, [rdx + 0x3e]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14002d657
lea r9, [rsp + 0x20]
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x14002d649
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002d649
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [rsp + 0x20]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14002d657
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x24]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x14002d633
mov edi, r12d
jmp 0x14002d649
mov eax, dword [rbx + 4]
mov rcx, rbx
mov dword [r15], eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rax, rax
cmove rbx, r12
test rbx, rbx
je 0x14002d657
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rsi, rsi
je 0x14002d66e
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
lea rax, str.succeeded
lea r9, str.failed
mov r8, r14
cmovne r9, rax
lea rdx, str.Querying_service__S__S._r_n
mov ecx, 4
call fcn.1400168a8
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14003c810
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret