joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001e2c0
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 [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
add rcx, 8
call fcn.140016cd8
xor ebp, ebp
mov edi, eax
test eax, eax
js 0x14001e458
mov rcx, rbx
call fcn.14001e148
cmp qword [rbx + 0xc0], rbp
je 0x14001e458
mov r14d, 0x104
lea rdx, [rsp + 0x50]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14001e458
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov r8, qword [rbx + 8]
lea rcx, [rsp + 0x50]
mov edx, r14d
call fcn.140001584
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001e458
test al, 0x10
jne 0x14001e458
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]
or r14, 0xffffffffffffffff
mov rsi, rax
cmp rax, r14
je 0x14001e458
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], ebp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x14001e44f
mov ecx, dword [rsp + 0x40]
shl rcx, 0x20
mov eax, eax
or rcx, rax
cmp rcx, qword [rbx + 0xa8]
jne 0x14001e44f
add rbx, 0x38
je 0x14001e44a
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001e3eb
call fcn.14003c2b8
mov qword [rbx], rbp
lea rax, [rsp + 0x50]
mov rdi, r14
inc rdi
cmp word [rax + rdi*2], bp
jne 0x14001e3f3
inc rdi
mov eax, 2
mul rdi
cmovo rax, r14
mov rcx, rax
call fcn.14003c310
mov qword [rbx], rax
test rax, rax
jne 0x14001e422
mov edi, 0x8007000e
jmp 0x14001e44f
lea r8, [rsp + 0x50]
mov rdx, rdi
mov rcx, rax
call fcn.140001470
mov edi, eax
test eax, eax
jns 0x14001e44f
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001e44f
call fcn.14003c2b8
mov qword [rbx], rbp
jmp 0x14001e44f
mov edi, 0x80004003
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14003c6c0
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 0x14001e8a8
Capabilities:
Get file size
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xa0], 0
mov esi, edx
mov rbx, rcx
jne 0x14001e9d4
mov ecx, dword [rcx + 0x58]
cmp ecx, 1
je 0x14001e95d
lea eax, [rcx - 2]
cmp eax, 2
jbe 0x14001e8e7
cmp ecx, 6
jne 0x14001e9d4
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001e905
mov rdx, qword [rbx + 0x28]
call fcn.140034918
mov qword [rbx + 0xa0], rax
jmp 0x14001e9d4
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x14001e92b
lea edx, [rcx + 3]
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x14001e9d4
cmp dword [0x1400516e0], 2
jl 0x14001e9d4
and dword [rsp + 0x58], 0
lea r9, [rsp + 0x58]
and qword [rsp + 0x20], 0
lea rdx, str._FAILURE:_Attempted_to_get_INF_size_for_unknown_INF._r_n
mov r8d, 0x36
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14001e9d4
mov rcx, qword [rbx + 0x30]
and dword [rsp + 0x58], 0
call fcn.140017448
test eax, eax
je 0x14001e9d4
and qword [rsp + 0x30], 0
xor r9d, r9d
mov rcx, qword [rbx + 0x30]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14001e9d4
lea rdx, [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x14001e9cb
mov edx, dword [rsp + 0x58]
shl rdx, 0x20
mov ecx, eax
or rdx, rcx
mov qword [rbx + 0xa0], rdx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbx + 0x88], 0
jne 0x14001ea4a
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001ea4a
call fcn.140017448
test eax, eax
jne 0x14001ea4a
mov rcx, qword [rbx + 0x38]
call fcn.140017448
test eax, eax
jne 0x14001ea4a
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x14001ea1e
lea edx, [rax + 4]
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x14001ea4a
cmp dword [0x1400516e0], 4
jl 0x14001ea4a
and dword [rsp + 0x58], 0
lea r9, [rsp + 0x58]
and qword [rsp + 0x20], 0
lea rdx, str.Warning:_Need_to_account_for_cabinet_download_and_extraction_size._r_n
mov r8d, 0x44
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rbx + 0xa0]
test esi, esi
jne 0x14001ea5c
add rax, qword [rbx + 0xb0]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140020578
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp qword [rcx + 0x260], 0
mov rdi, rcx
jne 0x14002064d
mov ecx, 0x208
call fcn.14003c310
mov rbx, rax
test rax, rax
jne 0x1400205c4
mov eax, 0x80004005
jmp 0x14002064f
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140020636
call qword [sym.imp.KERNEL32.dll_GetTickCount]
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.1400017b4
test eax, eax
js 0x140020636
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140020636
mov qword [rdi + 0x260], rbx
cmp qword [rdi + 0x260], 0
jne 0x14002064d
mov rcx, rbx
call fcn.14003c2b8
jmp 0x1400205ba
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14003c6c0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x140022d38
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x18], r8d
push rdi
sub rsp, 0x30
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
jne 0x140022d65
mov eax, 0x80004003
jmp 0x140022e3e
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x140022d87
lea edx, [rcx + 5]
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x140022db3
cmp dword [0x1400516e0], 4
jl 0x140022db3
and dword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
lea rdx, str.Downloading_new_UDB_file._r_n
mov r8d, AtlInternalQueryInterface
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0x200
call fcn.14003c310
mov rdi, rax
test rax, rax
jne 0x140022dcc
mov ebx, 0x8007000e
jmp 0x140022e3c
mov rcx, qword [rbp + 0x50]
mov rdx, rdi
call fcn.14001b53c
mov ebx, eax
test eax, eax
js 0x140022e34
lea r8, str.will
mov ecx, 4
lea rdx, str.__GetUpdatedUDB:_We__hs_force_a_connection._r_n
call fcn.140016868
mov r8, rsi
mov rdx, rdi
mov rcx, rbp
call fcn.140021ef4
mov rcx, rsi
mov ebx, eax
call fcn.140017448
test eax, eax
je 0x140022e16
test ebx, ebx
jns 0x140022e34
mov r8d, ebx
lea rdx, str.ERROR:_UDB_file_not_downloaded.__Result:_0x_x._r_n
mov ecx, 4
call fcn.140016868
test ebx, ebx
mov eax, 0x80070002
cmovns ebx, eax
mov rcx, rdi
call fcn.14003c2b8
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140024080
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 0x1400240ab
call fcn.14003c2b8
mov qword [rbx + 0x20], rbp
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400240bd
call fcn.14003c2b8
mov qword [rbx + 0x18], rbp
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x1400240cf
call fcn.14003c2b8
mov qword [rbx + 0x28], rbp
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x1400240e1
call fcn.14003c2b8
mov qword [rbx + 0x40], rbp
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400240f3
call fcn.14003c2b8
mov qword [rbx + 0x30], rbp
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140024105
call fcn.14003c2b8
mov qword [rbx + 0x38], rbp
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x140024117
call fcn.14003c2b8
mov qword [rbx + 0x48], rbp
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140024129
call fcn.14003c2b8
mov qword [rbx + 0x50], rbp
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x140024138
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rbx + 0x80]
test rdi, rdi
je 0x140024190
mov rax, qword [rdi]
test rax, rax
je 0x140024181
mov rcx, rax
mov rsi, qword [rax + 8]
cmp qword [rax], rbp
je 0x140024169
mov rcx, qword [rax]
call fcn.14001d284
mov rax, qword [rdi]
mov qword [rax], rbp
mov rcx, qword [rdi]
test rcx, rcx
je 0x140024173
call fcn.14003c304
mov qword [rdi], rsi
mov rax, rsi
mov rcx, rsi
test rsi, rsi
jne 0x14002414f
mov rcx, rdi
call fcn.14003c304
mov qword [rbx + 0x80], rbp
mov rdi, qword [rbx + 0x88]
test rdi, rdi
je 0x140024245
mov rax, qword [rdi]
test rax, rax
je 0x140024236
mov rsi, qword [rax + 8]
cmp qword [rax], rbp
jne 0x140024201
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x1400241d7
lea edx, [rcx + 5]
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x140024201
cmp dword [0x1400516e0], 4
jl 0x140024201
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 0x14002421d
mov rcx, rax
call fcn.14001ffb4
mov rax, qword [rdi]
mov qword [rax], rbp
mov rcx, qword [rdi]
test rcx, rcx
je 0x140024227
call fcn.14003c304
mov qword [rdi], rsi
mov rax, rsi
test rsi, rsi
jne 0x1400241ac
mov rcx, rdi
call fcn.14003c304
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 0x140025e5c
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 0x140025e98
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 0x140025f70
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 0x140025f65
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.140016868
mov rbx, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x140025f4b
xor ebx, ebx
jmp 0x140025f5a
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14001a76c
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.14003c6c0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x14002657c
Capabilities:
Delete file

Disassembly:
test rcx, rcx
je 0x1400265b9
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400265b4
call fcn.140017448
test eax, eax
je 0x1400265a3
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400265b4
call fcn.14003c2b8
and qword [rbx], 0
add rsp, 0x20
pop rbx
ret

Function at 0x1400265c0
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 0x1400266c0
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 0x1400266c0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400266c0
or rcx, 0xffffffffffffffff
lea rax, [rsp + 0x30]
mov rbx, rcx
inc rbx
cmp word [rax + rbx*2], si
jne 0x140026679
inc rbx
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.14003c310
mov rdi, rax
test rax, rax
je 0x1400266c0
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rax
call fcn.140001470
test eax, eax
jns 0x1400266c0
mov rcx, rdi
call fcn.14003c2b8
mov rdi, rsi
mov rax, rdi
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14003c6c0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x1400266f0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
xor r9d, r9d
test r8, r8
je 0x140026729
or rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], r9w
jne 0x140026700
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 0x140026b04
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 0x140026c5e
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 0x140026bab
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 0x140026bb0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140026c3f
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 0x140026c34
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 0x140026c29
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 0x140026c59
lea rdx, str.Service__S_is_either_not_installed_or_has_not_been_used_yet._r_n
call fcn.140016868
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14003c6c0
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 0x140026c90
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 0x140026d79
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 0x140026d6f
cmp dword [rbp + 0x28], 4
jne 0x140026d6f
cmp dword [rbp + 0x30], eax
jne 0x140026d6f
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x140026d3f
lea edx, [rbx + 3]
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x140026d69
cmp dword [0x1400516e0], 4
jl 0x140026d69
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 0x140026dcc
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 0x140026de8
xor eax, eax
jmp 0x140026ecc
cmp qword [rcx + 0x48], rbx
jne 0x140026e8d
cmp qword [rcx], rbx
je 0x140026e3f
lea rdi, [rcx + 0x18]
cmp qword [rdi], rbx
jne 0x140026ea4
cmp dword [rcx + 0x110], ebx
jne 0x140026e18
cmp dword [rcx + 0x118], ebx
je 0x140026eca
cmp qword [rdi], rbx
jne 0x140026ea4
test edx, edx
je 0x140026eca
mov rdx, qword [rcx]
mov rcx, rdi
call fcn.140016cd8
cmp qword [rdi], rbx
setne bl
jmp 0x140026eca
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x140026e61
lea edx, [rcx + 3]
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x140026eca
cmp dword [0x1400516e0], 2
jl 0x140026eca
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 0x140026eca
cmp qword [rcx], rbx
je 0x140026eab
cmp qword [rcx + 0x18], rbx
je 0x140026eab
cmp qword [rcx + 0x28], rbx
je 0x140026eab
cmp qword [rcx + 0x40], rbx
je 0x140026eab
mov ebx, 1
jmp 0x140026eca
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.140016868
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14002720c
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 0x1400273b8
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 0x1400272b7
mov rcx, qword [rbx]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], si
jne 0x140027283
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 0x140027344
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 0x140027305
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 0x1400273a4
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 0x1400273a4
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.140016868
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14003c6c0
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 0x140027adc
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 0x140027b35
mov rsi, qword [rcx]
mov rdi, qword [rcx + 8]
test rsi, rsi
je 0x140027b1f
mov rcx, rsi
call fcn.140026828
mov rcx, rsi
call fcn.14003c304
mov rax, qword [rbx + 0x10]
and qword [rax], 0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140027b29
call fcn.14003c304
mov qword [rbx + 0x10], rdi
mov rcx, rdi
test rdi, rdi
jne 0x140027af7
lea rcx, [rbx + 0x30]
call fcn.14002657c
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140027b60
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140027b60
call fcn.14003c2b8
and qword [rbx + 0x38], 0
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x140027b73
call fcn.14003c2b8
and qword [rbx + 0x40], 0
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x140027b86
call fcn.14003c2b8
and qword [rbx + 0x28], 0
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140027b99
call fcn.14003c2b8
and qword [rbx + 0x20], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140027baf
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 0x14002825c
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 0x14002830e
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 0x1400282fa
cmp qword [rdi], 0
mov eax, 0x80004005
cmove ebx, eax
test ebx, ebx
js 0x1400282fa
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x1400282cc
lea edx, [rcx + 7]
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x14002830e
cmp dword [0x1400516e0], 6
jl 0x14002830e
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 0x14002830e
mov r8d, ebx
lea rdx, str.XML_Parser:_Failed_to_Load_DOM._Result:_0x_x._r_n
mov ecx, 6
call fcn.140016868
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret