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

Disassembly:
jmp 0x140039390
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x4d8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xca
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4f8]
mov rax, qword [0x140069380]
xor rax, rbp
mov qword [rbp + 0x490], rax
lea rcx, [0x140074468]
call fcn.1400181a8
lea rcx, [rbp + 8]
call fcn.140017be0
nop
lea r8, [rbp + 8]
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rbp + 0x48]
call fcn.1400182d9
nop
mov r8, qword [rbp + 0x4c0]
lea rdx, str.___
lea rcx, [rbp + 0x88]
call fcn.1400182d9
nop
lea rcx, [rbp + 0x48]
call fcn.140017618
lea r8, [rbp + 0xc8]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [rbp + 0xe4], eax
cmp dword [rbp + 0xe4], 0
je 0x140039475
mov byte [rbp + 0x3b4], 0
lea rcx, [rbp + 0x88]
call fcn.140017f19
nop
lea rcx, [rbp + 0x48]
call fcn.140017f19
nop
lea rcx, [rbp + 8]
call fcn.140017f19
movzx eax, byte [rbp + 0x3b4]
jmp 0x140039778
lea rcx, [rbp + 0x88]
call fcn.14001733e
shl rax, 1
mov qword [rbp + 0x488], rax
lea rcx, [rbp + 0x88]
call fcn.140017618
mov rcx, qword [rbp + 0x488]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, str.ImagePath
xor edx, edx
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rbp + 0xe4], eax
cmp dword [rbp + 0xe4], 0
je 0x140039512
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [rbp + 0x3d4], 0
lea rcx, [rbp + 0x88]
call fcn.140017f19
nop
lea rcx, [rbp + 0x48]
call fcn.140017f19
nop
lea rcx, [rbp + 8]
call fcn.140017f19
movzx eax, byte [rbp + 0x3d4]
jmp 0x140039778
mov dword [rsp + 0x28], 4
lea rax, [0x14005b36c]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.Type
xor edx, edx
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rbp + 0xe4], eax
cmp dword [rbp + 0xe4], 0
je 0x140039591
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [rbp + 0x3f4], 0
lea rcx, [rbp + 0x88]
call fcn.140017f19
nop
lea rcx, [rbp + 0x48]
call fcn.140017f19
nop
lea rcx, [rbp + 8]
call fcn.140017f19
movzx eax, byte [rbp + 0x3f4]
jmp 0x140039778
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 0x108], rax
cmp qword [rbp + 0x108], 0
jne 0x1400395ef
mov byte [rbp + 0x414], 0
lea rcx, [rbp + 0x88]
call fcn.140017f19
nop
lea rcx, [rbp + 0x48]
call fcn.140017f19
nop
lea rcx, [rbp + 8]
call fcn.140017f19
movzx eax, byte [rbp + 0x414]
jmp 0x140039778
lea rdx, str.RtlAdjustPrivilege
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x128], rax
lea rdx, str.NtLoadDriver
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x148], rax
mov dword [rbp + 0x164], 0xa
lea r9, [rbp + 0x184]
xor r8d, r8d
mov dl, 1
mov ecx, dword [rbp + 0x164]
call qword [rbp + 0x128]
mov dword [rbp + 0x1a4], eax
cmp dword [rbp + 0x1a4], 0
jge 0x140039689
mov byte [rbp + 0x434], 0
lea rcx, [rbp + 0x88]
call fcn.140017f19
nop
lea rcx, [rbp + 0x48]
call fcn.140017f19
nop
lea rcx, [rbp + 8]
call fcn.140017f19
movzx eax, byte [rbp + 0x434]
jmp 0x140039778
lea r8, [rbp + 8]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp + 0x1c8]
call fcn.1400182d9
nop
lea rcx, [rbp + 0x1c8]
call fcn.140017618
mov rdx, rax
lea rcx, [rbp + 0x208]
call fcn.1400180e5
lea rcx, [rbp + 0x208]
call qword [rbp + 0x148]
mov dword [rbp + 0x1a4], eax
cmp dword [rbp + 0x1a4], 0xc000010e
jne 0x140039718
mov byte [rbp + 0x454], 1
lea rcx, [rbp + 0x1c8]
call fcn.140017f19
nop
lea rcx, [rbp + 0x88]
call fcn.140017f19
nop
lea rcx, [rbp + 0x48]
call fcn.140017f19
nop
lea rcx, [rbp + 8]
call fcn.140017f19
movzx eax, byte [rbp + 0x454]
jmp 0x140039778
cmp dword [rbp + 0x1a4], 0
jl 0x14003972d
mov dword [rbp + 0x484], 1
jmp 0x140039737
mov dword [rbp + 0x484], 0
movzx eax, byte [rbp + 0x484]
mov byte [rbp + 0x474], al
lea rcx, [rbp + 0x1c8]
call fcn.140017f19
nop
lea rcx, [rbp + 0x88]
call fcn.140017f19
nop
lea rcx, [rbp + 0x48]
call fcn.140017f19
nop
lea rcx, [rbp + 8]
call fcn.140017f19
movzx eax, byte [rbp + 0x474]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14005b5b0]
call fcn.140017eab
mov rax, rdi
mov rcx, qword [rbp + 0x490]
xor rcx, rbp
call fcn.1400178b6
lea rsp, [rbp + 0x4a8]
pop rdi
pop rbp
ret