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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x1402e8100]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rdi, r8
mov rbx, rdx
xor esi, esi
cmp qword [r8 + 0x10], rsi
je 0x1401304cc
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x70], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.14026a0b0
mov rcx, rdi
call fcn.1400d3710
mov r9, rax
lea r8, str.___s
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.14011a610
lea r8, [rsp + 0x68]
lea rdx, str.systemCurrentControlSetServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1401303fa
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jle 0x1401303d2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
jle 0x1401304b8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x1401307f4
mov rcx, rbx
call fcn.1400d3710
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1401303c2
lea rcx, [rbp - 0x50]
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rcx + rax*2], si
jne 0x140130424
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
test eax, eax
jne 0x1401303c7
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jle 0x1401304a4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
jle 0x1401304b4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x1401304cc
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x1401307f4
lea rcx, str._registrymachineSYSTEMCurrentControlSetServices_
call fcn.1400ce290
mov rcx, rax
call fcn.1400cf3e0
mov rdi, rax
mov rcx, rbx
call fcn.1400d1e10
mov r14, rax
mov rcx, rbx
call fcn.1400d3680
sub rax, r14
cmp rax, rdi
jb 0x14013081e
mov rcx, rbx
call fcn.1400d3710
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, str._registrymachineSYSTEMCurrentControlSetServices_
mov r8, rbx
lea rcx, [rbp - 0x78]
call fcn.1401162e0
nop
call fcn.1400f2830
mov rdi, rax
lea rcx, [rbp - 0x78]
call fcn.1400d3710
mov r15, rax
mov qword [rsp + 0x70], rax
lea rdx, str.RtlInitUnicodeString
lea rcx, [rsp + 0x40]
call fcn.1400caee0
nop
call fcn.1401362a0
lea r14, [rdi + 0x40]
mov qword [rsp + 0x60], r14
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsp + 0x68], rsi
lea r13, [rdi + 8]
lea rcx, [rsp + 0x40]
call fcn.1400dc9a0
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.1400cad10
mov r8, rbx
mov rdx, rax
movabs r12, 0xcbf29ce484222325
mov rcx, r12
call fcn.1400721a0
mov rcx, qword [rdi + 0x30]
and rcx, rax
add rcx, rcx
mov rax, qword [rdi + 0x18]
mov rdi, qword [rax + rcx*8 + 8]
cmp rdi, qword [r13]
je 0x14013063b
mov r12, qword [rax + rcx*8]
nop dword [rax + rax]
lea rcx, [rdi + 0x10]
mov rbx, qword [rcx + 0x10]
call fcn.1400cdfd0
mov r15, rax
mov r14, qword [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.1400cdfd0
cmp r14, rbx
jne 0x140130606
mov r8, r14
mov rdx, r15
mov rcx, rax
call fcn.14026aaf0
test eax, eax
je 0x140130611
cmp rdi, r12
je 0x140130627
mov rdi, qword [rdi + 8]
jmp 0x1401305d0
mov r14, qword [rsp + 0x60]
mov r15, qword [rsp + 0x70]
movabs r12, 0xcbf29ce484222325
jmp 0x14013063e
mov r14, qword [rsp + 0x60]
mov r15, qword [rsp + 0x70]
movabs r12, 0xcbf29ce484222325
mov rdi, rsi
test rdi, rdi
jne 0x140130647
mov rdi, qword [r13]
mov qword [rsp + 0x68], rdi
mov rdx, r13
lea rcx, [rsp + 0x68]
call fcn.140072660
mov rax, qword [r13]
mov qword [rsp + 0x60], rax
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.140072660
mov rax, qword [rsp + 0x68]
mov rcx, r14
cmp rax, qword [rsp + 0x60]
je 0x140130699
mov rbx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x1401306a0
mov rdx, r15
lea rcx, [rsp + 0x78]
call rbx
jmp 0x1401306a0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
lea rcx, [rsp + 0x40]
call fcn.1400cadf0
call fcn.1400f2830
mov rdi, rax
lea rdx, str.NtLoadDriver
lea rcx, [rsp + 0x40]
call fcn.1400caee0
nop
call fcn.1401362a0
lea r14, [rdi + 0x40]
mov qword [rsp + 0x60], r14
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsp + 0x68], rsi
lea r13, [rdi + 8]
lea rcx, [rsp + 0x40]
call fcn.1400dc9a0
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.1400cad10
mov r8, rbx
mov rdx, rax
mov rcx, r12
call fcn.1400721a0
mov rcx, qword [rdi + 0x30]
and rcx, rax
add rcx, rcx
mov rax, qword [rdi + 0x18]
mov rdi, qword [rax + rcx*8 + 8]
cmp rdi, qword [r13]
je 0x140130779
mov r12, qword [rax + rcx*8]
nop word [rax + rax]
lea rcx, [rdi + 0x10]
mov rbx, qword [rcx + 0x10]
call fcn.1400cdfd0
mov r15, rax
mov r14, qword [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.1400cdfd0
cmp r14, rbx
jne 0x140130766
mov r8, r14
mov rdx, r15
mov rcx, rax
call fcn.14026aaf0
test eax, eax
je 0x140130771
cmp rdi, r12
je 0x140130774
mov rdi, qword [rdi + 8]
jmp 0x140130730
mov rsi, rdi
mov r14, qword [rsp + 0x60]
test rsi, rsi
jne 0x140130782
mov rsi, qword [r13]
mov qword [rsp + 0x68], rsi
mov rdx, r13
lea rcx, [rsp + 0x68]
call fcn.140072660
mov rax, qword [r13]
mov qword [rsp + 0x60], rax
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.140072660
mov rax, qword [rsp + 0x68]
mov rcx, r14
cmp rax, qword [rsp + 0x60]
je 0x1401307d3
mov rbx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x1401307d9
lea rcx, [rsp + 0x78]
call rbx
mov ebx, eax
jmp 0x1401307de
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, 0xc0000138
lea rcx, [rsp + 0x40]
call fcn.1400cadf0
nop
lea rcx, [rbp - 0x78]
call fcn.1400d3780
mov eax, ebx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1401e1ca0
mov rbx, qword [rsp + 0x310]
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400be860
int3