joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400105d4
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor ebx, ebx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rbx
lea rdx, str.SoftwareMicrosoftMediaPlayerSetupReentrant
mov qword [rsp + 0x38], rax
mov rdi, 0xffffffff80000002
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140010719
lea rax, [rsp + 0x50]
xor r8d, r8d
lea r9d, [rbx + 3]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001070e
mov edi, 0x104
lea rcx, [rsp + 0x60]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140010703
lea r8, str.unregmp2.exe
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.140001584
test eax, eax
js 0x140010703
lea r8, str.__EnsureFileVersions
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.140001584
test eax, eax
js 0x140010703
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x1400106ca
mov rcx, qword [rsp + 0x50]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.MP10_EnsureFileVer
lea rax, [rsp + 0x60]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14003c6c0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x14001083c
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rcx, qword [0x140050d10]
lea r8, [rsp + 0x30]
mov r9d, 0x100
mov ebx, 0x80004005
lea edx, [r9 - 0x40]
call qword [sym.imp.USER32.dll_LoadStringW]
xor edi, edi
test eax, eax
je 0x1400108c2
lea r8d, [rdi + 8]
lea rdx, str.https:__
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x1400108c2
mov dword [rsp + 0x28], 0xa
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
cmova ebx, edi
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14003c6c0
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
Function at 0x140010958
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
and qword [rbp - 0x38], 0
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferencesHME_
or r8d, 0xffffffff
mov r14, rcx
call fcn.14003a4fc
mov ebx, eax
test eax, eax
js 0x140010b52
lea rcx, [rbp - 0x10]
call fcn.14003a3c4
lea rcx, [rbp - 0x30]
mov dword [rbp + 0x30], 0x7fff
call fcn.14003a3c4
mov edx, dword [rbp + 0x30]
lea rcx, [rbp - 0x30]
call fcn.14003a488
mov ebx, eax
test eax, eax
jns 0x1400109cf
lea rcx, [rbp - 0x30]
call fcn.14003a954
lea rcx, [rbp - 0x10]
call fcn.14003a954
jmp 0x140010b52
mov rdx, qword [rbp - 0x30]
lea r8, [rbp + 0x30]
mov ecx, 2
call qword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
jne 0x140010a06
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x57
cmove eax, ecx
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400109b8
mov ebx, 0x44
mov edx, ebx
lea ecx, [rbx - 4]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x140010a25
mov ebx, 0x8007000e
jmp 0x1400109b8
mov rdx, qword [rbp - 0x30]
lea rax, [rbp - 0x40]
and dword [rbp + 0x28], 0
lea r9, [rbp + 0x38]
mov qword [rsp + 0x30], rax
mov r8, rdi
lea rax, [rbp + 0x28]
mov dword [rbp + 0x38], ebx
mov qword [rsp + 0x28], rax
xor ecx, ecx
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x140010a7b
cmp eax, 0x7a
je 0x140010a7b
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140010b37
lea rcx, [rbp - 0x20]
call fcn.14003a3c4
mov edx, dword [rbp + 0x28]
lea rcx, [rbp - 0x20]
inc edx
call fcn.14003a488
mov ebx, eax
test eax, eax
js 0x140010b2e
mov rdx, qword [rbp - 0x30]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x38]
lea rax, [rbp + 0x28]
mov r8, rdi
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x140010ae6
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140010b2e
lea rdx, [rbp - 0x38]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x140010b09
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x57
cmove eax, ecx
jmp 0x140010ad6
mov rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x10]
or r8d, 0xffffffff
call fcn.14003a4fc
mov ebx, eax
test eax, eax
js 0x140010b2e
mov rdx, qword [rbp - 0x10]
mov rcx, r14
call fcn.14003a7c8
mov ebx, eax
lea rcx, [rbp - 0x20]
call fcn.14003a954
lea rcx, [rbp - 0x30]
call fcn.14003a954
lea rcx, [rbp - 0x10]
call fcn.14003a954
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140010b61
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop r14
pop rdi
pop rbp
ret
Function at 0x140010eac
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
and qword [rbp + 0x20], 0
lea rax, [rbp + 0x20]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwarePoliciesMicrosoftWindowsMediaPlayer
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010f77
and dword [rbp + 0x10], eax
lea rdx, str.PreventCDDVDMetadataRetrieval
mov rcx, qword [rbp + 0x20]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rbp + 0x10]
mov dword [rbp + 0x18], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010f2c
cmp dword [rbp + 0x10], 1
jne 0x140010f2c
and dword [0x1400516a8], 0xfffffffe
mov rcx, qword [rbp + 0x20]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rdx, str.PreventMusicFileMetadataRetrieval
lea rax, [rbp + 0x10]
mov dword [rbp + 0x18], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010f6d
cmp dword [rbp + 0x10], 1
jne 0x140010f6d
and dword [0x1400516a8], 0xfffffffd
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x30
pop rbp
ret
Function at 0x140011364
Capabilities:
Check if file exists
Get common file path
Get file attributes
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x160], rax
call fcn.14002db68
lea rcx, [rsp + 0x38]
mov ebx, eax
call fcn.14003a3c4
mov edi, 4
lea rcx, [rsp + 0x38]
or word [rsp + 0x44], di
call fcn.14002d940
test eax, eax
jns 0x1400113f5
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x1400113dd
mov edx, edi
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x1400114a9
cmp dword [0x1400516e0], edi
jl 0x1400114a9
lea rdx, str.Could_not_obtain_SID_for_user._r_n
jmp 0x14001148d
sub ebx, 1
je 0x140011449
cmp ebx, 1
jne 0x1400114a9
call fcn.14002dc98
call fcn.14002dc04
mov rcx, qword [rsp + 0x38]
call fcn.14002dd94
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x140011438
mov edx, edi
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x1400114a9
cmp dword [0x1400516e0], edi
jl 0x1400114a9
lea rdx, str.Finished_migrating_WMCv2_user._r_n
jmp 0x14001148d
call fcn.14002dc98
call fcn.14002dc04
mov rcx, qword [rsp + 0x38]
call fcn.14002dd94
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x14001147e
mov edx, edi
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x1400114a9
cmp dword [0x1400516e0], edi
jl 0x1400114a9
lea rdx, str.Finished_migrating_WMCv1_user._r_n
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
and dword [rsp + 0x30], 0
mov r8d, reloc.ATL.DLL_AtlInternalQueryInterface
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0x38]
call fcn.14003a954
mov ebx, 0x104
lea rcx, [rsp + 0x50]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140011528
lea r8, str.unregmp2.exe
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.140001584
test eax, eax
js 0x140011528
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140011528
test al, 0x10
jne 0x140011528
call fcn.140018534
lea r8, str.__ShowWMP__SetShowState__CreateMediaLibrary
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.140001584
test eax, eax
js 0x140011528
mov r9d, 0xffff
lea rdx, [rsp + 0x50]
mov r8d, 1
xor ecx, ecx
call fcn.140019648
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14003c6c0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1400139d4
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rdi, qword [rcx + 0x18]
mov rbx, rcx
test rdi, rdi
jne 0x1400139f1
xor eax, eax
jmp 0x140013a41
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x70]
call sub.msvcrt.dll_memset
mov rax, qword [rbx + 0x20]
lea rcx, [rsp + 0x20]
and dword [rsp + 0x24], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x48], 0
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 0x70
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x50], 1
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret

Function at 0x140013dd8
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rax, [0x14003e100]
mov rbx, rcx
mov qword [rcx], rax
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x140013e07
call fcn.14003c2b8
and qword [rbx + 0x30], 0
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140013e1a
call fcn.14003c2b8
and qword [rbx + 0x38], 0
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x140013e2d
call fcn.14003c2b8
and qword [rbx + 0x40], 0
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x140013e40
call fcn.14003c2b8
and qword [rbx + 0x48], 0
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140013e53
call fcn.14003c2b8
and qword [rbx + 0x50], 0
mov rcx, qword [rbx + 0x260]
test rcx, rcx
je 0x140013e7e
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [rbx + 0x260]
test rcx, rcx
je 0x140013e7e
call fcn.14003c2b8
and qword [rbx + 0x260], 0
mov rcx, qword [rbx + 0x2a0]
test rcx, rcx
je 0x140013e9f
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14003f118]
and qword [rbx + 0x2a0], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140013ee6
mov rsi, qword [rcx]
mov rdi, qword [rcx + 8]
test rsi, rsi
je 0x140013ed0
mov rcx, rsi
call fcn.140024080
mov rcx, rsi
call fcn.14003c304
mov rax, qword [rbx + 8]
and qword [rax], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140013eda
call fcn.14003c304
mov qword [rbx + 8], rdi
mov rcx, rdi
test rdi, rdi
jne 0x140013ea8
mov rcx, rbx
call fcn.14003c304
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140013fbc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x140013feb
lea edx, [rcx + 5]
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x14001401e
cmp dword [0x1400516e0], 4
jl 0x14001401e
and dword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
lea rdx, str.Setup_beginning._r_n
mov r8d, 0x12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x140050310]
cmp dword [rdi + 0x78], 0
jne 0x14001402e
mov eax, 0x8000ffff
jmp 0x1400140ce
xor ebx, ebx
cmp rcx, 0xffffffffffffffff
jne 0x14001404b
lea edx, [rbx + 4]
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x140014075
cmp dword [0x1400516e0], 4
jl 0x140014075
and dword [rsp + 0x40], ebx
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], rbx
lea rdx, str.Building_Install_list._r_n
mov r8d, AtlInternalQueryInterface
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rdi + 0x6c]
cmp ecx, 3
je 0x140014086
cmp ecx, 5
je 0x14001409c
mov rbx, qword [rdi + 0x50]
mov rax, qword [rdi]
mov dword [rax + 0x28], ecx
cmp dword [rdi + 0x6c], 3
mov rcx, qword [rdi]
jne 0x1400140a3
call fcn.1400229bc
jmp 0x1400140ab
mov ebx, 1
jmp 0x1400140ad
mov rdx, rbx
call fcn.140022e5c
mov ebx, eax
mov r8d, ebx
lea rdx, str.Finished_building_install_list.__Result:_0x_x._r_n
mov ecx, 4
call fcn.140016868
test ebx, ebx
js 0x1400140cc
mov dword [rdi + 0x18], 1
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400140e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx], 0
mov rbx, rcx
jne 0x1400140f9
mov eax, 0x8000ffff
jmp 0x1400141ae
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x14001411b
lea edx, [rcx + 5]
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x140014147
cmp dword [0x1400516e0], 4
jl 0x140014147
and dword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
lea rdx, str.Updating_Install_list_for_UI._r_n
mov r8d, 0x24
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbx]
mov eax, dword [rbx + 0x20]
mov dword [rcx + 0x280], eax
mov edx, dword [rbx + 0x6c]
mov rcx, qword [rbx]
call fcn.140021bc0
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x140014180
lea edx, [rcx + 5]
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x1400141ac
cmp dword [0x1400516e0], 4
jl 0x1400141ac
and dword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
lea rdx, str.Finished_updating_install_list._r_n
mov r8d, 0x21
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x140015c04
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
and qword [rsp + 0x48], 0
mov rcx, qword [0x1400516d8]
test rcx, rcx
je 0x140015c42
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140015c42
mov r9d, dword [rsp + 0x40]
xor r8d, r8d
mov rcx, qword [0x1400516d8]
mov edx, 0x5c6
call qword [sym.imp.USER32.dll_PostMessageW]
lea rax, [rsp + 0x48]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerSetup
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015cb2
mov eax, dword [rsp + 0x40]
lea rdx, str.Progress_MaxInstall
test eax, eax
mov ecx, 1
cmove eax, ecx
xor r8d, r8d
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
lea r9d, [rcx + 3]
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x38
ret

Function at 0x140015cc0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
and qword [rsp + 0x48], 0
mov rcx, qword [0x1400516d8]
test rcx, rcx
je 0x140015cfe
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140015cfe
mov r9d, dword [rsp + 0x40]
xor r8d, r8d
mov rcx, qword [0x1400516d8]
mov edx, 0x5c7
call qword [sym.imp.USER32.dll_PostMessageW]
lea rax, [rsp + 0x48]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerSetup
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015d5c
mov rcx, qword [rsp + 0x48]
lea r9d, [rax + 4]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Progress_CurrentInstall
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x38
ret
Function at 0x1400166e0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140050310]
or r8, 0xffffffffffffffff
cmp rax, r8
je 0x14001671e
cmp ecx, dword [0x1400516e0]
jg 0x14001671e
xor ecx, ecx
mov dword [rsp + 0x50], ecx
inc r8
cmp byte [rdx + r8], cl
jne 0x140016702
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rsp, 0x38
ret

Function at 0x14001672c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x180
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x170], rax
or rbx, 0xffffffffffffffff
mov rsi, rdx
cmp qword [0x140050310], rbx
mov edi, ecx
jne 0x140016769
mov edx, ecx
call fcn.140016148
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x52]
lea r8, str._02lu:_02lu_:_02lu____s
movzx eax, word [rsp + 0x54]
mov edx, 0x104
movzx r9d, word [rsp + 0x50]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x60]
call fcn.140013ce8
xor edx, edx
test eax, eax
js 0x1400167ec
mov rcx, qword [0x140050310]
cmp rcx, rbx
je 0x1400167fb
cmp edi, dword [0x1400516e0]
jg 0x1400167fb
mov dword [rsp + 0x40], edx
lea rax, [rsp + 0x60]
inc rbx
cmp byte [rax + rbx], dl
jne 0x1400167ca
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400167fb
test rsi, rsi
je 0x1400167fb
mov rdx, rsi
mov ecx, edi
call fcn.1400166e0
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14003c6c0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140016868
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x268
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x250], rax
cmp ecx, dword [0x1400516e0]
mov edi, ecx
jle 0x1400168b2
cmp dword [0x1400516e4], 0
jne 0x140016939
test rdx, rdx
je 0x140016939
mov r8, rdx
lea r9, [rsp + 0x290]
mov ebx, 0x206
lea rcx, [rsp + 0x40]
mov edx, ebx
call qword [sym.imp.msvcrt.dll__vsnprintf]
test eax, eax
js 0x1400168da
cdqe
cmp rax, rbx
jb 0x1400168e2
mov byte [rsp + 0x246], 0
mov rcx, qword [0x140050310]
or rbx, 0xffffffffffffffff
cmp rcx, rbx
jne 0x140016905
mov edx, edi
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, rbx
je 0x140016939
cmp edi, dword [0x1400516e0]
jg 0x140016939
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140016917
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8, rbx
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14003c6c0
add rsp, 0x268
pop rdi
pop rbx
ret
Function at 0x140016a5c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov rdi, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140016a95
mov edx, esi
lea r8, str.unregmp2.exe
mov rcx, rdi
call fcn.140001584
test eax, eax
lea ecx, [rbx + 1]
cmovns ebx, ecx
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140017224
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x168]
sub rsp, 0x260
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r8, rcx
mov edx, 0x103
lea rcx, [rsp + 0x40]
call fcn.140001470
mov edx, 0x5c
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcschr]
xor esi, esi
mov rdi, rax
test rax, rax
jne 0x140017286
xor eax, eax
jmp 0x14001730e
lea r9, [rsp + 0x28]
mov word [rax + 2], si
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x1400172dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x57
mov ecx, 2
test eax, eax
cmove eax, edx
lea rdx, str.GetDiskFreeSpaceEx_failed.__Error:__x_r_n
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
call fcn.140016868
jmp 0x14001727f
mov rbx, qword [rsp + 0x20]
test rbx, rbx
jne 0x14001730b
lea r9, [rsp + 0x28]
mov word [rdi], si
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
cmovne rbx, qword [rsp + 0x20]
mov rax, rbx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14003c6c0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x14001733c
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov edx, 0x104
lea rcx, [rsp + 0x20]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14001737a
lea rcx, [rsp + 0x20]
call fcn.140017224
mov rbx, rax
mov rax, rbx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14003c6c0
add rsp, 0x240
pop rbx
ret