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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
mov rax, qword [0x140090008]
xor rax, rsp
mov qword [rbp + 0x590], rax
mov r14, r9
mov r15d, r8d
mov rsi, rcx
xor r12d, r12d
mov eax, r12d
mov dword [rsp + 0x40], eax
test rdx, rdx
je 0x1400116d6
mov rcx, rdx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400117b6
mov ebx, r12d
mov qword [rsp + 0x60], rbx
lea rdx, str.General
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r12w
jne 0x1400115dd
mov r8d, eax
lea rcx, [rsp + 0x58]
call fcn.1400148dc
test eax, eax
js 0x1400117ae
mov rdi, qword [rsp + 0x58]
test rsi, rsi
je 0x1400116ba
test rdi, rdi
je 0x1400116ba
mov qword [rsp + 0x50], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
cmove rbx, qword [rsp + 0x50]
mov qword [rsp + 0x60], rbx
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x1400116ba
test rbx, rbx
je 0x1400116ab
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x44], 4
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str.UILanguage
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400116ab
cmp dword [rsp + 0x48], 4
jne 0x1400116a6
cmp dword [rsp + 0x44], 4
je 0x1400116ab
mov eax, r12d
jmp 0x1400116af
mov eax, dword [rsp + 0x40]
cmp eax, 0xfffffffd
cmove eax, r12d
mov dword [rsp + 0x40], eax
test rbx, rbx
je 0x1400116c9
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [rsp + 0x40]
test r15d, r15d
je 0x14001178d
test r14, r14
je 0x14001178d
mov word [rbp + 0x180], r12w
mov dword [rsp + 0x44], r12d
mov ebx, 0x208
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140009580
nop
lea rcx, [rsp + 0x50]
call fcn.140009184
lea rax, [rbp + 0x180]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8, r14
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
mov ecx, dword [rsp + 0x40]
call fcn.14005d724
mov edi, dword [rsp + 0x44]
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14001178b
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.140052570
add rsp, 0x6a0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, eax
call fcn.140002fa4
nop
mov ecx, 0x8007000e
call fcn.140002fa4
int3
Function at 0x140011e10
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x140090008]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edi, edi
mov rsi, r9
mov rax, r8
mov rbx, rcx
test r9, r9
je 0x140011ede
test rax, rax
je 0x140011ede
cmp qword [rcx], rdi
je 0x140011ede
mov qword [rsp + 0x20], r9
xor r8d, r8d
xor r9d, r9d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140011e70
lea eax, [rdi + 2]
jmp 0x140011ee3
mov rdx, qword [rbx]
lea rcx, [rsp + 0x30]
call fcn.140013cac
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140011ec6
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rcx + rdx], dil
jne 0x140011e8b
inc rdx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strlwr_s]
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsi]
xor r9d, r9d
mov r8d, eax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x140011ecb
mov edi, 3
lea rax, [rsp + 0x38]
cmp rcx, rax
je 0x140011eda
call fcn.140053218
mov eax, edi
jmp 0x140011ee3
mov eax, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140052570
add rsp, 0xd0
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001220c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rbp
mov qword [r11 + 0x18], r8
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rsi, r9
mov rbx, rdx
mov r14, rcx
xor r12d, r12d
test rdx, rdx
je 0x1400122e6
lea rax, [r11 + 0x18]
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x48], r12
lea r9, [r11 + 0x10]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400122e6
mov ecx, dword [rsp + 0x78]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x14001226e
cmp ecx, 7
jne 0x1400122e6
mov eax, dword [rsp + 0x80]
shr eax, 1
inc eax
movsxd r15, eax
mov eax, 2
mul r15
mov rbp, 0xffffffffffffffff
cmovo rax, rbp
lea rdx, [0x140066310]
mov rcx, rax
call fcn.140052ac4
mov rdi, rax
test rax, rax
je 0x1400122e6
lea r8, [r15 + r15]
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rdi
test eax, eax
je 0x140012301
call fcn.140052590
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400123aa
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x140012350
mov qword [rsp + 0x30], r12
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, qword [rsi]
call qword [sym.imp.OLEAUT32.dll_VarBstrCmp]
test eax, eax
js 0x1400123a2
mov rcx, qword [rsi]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rax, qword [rsp + 0x30]
mov qword [rsi], rax
lea rdx, [0x1400732e8]
inc rbp
cmp word [rdx + rbp*2], r12w
jne 0x140012357
mov r8d, ebp
mov rcx, rsi
call fcn.1400148dc
test eax, eax
js 0x1400123b5
mov rdx, qword [rsp + 0x90]
test rdx, rdx
je 0x140012386
mov rcx, rbx
mov rbx, r12
mov qword [rdx], rcx
mov rcx, rdi
call fcn.140052590
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, 1
jmp 0x1400122e8
mov ecx, eax
call fcn.140002fa4
nop
mov ecx, 0x8007000e
call fcn.140002fa4
nop
mov ecx, eax
call fcn.140002fa4
int3
Function at 0x1400126fc
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor edi, edi
mov ebp, 0x20
mov rbx, rax
mov rcx, rax
test rax, rax
je 0x140012771
lea esi, [rbp + 2]
lea rdx, [0x140073388]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcspbrk]
mov rcx, rax
test rax, rax
je 0x140012771
cmp word [rax], si
jne 0x14001275f
mov edx, esi
add rcx, 2
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov rcx, rax
test rax, rax
je 0x140012771
add rcx, 2
jmp 0x140012764
cmp word [rax], bp
je 0x14001276b
test rcx, rcx
jne 0x14001272b
jmp 0x140012771
add rcx, 2
jne 0x140012782
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x140012775
lea rcx, [rbx + rax*2]
mov r9d, 0xa0
mov r10d, 0x303f
movzx edx, word [rcx]
cmp bp, dx
je 0x140012813
cmp dx, r9w
jae 0x1400127a9
sub dx, 9
cmp dx, 4
setbe al
jmp 0x1400127cb
cmp dx, r10w
ja 0x1400127cf
mov eax, 0x200b
cmp dx, ax
ja 0x1400127e7
cmp r9w, dx
je 0x140012813
mov eax, 0x2000
cmp dx, ax
jb 0x1400127cf
mov al, 1
test al, al
jne 0x140012813
mov rbx, qword [rsp + 0x30]
mov rax, rcx
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov r8d, 0x2028
movzx eax, dx
sub ax, r8w
cmp ax, 1
jbe 0x140012813
lea eax, [r8 + 7]
cmp dx, ax
je 0x140012813
mov eax, 0x3000
cmp dx, ax
je 0x140012813
cmp dx, r10w
jne 0x1400127cf
add rcx, 2
jmp 0x14001278e
Function at 0x140013354
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x140090008]
xor rax, rsp
mov qword [rbp + 0x60], rax
xor ebx, ebx
xor edx, edx
mov r8d, VarUI4FromDisp
lea rcx, [rsp + 0x44]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], VarUI4FromDisp
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x44], 6
ja 0x1400133b3
jne 0x14001348a
cmp dword [rsp + 0x48], 1
jb 0x14001348a
and qword [rsp + 0x38], rbx
cmp byte [0x1400925c0], 0
jne 0x1400133fc
lea rcx, str.shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x1400133ec
lea rdx, str.GetCurrentProcessExplicitAppUserModelID
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400925b8], rax
jmp 0x1400133f3
mov rax, qword [0x1400925b8]
mov byte [0x1400925c0], 1
jmp 0x140013403
mov rax, qword [0x1400925b8]
test rax, rax
je 0x14001347a
lea rcx, [rsp + 0x38]
call rax
mov ebx, eax
test eax, eax
js 0x14001347f
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x140073510]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140069ff8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
js 0x140013468
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x38]
call qword [rax + 0x18]
mov ebx, eax
test eax, eax
js 0x140013468
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001347f
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x14001347f
mov ebx, 0x80004005
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140052570
mov rbx, qword [rsp + 0x180]
add rsp, 0x170
pop rbp
ret
Function at 0x1400134c8
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x58
xor esi, esi
mov qword [rbp - 0x28], rsi
and dword [rbp - 0x20], esi
and qword [rbp - 0x18], rsi
lea rdx, str.SoftwareMicrosoftVsCommonConnectedUser
lea rcx, [rbp + 0x38]
call fcn.140009580
nop
lea rdx, str.ResetUserTokenStorage
lea rcx, [rbp + 0x40]
call fcn.140009580
and qword [rbp + 0x30], rsi
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 2]
xor r8d, r8d
mov rdx, qword [rbp + 0x38]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x140013538
mov rsi, qword [rbp + 0x30]
mov qword [rbp - 0x28], rsi
and dword [rbp - 0x20], eax
mov rbx, qword [rbp + 0x40]
test edi, edi
jne 0x140013568
mov dword [rbp + 0x28], 1
lea r9d, [rdi + 4]
mov dword [rsp + 0x28], r9d
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140013586
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1400135a5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1400135b4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
add rsp, 0x58
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140015344
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x1400925f0], 0
jne 0x1400154c1
lea rdx, str.user32.dll
lea rcx, [rsp + 0x30]
call fcn.1400154c8
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdx, qword [rsp + 0x30]
mov rbx, rax
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140015394
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
test rbx, rbx
je 0x1400153f7
lea rdx, str.GetDpiForWindow
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetWindowDpiAwarenessContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetProcessDpiAwarenessContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetThreadDpiAwarenessContext
mov rcx, rbx
mov qword [0x140092608], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetThreadDpiHostingBehavior
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400925f8], rax
lea rdx, str.shcore.dll
lea rcx, [rsp + 0x38]
call fcn.1400154c8
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdx, qword [rsp + 0x38]
mov rbx, rax
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140015434
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
test rbx, rbx
je 0x140015477
lea rdx, str.GetDpiForMonitor
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetProcessDpiAwareness
mov rcx, rbx
mov qword [0x140092610], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetProcessDpiAwareness
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140092600], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
test rax, rax
je 0x1400154ba
mov edx, 0x58
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edx, 0x5a
mov rcx, rbx
mov dword [0x140090744], eax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov rdx, rbx
xor ecx, ecx
mov dword [0x140090740], eax
call qword [sym.imp.USER32.dll_ReleaseDC]
mov byte [0x1400925f0], 1
add rsp, 0x20
pop rbx
ret
Function at 0x1400154c8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov rbx, rcx
xor ebp, ebp
call fcn.140002dfc
mov rcx, rax
test rax, rax
je 0x1400155c1
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
mov edi, 0x104
lea r9d, [rbp + 1]
mov r8d, edi
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.14001a6a8
mov edx, edi
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop
mov eax, dword [rsp + 0x38]
mov rdi, qword [rsp + 0x28]
cmp eax, 0xffffffff
jne 0x140015550
mov rcx, qword [rdi]
test rcx, rcx
jne 0x140015546
mov eax, ebp
jmp 0x140015554
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test eax, eax
js 0x1400155cc
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x1400155cc
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rdi]
mov word [rax + rcx*2], bp
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140009210
mov rcx, qword [rsp + 0x60]
add rcx, 0xffffffffffffffe8
call fcn.14000a2b4
add rax, 0x18
mov qword [rbx], rax
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400155a9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov ecx, 0x80004005
call fcn.140002fa4
nop
mov ecx, 0x80070057
call fcn.140002fa4
int3

Function at 0x1400168f8
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.140017064
nop
mov rdx, qword [rax]
lea rcx, [rsp + 0x38]
call fcn.140009580
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001693d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, str.LegacyExtensions.enabled
lea rcx, [rsp + 0x38]
call fcn.140009210
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne dil
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14001697d
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov al, dil
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140018fe0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
xor ebp, ebp
test rdx, rdx
jne 0x140019089
mov ebx, ebp
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
dec eax
mov edi, ebp
mov word [rbx + rax*2], bp
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
xor eax, eax
mov qword [rsp + 0x50], rax
mov eax, 0x414
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x28], 3
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x30], rbx
movups xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x40], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
test eax, eax
je 0x140019065
mov ecx, reloc.OLEAUT32.dll_SetErrorInfo
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jl 0x140019012
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea r11, [rsp + 0x60]
test esi, esi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
sete al
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rcx, rdx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rax, rax
jne 0x140019001
mov ecx, 0x8007000e
call fcn.140002fa4
int3
Function at 0x1400191c4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
mov rbp, rsp
sub rsp, 0x48
mov r14, rcx
mov sil, 1
xor edi, edi
mov qword [rbp + 0x50], rdi
mov rdx, qword [rcx + 0x88]
mov r13d, 0x80070000
test rdx, rdx
je 0x1400192a1
and qword [rbp + 0x38], rdi
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
cmove rdi, qword [rbp + 0x38]
mov qword [rbp + 0x50], rdi
movzx eax, ax
or eax, r13d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x1400192a1
and dword [rbp + 0x38], 0
test rdi, rdi
je 0x1400192a1
and dword [rbp + 0x40], 0
mov dword [rbp + 0x48], 4
lea rax, [rbp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x40]
xor r8d, r8d
lea rdx, str.IsConnectedUserEnabled
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x14001928a
cmp dword [rbp + 0x40], 4
jne 0x140019284
cmp dword [rbp + 0x48], 4
je 0x14001928a
and dword [rbp + 0x38], 0
jmp 0x1400192a1
movzx eax, cx
or eax, r13d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x1400192a1
cmp dword [rbp + 0x38], 0
setne sil
xor ebx, ebx
mov qword [rbp - 0x18], rbx
mov rdx, qword [r14 + 0x88]
test rdx, rdx
je 0x14001935c
and qword [rbp + 0x38], rbx
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
cmove rbx, qword [rbp + 0x38]
mov qword [rbp - 0x18], rbx
movzx eax, ax
or eax, r13d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x14001935c
and dword [rbp + 0x38], 0
test rbx, rbx
je 0x14001935c
and dword [rbp + 0x40], 0
mov dword [rbp + 0x48], 4
lea rax, [rbp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x40]
xor r8d, r8d
lea rdx, str.IsConnectedUserEnabled
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x140019345
cmp dword [rbp + 0x40], 4
jne 0x14001935c
cmp dword [rbp + 0x48], 4
jne 0x14001935c
movzx eax, cx
or eax, r13d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x14001935c
cmp dword [rbp + 0x38], 0
setne sil
test rbx, rbx
je 0x14001936b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rdi, rdi
je 0x14001937a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov al, sil
add rsp, 0x48
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14001938c
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x9b0]
sub rsp, 0xab0
mov rax, qword [0x140090008]
xor rax, rsp
mov qword [rbp + 0x9a0], rax
mov rdx, qword [0x1400921d0]
lea rcx, str.VSSKUEDITION
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, qword [0x140091930]
lea rcx, str.VSROOTSUFFIX
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor edx, edx
lea rcx, str.ELECTRON_RUN_AS_NODE
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor edx, edx
lea rcx, str.ServiceHubLocationServicePipeName
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor edx, edx
lea rcx, str.ServiceHubLogSessionKey
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, 0x105
lea rdx, [rbp + 0x370]
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x40], rbx
lea rax, [rbp + 0x790]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x580]
lea rax, [rbp + 0x160]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x50]
mov r8d, ebx
mov qword [rsp + 0x20], rbx
lea rcx, [rbp + 0x370]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
test eax, eax
jne 0x1400194b5
lea r8, [rbp + 0x580]
mov edx, ebx
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rdx, [rsp + 0x50]
lea rcx, str.VSAPPIDDIR
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea r8, [rbp + 0x790]
mov edx, ebx
lea rcx, [rbp + 0x160]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rdx, [rbp + 0x160]
lea rcx, str.VSAPPIDNAME
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rbp + 0x9a0]
xor rcx, rsp
call fcn.140052570
mov rbx, qword [rsp + 0xac0]
add rsp, 0xab0
pop rbp
ret