joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009170
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1402d68f8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
lea rcx, [0x1400092a0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [0x1402e89b8]
test rcx, rcx
je 0x14000927a
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140009263
lea rcx, [rsp + 0x20]
call fcn.140008bb0
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rdx, str.dinotify.exe
lea rcx, [rsp + 0x20]
call fcn.140007c10
cmp rax, 0xffffffffffffffff
jne 0x140009246
mov rcx, qword [0x1402e89b0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x201
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x1402e89b0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x202
call qword [sym.imp.USER32.dll_SendMessageW]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x14000922f
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
inc r8
call fcn.1400037a0
mov rcx, qword [0x1402e89b8]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1400091b0
jmp 0x140009263
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x140009263
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
inc r8
call fcn.1400037a0
xor eax, eax
mov qword [0x1402e89b8], rax
mov qword [0x1402e89b0], rax
mov qword [0x1402e89c0], rax
mov eax, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401e30a0
add rsp, 0x58
ret

Function at 0x1400099d0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rbp - 0x59], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1402d68f8]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rdx
xor edx, edx
lea r8d, [rdx + 0x70]
lea rcx, [rbp - 0x49]
call fcn.1401e7f40
mov qword [rbp - 0x61], 7
xor edi, edi
mov qword [rbp - 0x69], rdi
mov word [rbp - 0x79], di
cmp word [rbx], di
jne 0x140009a2b
mov r8d, edi
jmp 0x140009a3a
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rbx + r8*2], di
jne 0x140009a30
mov rdx, rbx
lea rcx, [rbp - 0x79]
call fcn.140003650
nop
lea rdx, [rbp - 0x79]
lea rcx, [rbp + 0x27]
call fcn.1400097e0
nop
mov r8, qword [rbp - 0x61]
cmp r8, 8
jb 0x140009a6f
inc r8
mov rdx, qword [rbp - 0x79]
lea rcx, [rbp - 0x79]
call fcn.1400037a0
mov dword [rbp - 0x49], VarBstrFromDisp
lea rax, [rbp + 0x27]
cmp qword [rbp + 0x3f], 8
cmovae rax, qword [rbp + 0x27]
mov qword [rbp - 0x31], rax
lea rax, [rbp + 0x27]
cmovae rax, qword [rbp + 0x27]
mov qword [rbp - 0x21], rax
mov dword [rbp - 0x45], 0x440
mov qword [rbp - 0x41], rdi
mov dword [rbp - 0x19], 1
lea rax, str.explore
mov qword [rbp - 0x39], rax
lea rcx, [rbp - 0x49]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rbx, qword [rbp + 0x1f]
mov r8, qword [rbp + 0x3f]
cmp r8, 8
jb 0x140009ada
inc r8
mov rdx, qword [rbp + 0x27]
lea rcx, [rbp + 0x27]
call fcn.1400037a0
mov rax, rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1401e30a0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14000a040
Capabilities:
Create process on windows

Disassembly:
push rdi
sub rsp, 0x110
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x120], rbx
mov rax, qword [0x1402d68f8]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x88], 7
xor ebx, ebx
mov qword [rsp + 0x80], rbx
mov word [rsp + 0x70], bx
cmp word [rdx], bx
jne 0x14000a091
mov r8d, ebx
jmp 0x14000a09f
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], bx
jne 0x14000a095
lea rcx, [rsp + 0x70]
call fcn.140003650
nop
mov ecx, 0x410
call fcn.14002bcc0
mov rdi, rax
lea rdx, [rsp + 0x70]
cmp qword [rsp + 0x88], 8
cmovae rdx, qword [rsp + 0x70]
mov r8, rax
nop
movzx ecx, word [rdx]
mov word [r8], cx
lea rdx, [rdx + 2]
lea r8, [r8 + 2]
test cx, cx
jne 0x14000a0d0
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0x90]
call fcn.1401e7f40
mov dword [rsp + 0x90], VarBstrFromDisp
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rax, qword [rsp + 0x58]
test rax, rax
cmovne rbx, rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.14002bcb8
nop
mov r8, qword [rsp + 0x88]
cmp r8, 8
jb 0x14000a191
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.1400037a0
mov rax, rbx
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1401e30a0
mov rbx, qword [rsp + 0x120]
add rsp, 0x110
pop rdi
ret
Function at 0x14000a1c0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x68]
sub rsp, 0x160
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1402d68f8]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov qword [rbp - 0x30], 7
xor ebx, ebx
mov qword [rbp - 0x38], rbx
mov word [rbp - 0x48], bx
cmp word [rdx], bx
jne 0x14000a20a
mov r8d, ebx
jmp 0x14000a21a
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], bx
jne 0x14000a210
lea rcx, [rbp - 0x48]
call fcn.140003650
nop
mov ecx, 0x410
call fcn.14002bcc0
mov rdi, rax
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
mov r8, rax
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [rdx]
mov word [r8], cx
lea rdx, [rdx + 2]
lea r8, [r8 + 2]
test cx, cx
jne 0x14000a250
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x20]
call fcn.1401e7f40
mov dword [rbp - 0x20], 0x68
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x50], eax
mov word [rbp - 0x4c], 0x1000
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x70], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x68]
mov edx, 0x8b
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov r8d, 0x2000
mov dl, 1
lea rcx, [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp - 0x58], 0x20
mov rcx, qword [rsp + 0x70]
mov qword [rbp - 0x60], rcx
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
lea r9d, [rax + 0x10]
lea r8, [rbp - 0x60]
mov edx, 0x19
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
lea rcx, [rbp - 0x80]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x430
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rax, qword [rbp - 0x78]
test rax, rax
cmovne rbx, rax
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.14002bcb8
nop
mov r8, qword [rbp - 0x30]
cmp r8, 8
jb 0x14000a3cd
inc r8
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x48]
call fcn.1400037a0
mov rax, rbx
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1401e30a0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140011030
Capabilities:
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xa0
mov rax, qword [0x1402d68f8]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rax, qword [rcx + 0x10]
xor r14d, r14d
mov rbp, qword [rsp + 0xf0]
mov rsi, r9
mov dword [rsp + 0x20], VarBstrFromDisp
mov rdi, r8
mov dword [rsp + 0x24], 0x40
mov rbx, rdx
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x50], 1
cmp byte [rax + 0x815], r14b
je 0x1400110a4
mov rcx, rdx
call fcn.14001fa50
mov ecx, dword [rsp + 0x50]
test al, al
cmovne ecx, r14d
mov dword [rsp + 0x50], ecx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rsi
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1401e30a0
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140016bd0
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402d68f8]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rcx
lea rcx, [rbp - 0x29]
call fcn.14001ef40
nop
mov rdx, rax
lea rcx, [rbp + 0x2f]
call fcn.1400097e0
nop
mov r8, qword [rbp - 0x11]
cmp r8, 8
jb 0x140016c35
inc r8
mov rdx, qword [rbp - 0x29]
lea rcx, [rbp - 0x29]
call fcn.1400037a0
mov qword [rbp - 0x11], 7
xor esi, esi
mov qword [rbp - 0x19], rsi
mov word [rbp - 0x29], si
call fcn.14001f610
test al, al
je 0x140016cba
lea r8d, [rsi + 0x16]
lea rdx, str.AsusSetup_Recovery.ini
mov rcx, rbx
call fcn.140003650
mov r8, rbx
lea rdx, [rbp + 0x2f]
lea rcx, [rbp - 0x49]
call fcn.14001af30
lea rdi, [rbx + 0x20]
mov rdx, rax
mov rcx, rdi
call fcn.140007ba0
mov r8, qword [rbp - 0x31]
cmp r8, 8
jb 0x140016c9c
inc r8
mov rdx, qword [rbp - 0x49]
lea rcx, [rbp - 0x49]
call fcn.1400037a0
cmp qword [rdi + 0x18], 8
jb 0x140016ca6
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140016cba
mov byte [rbx + 0xc1], 1
cmp byte [rbx + 0xc1], sil
jne 0x140016d0e
mov r8d, SafeArrayGetDim
lea rdx, str.AsusSetup.ini
mov rcx, rbx
call fcn.140003650
mov r8, rbx
lea rdx, [rbp + 0x2f]
lea rcx, [rbp - 0x49]
call fcn.14001af30
lea rcx, [rbx + 0x20]
mov rdx, rax
call fcn.140007ba0
mov r8, qword [rbp - 0x31]
cmp r8, 8
jb 0x140016d0e
inc r8
mov rdx, qword [rbp - 0x49]
lea rcx, [rbp - 0x49]
call fcn.1400037a0
lea rax, [rbp - 9]
mov qword [rbp + 0x1f], rax
lea rdx, [rbx + 0x20]
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], rsi
mov word [rbp - 9], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 9]
call fcn.140003830
nop
mov qword [rbp - 0x31], 7
mov qword [rbp - 0x39], rsi
mov word [rbp - 0x49], si
mov r8d, SafeArrayGetDim
lea rdx, str.First_IniPath:
lea rcx, [rbp - 0x49]
call fcn.140003650
nop
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x49]
call fcn.1400206e0
nop
mov r8, qword [rbp + 0x47]
cmp r8, 8
jb 0x140016d8a
inc r8
mov rdx, qword [rbp + 0x2f]
lea rcx, [rbp + 0x2f]
call fcn.1400037a0
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1401e30a0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140018ea0
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1402d68f8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov qword [rsp + 0x48], rdx
cmp qword [rdx + 0x18], 8
jb 0x140018ed2
mov rcx, qword [rdx]
jmp 0x140018ed5
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140018f69
mov r8, rbx
lea rdx, str.Cant_find_ini_path:
lea rcx, [rsp + 0x28]
call fcn.14001b030
cmp qword [rax + 0x18], 8
jb 0x140018f01
mov rax, qword [rax]
xor r9d, r9d
lea r8, str.No_Such_File_Found
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x140018f34
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.1400037a0
nop
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x140018f4c
inc r8
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.1400037a0
mov qword [rbx + 0x18], 7
xor eax, eax
mov qword [rbx + 0x10], rax
cmp qword [rbx + 0x18], 8
jb 0x140018f64
mov rbx, qword [rbx]
mov word [rbx], ax
jmp 0x140018f9e
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x140018f81
inc r8
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.1400037a0
mov qword [rbx + 0x18], 7
xor eax, eax
mov qword [rbx + 0x10], rax
cmp qword [rbx + 0x18], 8
jb 0x140018f99
mov rbx, qword [rbx]
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401e30a0
add rsp, 0x60
pop rbx
ret
Function at 0x14001ad40
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1402d68f8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r8d, 0x4f
mov qword [rsp + 0x48], SafeArrayGetDim
lea rdx, str.System_needs_to_reboot_to_complete_the_installation._Do_you_want_to_reboot_now_
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x30]
mov byte [rsp + 0x30], 0
call fcn.140002540
cmp qword [rsp + 0x48], 0x10
lea rdx, [rsp + 0x30]
mov r9d, 0x41
lea r8, str.Setup
cmovae rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x14001add2
call fcn.140002300
test al, al
je 0x14001adcd
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
call fcn.140002370
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x14001ae12
mov rcx, qword [rsp + 0x30]
inc rax
cmp rax, 0x1000
jb 0x14001ae0d
test cl, 0x1f
jne 0x14001ae24
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14001ae2a
sub rcx, rax
cmp rcx, 8
jb 0x14001ae30
cmp rcx, 0x27
ja 0x14001ae36
mov rcx, rax
call fcn.14002bcb8
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401e30a0
add rsp, 0x68
ret
call fcn.1401e9ae4
int3
call fcn.1401e9ae4
int3
call fcn.1401e9ae4
int3
call fcn.1401e9ae4
int3
Function at 0x14001f040
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x198]
sub rsp, 0x290
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1402d68f8]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rbx, rcx
mov qword [rsp + 0x70], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp - 0x80]
call fcn.1401e7f40
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 8
jb 0x14001f0ab
mov rax, qword [rbx]
jmp 0x14001f0ae
mov rax, rbx
mov word [rax], di
xor r8d, r8d
lea rdx, [0x140288578]
mov rcx, rbx
call fcn.140003650
mov dword [rsp + 0x20], 1
mov edx, 0xff
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x14001f1b9
lea rax, [rbp - 0x80]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14001f0f0
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x28]
cmp r8, 3
jne 0x14001f181
cmp word [rbp - 0x80], 0
cmove r8, rdi
call fcn.140003650
nop
mov r9d, 2
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.14000ac90
mov rdx, rax
mov rcx, rbx
call fcn.140007ba0
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14001f16c
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.1400037a0
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x48], di
jmp 0x14001f19c
cmp word [rbp - 0x80], 0
cmove r8, rdi
call fcn.140003650
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.140007ba0
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x14001f1b9
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.1400037a0
mov rax, rbx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1401e30a0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14001f890
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push rbp
push rsi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x1402d68f8]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r15d, r15d
mov rsi, r8
cmp qword [rcx + 0x18], 8
mov r14, rcx
mov dword [rsp + 0x40], r15d
jb 0x14001f8c2
mov rcx, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14001f959
mov r8, qword [r14 + 0x18]
cmp r8, 8
jb 0x14001f90a
mov rdx, qword [r14]
inc r8
mov rcx, r14
call fcn.1400037a0
mov qword [r14 + 0x18], 7
cmp qword [r14 + 0x18], 8
mov qword [r14 + 0x10], r15
jb 0x14001f920
mov r14, qword [r14]
mov word [r14], r15w
mov r8, qword [rsi + 0x18]
cmp r8, 8
jb 0x14001f93c
mov rdx, qword [rsi]
inc r8
mov rcx, rsi
call fcn.1400037a0
mov qword [rsi + 0x18], 7
cmp qword [rsi + 0x18], 8
mov qword [rsi + 0x10], r15
jb 0x14001f952
mov rsi, qword [rsi]
xor al, al
jmp 0x14001fa2f
cmp qword [rsi + 0x18], 8
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x50], rdi
jb 0x14001f972
mov r8, qword [rsi]
jmp 0x14001f975
mov r8, rsi
mov edx, 0x95
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rbx
xor ecx, ecx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r15
mov r8d, eax
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [r14 + 0x18]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x88]
cmp r8, 8
jb 0x14001f9e5
mov rdx, qword [r14]
inc r8
mov rcx, r14
call fcn.1400037a0
mov qword [r14 + 0x18], 7
cmp qword [r14 + 0x18], 8
mov qword [r14 + 0x10], r15
jb 0x14001f9fb
mov r14, qword [r14]
mov word [r14], r15w
mov r8, qword [rsi + 0x18]
cmp r8, 8
jb 0x14001fa17
mov rdx, qword [rsi]
inc r8
mov rcx, rsi
call fcn.1400037a0
mov qword [rsi + 0x18], 7
cmp qword [rsi + 0x18], 8
mov qword [rsi + 0x10], r15
jb 0x14001fa2d
mov rsi, qword [rsi]
mov al, 1
mov word [rsi], r15w
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401e30a0
add rsp, 0x58
pop r15
pop r14
pop rsi
pop rbp
ret
Function at 0x14001fe80
Capabilities:
Set file attributes

Disassembly:
push rbx
sub rsp, 0x2a0
mov rax, qword [0x1402d68f8]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov r10, r8
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov rax, rdx
lea rcx, [rsp + 0x180]
mov rbx, r9
mov qword [rsp + 0x20], rcx
mov r9d, 0x104
mov rcx, rax
xor r8d, r8d
mov rdx, r10
call qword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0x14001ff8b
lea rcx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
movsxd rcx, eax
cmp rcx, 0x105
jae 0x14001ffac
mov byte [rsp + rcx + 0x180], 0
lea rax, [rsp + 0x180]
xor ecx, ecx
mov dword [rsp + 0x40], 2
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x48], rax
test rbx, rbx
je 0x14001ff59
mov rdx, rbx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
movsxd rcx, eax
cmp rcx, 0x104
jae 0x14001ffa6
lea rax, [rsp + 0x70]
mov byte [rsp + rcx + 0x70], 0
mov qword [rsp + 0x50], rax
jmp 0x14001ff5e
mov qword [rsp + 0x50], rcx
mov eax, 0x14
lea rcx, [rsp + 0x38]
mov word [rsp + 0x58], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je 0x14001ff7b
xor al, al
jmp 0x14001ff8d
mov edx, 0x80
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov al, 1
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1401e30a0
add rsp, 0x2a0
pop rbx
ret
call fcn.1401e37d4
int3
call fcn.1401e37d4
int3
Function at 0x14001ffc0
Capabilities:
Create directory
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1402d68f8]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
xor ebx, ebx
mov eax, dword [rdx + rcx]
cmp dword [0x1402e8f38], eax
jle 0x14002005a
lea rcx, [0x1402e8f38]
call fcn.1401e32c8
cmp dword [0x1402e8f38], 0xffffffff
jne 0x14002005a
mov qword [0x1402e8f90], 7
mov qword [0x1402e8f88], rbx
mov word [0x1402e8f78], bx
lea rcx, [0x14021df90]
call fcn.1401e36b4
lea rcx, [0x1402e8f38]
call fcn.1401e3268
lea rsi, [0x1402e8f78]
cmp qword [0x1402e8f88], rbx
jne 0x1400200ee
xor r9d, r9d
lea r8d, [r9 + 0x23]
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [rsp + 0x60], bx
je 0x14002009c
lea rax, [rsp + 0x60]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140020092
mov r8, rbx
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.140003650
mov r8d, 5
lea rdx, [0x14028d4b8]
mov rcx, rsi
call fcn.140008090
mov rcx, rsi
cmp qword [0x1402e8f90], 8
cmovae rcx, qword [0x1402e8f78]
call fcn.1401efa08
mov r8d, SafeArrayGetDim
lea rdx, str.AsusSetup.log
mov rcx, rsi
call fcn.140008090
cmp qword [0x1402e8f90], 8
cmovae rsi, qword [0x1402e8f78]
lea rdx, [0x14028d4e0]
mov rcx, rsi
call fcn.1401e975c
mov rbx, rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp qword [rdi + 0x18], 0x10
jb 0x140020127
mov rcx, qword [rdi]
jmp 0x14002012a
mov rcx, rdi
movzx eax, word [rsp + 0x5e]
movzx edx, word [rsp + 0x5c]
movzx r9d, word [rsp + 0x5a]
movzx r8d, word [rsp + 0x58]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
lea rdx, [0x14028d4c8]
mov rcx, rbx
call fcn.14001d450
mov rcx, rbx
call fcn.1401e97ec
nop
mov rcx, rdi
call fcn.1400023f0
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401e30a0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400201a0
Capabilities:
Create directory
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1402d68f8]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
mov ecx, 4
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
xor edi, edi
mov eax, dword [rcx + rdx]
cmp dword [0x1402e8fe8], eax
jle 0x14002023a
lea rcx, [0x1402e8fe8]
call fcn.1401e32c8
cmp dword [0x1402e8fe8], 0xffffffff
jne 0x14002023a
mov qword [0x1402e8f30], 7
mov qword [0x1402e8f28], rdi
mov word [0x1402e8f18], di
lea rcx, [0x14021e010]
call fcn.1401e36b4
lea rcx, [0x1402e8fe8]
call fcn.1401e3268
lea rsi, [0x1402e8f18]
cmp qword [0x1402e8f28], rdi
jne 0x1400202d9
xor r9d, r9d
lea r8d, [r9 + 0x23]
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [rsp + 0x60], di
jne 0x14002026e
mov r8, rdi
jmp 0x14002028a
lea rax, [rsp + 0x60]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], di
jne 0x140020280
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.140003650
mov r8d, 5
lea rdx, [0x14028d4b8]
mov rcx, rsi
call fcn.140008090
mov rcx, rsi
cmp qword [0x1402e8f30], 8
cmovae rcx, qword [0x1402e8f18]
call fcn.1401efa08
mov r8d, SafeArrayGetDim
lea rdx, str.AsusSetup.log
mov rcx, rsi
call fcn.140008090
cmp qword [0x1402e8f30], 8
cmovae rsi, qword [0x1402e8f18]
lea rdx, [0x14028d4e0]
mov rcx, rsi
call fcn.1401e975c
mov rsi, rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp qword [rbx + 0x18], 8
jb 0x140020312
mov rdx, qword [rbx]
jmp 0x140020315
mov rdx, rbx
movzx eax, word [rsp + 0x5e]
movzx ecx, word [rsp + 0x5c]
movzx r9d, word [rsp + 0x5a]
movzx r8d, word [rsp + 0x58]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rdx, str._02d:_02d:_02d._3d__s_n
mov rcx, rsi
call fcn.14001d400
mov rcx, rsi
call fcn.1401e97ec
nop
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x140020368
inc r8
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.1400037a0
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 8
jb 0x140020383
mov rax, qword [rbx]
mov word [rax], di
jmp 0x140020386
mov word [rbx], di
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401e30a0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret