joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c84c
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rbp + 0x47], rax
or qword [rbp + 0x2f], 0xffffffffffffffff
xor r14d, r14d
mov esi, r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [rax + rax]
lea r8, [rbp + 0x2f]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop dword [rax + rax]
test eax, eax
je 0x14001c9c9
mov rcx, qword [rbp + 0x2f]
lea rax, [rbp + 0x27]
lea edi, [r14 + 2]
mov dword [rbp + 0x27], r14d
mov edx, edi
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
nop dword [rax + rax]
mov ecx, dword [rbp + 0x27]
call fcn.1400014a0
mov rbx, rax
test rax, rax
je 0x14001c9b4
mov r9d, dword [rbp + 0x27]
lea rax, [rbp + 0x27]
mov rcx, qword [rbp + 0x2f]
mov r8, rbx
mov edx, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
nop dword [rax + rax]
test eax, eax
je 0x14001c9ac
lea rax, [rbp + 0x37]
mov dword [rbp + 0x3f], r14d
mov qword [rsp + 0x50], rax
lea r8d, [r14 + 0x20]
mov dword [rsp + 0x48], r14d
lea rcx, [rbp + 0x3f]
mov dword [rsp + 0x40], r14d
mov r9d, 0x220
mov dword [rsp + 0x38], r14d
mov dl, dil
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov word [rbp + 0x43], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x14001c9ac
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x14001c99c
mov rcx, qword [rbp + 0x37]
mov edx, edi
add rdx, rdx
mov rdx, qword [rbx + rdx*8 + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
jne 0x14001c997
inc edi
cmp edi, dword [rbx]
jb 0x14001c971
jmp 0x14001c99c
mov esi, 1
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop dword [rax + rax]
mov rcx, rbx
call fcn.140001454
mov rcx, qword [rbp + 0x2f]
test rcx, rcx
je 0x14001c9c9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, esi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400017f0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14001ca78
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop dword [rax + rax]
test eax, eax
je 0x14001cb70
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001cb70
jmp 0x14001cb09
test eax, eax
jne 0x14001cb4d
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
call fcn.14001ca78
test eax, eax
jne 0x14001cb4d
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
and qword [rsp + 0x28], 0
xor edx, edx
mov rcx, qword [rsp + 0x48]
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
cmp eax, 0x103
jne 0x14001caf2
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400017f0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x14001cb9c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x30
and dword [rsp + 0x58], 0
mov rbx, r8
mov rdi, rdx
test rdx, rdx
jne 0x14001cbc0
lea eax, [rdx + 6]
jmp 0x14001cc30
test ecx, ecx
jne 0x14001cc03
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
and qword [rsp + 0x20], 0
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001cc03
test rbx, rbx
jne 0x14001cbfc
cmp dword [rsp + 0x58], 2
jbe 0x14001cc03
mov eax, UnRegisterTypeLib
jmp 0x14001cc30
mov eax, dword [rsp + 0x70]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rax, qword [rsp + 0x68]
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14001cc44
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rbp - 8], rax
mov dword [rbp - 0x3c], 0x28
mov ebx, 1
mov dword [rbp - 0x40], ebx
mov rdi, r8
mov rsi, rcx
test rcx, rcx
je 0x14001cd2d
lea rax, [rbp - 0x3c]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x40]
lea rax, [rbp - 0x30]
lea rdx, str.DesktopShortcut
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001cd29
cmp dword [rbp - 0x40], ebx
jne 0x14001ccd6
lea rdx, [rbp - 0x30]
lea rcx, [0x140049d58]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
sete cl
mov dword [rdi], ecx
jmp 0x14001cd27
cmp dword [rbp - 0x40], 4
jne 0x14001cd29
lea rax, [rbp - 0x3c]
mov dword [rbp - 0x38], ebx
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x40]
lea rax, [rbp - 0x38]
mov dword [rbp - 0x3c], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DesktopShortcut
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001cd29
cmp dword [rbp - 0x40], 4
jne 0x14001cd29
cmp dword [rbp - 0x38], ebx
sete al
mov dword [rdi], eax
xor ebx, ebx
mov eax, ebx
jmp 0x14001cd32
mov eax, 0x80070057
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400017f0
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001d358
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14001d3f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14001d38e
lea ebx, [rax + 0x57]
jmp 0x14001d3f2
cmp eax, 5
jne 0x14001d3f2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14001d3f2
test al, 1
je 0x14001d3f2
and eax, 0xfffffffe
mov rcx, rdi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
test eax, eax
je 0x14001d3f2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14001d3da
xor ebx, ebx
jmp 0x14001d3f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, 0x57
test eax, eax
cmove eax, ebx
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001d408
Capabilities:
Check if file exists
Delete file
Get file attributes
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rbp + 0x360], rax
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftMediaPlayerPreferences
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001d531
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rbp + 0x150]
mov dword [rsp + 0x30], 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ObfuscatedSamplePlaylistsPath
mov dword [rsp + 0x34], 0x105
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001d520
cmp dword [rsp + 0x30], 1
jne 0x14001d520
lea ebx, [rax + 1]
lea rax, str.Plylst
mov dword [rsp + 0x28], ebx
lea r9, [rbp + 0x150]
mov qword [rsp + 0x20], rax
lea r8, str._s_s_d.wpl
mov edx, 0x105
lea rcx, [rsp + 0x40]
call fcn.140010e44
test eax, eax
js 0x14001d519
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14001d519
test al, 0x10
jne 0x14001d519
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
inc ebx
cmp ebx, 0x10
jl 0x14001d4bd
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.1400017f0
mov rbx, qword [rsp + 0x480]
add rsp, 0x470
pop rbp
ret
Function at 0x14001e214
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x50
mov ebx, dword [0x14005a73c]
lea rax, [r11 + 8]
xor edi, edi
lea rdx, str.SoftwareMicrosoftMediaPlayerSetupUserOptions
mov qword [r11 - 0x18], rdi
xor r9d, r9d
mov qword [r11 - 0x20], rax
xor r8d, r8d
mov qword [r11 - 0x28], rdi
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], edi
mov qword [r11 + 8], rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001e2d3
test ebx, ebx
lea rax, [0x14004b784]
lea rcx, [0x140049d58]
cmove rcx, rax
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x14001e288
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str.DesktopShortcut
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x14001e438
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlSession_Manager
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14001e4c4
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.AllowProtectedRenames
mov dword [rsp + 0x40], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
je 0x14001e4d8
mov r8d, ebx
lea rdx, str.ERROR:_Could_not_set_AllowProtectedRename_flag_for_SFP.__Error:_0x_x_r_n
mov ecx, 2
call fcn.140019b1c
add rsp, 0x30
pop rbx
ret
Function at 0x14001f574
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x14001f639
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14001f639
lea r8, str.wmvcore.dll
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.140010d0c
test eax, eax
js 0x14001f639
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
lea rdx, [rsp + 0x44]
mov dword [rsp + 0x44], ebx
lea rcx, [rsp + 0x50]
call fcn.14001aeb8
test eax, eax
js 0x14001f639
mov r10d, dword [rsp + 0x40]
mov edx, 0x104
mov r9d, dword [rsp + 0x44]
mov rcx, rdi
movzx r8d, r9w
movzx eax, r10w
mov dword [rsp + 0x30], eax
shr r10d, 0x10
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r8d
lea r8, str._lu._lu._lu._lu
shr r9d, 0x10
call fcn.140010e44
test eax, eax
lea ecx, [rbx + 1]
cmovns ebx, ecx
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400017f0
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret

Function at 0x14001f664
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
je 0x14001f708
lea r8, str.wmvcore.dll
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140010d0c
test eax, eax
js 0x14001f708
lea r8, [rsp + 0x24]
mov dword [rsp + 0x20], ebx
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x24], ebx
lea rcx, [rsp + 0x30]
call fcn.14001aeb8
test eax, eax
js 0x14001f703
mov ebx, dword [rsp + 0x20]
movzx eax, word [rsp + 0x20]
and rbx, 0xffffffffffff0000
mov ecx, dword [rsp + 0x24]
or rbx, rax
shl rbx, 0x10
shr rcx, 0x10
or rbx, rcx
movzx ecx, word [rsp + 0x24]
shl rbx, 0x10
or rbx, rcx
mov rax, rbx
jmp 0x14001f70a
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400017f0
add rsp, 0x250
pop rbx
ret
Function at 0x14001ff04
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rax, [0x140047100]
mov rbx, rcx
mov qword [rcx], rax
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x14001ff33
call fcn.140001454
and qword [rbx + 0x30], 0
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14001ff46
call fcn.140001454
and qword [rbx + 0x38], 0
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x14001ff59
call fcn.140001454
and qword [rbx + 0x40], 0
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x14001ff6c
call fcn.140001454
and qword [rbx + 0x48], 0
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14001ff7f
call fcn.140001454
and qword [rbx + 0x50], 0
mov rcx, qword [rbx + 0x260]
test rcx, rcx
je 0x14001ffb0
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x260]
test rcx, rcx
je 0x14001ffb0
call fcn.140001454
and qword [rbx + 0x260], 0
mov rcx, qword [rbx + 0x2a0]
test rcx, rcx
je 0x14001ffdb
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x140048188]
and qword [rbx + 0x2a0], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002002c
mov rsi, qword [rcx]
mov rdi, qword [rcx + 8]
test rsi, rsi
je 0x140020016
mov rcx, rsi
call fcn.14001fde4
mov edx, 0x98
mov rcx, rsi
call fcn.140001818
mov rax, qword [rbx + 8]
and qword [rax], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140020020
mov edx, 0x10
call fcn.140001818
mov qword [rbx + 8], rdi
mov rcx, rdi
test rdi, rdi
jne 0x14001ffe4
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140021748
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rbp + 0x60], rax
xor esi, esi
mov r15, rdx
and qword [rsp + 0x50], rsi
mov r12, rcx
xor edi, edi
mov ecx, edi
test edi, edi
je 0x1400217bc
sub ecx, 1
je 0x1400217b3
sub ecx, 1
je 0x1400217aa
cmp ecx, 1
je 0x1400217a1
lea rbx, str.AddsTo
jmp 0x1400217c3
lea rbx, str.GainsFrom
jmp 0x1400217c3
lea rbx, str.ReliesUpon
jmp 0x1400217c3
lea rbx, str.CriticalTo
jmp 0x1400217c3
lea rbx, str.Definition
lea rax, [rsp + 0x50]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400218d7
xor r14d, r14d
mov dword [rsp + 0x40], 0x80
and qword [rsp + 0x48], r14
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x60]
and qword [rsp + 0x28], 0
mov edx, r14d
mov rcx, qword [rsp + 0x50]
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400218c2
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], 0x80
lea rdx, [rsp + 0x60]
inc r14d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400218c2
lea r8, [rsp + 0x60]
lea rdx, str.Reg_parser:_Adding_dependency__S._r_n
lea ecx, [rax + 4]
call fcn.140019b1c
mov rdx, qword [rsp + 0x48]
mov r8, rbx
mov rcx, r12
call fcn.140021914
mov rcx, qword [rsp + 0x48]
mov esi, eax
test eax, eax
js 0x1400218b6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x140021800
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]
test esi, esi
js 0x1400218e2
inc edi
cmp edi, 5
jl 0x140021783
mov eax, esi
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1400017f0
lea r11, [rsp + 0x170]
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 0x140024a14
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor ebp, ebp
mov esi, edx
mov rbx, rcx
cmp dword [rcx + 0x7c], ebp
je 0x140024b84
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x140024b84
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bp
jne 0x140024a5e
cmp rax, 6
jbe 0x140024b84
mov edx, 0x5c
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsrchr]
nop dword [rax + rax]
mov r8, qword [rbx + 0x30]
lea rdx, str.Package_clean_up:_Cleaning_up_files_at__S._r_n
mov ecx, 4
mov dword [rsp + 0x20], 1
mov rdi, rax
call fcn.140019b1c
test rdi, rdi
je 0x140024aaa
mov word [rdi], bp
mov edi, 0x104
lea rdx, [rsp + 0x240]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPath2W]
nop dword [rax + rax]
test eax, eax
je 0x140024b84
lea rcx, [rsp + 0x240]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
nop dword [rax + rax]
mov r8, qword [rbx + 0x30]
lea rax, [rsp + 0x30]
sub r8, rax
lea rcx, [rsp + 0x30]
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x140024b15
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140024b15
mov word [rcx], ax
add rcx, 2
sub rdi, 1
jne 0x140024af2
lea rax, [rcx - 2]
test rdi, rdi
mov edx, 0x5c
cmovne rax, rcx
lea rcx, [rsp + 0x30]
mov word [rax], bp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsrchr]
nop dword [rax + rax]
test rax, rax
je 0x140024b42
mov word [rax + 2], bp
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140024b73
mov rcx, qword [rbx + 0x30]
lea rdx, [rsp + 0x20]
call fcn.14001de30
mov rcx, qword [rbx + 0x30]
jmp 0x140024b78
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
cmp dword [rbx + 0x80], ebp
je 0x140024ba5
test esi, esi
je 0x140024ba5
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140024ba5
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
cmp dword [rbx + 0x84], ebp
je 0x140024bcf
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140024bcf
call fcn.14001aa34
test eax, eax
je 0x140024bcf
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400017f0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400253dc
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
lea rdi, [rcx + 0x18]
mov rsi, rcx
cmp qword [rdi], rbx
jne 0x1400255c2
mov ecx, 0x80
mov ebx, 0x80004005
call fcn.1400014a0
mov qword [rdi], rax
test rax, rax
je 0x1400255c9
test dword [rsi + 4], 0xfffffffc
jne 0x140025465
cmp dword [rsi + 4], 2
je 0x140025465
test rdi, rdi
je 0x1400255bd
mov rcx, rax
call fcn.140001454
and qword [rdi], 0
mov ecx, 0x10
call fcn.1400014a0
mov qword [rdi], rax
test rax, rax
jne 0x140025459
mov ebx, 0x8007000e
jmp 0x1400255c2
lea r8, str.0.0.0.0
jmp 0x140025597
xor r15d, r15d
cmp qword [rsi + 0x10], r15
je 0x140025564
mov ecx, 0x208
call fcn.1400014a0
mov rbp, rax
test rax, rax
je 0x140025564
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x140025557
mov rcx, qword [rsi + 0x10]
lea edx, [r15 + 0x5c]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsrchr]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x1400254c6
add r14, 2
jmp 0x1400254ca
mov r14, qword [rsi + 0x10]
and dword [rsp + 0x78], r15d
mov rcx, rbp
and dword [rsp + 0x70], r15d
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
nop dword [rax + rax]
mov r8, r14
mov edx, 0x104
mov rcx, rbp
call fcn.140010d0c
lea r8, [rsp + 0x70]
mov rcx, rbp
lea rdx, [rsp + 0x78]
call fcn.14001aeb8
test eax, eax
js 0x140025557
mov r8d, dword [rsp + 0x70]
mov edx, 0x104
mov r9d, dword [rsp + 0x78]
movzx ecx, r8w
mov dword [rsp + 0x30], ecx
mov rcx, rbp
shr r8d, 0x10
mov dword [rsp + 0x28], r8d
lea r8, str._lu._lu._lu._lu
movzx eax, r9w
shr r9d, 0x10
mov dword [rsp + 0x20], eax
call fcn.140010e44
mov rdx, rbp
mov rcx, rdi
call fcn.14001e0f8
mov ebx, eax
mov r15d, 1
mov rcx, rbp
call fcn.140001454
test r15d, r15d
jne 0x1400255c2
test rdi, rdi
je 0x1400255bd
mov rcx, qword [rdi]
test rcx, rcx
je 0x14002557a
call fcn.140001454
and qword [rdi], 0
mov ecx, 0x10
call fcn.1400014a0
mov qword [rdi], rax
test rax, rax
je 0x14002544f
lea r8, str.1.0.0.0
mov edx, 8
mov rcx, rax
call fcn.140010dd0
mov ebx, eax
test eax, eax
jns 0x1400255c2
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400255c2
call fcn.140001454
and qword [rdi], 0
jmp 0x1400255c2
mov ebx, 0x80004003
not ebx
shr ebx, 0x1f
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140025c2c
Capabilities:
Get file size

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 0x140025d24
mov ecx, dword [rcx + 0x58]
cmp ecx, 1
je 0x140025c9b
lea eax, [rcx - 2]
cmp eax, 2
jbe 0x140025c67
cmp ecx, 6
jne 0x140025d24
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140025c85
mov rdx, qword [rbx + 0x28]
call fcn.14003930c
mov qword [rbx + 0xa0], rax
jmp 0x140025d24
lea rdx, str._FAILURE:_Attempted_to_get_INF_size_for_unknown_INF._r_n
mov ecx, 2
call fcn.140019ae0
jmp 0x140025d24
mov rcx, qword [rbx + 0x30]
and dword [rsp + 0x58], 0
call fcn.14001ab20
test eax, eax
je 0x140025d24
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]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140025d24
lea rdx, [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140025d15
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]
nop dword [rax + rax]
cmp dword [rbx + 0x88], 0
jne 0x140025d5b
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140025d5b
call fcn.14001ab20
test eax, eax
jne 0x140025d5b
mov rcx, qword [rbx + 0x38]
call fcn.14001ab20
test eax, eax
jne 0x140025d5b
lea rdx, str.Warning:_Need_to_account_for_cabinet_download_and_extraction_size._r_n
lea ecx, [rax + 4]
call fcn.140019ae0
mov rax, qword [rbx + 0xa0]
test esi, esi
jne 0x140025d6d
add rax, qword [rbx + 0xb0]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret