Function at 0x140063e90
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 - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x140200100]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rbx, r8
mov rdi, rdx
mov rcx, r8
call fcn.1400096a0
xor r14d, r14d
test al, al
jne 0x140064049
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x60], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call fcn.140198190
mov rcx, rbx
call fcn.140009740
mov r9, rax
lea r8, str.___s
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.14004e050
lea r8, [rsp + 0x58]
lea rdx, str.systemCurrentControlSetServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x140063f71
mov rcx, qword [rsp + 0x50]
test rcx, rcx
jle 0x140063f49
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jle 0x140064035
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x140064325
mov rcx, rdi
call fcn.140009740
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140063f39
lea rcx, [rbp - 0x60]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], r14w
jne 0x140063fa0
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
jne 0x140063f3e
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
jle 0x140064021
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jle 0x140064031
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140064049
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x140064325
mov r8, rdi
lea rdx, str._registrymachineSYSTEMCurrentControlSetServices_
lea rcx, [rsp + 0x78]
call fcn.14000e210
nop
call fcn.140027af0
mov rdi, rax
lea rcx, [rsp + 0x78]
call fcn.140009740
mov r15, rax
mov qword [rsp + 0x60], rax
lea rdx, str.RtlInitUnicodeString
lea rcx, [rsp + 0x30]
call fcn.140009fc0
nop
call fcn.140069c70
lea rsi, [rdi + 0x40]
mov qword [rsp + 0x50], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsp + 0x58], r14
lea r13, [rdi + 8]
lea rcx, [rsp + 0x30]
call fcn.140009ca0
mov rbx, rax
lea rcx, [rsp + 0x30]
call fcn.140009cb0
mov r8, rbx
mov rdx, rax
movabs r12, 0xcbf29ce484222325
mov rcx, r12
call fcn.1400014b0
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 0x14006416b
mov r12, qword [rax + rcx*8]
nop word [rax + rax]
lea rcx, [rdi + 0x10]
mov rbx, qword [rcx + 0x10]
call fcn.14000c100
mov r15, rax
mov rsi, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.14000c100
cmp rsi, rbx
jne 0x140064136
mov r8, rsi
mov rdx, r15
mov rcx, rax
call fcn.140198bd0
test eax, eax
je 0x140064141
cmp rdi, r12
je 0x140064157
mov rdi, qword [rdi + 8]
jmp 0x140064100
mov rsi, qword [rsp + 0x50]
mov r15, qword [rsp + 0x60]
movabs r12, 0xcbf29ce484222325
jmp 0x14006416e
mov rsi, qword [rsp + 0x50]
mov r15, qword [rsp + 0x60]
movabs r12, 0xcbf29ce484222325
mov rdi, r14
test rdi, rdi
jne 0x140064177
mov rdi, qword [r13]
mov qword [rsp + 0x58], rdi
mov rdx, r13
lea rcx, [rsp + 0x58]
call fcn.140001c20
mov rax, qword [r13]
mov qword [rsp + 0x50], rax
mov rdx, r13
lea rcx, [rsp + 0x50]
call fcn.140001c20
mov rax, qword [rsp + 0x58]
mov rcx, rsi
cmp rax, qword [rsp + 0x50]
je 0x1400641c9
mov rbx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x1400641d0
mov rdx, r15
lea rcx, [rsp + 0x68]
call rbx
jmp 0x1400641d0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
lea rcx, [rsp + 0x30]
call fcn.140009ed0
call fcn.140027af0
mov rdi, rax
lea rdx, str.NtLoadDriver
lea rcx, [rsp + 0x30]
call fcn.140009fc0
nop
call fcn.140069c70
lea rsi, [rdi + 0x40]
mov qword [rsp + 0x50], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsp + 0x58], r14
lea r13, [rdi + 8]
lea rcx, [rsp + 0x30]
call fcn.140009ca0
mov rbx, rax
lea rcx, [rsp + 0x30]
call fcn.140009cb0
mov r8, rbx
mov rdx, rax
mov rcx, r12
call fcn.1400014b0
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 0x1400642a9
mov r12, qword [rax + rcx*8]
nop word [rax + rax]
lea rcx, [rdi + 0x10]
mov rbx, qword [rcx + 0x10]
call fcn.14000c100
mov r15, rax
mov rsi, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.14000c100
cmp rsi, rbx
jne 0x140064296
mov r8, rsi
mov rdx, r15
mov rcx, rax
call fcn.140198bd0
test eax, eax
je 0x1400642a1
cmp rdi, r12
je 0x1400642a4
mov rdi, qword [rdi + 8]
jmp 0x140064260
mov r14, rdi
mov rsi, qword [rsp + 0x50]
test r14, r14
jne 0x1400642b2
mov r14, qword [r13]
mov qword [rsp + 0x58], r14
mov rdx, r13
lea rcx, [rsp + 0x58]
call fcn.140001c20
mov rax, qword [r13]
mov qword [rsp + 0x50], rax
mov rdx, r13
lea rcx, [rsp + 0x50]
call fcn.140001c20
mov rax, qword [rsp + 0x58]
mov rcx, rsi
cmp rax, qword [rsp + 0x50]
je 0x140064303
mov rbx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x140064309
lea rcx, [rsp + 0x68]
call rbx
mov ebx, eax
jmp 0x14006430e
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, 0xc0000138
lea rcx, [rsp + 0x30]
call fcn.140009ed0
nop
lea rcx, [rsp + 0x78]
call fcn.140009a90
mov eax, ebx
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140115b30
mov rbx, qword [rsp + 0x300]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret