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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rsi, rcx
cmp dword [rcx + 0x2c], 3
jl 0x14003e742
mov eax, 0x8000ffff
jmp 0x14003e8b6
call fcn.140002dfc
mov rcx, rax
test rax, rax
je 0x14003e8d8
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp + 0x30], rbx
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
mov r13d, 0x104
sub eax, r13d
or eax, ecx
jge 0x14003e789
mov edx, r13d
lea rcx, [rbp + 0x30]
call fcn.1400028a0
mov rbx, qword [rbp + 0x30]
mov rdx, rbx
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x14003e7b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x14003e899
cmp eax, r13d
jb 0x14003e7c1
mov esi, 0x8000ffff
jmp 0x14003e899
call fcn.140002dfc
mov rcx, rax
test rax, rax
je 0x14003e8cd
mov rax, qword [rax]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rbp + 0x48], rdi
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, r13d
or eax, ecx
jge 0x14003e802
mov edx, r13d
lea rcx, [rbp + 0x48]
call fcn.1400028a0
mov rdi, qword [rbp + 0x48]
mov r9, rdi
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x14003e82e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x14003e87b
cmp eax, 0x6f
jne 0x14003e83a
mov esi, 0x8007006f
jmp 0x14003e87b
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.140009580
nop
lea rdx, [rbp - 0x10]
mov rcx, r15
call fcn.140009900
nop
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003e872
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc dword [rsi + 0x2c]
xor esi, esi
mov rdi, qword [rbp + 0x48]
lea rdx, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003e895
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp + 0x30]
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14003e8b4
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, esi
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002fa4
nop
mov ecx, 0x80004005
call fcn.140002fa4
int3
Function at 0x140043148
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
add rcx, 8
call fcn.140009900
lea r8, str..tmp
lea rdx, [rdi + 8]
lea rcx, [rsp + 0x60]
call fcn.1400315dc
nop
mov rdx, rax
lea rcx, [rdi + 0x10]
call fcn.140009900
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400431a5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dword [rsp + 0x20], 2
mov rdx, qword [rdi + 0x10]
lea rcx, [rdi + 0x20]
call fcn.14000f910
test eax, eax
js 0x140043210
mov byte [rdi + 0x38], 1
lea rcx, [rdi + 0x30]
call fcn.14000a484
cmp byte [rdi + 0x38], 0
jne 0x1400431d8
mov eax, 0x80004005
jmp 0x140043210
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, 3
lea rdx, [0x140070314]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140043207
call fcn.14000da04
test eax, eax
js 0x140043210
mov byte [rdi + 0xa0], 1
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x140043220
Capabilities:
Copy file
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [rcx + 0xa0], 0
mov rbx, rcx
jne 0x14004323d
mov eax, 1
jmp 0x140043270
add rcx, 0x18
call fcn.14004b344
mov edi, eax
test eax, eax
js 0x140043270
mov rdx, qword [rbx + 8]
xor r8d, r8d
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
mov byte [rbx + 0xa0], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14004327c
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140090008]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r14, rdx
mov rsi, rcx
or r12, 0xffffffffffffffff
mov qword [rsp + 0x48], r12
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rdx]
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400433fa
and dword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
mov r8, r14
mov rdx, qword [rsp + 0x48]
mov rcx, rsi
call fcn.140043434
mov ebx, eax
test eax, eax
js 0x1400433fa
xor edi, edi
cmp dword [rsp + 0x40], edi
jbe 0x1400433fa
mov dword [rsp + 0x50], 0xff
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x70]
mov edx, edi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400433d8
lea r8, [0x140073508]
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.1400315dc
nop
lea r8, [rsp + 0x70]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400315dc
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1400433a4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.14004327c
mov ebx, eax
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
test eax, eax
mov eax, r12d
js 0x1400433e5
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1400433d8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc edi
cmp edi, dword [rsp + 0x40]
jae 0x1400433fa
jmp 0x140043320
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1400433fa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x48]
cmp rcx, r12
je 0x14004340a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140052570
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x280
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004b394
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov esi, r8d
mov rbp, rdx
mov r14, rcx
test r8d, r8d
jns 0x14004b3cb
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rdx + rsi*2], r15w
jne 0x14004b3c1
test esi, esi
jne 0x14004b3d6
xor eax, eax
jmp 0x14004b4e0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x14007f5d8]
cvttsd2si edi, xmm0
movsxd rcx, edi
call fcn.14005212c
mov qword [rsp + 0x38], r15
mov r9d, esi
mov qword [rsp + 0x30], r15
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test eax, eax
jne 0x14004b4ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14004b443
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14004b4d6
mov qword [rsp + 0x38], r15
mov r9d, esi
mov qword [rsp + 0x30], r15
mov r8, rbp
mov dword [rsp + 0x28], r15d
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rbx
movsxd rdi, eax
call fcn.140052590
mov rcx, rdi
call fcn.14005212c
mov qword [rsp + 0x38], r15
mov r9d, esi
mov qword [rsp + 0x30], r15
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test eax, eax
je 0x14004b4d6
mov rcx, qword [r14 + 8]
lea r9, [rsp + 0x70]
mov r8d, edi
mov qword [rsp + 0x20], r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14004b4d3
call fcn.14000da04
mov edi, eax
jmp 0x14004b4d6
mov edi, r15d
mov rcx, rbx
call fcn.140052590
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14004bc1c
Capabilities:
Get file size
Read .ini file

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push r14
sub rsp, 0x40
mov rdi, qword [0x140092560]
mov rsi, rdx
cmp qword [rdi], 0
je 0x14004bc4f
mov eax, 0x80004005
jmp 0x14004bd0c
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x8000080
mov edx, 0x80000000
mov rcx, rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
or r14, 0xffffffffffffffff
mov rbx, rax
cmp rax, r14
jne 0x14004bc9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x14004bd0c
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x54], 0
jle 0x14004bcc2
mov eax, 0x80070057
jmp 0x14004bd0c
mov ebx, dword [rsp + 0x50]
mov eax, 2
mul rbx
cmovo rax, r14
mov rcx, rax
call fcn.14005212c
mov r9, rsi
mov qword [rdi], rax
mov r8d, ebx
lea rcx, str.Info
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x14004bd07
lea ecx, [rbx - 1]
cmp eax, ecx
sbb eax, eax
not eax
and eax, 0x8007000d
jmp 0x14004bd0c
mov eax, 0x8007000d
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14004c068
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov eax, dword [0x1400930c0]
xor ebx, ebx
test al, 1
jne 0x14004c0bd
or eax, 1
mov dword [0x1400930c0], eax
call fcn.140002dfc
mov rcx, rax
test rax, rax
je 0x14004c1b6
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [0x1400930c8], rax
lea rcx, [0x1400647b8]
call fcn.1400527fc
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14004c0d4
mov eax, 0x80070002
jmp 0x14004c1a6
test rdi, rdi
je 0x14004c1b6
mov rax, qword [0x1400930c8]
mov rdx, rdi
sub rdx, rax
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x14004c100
add rax, 2
test cx, cx
jne 0x14004c0ea
mov eax, ebx
jmp 0x14004c105
sbb eax, eax
or eax, 1
test eax, eax
je 0x14004c1a4
mov rsi, qword [0x140092560]
test rsi, rsi
je 0x14004c138
cmp qword [rsi], rbx
je 0x14004c12b
mov edx, 2
mov rcx, qword [rsi]
call fcn.140052590
mov edx, 8
mov rcx, rsi
call fcn.140052590
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.140009580
nop
mov rdx, rax
lea rcx, [0x1400930c8]
call fcn.140009900
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004c175
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ecx, 8
call fcn.1400520fc
test rax, rax
je 0x14004c189
mov qword [rax], rbx
jmp 0x14004c18c
mov rax, rbx
mov qword [0x140092560], rax
mov rdx, rdi
call fcn.14004bc1c
test eax, eax
cmovs ebx, eax
mov eax, ebx
jmp 0x14004c1a6
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80004005
call fcn.140002fa4
int3
Function at 0x14004cc1c
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14004cc3d
mov eax, 0x80070057
jmp 0x14004ccc1
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14004cc4b
xor eax, eax
jmp 0x14004ccc1
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140009580
nop
lea rcx, [rsp + 0x30]
call fcn.140009184
mov rbx, qword [rsp + 0x30]
test eax, eax
jne 0x14004cc73
mov edi, 0x8007000e
jmp 0x14004cca4
mov rcx, rbx
call fcn.14004cc1c
mov edi, eax
test eax, eax
jne 0x14004cca4
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14004cca4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14004ccbf
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004d900
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov bpl, r8b
mov r14, rdx
mov rsi, rcx
lea rdx, [0x1400706b8]
lea rcx, [rsp + 0x58]
call fcn.140009580
nop
lea rdx, [rsp + 0x58]
mov rcx, r14
call fcn.140009900
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
or r15d, 0xffffffff
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14004d95e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test rsi, rsi
jne 0x14004d96d
mov edi, 0x80070057
jmp 0x14004daca
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14004d981
xor edi, edi
jmp 0x14004da41
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140009580
nop
lea rcx, [rsp + 0x50]
call fcn.140009184
test eax, eax
jne 0x14004d9c8
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14004d9be
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, 0x8007000e
jmp 0x14004daca
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.14004cc1c
mov edi, eax
test eax, eax
jne 0x14004da1c
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14004da1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
lea rdx, [rbx - 0x18]
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14004da39
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14004da39
lea rdx, [rbx - 0x18]
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14004da39
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
test edi, edi
js 0x14004daca
lea r8, str.privateregistry.bin
mov rdx, rsi
mov rcx, r14
call fcn.140013dd4
test bpl, bpl
je 0x14004daca
call fcn.14004c9dc
test al, al
jne 0x14004daca
mov rcx, qword [r14]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14004daca
call fcn.14004e310
test eax, eax
jne 0x14004daca
lea rdx, [0x1400706b8]
lea rcx, [rsp + 0x68]
call fcn.140009580
nop
lea rdx, [rsp + 0x68]
mov rcx, r14
call fcn.140009900
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14004dab8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, str.privateregistry.user.bin
mov rdx, rsi
mov rcx, r14
call fcn.140013dd4
mov eax, edi
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004dd18
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 [0x140090008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rcx, qword [0x140092298]
mov esi, 0x64
and dword [0x140092574], 0
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
sete byte [0x1400920da]
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140092298]
lea rdx, [0x140092568]
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 [0x140092570], eax
cmp ecx, 1
jbe 0x14004ddae
cmp edi, 6
je 0x14004ddae
cmp edi, 0xb7
jne 0x14004dde5
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 [0x140092574], eax
lea eax, [rsi + 0x64]
cmp esi, 0x3e8
cmovae eax, esi
mov esi, eax
cmp ebp, 0x1e
jl 0x14004dd5f
mov rcx, qword [0x140092298]
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 0x14004de2c
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 [0x140092578], rax
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140052570
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 0x14004e310
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140090008]
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 0x14004e39e
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.140052570
add rsp, 0x80
pop rbp
ret
Function at 0x14004e3b4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
lea rsi, [0x1400922c0]
mov qword [rsp + 0x30], rsi
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14004e3e0
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
mov eax, dword [0x1400930d0]
test al, 1
jne 0x14004e497
or eax, 1
mov dword [0x1400930d0], eax
and qword [0x1400930d8], 0
and qword [0x1400930e0], 0
and qword [0x1400930f8], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x14004e497
lea rdx, [0x14007f2d0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400930d8], rax
test rax, rax
je 0x14004e469
lea rdx, [0x14007f2e8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400930e0], rax
lea rdx, [0x14007f300]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400930f8], rax
lea rdx, str.WriteEtwEventForZwAllocateVirtualMemory
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400930e8], rax
lea rdx, str.WriteEtwEventForZwFreeVirtualMemory
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400930f0], rax
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
lea rax, [0x1400930d8]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret

Function at 0x14004e674
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, r9
cmp byte [rcx + 0xb], 0
je 0x14004e6a0
cmp rdx, 0xffffffff80000002
jne 0x14004e714
cmp byte [rcx + 0xc], 0
jne 0x14004e714
test r8b, 6
je 0x14004e714
xor dil, dil
cmp byte [rcx + 0xa], dil
jne 0x14004e717
call fcn.140002dfc
mov rcx, rax
test rax, rax
je 0x14004e725
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
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.14000a5cc
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004e717
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14004e717
mov dil, 1
mov al, dil
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x80004005
call fcn.140002fa4
int3
Function at 0x14004e730
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rbx, r9
cmp byte [rcx + 0xb], 0
je 0x14004e764
cmp rdx, 0xffffffff80000002
jne 0x14004e813
cmp byte [rcx + 0xc], 0
jne 0x14004e813
test r8b, 6
je 0x14004e813
xor dil, dil
cmp byte [rcx + 0xa], dil
jne 0x14004e816
call fcn.140002dfc
mov rcx, rax
test rax, rax
je 0x14004e824
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140009504
nop
mov rbx, qword [rsp + 0x30]
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 + 0x50]
call fcn.14000a5cc
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14004e7f2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14004e816
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14004e816
mov dil, 1
mov al, dil
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov ecx, 0x80004005
call fcn.140002fa4
int3