Function at 0x140132450
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 0x1401325fc
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.14026c460
mov rcx, rdi
call fcn.1400d3890
mov r9, rax
lea r8, str.___s
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.14011c740
lea r8, [rsp + 0x68]
lea rdx, str.systemCurrentControlSetServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x14013252a
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jle 0x140132502
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
jle 0x1401325e8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x140132924
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 0x1401324f2
lea rcx, [rbp - 0x50]
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rcx + rax*2], si
jne 0x140132554
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 0x1401324f7
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 0x1401325d4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
jle 0x1401325e4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x1401325fc
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x140132924
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 0x14013294e
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.140118410
nop
call fcn.1400f4990
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.1401383d0
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 0x14013276b
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 0x140132736
mov r8, r14
mov rdx, r15
mov rcx, rax
call fcn.14026cea0
test eax, eax
je 0x140132741
cmp rdi, r12
je 0x140132757
mov rdi, qword [rdi + 8]
jmp 0x140132700
mov r14, qword [rsp + 0x60]
mov r15, qword [rsp + 0x70]
movabs r12, 0xcbf29ce484222325
jmp 0x14013276e
mov r14, qword [rsp + 0x60]
mov r15, qword [rsp + 0x70]
movabs r12, 0xcbf29ce484222325
mov rdi, rsi
test rdi, rdi
jne 0x140132777
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 0x1401327c9
mov rbx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x1401327d0
mov rdx, r15
lea rcx, [rsp + 0x78]
call rbx
jmp 0x1401327d0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
lea rcx, [rsp + 0x40]
call fcn.1400ca810
call fcn.1400f4990
mov rdi, rax
lea rdx, str.NtLoadDriver
lea rcx, [rsp + 0x40]
call fcn.1400ca900
nop
call fcn.1401383d0
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 0x1401328a9
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 0x140132896
mov r8, r14
mov rdx, r15
mov rcx, rax
call fcn.14026cea0
test eax, eax
je 0x1401328a1
cmp rdi, r12
je 0x1401328a4
mov rdi, qword [rdi + 8]
jmp 0x140132860
mov rsi, rdi
mov r14, qword [rsp + 0x60]
test rsi, rsi
jne 0x1401328b2
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 0x140132903
mov rbx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x140132909
lea rcx, [rsp + 0x78]
call rbx
mov ebx, eax
jmp 0x14013290e
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.1401e4050
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