Function at 0x140011e60
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 - 0x27]
sub rsp, 0xe0
movaps xmmword [rsp + 0xd0], xmm6
mov rbx, rcx
xor edi, edi
lea rcx, [rbp - 0x59]
call fcn.140008430
nop
movabs r14, 0x7ffffffffffffffe
mov rax, r14
mov rcx, qword [rbp - 0x49]
sub rax, rcx
cmp rax, 0x22
jb 0x14001231b
lea rax, [rbp - 0x59]
cmp qword [rbp - 0x41], 7
cmova rax, qword [rbp - 0x59]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x22
lea r9, str.SYSTEMCurrentControlSetServices_
lea rcx, [rbp - 0x19]
call fcn.140007e60
nop
mov rcx, qword [rbx + 0x10]
mov rax, r14
sub rax, rcx
cmp rax, 4
jb 0x140012321
cmp qword [rbx + 0x18], 7
jbe 0x140011f01
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 4
lea r9, str.___
lea rcx, [rbp - 0x39]
call fcn.140007e60
nop
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 7
cmova rdx, qword [rbp - 0x19]
lea r8, [rbp + 0x77]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov r12, qword [rbp - 0x41]
mov rsi, qword [rbp - 0x59]
movdqa xmm6, xmmword [0x14001e960]
test eax, eax
jne 0x140012207
mov eax, dword [rbp - 0x29]
add eax, eax
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 7
cmova rcx, qword [rbp - 0x39]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 2
lea r8, str.ImagePath
xor edx, edx
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rbp + 0x77]
test eax, eax
je 0x140011fa4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140012207
mov dword [rsp + 0x28], 4
lea rax, [0x14001e920]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.Type
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rbp + 0x77]
test eax, eax
je 0x140011fe0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140012207
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x140015700]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x140012205
lea rdx, str.RtlAdjustPrivilege
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, str.NtLoadDriver
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x7f], rax
lea r9, [rbp + 0x6f]
xor r8d, r8d
mov dl, 1
mov ecx, 0xa
call rbx
test eax, eax
js 0x140012205
mov rcx, r14
mov r14, qword [rbp - 0x49]
sub rcx, r14
cmp rcx, 0x34
jb 0x140012327
lea r13, [rbp - 0x59]
cmp r12, 7
cmova r13, rsi
xorps xmm0, xmm0
movups xmmword [rbp - 0x79], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x69], xmm1
lea r15, [r14 + 0x34]
mov edi, 7
lea rbx, [rbp - 0x79]
cmp r15, rdi
jbe 0x140012118
mov rdi, r15
or rdi, 7
movabs rax, 0x7ffffffffffffffe
cmp rdi, rax
jbe 0x1400120df
mov rdi, rax
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x14001210c
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140012315
mov rcx, rax
call fcn.140012988
test rax, rax
je 0x1400121ee
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140012114
cmp rdi, 0xa
mov eax, 0xa
cmovb rdi, rax
lea rcx, [rdi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140012315
add rcx, rcx
jne 0x1400120aa
xor ebx, ebx
jmp 0x140012114
call fcn.140012988
mov rbx, rax
mov qword [rbp - 0x79], rbx
mov qword [rbp - 0x69], r15
mov qword [rbp - 0x61], rdi
movaps xmm0, xmmword [str.RegistryMachineSystemCurrentControlSetServices_]
movups xmmword [rbx], xmm0
movaps xmm1, xmmword [0x14001e8b0]
movups xmmword [rbx + 0x10], xmm1
movaps xmm0, xmmword [0x14001e8c0]
movups xmmword [rbx + 0x20], xmm0
movaps xmm1, xmmword [0x14001e8d0]
movups xmmword [rbx + 0x30], xmm1
movaps xmm0, xmmword [0x14001e8e0]
movups xmmword [rbx + 0x40], xmm0
movaps xmm1, xmmword [0x14001e8f0]
movups xmmword [rbx + 0x50], xmm1
movsd xmm0, qword [0x14001e900]
movsd qword [rbx + 0x60], xmm0
lea rcx, [rbx + 0x68]
lea r8, [r14 + r14]
mov rdx, r13
call sub.VCRUNTIME140.dll_memcpy
xor edi, edi
mov word [rbx + r15*2], di
lea rdx, [rbp - 0x79]
cmp qword [rbp - 0x61], 7
cmova rdx, qword [rbp - 0x79]
lea rcx, [rbp + 7]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp + 7]
call qword [rbp + 0x7f]
mov ebx, eax
cmp eax, 0xc000010e
jne 0x1400121b1
mov bl, 1
jmp 0x1400121b7
shr ebx, 0x1f
xor bl, 1
mov rdx, qword [rbp - 0x61]
cmp rdx, 7
jbe 0x1400121fa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400121f5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400121f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400129c4
movdqu xmmword [rbp - 0x69], xmm6
mov word [rbp - 0x79], di
jmp 0x140012209
xor edi, edi
xor bl, bl
mov rdx, qword [rbp - 0x21]
cmp rdx, 7
jbe 0x140012254
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012247
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140012247
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400129c4
movdqa xmm6, xmmword [0x14001e960]
movdqu xmmword [rbp - 0x29], xmm6
mov word [rbp - 0x39], di
mov rdx, qword [rbp - 1]
cmp rdx, 7
jbe 0x1400122a8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001229b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001229b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400129c4
movdqa xmm6, xmmword [0x14001e960]
movdqu xmmword [rbp - 9], xmm6
mov word [rbp - 0x19], di
cmp r12, 7
jbe 0x1400122ef
lea rdx, [r12*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400122e7
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400122e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1400129c4
movzx eax, bl
mov rbx, qword [rsp + 0x120]
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400066c0
nop
call fcn.140006760
nop
call fcn.140006760
nop
call fcn.140006760
int3