Function at 0x140029af0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1e8]
sub rsp, 0x2e0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rdi
mov rax, qword [0x140095080]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rbx, r8
mov rdi, rdx
cmp qword [r8 + 0x10], 0
je 0x140029c73
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x78], rax
mov dword [rbp - 0x78], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call fcn.1400482f0
cmp qword [rbx + 0x18], 8
jb 0x140029b62
mov rbx, qword [rbx]
mov r9, rbx
lea r8, [0x1400837d8]
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.14001d710
lea r8, [rbp - 0x80]
lea rdx, str.systemCurrentControlSetServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, eax
test eax, eax
jne 0x140029c3c
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140029ba9
mov rdx, qword [rdi]
lea r8, [rsp + 0x78]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ebx, eax
test eax, eax
jne 0x140029c3c
lea rcx, [rbp - 0x40]
mov rax, 0xffffffffffffffff
nop dword [rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140029bd0
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x78]
test eax, eax
jne 0x140029c41
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 4]
xor r8d, r8d
lea rdx, str.Type
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
jle 0x140029c4c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
jle 0x140029c5b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140029c73
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x140029ded
mov r8, rdi
lea rdx, str._registrymachineSYSTEMCurrentControlSetServices_
lea rcx, [rbp - 0x70]
call fcn.14002a0e0
nop
call fcn.14000fbb0
mov rbx, rax
lea rdi, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rdi, qword [rbp - 0x70]
movdqa xmm0, xmmword [0x140084730]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov r8d, 0x14
lea rdx, str.RtlInitUnicodeString
lea rcx, [rsp + 0x30]
call fcn.140002580
nop
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140011060
test rax, rax
je 0x140029ce4
mov rdx, rdi
lea rcx, [rbp - 0x50]
call rax
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140029d21
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140029d1c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140029e17
call fcn.14004654c
call fcn.14000fbb0
mov rbx, rax
movdqa xmm0, xmmword [0x140084730]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
mov r8d, 0xc
lea rdx, str.NtLoadDriver
lea rcx, [rsp + 0x50]
call fcn.140002580
nop
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140011060
test rax, rax
je 0x140029d70
lea rcx, [rbp - 0x50]
call rax
mov ebx, eax
jmp 0x140029d75
mov ebx, 0xc0000138
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140029daf
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140029da9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140029e1d
call fcn.14004654c
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140029deb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140029de6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140029e11
call fcn.14004654c
mov eax, ebx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140045ef0
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14004cff4
nop
call fcn.14004cff4
nop
call fcn.14004cff4
int3