Function at 0x1400ac180
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x1402d7d18]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov r14, rcx
lea r12, [0x1402daa50]
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400ac1e9
test byte [rcx + 0x44], 2
je 0x1400ac1e9
cmp byte [rcx + 0x41], 4
jb 0x1400ac1e9
mov edx, 0xa
lea r8, [0x140263778]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
xor esi, esi
mov dword [rsp + 0x78], esi
lea rdx, [rsp + 0x78]
mov rcx, r14
call fcn.1400aa6f0
mov ebx, eax
test eax, eax
je 0x1400ac234
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400ac22d
test byte [rcx + 0x44], 2
je 0x1400ac22d
cmp byte [rcx + 0x41], 2
jb 0x1400ac22d
lea edx, [rsi + 0xb]
lea r8, [0x140263778]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
mov eax, ebx
jmp 0x1400ac4b0
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400ac266
test byte [rcx + 0x44], 2
je 0x1400ac266
cmp byte [rcx + 0x41], 5
jb 0x1400ac266
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov r9d, dword [rsp + 0x78]
lea r8, [0x140263778]
mov rcx, qword [rcx + 0x38]
call fcn.1400268c0
mov dword [rsp + 0x7c], esi
lea rcx, [rbp - 0x50]
call fcn.1400a1b80
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], si
mov r8d, 4
lea rdx, [0x140263898]
lea rcx, [rbp - 0x78]
call fcn.140007240
nop
mov rcx, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x60]
mov rax, rdx
sub rax, rcx
cmp rax, 0x18
jb 0x1400ac2df
lea rdi, [rcx + 0x18]
mov qword [rbp - 0x68], rdi
lea rbx, [rbp - 0x78]
cmp rdx, 8
cmovae rbx, qword [rbp - 0x78]
lea rcx, [rbx + rcx*2]
mov r8d, 0x30
lea rdx, str.c:IntelIntelOptaneData
call fcn.140145e70
mov word [rbx + rdi*2], si
jmp 0x1400ac302
lfence
mov qword [rsp + 0x20], 0x18
lea r9, str.c:IntelIntelOptaneData
xor r8d, r8d
lea edx, [r8 + 0x18]
lea rcx, [rbp - 0x78]
call fcn.14001b830
lea rdx, [rbp - 0x78]
mov rcx, r14
call fcn.1400aa480
mov ebx, eax
test eax, eax
je 0x1400ac342
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400ac46c
test byte [rcx + 0x44], 2
je 0x1400ac46c
cmp byte [rcx + 0x41], 2
jb 0x1400ac46c
mov edx, 0xd
jmp 0x1400ac5cf
mov r9d, dword [rsp + 0x78]
cmp r9d, 1
jne 0x1400ac3be
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400ac379
test byte [rcx + 0x44], 2
je 0x1400ac379
cmp byte [rcx + 0x41], 5
jb 0x1400ac379
lea edx, [r9 + 0xd]
lea r8, [0x140263778]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
mov edx, dword [rsp + 0x7c]
lea rcx, [rbp - 0x50]
call fcn.1400a1fd0
mov ebx, eax
test eax, eax
je 0x1400ac4db
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400ac46c
test byte [rcx + 0x44], 2
je 0x1400ac46c
cmp byte [rcx + 0x41], 2
jb 0x1400ac46c
mov edx, 0xf
jmp 0x1400ac5cf
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400ac3eb
test byte [rcx + 0x44], 2
je 0x1400ac3eb
cmp byte [rcx + 0x41], 5
jb 0x1400ac3eb
mov edx, 0x10
lea r8, [0x140263778]
mov rcx, qword [rcx + 0x38]
call fcn.1400268c0
lea rdx, [rsp + 0x7c]
lea rcx, [rbp - 0x50]
call fcn.1400a1c10
mov ebx, eax
test eax, eax
je 0x1400ac421
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400ac46c
test byte [rcx + 0x44], 2
je 0x1400ac46c
cmp byte [rcx + 0x41], 2
jb 0x1400ac46c
mov edx, 0x11
jmp 0x1400ac5cf
cmp dword [rsp + 0x7c], 1
jne 0x1400ac4db
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400ac459
test byte [rcx + 0x44], 2
je 0x1400ac459
cmp byte [rcx + 0x41], 5
jb 0x1400ac459
mov edx, 0x12
lea r8, [0x140263778]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
mov dword [rsp + 0x78], esi
lea rdx, [rsp + 0x78]
mov rcx, r14
call fcn.1400acaa0
mov ebx, esi
mov esi, ebx
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x1400ac4ae
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ac4a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400aca99
call fcn.1401544c8
mov eax, esi
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140154660
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov eax, dword [rsp + 0x78]
cmp eax, 3
jbe 0x1400ac51b
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400ac511
test byte [rcx + 0x44], 2
je 0x1400ac511
cmp byte [rcx + 0x41], 2
jb 0x1400ac511
mov edx, 0x13
lea r8, [0x140263778]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
mov ebx, 0x3e3
jmp 0x1400ac46c
test eax, eax
jne 0x1400ac55b
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400ac46a
test byte [rcx + 0x44], 2
je 0x1400ac46a
cmp byte [rcx + 0x41], 5
jb 0x1400ac46a
lea edx, [rax + 0x14]
lea r8, [0x140263778]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
jmp 0x1400ac46a
mov rcx, r14
call fcn.1400aa9f0
test al, al
jne 0x1400ac9de
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400ac598
test byte [rcx + 0x44], 2
je 0x1400ac598
cmp byte [rcx + 0x41], 5
jb 0x1400ac598
mov edx, 0x15
lea r8, [0x140263778]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
mov rcx, r14
call fcn.1400aafa0
mov ebx, eax
test eax, eax
je 0x1400ac5e4
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400ac46c
test byte [rcx + 0x44], 2
je 0x1400ac46c
cmp byte [rcx + 0x41], 2
jb 0x1400ac46c
mov edx, 0x16
lea r8, [0x140263778]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
jmp 0x1400ac46c
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400ac63e
test byte [rcx + 0x44], 2
je 0x1400ac618
cmp byte [rcx + 0x41], 5
jb 0x1400ac618
mov edx, 0x17
lea r8, [0x140263778]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400ac63e
test byte [rcx + 0x44], 2
je 0x1400ac63e
cmp byte [rcx + 0x41], 5
jb 0x1400ac63e
mov edx, 0x1b
lea r8, [0x140263778]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov r15, qword [rbp - 0x68]
lea rdi, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rdi, qword [rbp - 0x78]
cmp r15, 8
jae 0x1400ac66f
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x30], xmm0
mov ebx, 7
jmp 0x1400ac6c1
mov rbx, r15
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x1400aca93
lfence
add rcx, rcx
call fcn.140008ed0
mov qword [rsp + 0x30], rax
lea r8, [r15*2 + 2]
mov rdx, rdi
mov rcx, rax
call fcn.140145e70
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rbx
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.1400ab110
mov ebx, eax
test eax, eax
je 0x1400ac70c
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400ac46c
test byte [rcx + 0x44], 2
je 0x1400ac46c
cmp byte [rcx + 0x41], 2
jb 0x1400ac46c
mov edx, 0x1c
jmp 0x1400ac8e2
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400ac739
test byte [rcx + 0x44], 2
je 0x1400ac739
cmp byte [rcx + 0x41], 5
jb 0x1400ac739
mov edx, 0x1d
lea r8, [0x140263778]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
mov r8d, 0x104
lea rdx, [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1400ac787
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400ac77a
test byte [rcx + 0x44], 2
je 0x1400ac77a
cmp byte [rcx + 0x41], 2
jb 0x1400ac77a
lea edx, [rax + 0x1e]
lea r8, [0x140263778]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1400ac46c
lea rcx, [rbp - 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], si
lea rax, [rbp - 0x30]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1400ac7b0
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x50]
call fcn.140007240
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.1400a9ac0
mov ebx, eax
test eax, eax
je 0x1400ac80a
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400ac46c
test byte [rcx + 0x44], 2
je 0x1400ac46c
cmp byte [rcx + 0x41], 2
jb 0x1400ac46c
mov edx, 0x1f
jmp 0x1400ac8e2
lea rcx, [rbp - 0x40]
call fcn.1400a1b40
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x40]
call fcn.1400a1bb0
mov ebx, eax
test eax, eax
jne 0x1400ac46c
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400ac860
test byte [rcx + 0x44], 2
je 0x1400ac860
cmp byte [rcx + 0x41], 5
jb 0x1400ac860
lea edx, [rax + 0x20]
mov r9d, dword [rbp - 0x80]
lea r8, [0x140263778]
mov rcx, qword [rcx + 0x38]
call fcn.1400268c0
mov rcx, qword [0x1402daa50]
mov eax, dword [rbp - 0x80]
mov dword [rbp - 0x58], eax
cmp rcx, r12
je 0x1400ac88c
test byte [rcx + 0x44], 2
je 0x1400ac88c
cmp byte [rcx + 0x41], 4
jb 0x1400ac88c
mov edx, 0x47
lea r8, [0x140263778]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x1000b
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesiaStorAfsService
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x1400ac8fa
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400ac46c
test byte [rcx + 0x44], 2
je 0x1400ac46c
cmp byte [rcx + 0x41], 2
jb 0x1400ac46c
mov edx, 0x48
mov r9d, eax
lea r8, [0x140263778]
mov rcx, qword [rcx + 0x38]
call fcn.1400268c0
jmp 0x1400ac46c
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.DumpMemoryLevel
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x1400ac96c
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400ac95c
test byte [rcx + 0x44], 2
je 0x1400ac95c
cmp byte [rcx + 0x41], 2
jb 0x1400ac95c
mov edx, 0x49
mov r9d, eax
lea r8, [0x140263778]
mov rcx, qword [rcx + 0x38]
call fcn.1400268c0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400ac46c
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.1400a1fc0
mov ebx, eax
test eax, eax
jne 0x1400ac46c
inc dword [rsp + 0x78]
lea rdx, [rsp + 0x78]
mov rcx, r14
call fcn.1400acaa0
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400ac46e
test byte [rcx + 0x44], 2
je 0x1400ac46e
cmp byte [rcx + 0x41], 5
jb 0x1400ac46e
lea edx, [rbx + 0x21]
mov r9d, dword [rsp + 0x78]
lea r8, [0x140263778]
mov rcx, qword [rcx + 0x38]
call fcn.1400268c0
jmp 0x1400ac46e
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400aca0b
test byte [rcx + 0x44], 2
je 0x1400aca0b
cmp byte [rcx + 0x41], 5
jb 0x1400aca0b
mov edx, 0x18
lea r8, [0x140263778]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
xor edx, edx
lea rcx, [rbp - 0x50]
call fcn.1400a1fd0
mov ebx, eax
test eax, eax
je 0x1400aca4a
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400ac46c
test byte [rcx + 0x44], 2
je 0x1400ac46c
cmp byte [rcx + 0x41], 2
jb 0x1400ac46c
mov edx, 0x19
jmp 0x1400ac8e2
mov dword [rsp + 0x78], esi
lea rdx, [rsp + 0x78]
mov rcx, r14
call fcn.1400acaa0
mov ebx, eax
test eax, eax
je 0x1400ac46a
mov rcx, qword [0x1402daa50]
cmp rcx, r12
je 0x1400ac46c
test byte [rcx + 0x44], 2
je 0x1400ac46c
cmp byte [rcx + 0x41], 2
jb 0x1400ac46c
mov edx, 0x1a
jmp 0x1400ac8e2
call fcn.140002700
nop
call fcn.1400e3a70
int3