joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003b410
Capabilities:
Check for time delay via gettickcount
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x8a0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14008a020]
xor rax, rsp
mov qword [rsp + COleFrameHook::DoEnableModeless], rax
mov rbx, rdx
mov rsi, rcx
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400035c0
nop
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14003ced0
test al, al
je 0x14003b477
lea rcx, [rsp + 0x30]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
mov eax, 0x33
jmp 0x14003b503
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
cmp word [rbx], 0
je 0x14003b4d7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003b4d7
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x90]
mov edx, CDHtmlElementEventSink::AddRef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x14003b4c9
lea r8, [rsp + 0x90]
mov edx, CDHtmlElementEventSink::AddRef
mov rcx, rbx
call qword [sym.imp.MSVCR90.dll_wcscpy_s]
nop
lea rcx, [rsp + 0x30]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
xor eax, eax
jmp 0x14003b503
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7d0
jbe 0x14003b4f4
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14003cde0
nop
lea rcx, [rsp + 0x30]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
mov eax, 0x13
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.14004f900
lea r11, [rsp + 0x8a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14003b870
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x910
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x928], rbx
mov rax, qword [0x14008a020]
xor rax, rsp
mov qword [rsp + 0x900], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov word [rsp + 0x100], ax
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rsp + 0x102]
call sub.MSVCR90.dll_memset
mov edx, CDHtmlElementEventSink::AddRef
lea rcx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x98]
call sub.acdb18.dll_public:_void___cdecl_AdXREFString::constructor_wchar_t_const____ptr64____ptr64
mov rbx, rax
lea rdx, str._fonts
lea rcx, [rsp + 0x38]
call sub.acdb18.dll_public:_void___cdecl_AdXREFString::constructor_wchar_t_const____ptr64____ptr64
nop
mov r9, qword [rbx]
mov r8, rax
mov rdx, rdi
mov rcx, rbx
call qword [r9 + 0xe8]
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x38]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
nop
lea rcx, [rsp + 0x98]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
mov rax, rdi
mov rcx, qword [rsp + 0x900]
xor rcx, rsp
call fcn.14004f900
mov rbx, qword [rsp + 0x928]
add rsp, 0x910
pop rdi
ret
Function at 0x1400433e0
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x88], 0
mov rdi, rcx
je 0x1400433fb
xor eax, eax
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 0x90]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x140043417
mov eax, 0x26
add rsp, 0x30
pop rdi
ret
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rbx
lea r8, [0x140043ec0]
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov r9, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 0x26
test rax, rax
mov qword [rdi + 0x88], rax
cmove ebx, ecx
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400442e0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 8], 0
mov rbx, rcx
jne 0x1400442f8
xor al, al
add rsp, 0x30
pop rbx
ret
cmp qword [rcx + 0x18], 0
je 0x140044307
mov al, 1
add rsp, 0x30
pop rbx
ret
lea rax, [rsp + 0x40]
mov r9, rcx
lea r8, [0x1400445b0]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400442f0
mov qword [rbx + 0x18], rax
mov eax, dword [rsp + 0x40]
mov qword [rsp + 0x48], rdi
mov dword [rbx + 0x20], eax
xor edi, edi
nop word [rax + rax]
mov ecx, dword [rbx + 0x20]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4c9
call qword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x14004439e
lea ecx, [rax + 0x64]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jl 0x140044350
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x48]
mov qword [rbx + 0x18], 0
mov dword [rbx + 0x20], 0
xor al, al
add rsp, 0x30
pop rbx
ret
mov al, 1
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
Function at 0x140046700
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x950
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x14008a020]
xor rax, rsp
mov qword [rsp + CCmdTarget::EndWaitCursor], rax
mov rbx, rdx
xor esi, esi
mov word [rsp + 0x120], si
xor eax, eax
mov dword [rsp + 0x122], eax
mov word [rsp + 0x340], si
xor edx, edx
mov r8d, 0x1fe
lea rcx, [r11 - 0x616]
call sub.MSVCR90.dll_memset
mov word [rsp + 0x540], si
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x542]
call sub.MSVCR90.dll_memset
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x140046797
movzx eax, al
cmp eax, 3
jg 0x140046797
lea edi, [rsi + 1]
jmp 0x140046799
mov edi, esi
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x40]
test al, al
je 0x1400467ad
xor al, al
jmp 0x1400468d2
mov rcx, rbx
call sub.acdb18.dll_public:_wchar_t_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64_void_const___ptr64
mov qword [rsp + 0x40], 0x100
lea rcx, [rsp + 0x540]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], 0x100
lea rcx, [rsp + 0x340]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 0x100
lea r9, [rsp + 0x740]
mov r8d, 3
lea rdx, [rsp + 0x120]
mov rcx, rax
call qword [sym.imp.MSVCR90.dll__wsplitpath_s]
cmp word [rsp + 0x120], si
je 0x14004681a
mov al, 1
jmp 0x1400468d2
mov word [rsp + 0x130], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x132]
call sub.MSVCR90.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rax, str.SYSTEM_
lea rdx, str.FONTS_
test edi, edi
cmovne rdx, rax
lea rcx, [rsp + 0xc0]
call sub.acdb18.dll_public:_void___cdecl_AdXREFString::constructor_wchar_t_const____ptr64____ptr64
nop
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x60]
call sub.acdb18.dll_public:_void___cdecl_AdXREFString::constructor_wchar_t_const____ptr64____ptr64
nop
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x60]
mov rax, qword [rsp + 0x60]
call qword [rax + 0xf0]
mov rdx, rbx
lea rcx, [rsp + 0x60]
mov rax, qword [rsp + 0x60]
call qword [rax + 0xf0]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call sub.acdb18.dll_public:_class_AdXREFString_const____ptr64___cdecl_AdXREFString::operator_class_AdXREFString_const____ptr64____ptr64
nop
lea rcx, [rsp + 0x60]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
nop
lea rcx, [rsp + 0xc0]
call sub.acdb18.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64
mov al, 1
mov rcx, qword [rsp + 0x940]
xor rcx, rsp
call fcn.14004f900
lea r11, [rsp + 0x950]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14004e5ec
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x14008a020]
xor rax, rsp
mov qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu], rax
lea rax, [rsp + 0x38]
mov rdi, rcx
lea rdx, str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x14004e6fb
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov esi, 0x104
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x14004e6ec
cmp dword [rsp + 0x30], 2
mov byte [rsp + 0x143], bl
jne 0x14004e6ae
lea rcx, [rsp + 0x40]
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
add eax, 0xffffffff
cmp eax, 0x103
setbe bl
jmp 0x14004e6ec
lea rdx, [rsp + 0x40]
mov ecx, ebx
sub rdx, rdi
lea rax, [rsi + 0x7ffffefa]
cmp rax, rbx
je 0x14004e6d7
mov al, byte [rdx + rdi]
cmp al, bl
je 0x14004e6d7
mov byte [rdi], al
add rdi, 1
sub rsi, 1
jne 0x14004e6b8
cmp rsi, rbx
jne 0x14004e6e5
sub rdi, 1
mov ecx, 0x8007007a
cmp ecx, ebx
mov byte [rdi], bl
setge bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14004e6fd
xor eax, eax
mov rcx, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
xor rcx, rsp
call fcn.14004f900
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14004feaf
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14008a020]
jne 0x14004f91a
rol rcx, 0x10
test cx, 0xffff
jne 0x14004f916
repz ret
ror rcx, 0x10
jmp 0x14004fe08
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14008c270]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14008c368]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14004fe8d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14008c270]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14004feaf
mov rax, qword [rsp + 0x88]
mov qword [0x14008c368], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14008c308], rax
mov rax, qword [0x14008c368]
mov qword [0x14008c1e0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14008c2f0], rax
mov dword [0x14008c1d0], 0xc0000409
mov dword [0x14008c1d4], 1
mov rax, qword [0x14008a020]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14008a028]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14008c268], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14005e1d8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14008c268], 0
jne 0x14004ff36
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1406440b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140644237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406440e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406440c7
add dl, dl
jne 0x1406440ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14064414e
xor eax, eax
add dl, dl
jne 0x1406440fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140644205
add dl, dl
jne 0x14064410e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14064411b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140644128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140644135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140644142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406440d6
mov eax, 1
add dl, dl
jne 0x14064415e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14064416b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140644153
sub eax, ebx
mov ebx, 1
jne 0x1406441a4
mov ecx, 1
add dl, dl
jne 0x140644186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140644193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14064417b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406440d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406441c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406441cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406441b5
cmp eax, 0x7d00
jae 0x1406441f3
cmp eax, 0x500
jb 0x1406441ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406440d6
cmp eax, 0x7f
ja 0x1406441f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406440d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14064422a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406440d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140011348
Capabilities:
Terminate process

Disassembly:
jmp 0x140016d80
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011429
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400180d0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400180f0
xor al, al
jmp 0x140018171
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140018103
xor al, al
jmp 0x140018171
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001812d
xor al, al
jmp 0x140018171
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140018141
xor al, al
jmp 0x140018171
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140018153
xor al, al
jmp 0x140018171
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001816f
xor al, al
jmp 0x140018171
mov al, 1
add rsp, 0x38
ret
Function at 0x140001280
Capabilities:
Check if file exists
Get common file path

Disassembly:
push rbx
sub rsp, 0x460
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov r9d, 1
lea rax, [rsp + 0x30]
xor r8d, r8d
lea edx, [r9 + 0x22]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea r8, str.OEMUser_Experience_Improvement_ProgramConfigEnabledUEIP.dat
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.140001548
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
call fcn.140001370
lea rdx, str.isEnableUEIPDatExist:__d__isUWPInstalled:__d
lea rcx, [rsp + 0x240]
movzx r8d, bl
movzx r9d, al
call fcn.1400014c0
mov r9d, 1
lea rax, [rsp + 0x30]
lea edx, [r9 + 0x22]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea r8, str.OEMUser_Experience_Improvement_ProgramConfigEnabledUEIP.dat
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.140001548
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140001352
call fcn.140001370
test al, al
je 0x140001352
mov al, 1
jmp 0x140001354
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140001510
add rsp, 0x460
pop rbx
ret

Function at 0x140001370
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub rsp, 0x258
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r9d, 1
lea rax, [rsp + 0x30]
xor r8d, r8d
lea edx, [r9 + 0x1b]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea r8, str.Packages_
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.140001548
lea r8, str.AcerIncorporated.UserExperienceImprovementProgramV_48frkmn4z8aw4
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.140001548
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400013fe
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140001510
add rsp, 0x258
ret
shr al, 4
and al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140001510
add rsp, 0x258
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004490]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400044a0]
mov dword [rax], 1
mov rax, qword [0x1400044b0]
mov dword [rax], 1
mov rax, qword [0x140004430]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004480]
mov dword [0x140008020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140004550]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140004530]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400043e0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001cf0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001d60
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x140008124]
mov r12, rcx
test ebx, ebx
jle 0x140001e90
mov rax, qword [0x140008128]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x140001dab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140001e35
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140001d90
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001eb2
mov rax, qword [0x140008128]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140008128]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001e97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001e2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001e40
add dword [0x140008124], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x140008128]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001e2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x140001db8
mov rax, qword [0x140008128]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002430
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x140008180]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140008160]
test rbx, rbx
je 0x14000248c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140002483
test r12, r12
je 0x140002483
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002468
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400026c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400026d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400026e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret