joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001eecc
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov r14b, r8b
mov rsi, rdx
mov rdi, rcx
lea rdx, [0x14005a680]
lea rcx, [rbp + 0x38]
call fcn.1400044f4
nop
lea rdx, [rbp + 0x38]
mov rcx, rsi
call fcn.140004474
nop
mov rdx, qword [rbp + 0x38]
add rdx, 0xffffffffffffffe8
or r15d, 0xffffffff
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14001ef2a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test rdi, rdi
jne 0x14001ef39
mov ebx, 0x80070057
jmp 0x14001f094
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14001ef4d
xor ebx, ebx
jmp 0x14001f00e
mov rdx, rdi
lea rcx, [rbp + 0x30]
call fcn.1400044f4
nop
lea rcx, [rbp + 0x30]
call fcn.14001fda4
test eax, eax
jne 0x14001ef91
mov rdx, qword [rbp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14001ef87
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ebx, 0x8007000e
jmp 0x14001f094
mov rcx, qword [rbp + 0x30]
call fcn.14001e27c
mov ebx, eax
test eax, eax
jne 0x14001efe5
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14001efe5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rdx, qword [rbp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14001f006
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14001f006
mov rdx, qword [rbp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14001f006
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
test ebx, ebx
js 0x14001f094
lea r8, str.privateregistry.bin
mov rdx, rdi
mov rcx, rsi
call fcn.14001fe34
test r14b, r14b
je 0x14001f094
call fcn.140024278
test al, al
jne 0x14001f094
mov rcx, qword [rsi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14001f094
call fcn.14002433c
test eax, eax
jne 0x14001f094
lea rdx, [0x14005a680]
lea rcx, [rbp + 0x48]
call fcn.1400044f4
nop
lea rdx, [rbp + 0x48]
mov rcx, rsi
call fcn.140004474
nop
mov rdx, qword [rbp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14001f082
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, str.privateregistry.user.bin
mov rdx, rdi
mov rcx, rsi
call fcn.14001fe34
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001f2a4
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, 0x60
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [0x14006a198]
mov esi, 0x64
and dword [0x14006a338], 0
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14006a198]
lea rdx, [0x14006a330]
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_RegLoadAppKeyW]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [rdi - 0x20]
cmp ecx, 1
jbe 0x14001f327
cmp edi, 6
je 0x14001f327
cmp edi, 0xb7
jne 0x14001f35a
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 [0x14006a338], eax
lea eax, [rsi + 0x64]
cmp esi, 0x3e8
cmovae eax, esi
mov esi, eax
cmp ebp, 0x1e
jl 0x14001f2e2
mov rcx, qword [0x14006a198]
lea r8, [rsp + 0x30]
xorps xmm0, xmm0
xor eax, eax
xor edx, edx
mov dword [rsp + 0x50], eax
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140024670
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140020138
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, r9
mov rax, rcx
cmp byte [rcx + 0xb], 0
je 0x140020163
cmp rdx, 0xffffffff80000002
jne 0x14002015f
cmp byte [rcx + 0xc], 0
jne 0x14002015f
test r8b, 6
jne 0x140020163
mov cl, 1
jmp 0x1400201c8
xor cl, cl
cmp byte [rax + 0xa], cl
jne 0x1400201c8
lea rcx, [rsp + 0x40]
call fcn.14000dba8
nop
mov qword [rsp + 0x20], rbx
lea r9, str.Attempt_to_write_to_HKEY_LOCAL_MACHINE_without__setup_command
lea r8, str.VisualStudio
lea rdx, str.Warning:__s:__s:__s_n
lea rcx, [rsp + 0x40]
call fcn.14001d034
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
xor cl, cl
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400201c8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor cl, cl
mov al, cl
add rsp, 0x30
pop rbx
ret

Function at 0x1400201d0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, r9
mov rax, rcx
cmp byte [rcx + 0xb], 0
je 0x1400201fe
cmp rdx, 0xffffffff80000002
jne 0x1400201f7
cmp byte [rcx + 0xc], 0
jne 0x1400201f7
test r8b, 6
jne 0x1400201fe
mov cl, 1
jmp 0x14002029d
xor cl, cl
cmp byte [rax + 0xa], cl
jne 0x14002029d
lea rcx, [rsp + 0x50]
call fcn.14000dba8
nop
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140022c28
nop
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, str.Attempt_to_write_to_HKEY_LOCAL_MACHINE_without__setup_command
lea r8, str.VisualStudio
lea rdx, str.Warning:__s:__s:__s_n
lea rcx, [rsp + 0x50]
call fcn.14001d034
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14002027a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
xor cl, cl
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14002029d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor cl, cl
mov al, cl
add rsp, 0x40
pop rbx
ret
Function at 0x140021c48
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rcx
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x20], rax
cmp rax, 0xffffffffffffffff
jne 0x140021c8d
mov eax, 6
jmp 0x140021d87
lea rbx, [rsp + 0x20]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r15d, eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x3c], xmm0
and qword [rsp + 0x4c], 0
mov dword [rsp + 0x38], 0x1c
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140021d71
cmp dword [rsp + 0x44], r14d
jne 0x140021d43
mov r8d, dword [rsp + 0x40]
cmp r8d, r15d
je 0x140021d43
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140021d43
mov rcx, rax
call fcn.140046294
nop
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140021d1e
mov qword [rdx], rsi
add qword [rdi + 8], 8
jmp 0x140021d2b
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.140023520
jmp 0x140021d43
mov dword [rsp + 0x38], 0x1c
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140021cd8
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
jmp 0x140021d87
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140024670
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140024044
Capabilities:
Check if file exists
Read .ini file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor esi, esi
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14002407c
mov eax, 0x80004003
jmp 0x1400240f2
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14002408d
mov eax, 0x80070002
jmp 0x1400240f2
mov qword [rsp + 0x28], rbx
lea r9, [rsp + 0x30]
lea r8, [0x14005a680]
mov dword [rsp + 0x20], 0x104
lea rdx, str.InstallationId
lea rcx, str.Info
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
dec eax
cmp eax, 0x101
ja 0x1400240ed
mov byte [rdi], 1
lea rcx, [rdi + 8]
lea rdx, [rsp + 0x30]
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], si
jne 0x1400240d3
mov r8d, eax
lea rdx, [rsp + 0x30]
call fcn.140004934
xor eax, eax
jmp 0x1400240f2
mov eax, 0x8007000d
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140024670
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14002433c
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140067010]
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, 0x20
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 0x1400243ca
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.140024670
add rsp, 0x80
pop rbp
ret
Function at 0x14002c29c
Capabilities:
Parse pe header

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 r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14002c070
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002c070
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002c070
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002c070
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002c070
cmp dword [rcx + 0x84], 0xe
jbe 0x14002c070
cmp dword [rcx + 0xf8], esi
je 0x14002c070
mov ecx, r14d
call fcn.14002c1b8
mov ecx, 2
call fcn.14003217c
nop
cmp byte [0x140068ce8], 0
jne 0x14002c13a
mov r15d, 1
mov eax, r15d
xchg dword [0x140068cd8], eax
test ebx, ebx
jne 0x14002c0e3
mov rdi, qword [0x140067010]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140068ce0]
cmp rcx, rax
je 0x14002c0da
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140001a2c]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140068f48]
jmp 0x14002c0ef
cmp ebx, r15d
jne 0x14002c0f5
lea rcx, [0x140068f60]
call fcn.14002ff00
nop
test ebx, ebx
jne 0x14002c10c
lea rdx, [0x14004ad00]
lea rcx, [0x14004ace0]
call fcn.14002e564
lea rdx, [0x14004ad10]
lea rcx, [0x14004ad08]
call fcn.14002e564
movzx eax, byte [0x140068ce8]
test esi, esi
cmove eax, r15d
mov byte [0x140068ce8], al
jmp 0x14002c13a
mov ecx, 2
call fcn.1400321d0
test esi, esi
jne 0x14002c151
mov ecx, r14d
call fcn.14002c16c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14002c000

Function at 0x1400410ac
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 [0x140069dc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PerfCodeMarker
mov rcx, rbx
mov qword [0x140069dd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.UnInitPerf
mov rcx, rbx
mov qword [0x140069de0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BeginLogging
mov rcx, rbx
mov qword [0x140069dd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WriteLog
mov rcx, rbx
mov qword [0x140069de8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetPerformanceRegRoot
mov rcx, rbx
mov qword [0x140069df0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140069df8], rax
mov qword [0x140069e00], rbx
mov byte [0x140069e08], 1
add rsp, 0x20
pop rbx
ret
Function at 0x140041248
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov dil, dl
mov rbx, rcx
test rcx, rcx
jne 0x140041268
xor al, al
jmp 0x140041301
lea r8, [rsp + 0x68]
mov qword [rsp + 0x68], rbp
mov rdx, rbx
mov rcx, 0xffffffff80000002
call fcn.140041310
test eax, eax
jne 0x1400412fe
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400412fe
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbp
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x68]
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1400412c9
cmp esi, 0xea
jne 0x1400412fe
cmp dword [rsp + 0x50], ebp
je 0x1400412fe
mov r8, qword [str.Disable]
lea r9, [rsp + 0x60]
mov rdx, rbx
mov dword [rsp + 0x60], ebp
mov rcx, 0xffffffff80000002
call fcn.14004139c
mov ecx, dword [rsp + 0x60]
test eax, eax
cmovne ecx, ebp
test ecx, ecx
sete al
jmp 0x140041301
mov al, dil
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x14004139c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
and qword [rsp + 0x38], 0
mov rdi, r8
lea r8, [rsp + 0x38]
mov rbx, r9
call fcn.140041310
test eax, eax
jne 0x140041418
mov rcx, qword [rsp + 0x38]
test rcx, rcx
jne 0x1400413cf
lea eax, [rcx + 2]
jmp 0x140041418
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
mov dword [rsp + 0x34], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x30], 4
mov eax, SafeArrayGetDim
cmovne ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140041424
Capabilities:
Check if file exists

Disassembly:
test rdx, rdx
je 0x14004167d
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x990]
sub rsp, 0xa90
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rbp + 0x980], rax
xor r15d, r15d
mov esi, r9d
cmp qword [0x140069e00], r15
mov rdi, rdx
mov r14d, ecx
jne 0x140041658
mov dl, r8b
mov rcx, rdi
call fcn.140041248
test al, al
je 0x1400414d0
mov rdx, qword [str.Microsoft.Internal.Performance.CodeMarkers.dll]
lea rax, [rsp + 0x60]
sub rdx, rax
lea rcx, [rsp + 0x60]
mov ebx, 0x104
lea rax, [rbx + 0x7ffffefa]
test rax, rax
je 0x1400414bc
movzx eax, word [rdx + rcx]
test ax, ax
je 0x1400414bc
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x14004149a
test rbx, rbx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
jmp 0x140041592
cmp byte [rbp + 0x9e0], r15b
je 0x140041658
mov ebx, 0x104
lea rdx, [rbp + 0x370]
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
js 0x140041658
lea ecx, [rbx - 4]
mov r8d, 3
mov qword [rsp + 0x40], rcx
lea rax, [rbp + 0x580]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x170]
mov qword [rsp + 0x30], rcx
lea rax, [rbp + 0x780]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x54]
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x370]
call fcn.140044638
test eax, eax
jne 0x140041658
lea rax, str..dll
mov edx, ebx
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x170]
mov rax, qword [str.Microsoft.VisualStudio.CodeMarkers]
lea r8, [rsp + 0x54]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call fcn.140044218
test eax, eax
jne 0x140041658
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140041658
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140041658
mov rcx, rax
call fcn.1400410ac
mov rax, qword [0x140069df8]
test rax, rax
je 0x1400415c5
mov rcx, rdi
call rax
cmp qword [0x140069de0], r15
je 0x14004161a
cmp qword [0x140069dd8], r15
je 0x14004161a
cmp qword [0x140069dd0], r15
je 0x1400415fb
mov rcx, qword [str.VSCodeMarkersEnabled]
call qword [sym.imp.KERNEL32.dll_AddAtomW]
mov rdx, rdi
mov ecx, r14d
call qword [0x140069dd0]
jmp 0x14004161a
cmp qword [0x140069dc8], r15
je 0x14004161a
mov rcx, qword [str.VSCodeMarkersEnabled]
call qword [sym.imp.KERNEL32.dll_AddAtomW]
mov ecx, r14d
call qword [0x140069dc8]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], r15d
lea r8, str.AutoStartupLoggingEndMarker
mov rdx, rdi
mov rcx, 0xffffffff80000002
call fcn.14004139c
mov edx, dword [rsp + 0x50]
test eax, eax
cmovne edx, r15d
test edx, edx
mov dword [rsp + 0x50], edx
cmovne esi, edx
test esi, esi
je 0x140041658
mov ecx, esi
call fcn.1400411cc
mov rcx, qword [rbp + 0x980]
xor rcx, rsp
call fcn.140024670
mov rbx, qword [rsp + 0xad0]
add rsp, 0xa90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004142d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test rdx, rdx
je 0x14004167d
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x990]
sub rsp, 0xa90
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rbp + 0x980], rax
xor r15d, r15d
mov esi, r9d
cmp qword [0x140069e00], r15
mov rdi, rdx
mov r14d, ecx
jne 0x140041658
mov dl, r8b
mov rcx, rdi
call fcn.140041248
test al, al
je 0x1400414d0
mov rdx, qword [str.Microsoft.Internal.Performance.CodeMarkers.dll]
lea rax, [rsp + 0x60]
sub rdx, rax
lea rcx, [rsp + 0x60]
mov ebx, 0x104
lea rax, [rbx + 0x7ffffefa]
test rax, rax
je 0x1400414bc
movzx eax, word [rdx + rcx]
test ax, ax
je 0x1400414bc
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x14004149a
test rbx, rbx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
jmp 0x140041592
cmp byte [rbp + 0x9e0], r15b
je 0x140041658
mov ebx, 0x104
lea rdx, [rbp + 0x370]
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
js 0x140041658
lea ecx, [rbx - 4]
mov r8d, 3
mov qword [rsp + 0x40], rcx
lea rax, [rbp + 0x580]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x170]
mov qword [rsp + 0x30], rcx
lea rax, [rbp + 0x780]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x54]
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x370]
call fcn.140044638
test eax, eax
jne 0x140041658
lea rax, str..dll
mov edx, ebx
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x170]
mov rax, qword [str.Microsoft.VisualStudio.CodeMarkers]
lea r8, [rsp + 0x54]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call fcn.140044218
test eax, eax
jne 0x140041658
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140041658
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140041658
mov rcx, rax
call fcn.1400410ac
mov rax, qword [0x140069df8]
test rax, rax
je 0x1400415c5
mov rcx, rdi
call rax
cmp qword [0x140069de0], r15
je 0x14004161a
cmp qword [0x140069dd8], r15
je 0x14004161a
cmp qword [0x140069dd0], r15
je 0x1400415fb
mov rcx, qword [str.VSCodeMarkersEnabled]
call qword [sym.imp.KERNEL32.dll_AddAtomW]
mov rdx, rdi
mov ecx, r14d
call qword [0x140069dd0]
jmp 0x14004161a
cmp qword [0x140069dc8], r15
je 0x14004161a
mov rcx, qword [str.VSCodeMarkersEnabled]
call qword [sym.imp.KERNEL32.dll_AddAtomW]
mov ecx, r14d
call qword [0x140069dc8]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], r15d
lea r8, str.AutoStartupLoggingEndMarker
mov rdx, rdi
mov rcx, 0xffffffff80000002
call fcn.14004139c
mov edx, dword [rsp + 0x50]
test eax, eax
cmovne edx, r15d
test edx, edx
mov dword [rsp + 0x50], edx
cmovne esi, edx
test esi, esi
je 0x140041658
mov ecx, esi
call fcn.1400411cc
mov rcx, qword [rbp + 0x980]
xor rcx, rsp
call fcn.140024670
mov rbx, qword [rsp + 0xad0]
add rsp, 0xa90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400450d0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x14004519e
mov esi, 0x10000
lea rax, [rbx - 0x50000000]
cmp rax, 0x30000000
ja 0x14004511f
sub rbx, 0x8000000
jmp 0x140045195
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14004519e
cmp dword [rsp + 0x40], esi
jne 0x140045179
cmp qword [rsp + 0x38], rsi
jb 0x140045179
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x1400451a0
sub rbx, rsi
jmp 0x140045195
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x140045107
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1400451b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
mov esi, 0x10000
test rax, rax
je 0x1400451d8
sub rbx, rax
add rbx, rsi
cmp rbx, rdi
jae 0x140045275
lea rax, [rbx - 0x50000000]
cmp rax, 0x30000000
ja 0x1400451f9
add rbx, 0x8000000
jmp 0x1400451d8
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140045275
mov rcx, qword [rsp + 0x38]
cmp dword [rsp + 0x40], esi
jne 0x140045253
cmp rcx, rsi
jb 0x140045253
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x140045277
jmp 0x1400451d5
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x1400451d8
mov rax, rsi
sub rax, rcx
add rbx, rax
jmp 0x1400451d8
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret