Function at 0x140030f20
Capabilities:
Get common file path
Query or enumerate registry value
Write file on windows

Disassembly:
jmp 0x140030f20
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x600]
sub rsp, 0x700
mov rax, qword [0x14013c010]
xor rax, rsp
mov qword [rbp + 0x5f0], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x50], eax
mov dword [rsp + 0x44], 3
mov dword [rsp + 0x40], 0x64
xor esi, esi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x48], rsi
lea rcx, [rsp + 0x48]
call fcn.14008e480
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
lea rdi, [rsi - 1]
test eax, eax
je 0x140030fcf
mov r8d, 0x84
jmp 0x140031021
mov rcx, qword [rsp + 0x30]
test rcx, rcx
jne 0x140030fe1
mov r8d, 0x85
jmp 0x140031021
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.AsusPresetInformation
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
je 0x140031039
mov r8d, 0x8a
lea rdx, str.CCustomizeASUS::WritePreset
lea rcx, str._s__d_RETURN_ON_FALSE
call fcn.14005b9a0
jmp 0x1400311f2
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1d0]
call fcn.1400c7980
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3e0]
call fcn.1400c7980
mov qword [rsp + 0x38], rsi
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call fcn.1400c7980
xor r9d, r9d
lea r8d, [r9 + 0x24]
lea rdx, [rbp - 0x40]
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetSpecialFolderPathW]
lea rcx, [rbp - 0x40]
mov rax, rdi
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140031091
cmp word [rbp + rax*2 - 0x42], 0x5c
jne 0x1400310bd
lea rax, [rax*2 - 2]
cmp rax, 0x208
jae 0x140031240
mov word [rbp + rax - 0x40], si
mov ecx, 0x103
lea rax, [rbp - 0x40]
cmp word [rax], 0
je 0x1400310d6
add rax, 2
sub rcx, 1
jne 0x1400310c6
mov eax, 0x103
sub rax, rcx
test rcx, rcx
cmove rax, rsi
je 0x14003113d
mov r8d, 0x103
sub r8, rax
lea rcx, [rbp - 0x40]
lea rcx, [rcx + rax*2]
je 0x14003112f
mov eax, 0x7ffffffe
lea r9, str.Logs
sub r9, rcx
nop dword [rax]
test rax, rax
je 0x14003112f
movzx edx, word [r9 + rcx]
test dx, dx
je 0x14003112f
mov word [rcx], dx
add rcx, 2
dec rax
sub r8, 1
jne 0x140031110
lea rax, [rcx - 2]
test r8, r8
cmovne rax, rcx
mov word [rax], si
lea r8, [rbp - 0x40]
mov edx, 0x103
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rax, str.ASUS.txt
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x3e0]
lea r8, [0x1400e3308]
mov edx, 0x104
lea rcx, [rbp + 0x1d0]
call fcn.14002aeb0
lea r8, [0x1400ef980]
lea rdx, [rbp + 0x1d0]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov ebx, eax
test eax, eax
jne 0x1400311c6
mov edx, dword [rsp + 0x40]
mov r9, qword [rsp + 0x38]
lea r8d, [rax + 1]
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__flushall]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x20], rax
mov r8d, ebx
lea rdx, str.CCustomizeASUS::WritePreset
lea rcx, str._s_err_d_LastErr_d_szFile_s
call fcn.14005b9a0
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140031218
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
mov rcx, qword [rbp + 0x5f0]
xor rcx, rsp
call fcn.1400c17f0
lea r11, [rsp + 0x700]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1400c1dc4
nop
int3