joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011638
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 [0x1400922d0]
xor rax, rsp
mov qword [rbp + 0x190], rax
movups xmm0, xmmword [0x140067c30]
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 0x1400116a5
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xf
jl 0x14001167d
lfence
jmp 0x140011842
lfence
test r14, r14
je 0x140011789
lea rax, [rsp + 0x50]
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 0x140011789
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x64], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.EnableSecurity
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140011727
cmp dword [rsp + 0x60], 4
jne 0x140011727
xor esi, esi
cmp dword [rsp + 0x68], esi
sete sil
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rbp - 0x80]
mov dword [rsp + 0x6c], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SecurityAppID
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140011776
cmp dword [rsp + 0x60], 1
jne 0x140011776
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x80]
call qword [sym.imp.ole32.dll_IIDFromString]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x140011842
mov rax, qword [rsp + 0x70]
mov edi, 2
cmp rax, qword [0x140067c30]
jne 0x1400117c3
mov rax, qword [rsp + 0x78]
cmp rax, qword [0x140067c38]
jne 0x1400117c3
and qword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
xor ecx, ecx
mov dword [rsp + 0x28], edi
jmp 0x1400117e1
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, [0x14006d448]
mov ebx, eax
lea rcx, [0x14006abf0]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140011842
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140011842
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 0x14001186c
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 0x1400118e0
lea esi, [rbp + 2]
lea rdx, [0x14006d390]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcspbrk]
mov rcx, rax
test rax, rax
je 0x1400118e0
cmp word [rax], si
jne 0x1400118ce
mov edx, esi
add rcx, 2
call sub.VCRUNTIME140.dll_wcschr
mov rcx, rax
test rax, rax
je 0x1400118e0
add rcx, 2
jmp 0x1400118d3
cmp word [rax], bp
je 0x1400118da
test rcx, rcx
jne 0x14001189b
jmp 0x1400118e0
add rcx, 2
jne 0x1400118f1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x1400118e4
lea rcx, [rbx + rax*2]
mov r9d, 0xa0
mov r10d, 0x303f
movzx edx, word [rcx]
cmp bp, dx
je 0x140011982
cmp dx, r9w
jae 0x140011918
sub dx, 9
cmp dx, 4
setbe al
jmp 0x14001193a
cmp dx, r10w
ja 0x14001193e
mov eax, 0x200b
cmp dx, ax
ja 0x140011956
cmp r9w, dx
je 0x140011982
mov eax, 0x2000
cmp dx, ax
jb 0x14001193e
mov al, 1
test al, al
jne 0x140011982
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 0x140011982
lea eax, [r8 + 7]
cmp dx, ax
je 0x140011982
mov eax, 0x3000
cmp dx, ax
je 0x140011982
cmp dx, r10w
jne 0x14001193e
add rcx, 2
jmp 0x1400118fd
Function at 0x14001223c
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x9b0]
sub rsp, 0xab0
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rbp + 0x9a0], rax
mov rdx, qword [0x140092f50]
lea rcx, str.VSSKUEDITION
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, qword [0x140092eb0]
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 0x140012365
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 0x140013a28
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x48
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov rbx, r9
mov rdx, qword [rdx]
mov r14, r8
mov rsi, rcx
cmp dword [rdx - 0x10], 0
jne 0x140013a60
mov eax, 0x80070057
jmp 0x140013ae4
mov rcx, qword [rcx]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rbx
xor r8d, r8d
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lfence
test ecx, ecx
jns 0x140013a95
mov eax, ecx
jmp 0x140013ae4
mov ecx, dword [rbx]
call fcn.140026f10
mov qword [r14], rax
lea r9, [rsp + 0x30]
mov rdx, qword [rdi]
xor r8d, r8d
mov rcx, qword [rsi]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140013ad4
lfence
jmp 0x140013a91
mov eax, dword [rsp + 0x30]
sub eax, 3
neg eax
sbb eax, eax
and eax, 0x80004005
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001020
add rsp, 0x48
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x140013afc
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
mov edi, edx
mov rbx, rcx
xor esi, esi
mov dword [rax - 0x18], esi
xor eax, eax
mov qword [rcx], rax
call fcn.140002950
mov rcx, rax
test rax, rax
je 0x140013bb6
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea ecx, [rsi + 1]
mov dword [rsp + 0x30], ecx
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
mov edx, 0x105
sub eax, edx
or ecx, eax
jge 0x140013b5d
mov rcx, rbx
call fcn.140002d40
mov rax, qword [rbx]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, edi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140013b81
mov eax, esi
jmp 0x140013b8f
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test eax, eax
js 0x140013bc1
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140013bc1
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], si
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400327c0
int3
mov ecx, 0x80070057
call fcn.1400327c0
int3
Function at 0x140014718
Capabilities:
Check for time delay via gettickcount
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rcx, qword [0x1400934f8]
mov esi, 0x64
and dword [0x1400932b4], 0
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
sete byte [0x1400932a0]
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x1400934f8]
lea rdx, [0x1400924d8]
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0xf003f
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegLoadAppKeyW]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
lea ecx, [rdi - 0x20]
mov dword [0x1400932b0], eax
cmp ecx, 1
jbe 0x1400147ae
cmp edi, 6
je 0x1400147ae
cmp edi, 0xb7
jne 0x1400147e5
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
inc ebp
add dword [0x1400932b4], eax
lea eax, [rsi + 0x64]
cmp esi, 0x3e8
cmovae eax, esi
mov esi, eax
cmp ebp, 0x1e
jl 0x14001475f
mov rcx, qword [0x1400934f8]
lea r8, [rsp + 0x38]
xorps xmm0, xmm0
xor eax, eax
xor edx, edx
mov dword [rsp + 0x58], eax
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x14001482c
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x30]
mov qword [0x1400932b8], rax
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140001020
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140014ff0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
mov rdi, rcx
mov rcx, rbp
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ebx, ebx
mov esi, eax
test eax, eax
jne 0x14001502a
mov rcx, rdi
call fcn.140002fb0
jmp 0x140015094
test esi, esi
js 0x1400150ab
lfence
mov rax, qword [rdi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, esi
or ecx, eax
jge 0x140015052
lfence
mov edx, esi
mov rcx, rdi
call fcn.140002d40
mov rdx, qword [rdi]
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rdi]
test rcx, rcx
jne 0x14001506d
mov eax, ebx
jmp 0x14001507b
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test eax, eax
js 0x1400150ab
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x1400150ab
mov dword [rcx - 0x10], eax
mov rcx, qword [rdi]
mov edx, eax
mov word [rcx + rdx*2], bx
mov ebx, 1
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.1400327c0
int3
Function at 0x1400154b0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rdx, str.InitPerf
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.InitPerf2
mov rcx, rbx
mov qword [0x1400932f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PerfCodeMarker
mov rcx, rbx
mov qword [0x140093300], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.UnInitPerf
mov rcx, rbx
mov qword [0x140092f90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BeginLogging
mov rcx, rbx
mov qword [0x140093308], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WriteLog
mov rcx, rbx
mov qword [0x140093310], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetPerformanceRegRoot
mov rcx, rbx
mov qword [0x140093318], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140093320], rax
mov qword [0x140093328], rbx
mov byte [0x140092f98], 1
add rsp, 0x20
pop rbx
ret

Function at 0x1400155f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor esi, esi
mov rdi, r9
mov rax, r8
mov rbx, rdx
test r9, r9
je 0x1400156bc
mov rcx, qword [rcx]
xor r8d, r8d
mov qword [rsp + 0x28], r9
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
mov rdx, rax
mov dword [rsp + 0x30], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test eax, eax
jne 0x1400156a5
test rbx, rbx
je 0x1400156a5
cmp dword [rdi], esi
jbe 0x1400156a2
mov ecx, dword [rsp + 0x30]
sub ecx, 1
je 0x140015687
sub ecx, 1
je 0x140015687
cmp ecx, 5
jne 0x140015698
test byte [rdi], 1
jne 0x140015698
mov eax, dword [rdi]
shr eax, 1
cmp eax, 1
jb 0x140015698
mov ecx, dword [rdi]
shr rcx, 1
cmp word [rbx + rcx*2 - 2], si
jne 0x140015698
cmp eax, 1
jbe 0x1400156a5
cmp word [rbx + rcx*2 - 4], si
jne 0x140015698
jmp 0x1400156a5
test byte [rdi], 1
jne 0x140015698
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x1400156a5
mov word [rbx], si
mov eax, SafeArrayGetDim
jmp 0x1400156a7
mov word [rbx], si
mov eax, edx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001020
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80004005
call fcn.1400327c0
int3
Function at 0x1400174a4
Capabilities:
Load windows common language runtime

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [0x140093a50]
test rax, rax
jne 0x140017529
lea rcx, [0x14006e8f0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x1400174f0
lea rdx, str.CLRCreateInstance
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140093a50], rax
jmp 0x1400174f7
mov rax, qword [0x140093a50]
test rax, rax
jne 0x140017529
lea r8, str.Could_not_locate_appropriate_CLR_version._Try_rebooting__reinstalling.
lea rdx, str.VisualStudio
lea ecx, [rax + 1]
call fcn.140003ef0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x14001757c
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
lea rdx, [0x14006ea08]
lea rcx, [0x14006ea18]
call rax
mov ebx, eax
mov rcx, qword [rsp + 0x20]
test eax, eax
js 0x14001756f
test rcx, rcx
je 0x14001756a
mov rax, qword [rcx]
lea rdx, [0x140017590]
call qword [rax + 0x38]
mov ebx, eax
mov rcx, qword [rsp + 0x20]
jmp 0x14001756f
mov ebx, 0x8000ffff
test rcx, rcx
je 0x14001757a
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140001020
add rsp, 0x30
pop rbx
ret

Function at 0x140017874
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, rdx
mov qword [rbp - 0x30], rdx
xor edi, edi
mov rcx, qword [rcx + 0x10]
call fcn.14000dae0
mov r14, rax
test rax, rax
je 0x140017951
and dword [rbp - 0x28], edi
and dword [rbp - 0x24], edi
mov dword [rbp - 0x18], 4
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x24]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x28]
xor r8d, r8d
lea rdx, str.SegmentSize
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140017951
cmp dword [rbp - 0x28], 4
jne 0x140017951
and qword [rbp - 0x20], rdi
mov rcx, qword [rsi]
mov rax, qword [rcx]
lea r8, [rbp - 0x20]
lea rdx, [0x1400797a8]
call qword [rax + 0x18]
mov edi, eax
test eax, eax
jns 0x14001792f
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140017951
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x140017951
mov rcx, qword [rbp - 0x20]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, dword [rbp - 0x24]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
mov edi, eax
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140017951
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsi]
test rcx, rcx
je 0x14001795f
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, edi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140001020
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400191b0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x1400191ec
xor al, al
jmp 0x14001922a
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x1400191fd
xor al, al
jmp 0x14001922a
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [rcx + r8]
cmp rbx, rax
jb 0x140019224
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x140019224
mov al, 1
jmp 0x14001922a
xor al, al
jmp 0x14001922a
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001020
add rsp, 0x60
pop rbx
ret

Function at 0x14001b250
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov r9, qword [r8]
xor ebx, ebx
test r9, r9
jne 0x14001b265
lea ecx, [rbx + 0xd]
jmp 0x14001b29a
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x14001b269
mov rdx, qword [rdx]
lea eax, [rax*2 + 2]
mov rcx, qword [rcx]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, eax
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
add rsp, 0x30
pop rbx
ret
Function at 0x14001bcd8
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x140093a81], 0
jne 0x14001be5b
lea rdx, str.user32.dll
lea rcx, [rsp + 0x30]
call fcn.14001be64
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 0x14001bd2b
lfence
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
test rbx, rbx
je 0x14001bd8e
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 [0x140093a98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetThreadDpiHostingBehavior
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140093a88], rax
lea rdx, str.shcore.dll
lea rcx, [rsp + 0x38]
call fcn.14001be64
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 0x14001bdce
lfence
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
test rbx, rbx
je 0x14001be11
lea rdx, str.GetDpiForMonitor
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetProcessDpiAwareness
mov rcx, rbx
mov qword [0x140093aa0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetProcessDpiAwareness
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140093a90], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
test rax, rax
je 0x14001be54
mov edx, 0x58
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edx, 0x5a
mov rcx, rbx
mov dword [0x140093684], eax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov rdx, rbx
xor ecx, ecx
mov dword [0x140093680], eax
call qword [sym.imp.USER32.dll_ReleaseDC]
mov byte [0x140093a81], 1
add rsp, 0x20
pop rbx
ret
Function at 0x14001be64
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
mov qword [rsp + 0x28], rsi
call fcn.140002950
mov rcx, rax
test rax, rax
je 0x14001bf8c
mov rax, qword [rax]
call qword [rax + 0x18]
lea rcx, [rax + 0x18]
mov qword [rsp + 0x28], rcx
lea edx, [rsi + 1]
sub edx, dword [rcx - 8]
mov eax, dword [rcx - 0xc]
sub eax, 0x104
or eax, edx
jge 0x14001beda
mov edx, 0x104
lea rcx, [rsp + 0x28]
call fcn.140002d40
mov rcx, qword [rsp + 0x28]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rax, qword [rsp + 0x28]
test rax, rax
jne 0x14001bef3
mov ecx, esi
jmp 0x14001bf10
movsxd rdx, dword [rax - 0xc]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov rcx, rax
test eax, eax
js 0x14001bf9a
mov rax, qword [rsp + 0x28]
cmp ecx, dword [rax - 0xc]
jg 0x14001bf9a
mov dword [rax - 0x10], ecx
mov ecx, ecx
mov rax, qword [rsp + 0x28]
mov word [rax + rcx*2], si
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.14000a324
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffffffe8
call fcn.140002a70
add rax, 0x18
mov qword [rbx], rax
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14001bf6c
lfence
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rax, rbx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400327c0
nop
jmp 0x14001bf99
nop
mov ecx, 0x80070057
call fcn.1400327c0
int3