Function at 0x140131a90
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 [0x1402ea100]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rdi, r8
mov rbx, rdx
xor esi, esi
cmp qword [r8 + 0x10], rsi
je 0x140131c3c
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.14026bb60
mov rcx, rdi
call fcn.1400d3890
mov r9, rax
lea r8, str.___s
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.14011bfa0
lea r8, [rsp + 0x68]
lea rdx, str.systemCurrentControlSetServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x140131b6a
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jle 0x140131b42
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
jle 0x140131c28
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x140131f64
mov rcx, rbx
call fcn.1400d3890
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140131b32
lea rcx, [rbp - 0x50]
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rcx + rax*2], si
jne 0x140131b94
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 0x140131b37
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 0x140131c14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
jle 0x140131c24
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x140131c3c
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x140131f64
lea rcx, str._registrymachineSYSTEMCurrentControlSetServices_
call fcn.1400ce070
mov rcx, rax
call fcn.1400cf110
mov rdi, rax
mov rcx, rbx
call fcn.1400d1f90
mov r14, rax
mov rcx, rbx
call fcn.1400d3800
sub rax, r14
cmp rax, rdi
jb 0x140131f8e
mov rcx, rbx
call fcn.1400d3890
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.140117c90
nop
call fcn.1400f47a0
mov rdi, rax
lea rcx, [rbp - 0x78]
call fcn.1400d3890
mov r15, rax
mov qword [rsp + 0x70], rax
lea rdx, str.RtlInitUnicodeString
lea rcx, [rsp + 0x40]
call fcn.1400ca900
nop
call fcn.140137950
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.1400ddef0
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.1400ca730
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 0x140131dab
mov r12, qword [rax + rcx*8]
nop dword [rax + rax]
lea rcx, [rdi + 0x10]
mov rbx, qword [rcx + 0x10]
call fcn.1400cddb0
mov r15, rax
mov r14, qword [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.1400cddb0
cmp r14, rbx
jne 0x140131d76
mov r8, r14
mov rdx, r15
mov rcx, rax
call fcn.14026c5a0
test eax, eax
je 0x140131d81
cmp rdi, r12
je 0x140131d97
mov rdi, qword [rdi + 8]
jmp 0x140131d40
mov r14, qword [rsp + 0x60]
mov r15, qword [rsp + 0x70]
movabs r12, 0xcbf29ce484222325
jmp 0x140131dae
mov r14, qword [rsp + 0x60]
mov r15, qword [rsp + 0x70]
movabs r12, 0xcbf29ce484222325
mov rdi, rsi
test rdi, rdi
jne 0x140131db7
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 0x140131e09
mov rbx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x140131e10
mov rdx, r15
lea rcx, [rsp + 0x78]
call rbx
jmp 0x140131e10
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
lea rcx, [rsp + 0x40]
call fcn.1400ca810
call fcn.1400f47a0
mov rdi, rax
lea rdx, str.NtLoadDriver
lea rcx, [rsp + 0x40]
call fcn.1400ca900
nop
call fcn.140137950
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.1400ddef0
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.1400ca730
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 0x140131ee9
mov r12, qword [rax + rcx*8]
nop word [rax + rax]
lea rcx, [rdi + 0x10]
mov rbx, qword [rcx + 0x10]
call fcn.1400cddb0
mov r15, rax
mov r14, qword [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.1400cddb0
cmp r14, rbx
jne 0x140131ed6
mov r8, r14
mov rdx, r15
mov rcx, rax
call fcn.14026c5a0
test eax, eax
je 0x140131ee1
cmp rdi, r12
je 0x140131ee4
mov rdi, qword [rdi + 8]
jmp 0x140131ea0
mov rsi, rdi
mov r14, qword [rsp + 0x60]
test rsi, rsi
jne 0x140131ef2
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 0x140131f43
mov rbx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x140131f49
lea rcx, [rsp + 0x78]
call rbx
mov ebx, eax
jmp 0x140131f4e
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, 0xc0000138
lea rcx, [rsp + 0x40]
call fcn.1400ca810
nop
lea rcx, [rbp - 0x78]
call fcn.1400d3900
mov eax, ebx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1401e3750
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.1400beb70
int3