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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x140051580]
xor rax, rsp
mov qword [rbp + 0x380], rax
xor r12d, r12d
mov rsi, rdx
cmp dword [rcx + 4], 3
mov r15d, r12d
jne 0x1400247b8
mov rdi, qword [rcx + 0x10]
test rdi, rdi
je 0x1400247b8
mov rcx, rdi
call fcn.140019eb0
test eax, eax
je 0x1400247b8
or rcx, 0xffffffffffffffff
mov rbx, rcx
inc rbx
cmp word [rdi + rbx*2], r12w
jne 0x140024601
inc rbx
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.14000130c
mov r14, rax
test rax, rax
je 0x1400247b8
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call fcn.1400104bc
lea rdx, [0x140044eb8]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsstr]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400247b0
mov rdx, 0xffffffff80000002
mov word [rax], r12w
mov rcx, r14
call fcn.14001d890
add rbx, 2
lea rdx, [0x140044eb8]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
je 0x140024697
mov word [rax], r12w
test rbx, rbx
je 0x1400247b0
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r12w
jne 0x1400246a4
test rax, rax
je 0x1400247b0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], r12
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400247b0
mov edi, 0x104
mov dword [rsp + 0x44], 1
mov dword [rsp + 0x48], edi
mov ebx, r12d
mov dword [rsp + 0x40], edi
xor edx, edx
jmp 0x140024757
inc ebx
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], 0x208
cmp r12w, word [rsp + 0x60]
je 0x140024755
cmp r12w, word [rbp + 0x170]
je 0x140024755
mov eax, dword [rsp + 0x44]
dec eax
cmp eax, 1
ja 0x140024748
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140024739
test rax, rax
je 0x140024755
mov r15d, 1
test rsi, rsi
je 0x14002479f
inc dword [rsi]
mov edx, ebx
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x48]
lea rax, [rbp + 0x170]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x60]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
nop dword [rax + rax]
test eax, eax
je 0x140024705
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, r14
call fcn.1400012c0
mov eax, r15d
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140001660
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400273f4
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140051580]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp qword [rcx + 0x260], 0
mov rdi, rcx
jne 0x1400274db
mov ecx, 0x208
call fcn.14000130c
mov rbx, rax
test rax, rax
jne 0x140027440
mov eax, 0x80004005
jmp 0x1400274dd
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPath2W]
nop dword [rax + rax]
test eax, eax
je 0x1400274c4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov r8d, eax
lea r9, [rsp + 0x30]
mov ecx, r8d
mov eax, 0x4f8b588f
mul r8d
sub ecx, edx
shr ecx, 1
add ecx, edx
mov edx, 0x104
shr ecx, 0x10
imul ecx, ecx, 0x186a0
sub r8d, ecx
mov rcx, rbx
mov dword [rsp + 0x20], r8d
lea r8, str._stmp_05d.WMC_
call fcn.140010420
test eax, eax
js 0x1400274c4
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x1400274c4
mov qword [rdi + 0x260], rbx
cmp qword [rdi + 0x260], 0
jne 0x1400274db
mov rcx, rbx
call fcn.1400012c0
jmp 0x140027436
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140001660
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret

Function at 0x140027508
Capabilities:
Get common file path
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140051580]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
add rcx, 8
call fcn.14001d218
mov esi, eax
test eax, eax
js 0x14002763b
mov rcx, rbx
call fcn.1400272b4
cmp qword [rbx + 0xc0], 0
je 0x14002763b
lea rdx, [rsp + 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14002763b
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
nop dword [rax + rax]
mov r8, qword [rbx + 8]
lea rcx, [rsp + 0x50]
mov edx, 0x104
call fcn.140010470
lea rcx, [rsp + 0x50]
call fcn.140019eb0
test eax, eax
je 0x14002763b
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14002763b
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14002762c
mov edx, dword [rsp + 0x40]
shl rdx, 0x20
mov ecx, eax
or rdx, rcx
cmp rdx, qword [rbx + 0xa8]
jne 0x14002762c
lea rcx, [rbx + 0x38]
lea rdx, [rsp + 0x50]
call fcn.14001d218
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, esi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140001660
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140027930
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x140051580]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov r14, qword [rcx + 0x38]
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov rsi, rcx
test r14, r14
jne 0x14002797f
mov eax, 0x80004005
jmp 0x140027b1f
cmp dword [rcx + 0x28], 1
jbe 0x14002798f
mov ebx, 1
jmp 0x140027b1d
call fcn.14003d008
lea r8, str.SoftwareMicrosoftMediaPlayer_lu._luRegistration
mov edx, 0x208
movzx ecx, word [rax + 2]
movzx r9d, word [rax]
mov dword [rsp + 0x20], ecx
lea rcx, [rbp - 0x10]
call fcn.140010420
test eax, eax
js 0x140027b18
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 3
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140027b18
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x60], 0x80
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.UDBVersion
mov dword [rsp + 0x50], 1
mov r15, rbx
mov r12, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
or rdi, 0xffffffffffffffff
test eax, eax
jne 0x140027a7f
cmp dword [rsp + 0x50], 1
jne 0x140027a7f
lea rcx, [rsp + 0x70]
call fcn.14001de88
mov rcx, r14
mov r12, rax
call fcn.14001de88
mov r15, rax
mov eax, ebx
cmp r15, r12
seta al
test eax, eax
je 0x140027abd
mov rax, rdi
inc rax
cmp word [r14 + rax*2], bx
jne 0x140027a82
mov rcx, qword [rsp + 0x58]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.UDBVersion
mov r9d, 1
mov qword [rsp + 0x20], r14
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
cmp r15, r12
jb 0x140027b05
mov rcx, qword [rsi + 0x40]
test rcx, rcx
je 0x140027b05
inc rdi
cmp word [rcx + rdi*2], bx
jne 0x140027acb
lea eax, [rdi*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str.UDBRev
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x140027b1d
mov ebx, 0x80004005
mov eax, ebx
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140001660
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140029888
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x10]
mov rbx, rcx
test rax, rax
je 0x1400298d6
mov rcx, qword [rax]
mov rdi, qword [rax + 8]
test rcx, rcx
je 0x1400298b7
call fcn.1400299cc
mov rax, qword [rbx + 0x10]
and qword [rax], 0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400298ca
mov edx, 0x10
call fcn.140001684
mov qword [rbx + 0x10], rdi
mov rax, rdi
test rdi, rdi
jne 0x14002989e
lea rcx, [rbx + 0x30]
call fcn.140029fdc
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140029907
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140029907
call fcn.1400012c0
and qword [rbx + 0x38], 0
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x14002991a
call fcn.1400012c0
and qword [rbx + 0x40], 0
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14002992d
call fcn.1400012c0
and qword [rbx + 0x28], 0
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140029940
call fcn.1400012c0
and qword [rbx + 0x20], 0
lea rcx, [rbx + 8]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400191a4

Function at 0x140029fdc
Capabilities:
Delete file

Disassembly:
test rcx, rcx
je 0x14002a01f
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x14002a01a
call fcn.140019eb0
test eax, eax
je 0x14002a009
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14002a01a
call fcn.1400012c0
and qword [rbx], 0
add rsp, 0x20
pop rbx
ret
Function at 0x14002a028
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x980
mov rax, qword [0x140051580]
xor rax, rsp
mov qword [rsp + 0x970], rax
xor r12d, r12d
mov r14, r8
mov rbp, rdx
mov rdi, rcx
mov ebx, r12d
cmp dword [rcx + 0x64], r12d
je 0x14002a06c
mov eax, 0x800704c7
jmp 0x14002a23b
test rbp, rbp
je 0x14002a220
test r14, r14
je 0x14002a220
lea rsi, [rcx + 0x58]
cmp qword [rsi], r12
jne 0x14002a0c4
cmp dword [rcx + 0x68], r12d
je 0x14002a0a4
call fcn.140019428
test eax, eax
je 0x14002a0a4
xor edx, edx
mov rcx, rsi
call fcn.14003785c
mov ebx, eax
jmp 0x14002a0a9
mov ebx, 0xc00d0bca
cmp qword [rsi], r12
jne 0x14002a0c4
test ebx, ebx
lea rdx, str.Unable_to_establish_connection:_0x_x._r_n
mov eax, 0x80004005
cmovns ebx, eax
jmp 0x14002a22c
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], r12
or r9d, 0xffffffff
mov dword [rsp + 0x28], 0x105
mov r8, r14
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop dword [rax + rax]
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x170]
mov qword [rsp + 0x30], r12
or r9d, 0xffffffff
mov dword [rsp + 0x28], 0x800
mov r8, rbp
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop dword [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov ecx, 0x64
mov dword [rdi + 0x60], 1
mov qword [rdi + 0x50], rax
call fcn.140018674
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov dword [rdi + 0x48], eax
cmp qword [rdi + 0x50], r12
je 0x14002a21a
mov rcx, qword [rsi]
mov rax, qword [rcx]
movabs r10, 0xc21c264172560870
mov rax, qword [rax + 0x28]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x38], r12
lea rdx, [rsp + 0x170]
mov qword [rsp + 0x30], r12
mov r9d, 2
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 0x8000080
call qword [0x1400401a8]
mov ebx, eax
test eax, eax
js 0x14002a1f1
jmp 0x14002a1e8
mov edx, 0x258
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
cmp eax, 0x102
jne 0x14002a1f1
cmp dword [rdi + 0x60], r12d
je 0x14002a1f1
mov rcx, rdi
call fcn.14002db4c
mov ebx, eax
mov rax, qword [rdi + 0x50]
test rax, rax
jne 0x14002a1bd
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14002a20f
test al, 0x10
jne 0x14002a20f
test ebx, ebx
jns 0x14002a239
test ebx, ebx
js 0x14002a225
mov ebx, 0x80070002
jmp 0x14002a225
test ebx, ebx
jns 0x14002a239
jmp 0x14002a225
mov ebx, 0x80070057
lea rdx, str.ERROR:_Download_failed.__Result:_0x_x._r_n
mov r8d, ebx
mov ecx, 4
call fcn.140018ed8
mov eax, ebx
mov rcx, qword [rsp + 0x970]
xor rcx, rsp
call fcn.140001660
mov rbx, qword [rsp + 0x9c8]
add rsp, 0x980
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002ace8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
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]
nop dword [rax + rax]
test eax, eax
jne 0x14002ada2
and dword [rbp + 0x30], eax
lea r9, [rbp + 0x28]
mov rcx, qword [rbp - 0x10]
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]
nop dword [rax + rax]
test eax, eax
jne 0x14002ad92
cmp dword [rbp + 0x28], 4
jne 0x14002ad92
cmp dword [rbp + 0x30], eax
jne 0x14002ad92
lea rdx, str._Non_admin_user_cannot_elevate._r_n
lea ecx, [rbx + 3]
call fcn.140018e9c
mov ebx, dword [rdi + 0x11c]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret

Function at 0x14002adf0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x140051580]
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_GetTempPath2W]
nop dword [rax + rax]
test eax, eax
je 0x14002af02
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
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.140010420
test eax, eax
js 0x14002af02
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14002af02
or rcx, 0xffffffffffffffff
lea rax, [rsp + 0x30]
mov rbx, rcx
inc rbx
cmp word [rax + rbx*2], si
jne 0x14002aebb
inc rbx
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.14000130c
mov rdi, rax
test rax, rax
je 0x14002af02
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rax
call fcn.1400104bc
test eax, eax
jns 0x14002af02
mov rcx, rdi
call fcn.1400012c0
mov rdi, rsi
mov rax, rdi
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140001660
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14002af60
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 [0x140051580]
xor rax, rsp
mov qword [rbp + 0x160], rax
xor esi, esi
mov rdi, rcx
mov ebx, esi
cmp qword [rcx], rsi
je 0x14002b0de
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]
nop dword [rax + rax]
test eax, eax
je 0x14002b013
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]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
test eax, eax
cmovne rcx, rsi
mov qword [rsp + 0x30], rcx
jmp 0x14002b018
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14002b0bf
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]
nop dword [rax + rax]
test eax, eax
jne 0x14002b0ae
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]
nop dword [rax + rax]
test eax, eax
jne 0x14002b09d
cmp dword [rsp + 0x38], r14d
cmove ebx, r14d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov r8, qword [rdi]
mov ecx, 4
lea rdx, str.Service__S_is_already_installed._r_n
test ebx, ebx
jne 0x14002b0d9
lea rdx, str.Service__S_is_either_not_installed_or_has_not_been_used_yet._r_n
call fcn.140018ed8
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140001660
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 0x14002d03c
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 [0x140051580]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor esi, esi
mov rbx, rcx
cmp qword [rcx], rsi
je 0x14002d21e
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]
nop dword [rax + rax]
or rdi, 0xffffffffffffffff
test eax, eax
jne 0x14002d0f3
mov rcx, qword [rbx]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], si
jne 0x14002d0b9
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]
nop dword [rax + rax]
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]
nop dword [rax + rax]
test eax, eax
jne 0x14002d19e
mov rcx, qword [rsp + 0x50]
lea rdx, str.ActiveService
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
lea rdx, str.ActiveServiceName
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
mov rcx, qword [rbx]
inc rdi
cmp word [rcx + rdi*2], si
jne 0x14002d153
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]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov r9, qword [rbx]
lea r8, str.SoftwareMicrosoftMediaPlayerServices_s
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.1400104f4
test eax, eax
js 0x14002d20a
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]
nop dword [rax + rax]
test eax, eax
jne 0x14002d20a
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov r8, qword [rbx]
lea rdx, str.Default_service_is_now_set_to:__S._r_n
mov ecx, 3
call fcn.140018ed8
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140001660
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 0x14002d484
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
xor r9d, r9d
test r8, r8
je 0x14002d4c3
or rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], r9w
jne 0x14002d494
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]
nop dword [rax + rax]
add rsp, 0x38
ret
Function at 0x14002e270
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x268]
sub rsp, 0x360
mov rax, qword [0x140051580]
xor rax, rsp
mov qword [rbp + 0x250], rax
xor edi, edi
lea rax, [rsp + 0x50]
mov rbx, rcx
mov qword [rsp + 0x50], rdi
mov rsi, 0xffffffff80000002
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferences
lea r9d, [rdi + 3]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14002e3f8
mov r8, qword [rbx + 0x20]
lea rdx, str.DefaultSubscriptionService
mov rcx, qword [rsp + 0x50]
call fcn.14002d484
cmp qword [rbx + 0x30], rdi
jne 0x14002e327
mov r8, qword [rbx + 0x20]
test r8, r8
je 0x14002e3e7
cmp word [r8], di
je 0x14002e3e7
mov rcx, qword [rsp + 0x50]
lea rdx, str.OEMServiceOverride11
call fcn.14002d484
jmp 0x14002e3e7
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]
nop dword [rax + rax]
test eax, eax
jne 0x14002e3e7
cmp dword [rsp + 0x58], 1
jne 0x14002e3e7
lea r9, [rsp + 0x70]
mov edx, 0x208
lea r8, str.SoftwareMicrosoftMediaPlayerServices_s
lea rcx, [rbp + 0x40]
call fcn.140010420
test eax, eax
js 0x14002e3e7
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rdx, [rbp + 0x40]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x60], rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14002e3e7
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerServices
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 2
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14002e45e
mov r8, qword [rbx + 0x40]
lea rdx, str.ServiceExtra
mov rcx, qword [rsp + 0x50]
call fcn.14002d484
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.140001660
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret