joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013af0
Capabilities:
Encrypt or decrypt via wincrypt
Get file size
Read file on windows
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x168
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r15, r8
mov rbx, rdx
mov r13, rcx
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x50]
call fcn.140022630
xor esi, esi
mov edi, esi
mov r14d, esi
cmp qword [r13 + 0x10], rsi
jne 0x140013b5a
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.m_hKey_NULL_ERROR
call fcn.140005b00
xor eax, eax
jmp 0x140013d34
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rbx
mov qword [rsp + 0x160], rbp
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140013bb5
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str._file_create_fail_path_S
mov r8, rbx
call fcn.140005b00
jmp 0x140013d13
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov rcx, r15
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140013c08
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str._file_create_fail_path_S
mov r8, r15
call fcn.140005b00
jmp 0x140013d0e
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
nop word [rax + rax]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rsi
mov r8d, 0x100
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140013ceb
sub ebx, dword [rsp + 0x40]
cmp dword [rsp + 0x40], 0x100
jb 0x140013c58
test ebx, ebx
jne 0x140013c5d
mov edi, 1
mov rcx, qword [r13 + 0x10]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
mov r8d, edi
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x140013cd1
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140013cb7
test edi, edi
je 0x140013c20
mov esi, 1
jmp 0x140013d0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
xor ecx, ecx
mov ebx, eax
call fcn.140003ed0
lea rdx, str.WriteFile_error___lx
jmp 0x140013d03
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
xor ecx, ecx
mov ebx, eax
call fcn.140003ed0
lea rdx, str.Error_CryptEncrypt___lx
jmp 0x140013d03
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
xor ecx, ecx
mov ebx, eax
call fcn.140003ed0
lea rdx, str.Error_ReadFile___lx
mov r8d, ebx
mov rcx, rax
call fcn.140005b00
test rbp, rbp
je 0x140013d1c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x160]
test r14, r14
je 0x140013d32
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14001fab0
add rsp, 0x168
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret
Function at 0x140013fb0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edx, 0xffffffff
mov rcx, qword [rcx + 0x38]
mov rdi, r8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140013fed
mov rcx, qword [rbx + 0x38]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp eax, 0x102
jne 0x140014028
mov rcx, qword [rbx + 0x38]
mov edx, 0x7d00
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.system_UI_timeout
call fcn.140005b00
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
xor ecx, ecx
mov ebx, eax
call fcn.140003ed0
mov rcx, rax
lea rdx, str.wait_UI_Error__lu
mov r8d, ebx
call fcn.140005b00
mov rbx, qword [rsp + 0x30]
xor al, al
add rsp, 0x20
pop rdi
ret
Function at 0x140014be0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140022630
xor edx, edx
lea rcx, [rsp + 0x230]
mov r8d, 0x208
call fcn.140022630
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140014c30
test rax, rax
je 0x140014cfd
cmp word [rsp + rax*2 + 0x1e], 0x5c
lea rcx, [0x14005bc88]
lea rdx, [0x14005bc68]
mov r8, rbx
cmove rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140001d30
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call fcn.140021bf8
mov rbx, rax
test rax, rax
je 0x140014cf6
nop
lea rax, [rsp + 0x20]
mov r9, rbx
sub r9, rax
lea r8, [rsp + 0x20]
sar r9, 1
lea rcx, [rsp + 0x230]
inc r9
mov edx, 0x104
call fcn.14002adcc
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140014cbf
test al, 0x10
jne 0x140014ce0
xor edx, edx
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140014ce0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140014cfd
mov edx, 0x5c
lea rcx, [rbx + 2]
call fcn.140021bf8
mov rbx, rax
test rax, rax
jne 0x140014c80
mov eax, 1
jmp 0x140014cff
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14001fab0
add rsp, 0x450
pop rbx
ret

Function at 0x140014ef0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
mov dword [rsp + 0x5c], r9d
lea rax, [r11 - 0x30]
mov qword [r11 - 0x38], rbx
mov qword [r11 - 0x48], rax
lea rdx, str.SOFTWAREASUSROGLiveServicePackage
lea rax, [r11 - 0x38]
mov dword [rsp + 0x58], ebx
mov qword [r11 - 0x50], rax
mov esi, r9d
mov qword [r11 - 0x58], rbx
mov rbp, r8
mov dword [rsp + 0x28], 0x20006
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], ebx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
je 0x140014f7e
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea r8, str.RegCreateKeyEx
mov edx, edi
call fcn.140006700
jmp 0x140014fe8
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x5c]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
xor ecx, ecx
mov edi, eax
call fcn.140003ed0
mov rcx, rax
test edi, edi
je 0x140014fc9
lea r8, str.RegSetValueEx
mov edx, edi
call fcn.140006700
jmp 0x140014fdd
mov r8d, esi
lea rdx, str.Success_writing_to_Registry._value_d
call fcn.140005c50
mov ebx, 1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001fab0
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x140015010
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ebx, ebx
lea rax, [rsp + 0x30]
mov rsi, r8
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREASUSROGLiveServicePackage
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
je 0x140015089
cmp eax, 2
jne 0x14001506c
xor eax, eax
jmp 0x1400150cc
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.RegOpenKeyEx_error
mov r8d, edi
call fcn.140005b00
jmp 0x1400150ca
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test eax, eax
je 0x1400150ba
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.RegDeleteValue_error
mov r8d, edi
call fcn.140005b00
jmp 0x1400150bf
mov ebx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001fab0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400150f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor eax, eax
mov dword [rsp + 0x3c], 4
mov qword [rsp + 0x30], rax
mov rdi, r8
mov dword [rsp + 0x38], eax
mov r9d, 1
mov dword [rsp + 0x40], eax
xor r8d, r8d
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x140015175
cmp eax, 2
jne 0x140015158
mov eax, 0xffffffff
jmp 0x1400151e2
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.RegOpenKeyEx_error
mov r8d, ebx
call fcn.140005b00
jmp 0x1400151de
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x38]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
xor ecx, ecx
mov ebx, eax
test eax, eax
je 0x1400151ba
call fcn.140003ed0
mov r8d, ebx
lea rdx, str.RegQueryValueEx_error
jmp 0x1400151cb
call fcn.140003ed0
mov r8d, dword [rsp + 0x38]
lea rdx, str.dwUiResult_lu
mov rcx, rax
call fcn.140005c50
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001fab0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140015200
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140015264
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rbx
test eax, eax
jne 0x14001527e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001fab0
add rsp, 0x50
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001fab0
add rsp, 0x50
pop rbx
ret
Function at 0x1400158e0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140015985
nop word [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140015956
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140015930
jmp 0x140015985
mov r8d, dword [rsp + 0x28]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140015985
mov edx, 9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14001fab0
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret

Function at 0x140016550
Capabilities:
Get system firmware table

Disassembly:
push rbx
mov eax, 0x10040
call fcn.1400208c0
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x10030], rax
xor edx, edx
mov r8d, 0x10000
lea rcx, [rsp + 0x30]
call fcn.140022630
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov ebx, eax
test eax, eax
jne 0x1400165b8
lea rcx, str.Function_failed__n
call fcn.140002530
mov eax, 1
jmp 0x140016628
mov r9d, ebx
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
test eax, eax
je 0x1400165a5
lea rax, [rsp + 0x38]
lea ecx, [rbx - 8]
mov r8, qword [rsp + 0x34]
cmp r8d, ecx
je 0x1400165f6
lea rcx, str.Smbios_length_error_n
call fcn.140002530
mov eax, 1
jmp 0x140016628
xor edx, edx
test r8d, r8d
je 0x140016626
nop dword [rax]
cmp byte [rax], 3
je 0x140016641
movzx ecx, byte [rax + 1]
add rax, rcx
cmp word [rax], 0
je 0x14001661b
inc rax
cmp word [rax], 0
jne 0x140016612
add rax, 2
inc edx
cmp edx, r8d
jb 0x140016600
xor eax, eax
mov rcx, qword [rsp + 0x10030]
xor rcx, rsp
call fcn.14001fab0
add rsp, 0x10040
pop rbx
ret
movzx ebx, byte [rax + 5]
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
mov r8d, ebx
lea rdx, str.Type3__Enclosure_Type___d
call fcn.140005c50
mov eax, ebx
jmp 0x140016628
Function at 0x140016e70
Capabilities:
Get file size
Hash data with crc32
Read file on windows
Write file on windows

Disassembly:
mov r11, rsp
push rbp
push rsi
sub rsp, 0x878
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov qword [r11 + 0x18], rbx
mov rsi, rdx
mov qword [r11 - 0x18], rdi
xor edx, edx
mov rdi, rcx
mov qword [r11 - 0x20], r14
lea rcx, [rsp + 0x50]
mov qword [r11 - 0x28], r15
mov r8d, 0x800
mov ebx, 0x56
call fcn.140022630
xor ebp, ebp
lea r8d, [rbx - 0x55]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x30], rbp
lea r8d, [rbx - 0x55]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
mov rcx, rsi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
mov rcx, r14
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp r14, 0xffffffffffffffff
je 0x14001703e
cmp rsi, 0xffffffffffffffff
je 0x14001703e
lea edi, [rax - 4]
test edi, edi
je 0x140016fef
lea r15, [0x14005abb0]
nop dword [rax + rax]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, r14
mov r8d, 0x800
cmp edi, 0x800
ja 0x140016f73
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140017019
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x140016fef
sub edi, r8d
lea r9, [rsp + 0x50]
test r8d, r8d
je 0x140016fdf
nop dword [rax]
nop word [rax + rax]
movsx ecx, byte [r9]
lea r9, [r9 + 1]
mov eax, ebx
xor rcx, rax
shr eax, 8
movzx edx, cl
mov ebx, dword [r15 + rdx*4]
xor ebx, eax
add r8d, 0xffffffff
jne 0x140016fc0
dec r8d
mov dword [rsp + 0x40], r8d
test edi, edi
jne 0x140016f50
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov r8d, 4
lea rdx, [rsp + 0x44]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x44]
cmp ebx, eax
jne 0x140017056
mov ebp, eax
jmp 0x140017056
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
xor ecx, ecx
mov ebx, eax
call fcn.140003ed0
mov rcx, rax
lea rdx, str.write_fail__lx
mov r8d, ebx
call fcn.140005b00
jmp 0x140017056
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str._file_create_fail
call fcn.140005b00
mov r15, qword [rsp + 0x860]
mov rdi, qword [rsp + 0x870]
mov rbx, qword [rsp + 0x8a0]
test r14, r14
je 0x14001707c
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x868]
test rsi, rsi
je 0x140017092
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.14001fab0
add rsp, 0x878
pop rsi
pop rbp
ret
Function at 0x140017270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x470
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.checkIfACIsInstalledViaPs
call fcn.140005c50
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.140022630
xor edx, edx
lea rcx, [rsp + 0x250]
mov r8d, 0x208
call fcn.140022630
lea r9, str.AsusROGLSLServiceQueryUWP.exe
lea rdx, str.ProgramFiles_x86_
lea rcx, [rsp + 0x40]
call fcn.140019e60
test al, al
jne 0x14001730c
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea r9, str.checkIfACIsInstalledViaPs
lea r8, str.Download
lea rdx, str.__ls___hs__getWorkingPath_QueryUWP__failed.
call fcn.140005c50
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea r8, [rsp + 0x40]
lea rdx, str.pathOfQueryAC___ls
call fcn.140005c50
xor edi, edi
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x38], edi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001743c
test al, 0x10
jne 0x14001743c
mov qword [rsp + 0x480], rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x488], rsi
call fcn.140003ed0
mov rcx, rax
lea r8, [rsp + 0x40]
lea rdx, str._ls_exists.
call fcn.140005c50
lea r9, [rsp + 0x40]
mov edx, 0x104
lea r8, str.__ls_
lea rcx, [rsp + 0x250]
call fcn.1400011b0
mov ecx, 0x540
call fcn.14001fd78
xor edx, edx
mov qword [rsp + 0x30], rax
mov r8d, 0x540
mov rcx, rax
mov rbx, rax
call fcn.140022630
mov rcx, rbx
call fcn.1400170c0
lea r9, [rsp + 0x38]
mov byte [rsp + 0x20], dil
mov r8b, 1
lea rdx, [rsp + 0x250]
mov rcx, rax
mov rsi, rax
call fcn.1400142e0
xor edx, edx
xor ecx, ecx
movzx ebx, al
call fcn.140003ed0
test bl, bl
lea rdx, str.Launch_QueryUWP_successfully.
mov rbx, qword [rsp + 0x480]
jne 0x140017406
lea rdx, str.Failed_to_launch_QueryUWP.
mov rcx, rax
call fcn.140005c50
test rsi, rsi
je 0x140017428
mov rcx, rsi
call fcn.1400145c0
mov edx, 0x540
mov rcx, rsi
call fcn.14001fad4
cmp dword [rsp + 0x38], edi
mov rsi, qword [rsp + 0x488]
sete dil
mov eax, edi
jmp 0x14001745b
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea r8, [rsp + 0x40]
lea rdx, str._ls_not_found.
call fcn.140005c50
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14001fab0
add rsp, 0x470
pop rdi
ret
Function at 0x140017f20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x58
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea r8, str.ProgramFiles_x86_
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.14002c060
test eax, eax
jne 0x140017fd6
mov r9, qword [rsp + 0x30]
lea r8, str._sASUS
mov qword [rsp + 0x50], rbx
mov edx, 0x104
lea rbx, [0x14006dab0]
mov rcx, rbx
call fcn.1400011b0
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
mov qword [rsp + 0x20], rbx
lea r9, str.initProjectFolder
lea r8, str.Download
lea rdx, str.__ls___hs__ProjectFolder___ls
call fcn.140005c50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140017fb3
test al, 0x10
jne 0x140017fbb
mov rcx, rbx
call fcn.140014be0
mov rdx, rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [rsp + 0x30]
call fcn.14002a2f8
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001fab0
add rsp, 0x58
ret
Function at 0x140019260
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
sub rsp, 0x258
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.140022630
lea rax, str.ROGLSLoader
mov edx, 0x104
lea r9, [0x14006dab0]
mov qword [rsp + 0x20], rax
lea r8, str._s_s.zip
lea rcx, [rsp + 0x30]
call fcn.1400011b0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400192d3
test al, 0x10
jne 0x1400192d3
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14001fab0
add rsp, 0x258
ret
Function at 0x14001ab40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001ab6d
xor eax, eax
jmp 0x14001acb3
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14001aba7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14001aba7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14001acb3
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001aca6
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001abea
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14001abf9
movsx ecx, dil
jmp 0x14001ac4d
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
js 0x14001aca6
cmp eax, 1
jle 0x14001ac67
cmp eax, 3
jne 0x14001aca6
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.14002c0a8
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14001acab
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14001ac94
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.14002c6f8
cmp rsi, rax
jne 0x14001aca6
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14001acab
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001fab0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14001d720
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea r9, str.OnDoPreShutDown
lea r8, [0x14005e938]
lea rdx, str.__hs___hs__.
add rsp, 0x28
jmp fcn.140005c50

Function at 0x14002ba74
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14002b907
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002b907
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002b907
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002b907
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002b907
cmp dword [rcx + 0x84], 0xe
jbe 0x14002b907
cmp dword [rcx + 0xf8], 0
je 0x14002b907
mov ecx, ebx
call fcn.14002b9a8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14002b798
cmp dword [rbp + 0x20], 0
je 0x14002b954
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002b95c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002b8a0

Function at 0x14002d9ec
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14002da0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14002b298
or eax, 0xffffffff
jmp 0x14002da0e
xor eax, eax
add rsp, 0x28
ret

Function at 0x14002da44
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14002da64
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14002b298
or eax, 0xffffffff
jmp 0x14002da66
xor eax, eax
add rsp, 0x28
ret