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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x7ff69902b080]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rdi, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rbp - 0x38], r14d
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea r8d, [r14 + 0x15]
lea rdx, [0x7ff69900f4c0]
lea rcx, [rsp + 0x30]
call fcn.7ff698f47c40
mov qword [rbp - 0x48], r14
call qword [sym.imp.kernel32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x48]
lea edx, [r14 + 0x28]
call qword [sym.imp.advapi32.dll_OpenProcessToken]
test eax, eax
je 0x7ff698f4d31f
mov qword [rbp - 0x38], r14
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rdx, qword [rsp + 0x30]
lea r8, [rbp - 0x38]
xor ecx, ecx
call qword [sym.imp.advapi32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x7ff698f4d31f
mov dword [rbp - 0x30], 1
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x2c], rax
mov dword [rbp - 0x24], 2
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9d, [r14 + 0x10]
lea r8, [rbp - 0x30]
xor edx, edx
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.advapi32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x7ff698f4d31f
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.kernel32.dll_CloseHandle]
lea rcx, [rsp + 0x30]
call fcn.7ff698f457e0
mov rsi, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x7ff698f4cfa5
mov rbx, qword [rbx]
call fcn.7ff698fe8efc
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rsi
lea r8, [rbp - 0x30]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.7ff698f4c3c0
mov dword [rbp - 0x38], 3
mov qword [rbp - 0x48], r14
lea rax, [0x7ff699054d38]
mov qword [rbp - 0x40], rax
lea r8, [rbp - 0x48]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.7ff698f4cbf0
mov dword [rbp - 0x38], 7
cmp dword [rbp - 0x48], 0
jne 0x7ff698f4d34f
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rax, qword [rsp + 0x50]
mov qword [rbp - 0x30], rax
mov rax, qword [rsp + 0x60]
mov qword [rbp - 0x28], rax
call fcn.7ff698fe8efc
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
lea r8, [rbp - 0x30]
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.7ff698f4e380
mov ebx, 0x3f
mov dword [rbp - 0x38], ebx
lea r8, [0x7ff69900f4ec]
lea rcx, [rbp - 0x70]
call fcn.7ff698f40170
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x40], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
or ebx, 0x40
mov dword [rbp - 0x38], ebx
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
mov r8d, 0x22
lea rdx, [0x7ff69900f470]
lea rcx, [rbp - 0x30]
call fcn.7ff698f3fda0
nop
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x7ff698f4d0b9
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rbp - 0x30]
call fcn.7ff698f3d460
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rdx, qword [rbp - 0x30]
lea r8, [rbp - 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegCreateKeyA]
test eax, eax
je 0x7ff698f4d0f0
mov bl, 1
jmp 0x7ff698f4d1eb
mov byte [rbp - 0x50], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x7ff69900c014]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.advapi32.dll_RegSetValueExA]
test eax, eax
je 0x7ff698f4d12a
mov bl, 1
jmp 0x7ff698f4d1eb
mov byte [rbp - 0x4f], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x4f]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x7ff69900f498]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.advapi32.dll_RegSetValueExA]
test eax, eax
je 0x7ff698f4d164
mov bl, 1
jmp 0x7ff698f4d1eb
mov byte [rbp - 0x4e], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x4e]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x7ff69900f4a8]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.advapi32.dll_RegSetValueExA]
test eax, eax
je 0x7ff698f4d19b
mov bl, 1
jmp 0x7ff698f4d1eb
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rcx, qword [rsp + 0x30]
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, [0x7ff69900f4b0]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.advapi32.dll_RegSetValueExA]
test eax, eax
je 0x7ff698f4d1db
mov bl, 1
jmp 0x7ff698f4d1eb
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.advapi32.dll_RegCloseKey]
nop
test eax, eax
setne bl
lea rcx, [rbp - 0x30]
call fcn.7ff698f3d390
nop
lea rcx, [rsp + 0x30]
call fcn.7ff698f3d390
nop
lea rcx, [rbp - 0x70]
call fcn.7ff698f3d390
nop
lea rcx, [rsp + 0x50]
call fcn.7ff698f457e0
nop
lea rcx, [rsp + 0x70]
call fcn.7ff698f457e0
test bl, bl
jne 0x7ff698f4d329
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp], xmm1
mov r8d, 0x34
lea rdx, [0x7ff69900f4f8]
lea rcx, [rbp - 0x10]
call fcn.7ff698f3fda0
nop
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x7ff698f4d25b
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.7ff698f3d460
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x7ff699056680], eax
jle 0x7ff698f4d2c8
lea rcx, [0x7ff699056680]
call fcn.7ff698fe9988
cmp dword [0x7ff699056680], 0xffffffff
jne 0x7ff698f4d2c8
lea rcx, [0x7ff69900c628]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [0x7ff69900f230]
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov qword [0x7ff699056688], rax
lea rcx, [0x7ff699056680]
call fcn.7ff698fe991c
cmp qword [0x7ff699056688], 0
je 0x7ff698f4d30f
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0xf
cmova rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
mov rax, qword [0x7ff699056688]
lea rcx, [rbp - 0x48]
call rax
test eax, eax
sete bl
jmp 0x7ff698f4d311
xor bl, bl
lea rcx, [rbp - 0x10]
call fcn.7ff698f3d390
movzx eax, bl
jmp 0x7ff698f4d32b
lea rcx, [rsp + 0x30]
call fcn.7ff698f457e0
xor al, al
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.7ff698fe98c0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x48]
lea rcx, [0x7ff69900f448]
call fcn.7ff698f4cb90
int3