Function at 0x14012cdc0
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 [0x1402e4100]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rdi, r8
mov rbx, rdx
xor esi, esi
cmp qword [r8 + 0x10], rsi
je 0x14012cf6c
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.140266b40
mov rcx, rdi
call fcn.1400d1490
mov r9, rax
lea r8, str.___s
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.1401170b0
lea r8, [rsp + 0x68]
lea rdx, str.systemCurrentControlSetServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x14012ce9a
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jle 0x14012ce72
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
jle 0x14012cf58
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x14012d294
mov rcx, rbx
call fcn.1400d1490
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14012ce62
lea rcx, [rbp - 0x50]
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rcx + rax*2], si
jne 0x14012cec4
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 0x14012ce67
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 0x14012cf44
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
jle 0x14012cf54
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x14012cf6c
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x14012d294
lea rcx, str._registrymachineSYSTEMCurrentControlSetServices_
call fcn.1400cd170
mov rcx, rax
call fcn.1400a90e0
mov rdi, rax
mov rcx, rbx
call fcn.1400cfb60
mov r14, rax
mov rcx, rbx
call fcn.1400d1400
sub rax, r14
cmp rax, rdi
jb 0x14012d2be
mov rcx, rbx
call fcn.1400d1490
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.140112d80
nop
call fcn.1400ef2d0
mov rdi, rax
lea rcx, [rbp - 0x78]
call fcn.1400d1490
mov r15, rax
mov qword [rsp + 0x70], rax
lea rdx, str.RtlInitUnicodeString
lea rcx, [rsp + 0x40]
call fcn.1400ca810
nop
call fcn.140132d40
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.14009e7c0
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.14009de20
mov r8, rbx
mov rdx, rax
movabs r12, 0xcbf29ce484222325
mov rcx, r12
call fcn.1400721c0
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 0x14012d0db
mov r12, qword [rax + rcx*8]
nop dword [rax + rax]
lea rcx, [rdi + 0x10]
mov rbx, qword [rcx + 0x10]
call fcn.14009e9a0
mov r15, rax
mov r14, qword [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.14009e9a0
cmp r14, rbx
jne 0x14012d0a6
mov r8, r14
mov rdx, r15
mov rcx, rax
call fcn.140267580
test eax, eax
je 0x14012d0b1
cmp rdi, r12
je 0x14012d0c7
mov rdi, qword [rdi + 8]
jmp 0x14012d070
mov r14, qword [rsp + 0x60]
mov r15, qword [rsp + 0x70]
movabs r12, 0xcbf29ce484222325
jmp 0x14012d0de
mov r14, qword [rsp + 0x60]
mov r15, qword [rsp + 0x70]
movabs r12, 0xcbf29ce484222325
mov rdi, rsi
test rdi, rdi
jne 0x14012d0e7
mov rdi, qword [r13]
mov qword [rsp + 0x68], rdi
mov rdx, r13
lea rcx, [rsp + 0x68]
call fcn.140072680
mov rax, qword [r13]
mov qword [rsp + 0x60], rax
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.140072680
mov rax, qword [rsp + 0x68]
mov rcx, r14
cmp rax, qword [rsp + 0x60]
je 0x14012d139
mov rbx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x14012d140
mov rdx, r15
lea rcx, [rsp + 0x78]
call rbx
jmp 0x14012d140
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
lea rcx, [rsp + 0x40]
call fcn.14009de70
call fcn.1400ef2d0
mov rdi, rax
lea rdx, str.NtLoadDriver
lea rcx, [rsp + 0x40]
call fcn.1400ca810
nop
call fcn.140132d40
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.14009e7c0
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.14009de20
mov r8, rbx
mov rdx, rax
mov rcx, r12
call fcn.1400721c0
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 0x14012d219
mov r12, qword [rax + rcx*8]
nop word [rax + rax]
lea rcx, [rdi + 0x10]
mov rbx, qword [rcx + 0x10]
call fcn.14009e9a0
mov r15, rax
mov r14, qword [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.14009e9a0
cmp r14, rbx
jne 0x14012d206
mov r8, r14
mov rdx, r15
mov rcx, rax
call fcn.140267580
test eax, eax
je 0x14012d211
cmp rdi, r12
je 0x14012d214
mov rdi, qword [rdi + 8]
jmp 0x14012d1d0
mov rsi, rdi
mov r14, qword [rsp + 0x60]
test rsi, rsi
jne 0x14012d222
mov rsi, qword [r13]
mov qword [rsp + 0x68], rsi
mov rdx, r13
lea rcx, [rsp + 0x68]
call fcn.140072680
mov rax, qword [r13]
mov qword [rsp + 0x60], rax
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.140072680
mov rax, qword [rsp + 0x68]
mov rcx, r14
cmp rax, qword [rsp + 0x60]
je 0x14012d273
mov rbx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x14012d279
lea rcx, [rsp + 0x78]
call rbx
mov ebx, eax
jmp 0x14012d27e
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, 0xc0000138
lea rcx, [rsp + 0x40]
call fcn.14009de70
nop
lea rcx, [rbp - 0x78]
call fcn.1400d1500
mov eax, ebx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1401de720
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.140072730
int3