joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002c3a8
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 0x14002c51b
mov r8, qword [rbx + 0x20]
lea rdx, str.DefaultSubscriptionService
mov rcx, qword [rsp + 0x50]
call fcn.1400266f0
cmp qword [rbx + 0x30], 0
jne 0x14002c45e
mov r8, qword [rbx + 0x20]
test r8, r8
je 0x14002c510
movzx eax, word [r8]
cmp ax, word [0x14003f4a0]
je 0x14002c510
mov rcx, qword [rsp + 0x50]
lea rdx, str.OEMServiceOverride11
call fcn.1400266f0
jmp 0x14002c510
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 0x14002c510
cmp dword [rsp + 0x58], 1
jne 0x14002c510
lea r9, [rsp + 0x70]
mov edx, 0x208
lea r8, str.SoftwareMicrosoftMediaPlayerServices_s
lea rcx, [rbp + 0x40]
call fcn.1400017b4
test eax, eax
js 0x14002c510
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 0x14002c510
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 0x14002c578
mov r8, qword [rbx + 0x40]
lea rdx, str.ServiceExtra
mov rcx, qword [rsp + 0x50]
call fcn.1400266f0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.14003c6c0
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14002d42c
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.140016868
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 0x14002d48d
mov edi, r12d
jmp 0x14002d57e
mov r8d, 0xf01ff
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x14002d4af
mov edi, r12d
jmp 0x14002d567
lea rdx, [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14002d4a7
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 0x14002d567
lea r9, [rsp + 0x20]
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x14002d559
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002d559
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 0x14002d567
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 0x14002d543
mov edi, r12d
jmp 0x14002d559
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 0x14002d567
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rsi, rsi
je 0x14002d57e
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.140016868
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14003c6c0
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14002d940
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, [0x14003f4a0]
or r8d, 0xffffffff
mov r14, rcx
call fcn.14003a4fc
mov ebx, eax
test eax, eax
js 0x14002db3a
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 0x14002d9b7
lea rcx, [rbp - 0x30]
call fcn.14003a954
lea rcx, [rbp - 0x10]
call fcn.14003a954
jmp 0x14002db3a
mov rdx, qword [rbp - 0x30]
lea r8, [rbp + 0x30]
mov ecx, 2
call qword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
jne 0x14002d9ee
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 0x14002d9a0
mov ebx, 0x44
mov edx, ebx
lea ecx, [rbx - 4]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x14002da0d
mov ebx, 0x8007000e
jmp 0x14002d9a0
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 0x14002da63
cmp eax, 0x7a
je 0x14002da63
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14002db1f
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 0x14002db16
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 0x14002dace
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14002db16
lea rdx, [rbp - 0x38]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x14002daf1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x57
cmove eax, ecx
jmp 0x14002dabe
mov rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x10]
or r8d, 0xffffffff
call fcn.14003a4fc
mov ebx, eax
test eax, eax
js 0x14002db16
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 0x14002db49
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 0x14002db68
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
and dword [rbp + 0x10], 0
lea rax, [rbp + 0x28]
and qword [rbp + 0x28], 0
lea rdx, str.SoftwareMicrosoftMediaPlayerSetup
mov r9d, 0x101
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002dbf4
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x18]
lea rax, [rbp + 0x10]
mov dword [rbp + 0x18], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Migrated_NSS_Version
mov dword [rbp + 0x20], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002dbe6
cmp dword [rbp + 0x18], 4
je 0x14002dbea
and dword [rbp + 0x10], 0
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rbp + 0x10]
add rsp, 0x30
pop rbp
ret

Function at 0x14002dc04
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
sub rsp, 0x258
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140017e34
test eax, eax
je 0x14002dc77
lea r8, str.WMPNSCFG.exe
mov edx, 0x208
lea rcx, [rsp + 0x30]
call fcn.14000165c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002dc77
test al, 0x10
jne 0x14002dc77
and dword [rsp + 0x28], 0
lea r8, [rsp + 0x30]
and qword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14003c6c0
add rsp, 0x258
ret

Function at 0x14002dc98
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov ebx, 1
lea rcx, [rsp + 0x40]
mov edx, ebx
call fcn.140017e34
xor edi, edi
test eax, eax
je 0x14002dd68
lea r8, str.WMPNSCFG.exe
mov qword [rsp + 0x30], rdi
mov edx, 0x208
lea rcx, [rsp + 0x40]
call fcn.14000165c
lea rax, [rsp + 0x30]
mov r9d, 0x20106
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14002dd68
mov ebx, edi
lea rax, [rsp + 0x40]
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], di
jne 0x14002dd29
lea edx, [rdx*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], edx
lea rax, [rsp + 0x40]
lea rdx, str.WMPNSCFG
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14003c6c0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x14002f8cc
Capabilities:
Check if file exists
Create directory
Get file attributes
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x360], rax
xor r15d, r15d
mov r14d, edx
mov qword [rsp + 0x38], r15
mov rsi, rcx
mov ebx, 0x80004005
test rcx, rcx
jne 0x14002f91e
lea eax, [rbx - 2]
jmp 0x14002fb05
lea rax, [rsp + 0x38]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002fb03
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov r13d, 0x208
mov dword [rsp + 0x30], 1
mov eax, r14d
lea rdx, str.CommonFilesDir
cmp r14d, r13d
cmova eax, r13d
xor r8d, r8d
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x150]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or rdi, 0xffffffffffffffff
test eax, eax
jne 0x14002faa3
cmp dword [rsp + 0x30], 1
jne 0x14002faa3
mov ebx, 0x104
lea r8, [rbp + 0x150]
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140001470
test eax, eax
js 0x14002fa26
lea rcx, [rsp + 0x40]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14002f9d4
test rax, rax
je 0x14002fa0a
cmp word [rsp + rax*2 + 0x3e], 0x5c
jne 0x14002fa0a
lea rcx, [rsp + 0x40]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14002f9f3
test rax, rax
je 0x14002fa0a
mov word [rsp + rax*2 + 0x3e], r15w
jmp 0x14002f9cc
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002fa26
test al, 0x10
je 0x14002fa26
mov ebx, r15d
jmp 0x14002fab8
xor edx, edx
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r8, [rbp + 0x150]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140001470
test eax, eax
js 0x14002faa3
lea rcx, [rsp + 0x40]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14002fa55
test rax, rax
je 0x14002fa8b
cmp word [rsp + rax*2 + 0x3e], 0x5c
jne 0x14002fa8b
lea rcx, [rsp + 0x40]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14002fa74
test rax, rax
je 0x14002fa8b
mov word [rsp + rax*2 + 0x3e], r15w
jmp 0x14002fa4d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002faa3
test al, 0x10
jne 0x14002fa1e
mov edx, r13d
lea rcx, [rbp + 0x150]
call fcn.14002f524
mov ebx, eax
test eax, eax
jne 0x14002faf8
mov rdx, r14
lea rax, [rbp + 0x150]
shr rdx, 1
inc rdi
cmp word [rax + rdi*2], r15w
jne 0x14002fac5
inc rdi
cmp rdx, rdi
jbe 0x14002fae8
lea r8, [rbp + 0x150]
mov rcx, rsi
call fcn.140001470
jmp 0x14002faf8
mov ecx, 0x8007007a
mov ebx, 0x8007007a
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.14003c6c0
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x14002fb38
Capabilities:
Create directory
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x350], rax
xor r15d, r15d
mov r14d, edx
mov rsi, rcx
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x20]
xor ecx, ecx
lea edx, [r15 + 0x23]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov r12d, 0x104
lea r13d, [r15 + 1]
mov ebx, eax
test eax, eax
js 0x14002fbf8
mov rcx, qword [rsp + 0x20]
lea rdx, [rbp + 0x140]
mov qword [rsp + 0x28], r15
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edi, r15d
lea rcx, [rsp + 0x28]
test eax, eax
cmovne edi, r13d
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x14002fbf4
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14002fbf4
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x20]
mov rax, qword [rax + 0x28]
call qword [0x14003f118]
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14003f118]
test edi, edi
jne 0x14002fc2b
mov edx, r12d
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x14002fc26
lea r8, str.All_UsersApplication_Data
mov rdx, r12
lea rcx, [rbp + 0x140]
call fcn.140001584
test eax, eax
jns 0x14002fc2b
mov ebx, 0x80070057
or rdi, 0xffffffffffffffff
test ebx, ebx
js 0x14002fd27
lea r8, [rbp + 0x140]
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.140001470
or r13d, 0xffffffff
test eax, eax
js 0x14002fcaa
lea rcx, [rsp + 0x30]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14002fc5b
test rax, rax
je 0x14002fc91
cmp word [rsp + rax*2 + 0x2e], 0x5c
jne 0x14002fc91
lea rcx, [rsp + 0x30]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14002fc7a
test rax, rax
je 0x14002fc91
mov word [rsp + rax*2 + 0x2e], r15w
jmp 0x14002fc53
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, r13d
je 0x14002fcaa
test al, 0x10
je 0x14002fcaa
mov ebx, r15d
jmp 0x14002fd29
xor edx, edx
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r8, [rbp + 0x140]
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.140001470
test eax, eax
js 0x14002fd25
lea rcx, [rsp + 0x30]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14002fcd9
test rax, rax
je 0x14002fd0f
cmp word [rsp + rax*2 + 0x2e], 0x5c
jne 0x14002fd0f
lea rcx, [rsp + 0x30]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14002fcf8
test rax, rax
je 0x14002fd0f
mov word [rsp + rax*2 + 0x2e], r15w
jmp 0x14002fcd1
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, r13d
je 0x14002fd25
test al, 0x10
cmovne ebx, r15d
test ebx, ebx
jne 0x14002fd5e
mov rdx, r14
lea rax, [rbp + 0x140]
shr rdx, 1
inc rdi
cmp word [rax + rdi*2], r15w
jne 0x14002fd36
inc rdi
cmp rdx, rdi
jbe 0x14002fd59
lea r8, [rbp + 0x140]
mov rcx, rsi
call fcn.140001470
jmp 0x14002fd5e
mov ebx, 0x8007007a
mov eax, ebx
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.14003c6c0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x460
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400303c8
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor ebx, ebx
mov rsi, rdx
mov r14, rcx
test rdx, rdx
jne 0x14003040b
mov eax, 0x8007000e
jmp 0x1400305e7
mov word [rcx], bx
mov edx, 0x5c
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov rdi, rax
test rax, rax
jne 0x140030429
mov rdi, rsi
jmp 0x14003042d
add rdi, 2
mov r15d, 0x104
lea rcx, [rsp + 0x70]
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x140030469
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, 0x57
test ecx, ecx
cmove ecx, eax
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x1400305e7
lea r8, str.CatRootF750E6C3_38EE_11D1_85E5_00C04FC295EE_
mov rdx, r15
lea rcx, [rsp + 0x70]
call fcn.140001584
mov r8, rdi
lea rcx, [rsp + 0x70]
mov rdx, r15
call fcn.140001584
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r15d, 4
cmp eax, 0xffffffff
je 0x1400305b7
test al, 0x10
jne 0x1400305b7
mov r8, rsi
mov qword [rsp + 0x58], rbx
lea rdx, str.____Another_version_of_catalog_file__S_was_previously_installed._r_n
mov dword [rsp + 0x50], 1
mov ecx, r15d
mov dword [rsp + 0x54], r15d
mov dword [rsp + 0x60], r15d
call fcn.140016868
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerSetupCatalogIteration
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 3
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140030587
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x54]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140030559
cmp dword [rsp + 0x54], r15d
jne 0x140030559
cmp dword [rsp + 0x50], 1
mov eax, ebx
setne al
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], r15d
mov r9d, r15d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x50], ebx
je 0x1400305b7
test rdi, rdi
je 0x1400305ce
mov esi, 0x103
lea r8, [0x140047ca0]
mov edx, esi
mov rcx, r14
call fcn.140001470
mov r8, rdi
mov edx, esi
mov rcx, r14
call fcn.140001584
jmp 0x1400305d3
test rdi, rdi
je 0x1400305ce
mov r8, rdi
mov edx, 0x103
mov rcx, r14
call fcn.140001470
jmp 0x1400305d3
mov ebx, 0x80004005
mov r8d, ebx
lea rdx, str.GetNameForCatalogOnSystem_returned_0x_x._r_n
mov ecx, r15d
call fcn.140016868
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14003c6c0
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x290
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003112c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rdi
push rbp
push r12
push r13
mov rbp, rsp
sub rsp, 0x80
xor r12d, r12d
lea rax, [rbp - 0x20]
mov qword [r11 - 0x58], r12
lea r9, [rbp - 0x28]
mov qword [r11 - 0x60], r12
mov rdi, r8
mov qword [r11 - 0x68], r12
lea r8, [rbp - 0x18]
mov qword [r11 - 0x70], rax
mov ebx, r12d
lea rax, [rbp - 0x10]
mov qword [rbp - 0x18], r12
mov qword [r11 - 0x78], rax
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x10], r12
mov qword [rbp - 0x20], r12
call fcn.140030a10
mov rcx, qword [rbp - 0x18]
lea r13d, [r12 + 1]
mov qword [rbp - 8], r12
test rcx, rcx
je 0x140031238
cmp qword [rbp - 0x28], r12
je 0x140031238
mov rdx, qword [rbp - 0x28]
lea rax, [rbp - 8]
lea r9d, [r12 + 3]
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140031238
mov rdx, qword [rbp - 0x10]
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 8]
lea r9, [rbp - 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov dword [rbp - 0x30], r13d
mov dword [rbp - 0x18], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140031201
cmp dword [rbp - 0x30], r13d
cmove ebx, r13d
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140031238
test rdi, rdi
je 0x14003121e
mov rcx, rdi
call fcn.14001739c
jmp 0x140031221
mov eax, r12d
test eax, eax
je 0x140031238
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r12w
jne 0x140031229
test rax, rax
jne 0x140031252
cmp qword [rbp - 0x20], r12
je 0x140031252
mov r8, qword [rbp - 0x20]
mov edx, 0x104
mov rcx, rdi
call fcn.140001470
mov ebx, r13d
cmp qword [rbp - 0x28], r12
je 0x140031261
mov rcx, qword [rbp - 0x28]
call fcn.14003c2b8
cmp qword [rbp - 0x10], r12
je 0x140031270
mov rcx, qword [rbp - 0x10]
call fcn.14003c2b8
cmp qword [rbp - 0x20], r12
je 0x14003127f
mov rcx, qword [rbp - 0x20]
call fcn.14003c2b8
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret