Function at 0x140033590
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 [0x1400fc100]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rbx, r8
mov rdi, rdx
mov rcx, r8
call fcn.140007680
xor r14d, r14d
test al, al
jne 0x140033749
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.1400bc070
mov rcx, rbx
call fcn.1400076b0
mov r9, rax
lea r8, str.___s
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.1400278a0
lea r8, [rsp + 0x58]
lea rdx, str.systemCurrentControlSetServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x140033671
mov rcx, qword [rsp + 0x50]
test rcx, rcx
jle 0x140033649
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jle 0x140033735
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x140033a25
mov rcx, rdi
call fcn.1400076b0
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140033639
lea rcx, [rbp - 0x60]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], r14w
jne 0x1400336a0
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 0x14003363e
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 0x140033721
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jle 0x140033731
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140033749
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x140033a25
mov r8, rdi
lea rdx, str._registrymachineSYSTEMCurrentControlSetServices_
lea rcx, [rsp + 0x78]
call fcn.14000bbd0
nop
call fcn.14001bdd0
mov rdi, rax
lea rcx, [rsp + 0x78]
call fcn.1400076b0
mov r15, rax
mov qword [rsp + 0x60], rax
lea rdx, str.RtlInitUnicodeString
lea rcx, [rsp + 0x30]
call fcn.140007eb0
nop
call fcn.140035d20
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.140007b90
mov rbx, rax
lea rcx, [rsp + 0x30]
call fcn.140007ba0
mov r8, rbx
mov rdx, rax
movabs r12, 0xcbf29ce484222325
mov rcx, r12
call fcn.140001170
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 0x14003386b
mov r12, qword [rax + rcx*8]
nop word [rax + rax]
lea rcx, [rdi + 0x10]
mov rbx, qword [rcx + 0x10]
call fcn.140009e30
mov r15, rax
mov rsi, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.140009e30
cmp rsi, rbx
jne 0x140033836
mov r8, rsi
mov rdx, r15
mov rcx, rax
call fcn.1400bcab0
test eax, eax
je 0x140033841
cmp rdi, r12
je 0x140033857
mov rdi, qword [rdi + 8]
jmp 0x140033800
mov rsi, qword [rsp + 0x50]
mov r15, qword [rsp + 0x60]
movabs r12, 0xcbf29ce484222325
jmp 0x14003386e
mov rsi, qword [rsp + 0x50]
mov r15, qword [rsp + 0x60]
movabs r12, 0xcbf29ce484222325
mov rdi, r14
test rdi, rdi
jne 0x140033877
mov rdi, qword [r13]
mov qword [rsp + 0x58], rdi
mov rdx, r13
lea rcx, [rsp + 0x58]
call fcn.140001790
mov rax, qword [r13]
mov qword [rsp + 0x50], rax
mov rdx, r13
lea rcx, [rsp + 0x50]
call fcn.140001790
mov rax, qword [rsp + 0x58]
mov rcx, rsi
cmp rax, qword [rsp + 0x50]
je 0x1400338c9
mov rbx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x1400338d0
mov rdx, r15
lea rcx, [rsp + 0x68]
call rbx
jmp 0x1400338d0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
lea rcx, [rsp + 0x30]
call fcn.140007dc0
call fcn.14001bdd0
mov rdi, rax
lea rdx, str.NtLoadDriver
lea rcx, [rsp + 0x30]
call fcn.140007eb0
nop
call fcn.140035d20
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.140007b90
mov rbx, rax
lea rcx, [rsp + 0x30]
call fcn.140007ba0
mov r8, rbx
mov rdx, rax
mov rcx, r12
call fcn.140001170
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 0x1400339a9
mov r12, qword [rax + rcx*8]
nop word [rax + rax]
lea rcx, [rdi + 0x10]
mov rbx, qword [rcx + 0x10]
call fcn.140009e30
mov r15, rax
mov rsi, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.140009e30
cmp rsi, rbx
jne 0x140033996
mov r8, rsi
mov rdx, r15
mov rcx, rax
call fcn.1400bcab0
test eax, eax
je 0x1400339a1
cmp rdi, r12
je 0x1400339a4
mov rdi, qword [rdi + 8]
jmp 0x140033960
mov r14, rdi
mov rsi, qword [rsp + 0x50]
test r14, r14
jne 0x1400339b2
mov r14, qword [r13]
mov qword [rsp + 0x58], r14
mov rdx, r13
lea rcx, [rsp + 0x58]
call fcn.140001790
mov rax, qword [r13]
mov qword [rsp + 0x50], rax
mov rdx, r13
lea rcx, [rsp + 0x50]
call fcn.140001790
mov rax, qword [rsp + 0x58]
mov rcx, rsi
cmp rax, qword [rsp + 0x50]
je 0x140033a03
mov rbx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x140033a09
lea rcx, [rsp + 0x68]
call rbx
mov ebx, eax
jmp 0x140033a0e
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, 0xc0000138
lea rcx, [rsp + 0x30]
call fcn.140007dc0
nop
lea rcx, [rsp + 0x78]
call fcn.1400079d0
mov eax, ebx
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.14008e960
mov rbx, qword [rsp + 0x300]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret