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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov dword [rax + 0x20], r9d
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor r15d, r15d
mov dword [rbp - 0x10], 1
mov r12, r8
mov rdi, rdx
mov r13, rcx
mov ebx, r15d
mov r14d, r15d
mov dword [rbp + 0x48], r15d
cmp dword [rbp + 0x50], r15d
je 0x14002631a
or rcx, 0xffffffffffffffff
mov rsi, rcx
inc rsi
cmp word [rdx + rsi*2], r15w
jne 0x1400261f9
add rsi, 0x15
mov eax, 2
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.1400014a0
mov r15, rax
test rax, rax
jne 0x14002623c
lea rdx, str.ERROR:_Out_of_memory._r_n
lea ecx, [rax + 2]
call fcn.140019ae0
mov eax, 0x8007000e
jmp 0x140026383
mov eax, dword [0x140059324]
cmp eax, 0xff
jne 0x140026254
call fcn.14001b588
mov dword [0x140059324], eax
test eax, eax
je 0x140026304
mov r9, rdi
mov dword [rsp + 0x20], eax
lea r8, str._s_NT_lu
mov rdx, rsi
mov rcx, r15
call fcn.140010e44
lea rax, [rbp + 0x48]
mov ebx, 0x208
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rdx, r15
mov dword [rbp + 0x48], ebx
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400262b6
cmp dword [rbp - 0x10], 1
jne 0x1400262b6
xor ebx, ebx
lea r14d, [rbx + 1]
jmp 0x140026304
mov r9, rdi
lea r8, str._s_NT
mov rdx, rsi
mov rcx, r15
call fcn.140010e44
lea rax, [rbp + 0x48]
mov dword [rbp + 0x48], ebx
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rdx, r15
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400262ff
cmp dword [rbp - 0x10], 1
je 0x1400262ae
mov ebx, 0x80004005
mov rcx, r15
call fcn.140001454
xor r15d, r15d
test r14d, r14d
je 0x14002631a
test ebx, ebx
js 0x140026381
jmp 0x140026355
lea rax, [rbp + 0x48]
mov dword [rbp + 0x48], 0x208
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14002637c
cmp dword [rbp - 0x10], 1
jne 0x14002637c
mov ebx, r15d
test rdi, rdi
lea rax, [0x14004b580]
mov r8, r12
lea rdx, str.Reg_Parser:_Obtained_value__S_for_attribute__S._r_n
cmove rdi, rax
mov ecx, 4
mov r9, rdi
call fcn.140019b1c
jmp 0x140026381
mov ebx, 0x80004005
mov eax, ebx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400272dc
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 [0x1400592a0]
xor rax, rsp
mov qword [rbp + 0x380], rax
xor r12d, r12d
mov rsi, rdx
cmp dword [rcx + 4], 3
mov r15d, r12d
jne 0x1400274fc
mov rdi, qword [rcx + 0x10]
test rdi, rdi
je 0x1400274fc
mov rcx, rdi
call fcn.14001ab20
test eax, eax
je 0x1400274fc
or rcx, 0xffffffffffffffff
mov rbx, rcx
inc rbx
cmp word [rdi + rbx*2], r12w
jne 0x140027345
inc rbx
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.1400014a0
mov r14, rax
test rax, rax
je 0x1400274fc
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call fcn.140010dd0
lea rdx, [0x14004ca38]
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 0x1400274f4
mov rdx, 0xffffffff80000002
mov word [rax], r12w
mov rcx, r14
call fcn.14001e558
add rbx, 2
lea rdx, [0x14004ca38]
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 0x1400273db
mov word [rax], r12w
test rbx, rbx
je 0x1400274f4
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r12w
jne 0x1400273e8
test rax, rax
je 0x1400274f4
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 0x1400274f4
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 0x14002749b
inc ebx
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], 0x208
cmp r12w, word [rsp + 0x60]
je 0x140027499
cmp r12w, word [rbp + 0x170]
je 0x140027499
mov eax, dword [rsp + 0x44]
dec eax
cmp eax, 1
ja 0x14002748c
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r12w
jne 0x14002747d
test rax, rax
je 0x140027499
mov r15d, 1
test rsi, rsi
je 0x1400274e3
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 0x140027449
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, r14
call fcn.140001454
mov eax, r15d
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1400017f0
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 0x14002b634
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp qword [rcx + 0x260], 0
mov rdi, rcx
jne 0x14002b71b
mov ecx, 0x208
call fcn.1400014a0
mov rbx, rax
test rax, rax
jne 0x14002b680
mov eax, 0x80004005
jmp 0x14002b71d
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPath2W]
nop dword [rax + rax]
test eax, eax
je 0x14002b704
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.140010c94
test eax, eax
js 0x14002b704
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14002b704
mov qword [rdi + 0x260], rbx
cmp qword [rdi + 0x260], 0
jne 0x14002b71b
mov rcx, rbx
call fcn.140001454
jmp 0x14002b676
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400017f0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x14002b748
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x270
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
add rcx, 8
call fcn.14001e0f8
xor ebp, ebp
mov edi, eax
test eax, eax
js 0x14002b904
mov rcx, rbx
call fcn.14002b4f0
cmp qword [rbx + 0xc0], rbp
je 0x14002b904
mov r14d, 0x104
lea rdx, [rsp + 0x50]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14002b904
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, r14d
call fcn.140010d0c
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14002b904
test al, 0x10
jne 0x14002b904
mov qword [rsp + 0x30], rbp
lea r8d, [rbp + 1]
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
or r14, 0xffffffffffffffff
mov rsi, rax
cmp rax, r14
je 0x14002b904
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], ebp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14002b8f5
mov ecx, dword [rsp + 0x40]
shl rcx, 0x20
mov eax, eax
or rcx, rax
cmp rcx, qword [rbx + 0xa8]
jne 0x14002b8f5
add rbx, 0x38
je 0x14002b8f0
mov rcx, qword [rbx]
test rcx, rcx
je 0x14002b891
call fcn.140001454
mov qword [rbx], rbp
lea rax, [rsp + 0x50]
mov rdi, r14
inc rdi
cmp word [rax + rdi*2], bp
jne 0x14002b899
inc rdi
mov eax, 2
mul rdi
cmovo rax, r14
mov rcx, rax
call fcn.1400014a0
mov qword [rbx], rax
test rax, rax
jne 0x14002b8c8
mov edi, 0x8007000e
jmp 0x14002b8f5
lea r8, [rsp + 0x50]
mov rdx, rdi
mov rcx, rax
call fcn.140010dd0
mov edi, eax
test eax, eax
jns 0x14002b8f5
mov rcx, qword [rbx]
test rcx, rcx
je 0x14002b8f5
call fcn.140001454
mov qword [rbx], rbp
jmp 0x14002b8f5
mov edi, 0x80004003
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400017f0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14002e0d0
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 0x14002e133
mov rsi, qword [rcx]
mov rdi, qword [rcx + 8]
test rsi, rsi
je 0x14002e11d
mov rcx, rsi
call fcn.14002dde0
mov edx, 0x140
mov rcx, rsi
call fcn.140001818
mov rax, qword [rbx + 0x10]
and qword [rax], 0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14002e127
mov edx, 0x10
call fcn.140001818
mov qword [rbx + 0x10], rdi
mov rcx, rdi
test rdi, rdi
jne 0x14002e0eb
lea rcx, [rbx + 0x30]
call fcn.14002e8ec
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14002e164
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14002e164
call fcn.140001454
and qword [rbx + 0x38], 0
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x14002e177
call fcn.140001454
and qword [rbx + 0x40], 0
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14002e18a
call fcn.140001454
and qword [rbx + 0x28], 0
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14002e19d
call fcn.140001454
and qword [rbx + 0x20], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002e1bd
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x140048188]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14002e8ec
Capabilities:
Delete file

Disassembly:
test rcx, rcx
je 0x14002e92f
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x14002e92a
call fcn.14001ab20
test eax, eax
je 0x14002e919
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14002e92a
call fcn.140001454
and qword [rbx], 0
add rsp, 0x20
pop rbx
ret
Function at 0x14002e938
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, 0x970
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rsp + 0x960], rax
xor r12d, r12d
mov r14, r8
mov rbp, rdx
mov rdi, rcx
mov ebx, r12d
cmp dword [rcx + 0x64], r12d
je 0x14002e97c
mov eax, 0x800704c7
jmp 0x14002eb4b
test rbp, rbp
je 0x14002eb30
test r14, r14
je 0x14002eb30
lea rsi, [rcx + 0x58]
cmp qword [rsi], r12
jne 0x14002e9d4
cmp dword [rcx + 0x68], r12d
je 0x14002e9b4
call fcn.140019fc8
test eax, eax
je 0x14002e9b4
xor edx, edx
mov rcx, rsi
call fcn.14003e91c
mov ebx, eax
jmp 0x14002e9b9
mov ebx, 0xc00d0bca
cmp qword [rsi], r12
jne 0x14002e9d4
test ebx, ebx
lea rdx, str.Unable_to_establish_connection:_0x_x._r_n
mov eax, 0x80004005
cmovns ebx, eax
jmp 0x14002eb3c
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x50]
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 + 0x160]
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.140019314
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov dword [rdi + 0x48], eax
cmp qword [rdi + 0x50], r12
je 0x14002eb2a
mov rcx, qword [rsi]
mov rax, qword [rcx]
movabs r10, 0xc21c264172560870
mov rax, qword [rax + 0x28]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], r12
lea rdx, [rsp + 0x160]
mov qword [rsp + 0x30], r12
mov r9d, 2
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 0x8000080
call qword [0x140048188]
mov ebx, eax
test eax, eax
js 0x14002eb01
jmp 0x14002eaf8
mov edx, 0x258
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
cmp eax, 0x102
jne 0x14002eb01
cmp dword [rdi + 0x60], r12d
je 0x14002eb01
mov rcx, rdi
call fcn.1400335a0
mov ebx, eax
mov rax, qword [rdi + 0x50]
test rax, rax
jne 0x14002eacd
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14002eb1f
test al, 0x10
jne 0x14002eb1f
test ebx, ebx
jns 0x14002eb49
test ebx, ebx
js 0x14002eb35
mov ebx, 0x80070002
jmp 0x14002eb35
test ebx, ebx
jns 0x14002eb49
jmp 0x14002eb35
mov ebx, 0x80070057
lea rdx, str.ERROR:_Download_failed.__Result:_0x_x._r_n
mov r8d, ebx
mov ecx, 4
call fcn.140019b1c
mov eax, ebx
mov rcx, qword [rsp + 0x960]
xor rcx, rsp
call fcn.1400017f0
mov rbx, qword [rsp + 0x9b8]
add rsp, 0x970
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002fa7c
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 0x14002fb36
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 0x14002fb26
cmp dword [rbp + 0x28], 4
jne 0x14002fb26
cmp dword [rbp + 0x30], eax
jne 0x14002fb26
lea rdx, str._Non_admin_user_cannot_elevate._r_n
lea ecx, [rbx + 3]
call fcn.140019ae0
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 0x14002fb48
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x1400592a0]
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 0x14002fc5a
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.140010c94
test eax, eax
js 0x14002fc5a
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14002fc5a
or rcx, 0xffffffffffffffff
lea rax, [rsp + 0x30]
mov rbx, rcx
inc rbx
cmp word [rax + rbx*2], si
jne 0x14002fc13
inc rbx
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.1400014a0
mov rdi, rax
test rax, rax
je 0x14002fc5a
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rax
call fcn.140010dd0
test eax, eax
jns 0x14002fc5a
mov rcx, rdi
call fcn.140001454
mov rdi, rsi
mov rax, rdi
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400017f0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14002fc8c
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 [0x1400592a0]
xor rax, rsp
mov qword [rbp + 0x160], rax
xor esi, esi
mov rdi, rcx
mov ebx, esi
cmp qword [rcx], rsi
je 0x14002fe0a
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 0x14002fd3f
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 0x14002fd44
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14002fdeb
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 0x14002fdda
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 0x14002fdc9
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 0x14002fe05
lea rdx, str.Service__S_is_either_not_installed_or_has_not_been_used_yet._r_n
call fcn.140019b1c
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400017f0
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 0x140032b08
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 [0x1400592a0]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor esi, esi
mov rbx, rcx
cmp qword [rcx], rsi
je 0x140032cea
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 0x140032bbf
mov rcx, qword [rbx]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], si
jne 0x140032b85
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 0x140032c6a
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 0x140032c1f
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.140010e44
test eax, eax
js 0x140032cd6
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 0x140032cd6
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.140019b1c
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400017f0
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 0x140032f1c
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
xor r9d, r9d
test r8, r8
je 0x140032f5b
or rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], r9w
jne 0x140032f2c
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