joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009cf8
Capabilities:
Get common file path

Disassembly:
mov r9, r8
or r8, 0xffffffffffffffff
jmp fcn.140007f1c

Function at 0x140009fd0
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rbp - 8], rax
and dword [rbp - 0x10], 0
lea rax, [rbp - 0x18]
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
and dword [rsp + 0x48], 0
mov r9d, 0x220
and dword [rsp + 0x40], 0
mov r8d, SafeArrayAllocDescriptor
and dword [rsp + 0x38], 0
mov dl, 2
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov word [rbp - 0xc], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp - 0x20], eax
test eax, eax
je 0x14000a05e
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp - 0x20], ecx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp - 0x20]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140001020
add rsp, 0x80
pop rbp
ret

Function at 0x14000a5a4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rdx, qword [rdx]
lea rax, [r11 + 8]
mov rcx, qword [rcx]
lea r9, [r11 + 0x10]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
movzx edx, ax
or edx, 0x80070000
xor eax, eax
test ecx, ecx
cmovle edx, ecx
test edx, edx
cmovs eax, edx
add rsp, 0x38
ret

Function at 0x14000acfc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000ad73
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000ad73
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14000ad60
cmp rbx, rcx
jae 0x14000ad73
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14000ad4b
cmp rbx, rcx
jae 0x14000ad73
movzx eax, word [rbx]
neg ax
sbb rax, rax
and rax, rbx
jmp 0x14000ad75
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000b37c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
mov rbp, rsp
sub rsp, 0x40
mov rdx, qword [rcx + 0x88]
xor ebx, ebx
mov rdi, rcx
mov sil, 1
mov r12d, 0x80070000
test rdx, rdx
je 0x14000b452
and qword [rbp + 0x48], rbx
lea rax, [rbp + 0x48]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
jne 0x14000b3d7
mov rbx, qword [rbp + 0x48]
jmp 0x14000b3e6
movzx eax, cx
or eax, r12d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x14000b452
and dword [rbp + 0x30], 0
test rbx, rbx
je 0x14000b452
and dword [rbp + 0x38], 0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x38]
lea rax, [rbp + 0x30]
mov dword [rbp + 0x40], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.IsConnectedUserEnabled
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x14000b43b
cmp dword [rbp + 0x38], 4
jne 0x14000b435
cmp dword [rbp + 0x40], 4
je 0x14000b43b
and dword [rbp + 0x30], 0
jmp 0x14000b452
movzx eax, cx
or eax, r12d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x14000b452
cmp dword [rbp + 0x30], 0
setne sil
mov rdx, qword [rdi + 0x88]
test rdx, rdx
je 0x14000b512
and qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
jne 0x14000b492
mov rdi, qword [rbp - 0x10]
jmp 0x14000b4a3
movzx eax, cx
or eax, r12d
test ecx, ecx
cmovle eax, ecx
xor edi, edi
test eax, eax
js 0x14000b512
and dword [rbp + 0x30], 0
test rdi, rdi
je 0x14000b512
and dword [rbp + 0x38], 0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x38]
lea rax, [rbp + 0x30]
mov dword [rbp + 0x40], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.IsConnectedUserEnabled
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x14000b4f2
cmp dword [rbp + 0x38], 4
jne 0x14000b509
cmp dword [rbp + 0x40], 4
jne 0x14000b509
movzx eax, cx
or eax, r12d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x14000b509
cmp dword [rbp + 0x30], 0
setne sil
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x14000b520
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, sil
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000b908
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
mov rbp, rsp
sub rsp, 0x50
xor esi, esi
mov dword [rbp - 0x20], esi
test rdx, rdx
je 0x14000ba2a
mov rcx, rdx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbp - 8], rax
test rax, rax
je 0x14000ba47
mov ebx, esi
mov qword [rbp - 0x18], rbx
lea rdx, [0x140065000]
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], si
jne 0x14000b94f
mov r8d, eax
lea rcx, [rbp - 8]
call fcn.1400046e0
test eax, eax
js 0x14000ba3c
cmp qword [rbp - 8], rsi
je 0x14000ba0e
mov qword [rbp - 0x18], rsi
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbp - 8]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
cmove rbx, qword [rbp - 0x18]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x14000ba0e
test rbx, rbx
je 0x14000ba02
mov dword [rbp - 0x10], esi
mov dword [rbp - 0x18], 4
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x10]
xor r8d, r8d
lea rdx, str.UILanguage
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000ba02
cmp dword [rbp - 0x10], 4
jne 0x14000b9fe
cmp dword [rbp - 0x18], 4
je 0x14000ba02
mov eax, esi
jmp 0x14000ba05
mov eax, dword [rbp - 0x20]
cmp eax, 0xfffffffd
cmove eax, esi
mov dword [rbp - 0x20], eax
test rbx, rbx
je 0x14000ba1d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rbp - 8]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [rbp - 0x20]
mov eax, esi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret
mov ecx, eax
call fcn.1400312f0
nop
jmp 0x14000ba46
nop
mov ecx, 0x8007000e
call fcn.1400312f0
int3
Function at 0x14000c55c
Capabilities:
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, r8
movsxd rbp, edx
mov r8, rcx
mov rdx, rbp
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s
or rdi, 0xffffffffffffffff
mov rax, rdi
xor esi, esi
inc rax
cmp word [rbx + rax*2], si
jne 0x14000c592
mov r14d, 0x5c
cmp word [rbx + rax*2 - 2], r14w
je 0x14000c5bb
lea r8, [0x140068fb0]
mov rdx, rbp
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscat_s
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x14000c611
inc rdi
cmp word [rbx + rdi*2], si
jne 0x14000c5cb
movsxd rcx, edi
mov edx, 0xffdf
movzx eax, word [rbx + rcx*2 - 4]
sub ax, 0x53
test dx, ax
jne 0x14000c60d
mov word [rbx + rcx*2 - 4], r14w
lea ecx, [rdi - 1]
movsxd rdx, ecx
mov rcx, rbx
mov word [rbx + rdx*2], si
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, ebp
setne sil
mov eax, esi
jmp 0x14000c616
xor eax, eax
jmp 0x14000c616
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14000cbcc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], r8
push rdi
sub rsp, 0x30
mov r8, qword [rdx]
lea rax, [r11 + 0x18]
and qword [r11 - 0x10], 0
mov rsi, rcx
mov rcx, qword [rcx + 0x10]
xor edx, edx
and qword [r11 + 0x18], 0
xor r9d, r9d
mov qword [r11 - 0x18], rax
call fcn.14000bbc4
test eax, eax
je 0x14000cc7e
mov rbx, qword [rsp + 0x50]
lea rdx, str.BRANDINGDATA
mov rcx, rbx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14000cc6b
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 0xc8
jne 0x14000cc6b
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000cc6b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x14000cc6b
mov qword [rsi + 0x28], rax
mov al, 1
mov qword [rsi + 0x20], rbx
jmp 0x14000cc80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x14000cc7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000d620
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor r15d, r15d
mov rdi, r8
mov rbp, rdx
mov r14, rcx
cmp qword [rcx], r15
jne 0x14000d65d
mov eax, 0x8000ffff
jmp 0x14000d6d6
test rdi, rdi
jne 0x14000d669
mov eax, 0x80004003
jmp 0x14000d6d6
mov qword [r8], r15
lea rax, [rsp + 0x30]
mov rcx, qword [rcx]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0x208
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], r15d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x14000d6ab
cmp eax, 0xea
jne 0x14000d6c9
mov edx, dword [rsp + 0x30]
test edx, edx
je 0x14000d6c9
mov eax, dword [rsp + 0x34]
lea ecx, [rax - 1]
cmp ecx, 1
jbe 0x14000d6fd
cmp eax, 7
je 0x14000d6fd
mov ebx, 0x3f4
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov word [rsp + 0x246], r15w
test ebx, ebx
jne 0x14000d71a
lea rcx, [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rdi], rax
jmp 0x14000d6c9
shr edx, 1
xor ecx, ecx
dec edx
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov rsi, rax
test rax, rax
je 0x14000d76b
mov rcx, qword [r14]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x14000d75d
mov qword [rdi], rsi
jmp 0x14000d6c9
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x14000d6c9
mov eax, 0x8007000e
jmp 0x14000d6d6

Function at 0x14000d778
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
call fcn.14000d7fc
mov rsi, rax
mov eax, dword [rdi + 0x18]
test rsi, rsi
je 0x14000d7f1
and dword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
mov dword [rsp + 0x58], eax
lea rdx, str.StartupFlags
lea rax, [rsp + 0x60]
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x58]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000d7ee
cmp dword [rsp + 0x50], 4
mov eax, dword [rsp + 0x58]
je 0x14000d7f1
mov eax, dword [rdi + 0x18]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140011310
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x40
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
test rax, rax
je 0x1400113ba
cmp rax, 0xffffffffffffffff
je 0x1400113ba
cmp rax, 7
je 0x1400113ba
xor eax, eax
lea rdx, [rsp + 0x50]
lea rcx, str.vsconsoleoutput
mov dword [rsp + 0x50], eax
lea r8d, [rax + 2]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor eax, eax
cmp word [rsp + 0x50], 0x31
sete al
test eax, eax
je 0x1400113ba
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x58]
and dword [rsp + 0x28], 0
mov r8, rax
and dword [rsp + 0x20], 0
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400113ba
mov rdx, qword [rsp + 0x58]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov rcx, qword [rsp + 0x58]
test eax, eax
je 0x1400113b4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x40
pop rbx
ret
Function at 0x1400114d4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor ebp, ebp
mov esi, r9d
mov rdi, r8
mov r14, rdx
mov r15, rcx
test rcx, rcx
je 0x1400116a9
test rdx, rdx
je 0x1400116a9
test r8, r8
je 0x1400116a9
mov rbx, qword [rcx]
movzx eax, word [rbx]
test ax, ax
je 0x1400116a9
movzx ecx, ax
lea edi, [rbp + 0x20]
cmp cx, di
je 0x14001153e
movzx eax, cx
cmp cx, 9
jne 0x140011555
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharNextW]
mov rbx, rax
movzx eax, word [rax]
movzx ecx, ax
test ax, ax
jne 0x140011530
mov rdi, qword [rsp + 0x70]
test ax, ax
je 0x1400116a9
cmp esi, 5
jne 0x14001158f
mov qword [r14], rbx
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharNextW]
mov rbx, rax
cmp word [rax], bp
jne 0x14001156b
mov qword [r15], rax
mov dword [rdi], 5
mov eax, 1
jmp 0x1400116ab
sub ax, 0x2d
mov ecx, 0xfffd
mov r12d, 3
test cx, ax
je 0x1400115a8
mov dword [rdi], r12d
jmp 0x1400115ba
mov rcx, rbx
mov dword [rdi], 2
call qword [sym.imp.USER32.dll_CharNextW]
mov rbx, rax
cmp esi, 4
jne 0x1400115cb
cmp dword [rdi], 2
jne 0x1400115c8
mov dword [rdi], ebp
jmp 0x140011585
mov esi, r12d
cmp dword [rdi], esi
je 0x1400115d9
test esi, esi
je 0x1400115d9
mov dword [rdi], 1
mov r12d, 0x5e
mov qword [r14], rbx
mov esi, ebp
mov edi, ebp
lea r13d, [r12 - 0x3c]
lea r15d, [r12 - 0x3e]
movzx eax, word [rbx]
cmp r12w, ax
jne 0x140011602
xor edi, 1
movzx eax, r12w
jmp 0x14001163e
cmp r13w, ax
jne 0x140011637
mov eax, r13d
test edi, edi
jne 0x140011637
test esi, esi
jne 0x140011624
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [rbx]
mov qword [r14], rax
jmp 0x14001162b
mov word [rbx], r15w
mov ecx, r15d
mov eax, ebp
test esi, esi
sete al
mov esi, eax
movzx eax, cx
mov edi, ebp
test ax, ax
je 0x14001165c
test esi, esi
jne 0x14001164e
cmp ax, r15w
je 0x14001165c
cmp ax, 9
je 0x14001165c
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharNextW]
mov rbx, rax
jmp 0x1400115f0
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharNextW]
mov r15, qword [rsp + 0x60]
mov rcx, qword [r14]
mov word [rbx], bp
mov qword [r15], rax
jmp 0x140011694
lea rdx, [rdi + 2]
cmp word [rdx], bp
je 0x140011585
mov r8, rbx
mov rcx, rdi
sub r8, rdi
call sub.VCRUNTIME140.dll_memmove
lea rcx, [rdi + 4]
mov edx, r12d
call sub.VCRUNTIME140.dll_wcschr
mov rdi, rax
test rax, rax
jne 0x140011675
jmp 0x140011585
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400117dc
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 - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rbp + 0x190], rax
movups xmm0, xmmword [0x140064340]
mov r14, rcx
mov esi, 1
xor edi, edi
movdqu xmmword [rsp + 0x70], xmm0
xor ecx, ecx
call qword [sym.imp.ole32.dll_OleInitialize]
mov ebx, eax
test eax, eax
jns 0x140011846
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xf
jl 0x140011821
jmp 0x1400119e0
test r14, r14
je 0x140011927
lea rax, [rsp + 0x58]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140011927
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x64]
mov dword [rsp + 0x60], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.EnableSecurity
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400118c5
cmp dword [rsp + 0x50], 4
jne 0x1400118c5
xor esi, esi
cmp dword [rsp + 0x64], esi
sete sil
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rbp - 0x80]
mov dword [rsp + 0x68], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SecurityAppID
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140011914
cmp dword [rsp + 0x50], 1
jne 0x140011914
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x80]
call qword [sym.imp.ole32.dll_IIDFromString]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1400119e0
mov rax, qword [rsp + 0x70]
mov edi, 2
cmp rax, qword [0x140064340]
jne 0x140011961
mov rax, qword [rsp + 0x78]
cmp rax, qword [0x140064348]
jne 0x140011961
and qword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
xor ecx, ecx
mov dword [rsp + 0x28], edi
jmp 0x14001197f
and qword [rsp + 0x40], 0
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x38], 8
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
xor edx, edx
lea r9, [0x140068fb8]
mov ebx, eax
lea rcx, [0x140066980]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400119e0
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400119e0
mov rax, qword [rcx]
mov r8, rdi
mov edx, 1
call qword [rax + 0x18]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, ebx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140001020
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140011a10
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, SafeArrayAllocDescriptor
mov rbx, rax
mov rcx, rax
test rax, rax
je 0x140011a84
lea esi, [rbp + 2]
lea rdx, [0x140068f00]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcspbrk]
mov rcx, rax
test rax, rax
je 0x140011a84
cmp word [rax], si
jne 0x140011a72
mov edx, esi
add rcx, 2
call sub.VCRUNTIME140.dll_wcschr
mov rcx, rax
test rax, rax
je 0x140011a84
add rcx, 2
jmp 0x140011a77
cmp word [rax], bp
je 0x140011a7e
test rcx, rcx
jne 0x140011a3f
jmp 0x140011a84
add rcx, 2
jne 0x140011a95
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x140011a88
lea rcx, [rbx + rax*2]
mov r9d, 0xa0
mov r10d, 0x303f
movzx edx, word [rcx]
cmp bp, dx
je 0x140011b26
cmp dx, r9w
jae 0x140011abc
sub dx, 9
cmp dx, 4
setbe al
jmp 0x140011ade
cmp dx, r10w
ja 0x140011ae2
mov eax, 0x200b
cmp dx, ax
ja 0x140011afa
cmp r9w, dx
je 0x140011b26
mov eax, 0x2000
cmp dx, ax
jb 0x140011ae2
mov al, 1
test al, al
jne 0x140011b26
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 0x140011b26
lea eax, [r8 + 7]
cmp dx, ax
je 0x140011b26
mov eax, 0x3000
cmp dx, ax
je 0x140011b26
cmp dx, r10w
jne 0x140011ae2
add rcx, 2
jmp 0x140011aa1
Function at 0x1400124bc
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x9b0]
sub rsp, 0xab0
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rbp + 0x9a0], rax
mov rdx, qword [0x14008df70]
lea rcx, str.VSSKUEDITION
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, qword [0x14008ded0]
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 0x1400125e5
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.140001020
mov rbx, qword [rsp + 0xac0]
add rsp, 0xab0
pop rbp
ret
Function at 0x1400127d4
Capabilities:
Query environment variable
Query or enumerate registry value
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rdi, rcx
and qword [rbp - 0x20], 0
xor r9d, r9d
lea r8, str.VSPerfGCMode
lea rcx, [rbp - 0x10]
call fcn.140027a40
xor r8d, r8d
xor edx, edx
lea rcx, str.COMPLUS_GCHeapCount
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [0x14008ea48], eax
test rdi, rdi
je 0x140012913
mov rdx, qword [rbp - 0x10]
test rdx, rdx
je 0x140012913
and qword [rbp - 0x18], 0
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
test eax, eax
cmove rdi, qword [rbp - 0x18]
mov qword [rbp - 0x20], rdi
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x14001290d
or dword [rbp + 0x10], 0xffffffff
test rdi, rdi
je 0x1400128d1
and dword [rbp + 0x20], 0
mov dword [rbp + 0x28], 4
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x20]
xor r8d, r8d
lea rdx, str.IsServerGCEnabled
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400128ba
cmp dword [rbp + 0x20], 4
jne 0x1400128d1
cmp dword [rbp + 0x28], 4
jne 0x1400128d1
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x1400128d1
mov eax, dword [rbp + 0x10]
jmp 0x1400128d6
xor eax, eax
mov dword [rbp + 0x10], eax
cmp eax, 1
je 0x1400128f8
cmp dword [0x14008ea48], 0
jne 0x1400128f8
lea rdx, [0x14006a3c8]
lea rcx, str.COMPLUS_GCHeapCount
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test rdi, rdi
je 0x14001292b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbp - 0x20], 0
jmp 0x14001292b
mov eax, dword [0x14008ea48]
test eax, eax
jne 0x14001292b
lea rdx, [0x14006a3c8]
lea rcx, str.COMPLUS_GCHeapCount
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001294a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140012959
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x21005
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret