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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x7ff6fb7d0080]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rsi, rdx
mov rbx, rcx
xor r13d, r13d
mov dword [rbp - 0x38], r13d
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea r8d, [r13 + 0x15]
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rsp + 0x30]
call fcn.7ff6fb6a1250
mov qword [rbp - 0x48], r13
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x48]
lea edx, [r13 + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x7ff6fb6b1671
mov qword [rbp - 0x38], r13
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
lea r8, [rbp - 0x38]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x7ff6fb6b1671
mov dword [rbp - 0x30], 1
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x2c], rax
mov dword [rbp - 0x24], 2
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9d, [r13 + 0x10]
lea r8, [rbp - 0x30]
xor edx, edx
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x7ff6fb6b1671
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x30]
call fcn.7ff6fb69fb40
mov rdi, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x7ff6fb6b126f
mov rbx, qword [rbx]
call fcn.7ff6fb783e0c
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rdi
lea r8, [rbp - 0x30]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.7ff6fb699ad0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x7ff6fb7b1510]
movdqu xmmword [rsp + 0x60], xmm1
mov word [rsp + 0x50], r13w
mov r12d, 7
mov dword [rbp - 0x38], r12d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.7ff6fb6b0a30
test eax, eax
jne 0x7ff6fb6b16aa
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
call fcn.7ff6fb6b0940
mov rbx, rax
mov r8, qword [rax + 0x10]
mov rcx, qword [rax + 0x18]
mov rax, rcx
sub rax, r8
cmp rax, 4
jb 0x7ff6fb6b1373
lea rax, [r8 + 4]
mov qword [rbx + 0x10], rax
mov rdi, rbx
cmp rcx, 0x10
jb 0x7ff6fb6b1307
mov rdi, qword [rbx]
lea rax, [0x7ff6fb7ac710]
lea r14, [0x7ff6fb7ac70c]
cmp rax, rdi
jbe 0x7ff6fb6b1335
lea rax, [rdi + r8]
cmp r14, rax
ja 0x7ff6fb6b1335
cmp rdi, r14
ja 0x7ff6fb6b132d
mov r15, r13
jmp 0x7ff6fb6b133b
mov r15, rdi
sub r15, r14
jmp 0x7ff6fb6b133b
mov r15d, 4
inc r8
lea rcx, [rdi + 4]
mov rdx, rdi
call fcn.7ff6fb785c94
mov r8, r15
mov rdx, r14
mov rcx, rdi
call fcn.7ff6fb785c8e
mov r8d, 4
sub r8, r15
lea rdx, [r14 + 4]
add rdx, r15
lea rcx, [rdi + r15]
call fcn.7ff6fb785c8e
jmp 0x7ff6fb6b139f
mov qword [rsp + 0x28], 4
lea r14, [0x7ff6fb7ac70c]
mov qword [rsp + 0x20], r14
xor r9d, r9d
movzx r8d, byte [rbp - 0x50]
lea edx, [r9 + 4]
mov rcx, rbx
call fcn.7ff6fb6b4490
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x40], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
or r12d, 8
mov dword [rbp - 0x38], r12d
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
mov r8d, 0x22
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [rbp - 0x30]
call fcn.7ff6fb652820
nop
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x7ff6fb6b140b
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rbp - 0x30]
call fcn.7ff6fb655b30
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
lea r8, [rbp - 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x7ff6fb6b1442
mov bl, 1
jmp 0x7ff6fb6b153d
mov byte [rbp - 0x4f], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x4f]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x7ff6fb6b147c
mov bl, 1
jmp 0x7ff6fb6b153d
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, str.ErrorControl
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x7ff6fb6b14b6
mov bl, 1
jmp 0x7ff6fb6b153d
mov byte [rbp - 0x50], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x7ff6fb6b14ed
mov bl, 1
jmp 0x7ff6fb6b153d
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae 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, str.ImagePath
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x7ff6fb6b152d
mov bl, 1
jmp 0x7ff6fb6b153d
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test eax, eax
setne bl
lea rcx, [rbp - 0x30]
call fcn.7ff6fb6560c0
nop
lea rcx, [rsp + 0x30]
call fcn.7ff6fb6560c0
nop
lea rcx, [rbp - 0x70]
call fcn.7ff6fb6560c0
nop
lea rcx, [rsp + 0x50]
call fcn.7ff6fb69fb40
nop
lea rcx, [rsp + 0x70]
call fcn.7ff6fb69fb40
test bl, bl
jne 0x7ff6fb6b167b
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp], xmm1
mov r8d, 0x34
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp - 0x10]
call fcn.7ff6fb652820
nop
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0x10
jb 0x7ff6fb6b15ad
mov rsi, qword [rsi]
mov rdx, rsi
lea rcx, [rbp - 0x10]
call fcn.7ff6fb655b30
mov edx, 0x10
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x7ff6fb7d3594], eax
jle 0x7ff6fb6b161a
lea rcx, [0x7ff6fb7d3594]
call fcn.7ff6fb784a60
cmp dword [0x7ff6fb7d3594], 0xffffffff
jne 0x7ff6fb6b161a
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtLoadDriver
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x7ff6fb7d3588], rax
lea rcx, [0x7ff6fb7d3594]
call fcn.7ff6fb7849f4
cmp qword [0x7ff6fb7d3588], 0
je 0x7ff6fb6b1661
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntdll.dll_RtlInitString]
mov r8b, 1
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
mov rax, qword [0x7ff6fb7d3588]
lea rcx, [rbp - 0x48]
call rax
test eax, eax
sete bl
jmp 0x7ff6fb6b1663
xor bl, bl
lea rcx, [rbp - 0x10]
call fcn.7ff6fb6560c0
movzx eax, bl
jmp 0x7ff6fb6b167d
lea rcx, [rsp + 0x30]
call fcn.7ff6fb69fb40
xor al, al
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.7ff6fb784990
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea r8, [rsp + 0x70]
mov edx, eax
lea rcx, str.absolute
call fcn.7ff6fb69a130
int3