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

Disassembly:
jmp 0x14017c970
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2f8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x7a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x318]
mov rax, qword [0x140329a40]
xor rax, rbp
mov qword [rbp + 0x298], rax
lea rcx, [0x14035171d]
call fcn.1400e103a
mov edx, 8
lea rcx, [rbp + 8]
call fcn.1400daef1
lea rcx, [rbp + 8]
call fcn.1400de76d
nop
mov edx, 8
lea rcx, [rbp + 0x88]
call fcn.1400daef1
lea rcx, [rbp + 0x88]
call fcn.1400de76d
nop
mov rcx, qword [rbp + 0x2c0]
call fcn.1400dda25
test eax, eax
jne 0x14017ca2a
mov dword [rbp + 0x1e4], 0
lea rcx, [rbp + 0x88]
call fcn.1400dbf6d
nop
lea rcx, [rbp + 8]
call fcn.1400dbf6d
mov eax, dword [rbp + 0x1e4]
jmp 0x14017cd01
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [rbp + 8]
call fcn.1400debaa
mov rax, qword [rbp + 0x2c0]
add rax, 8
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.1400ddb83
lea rdx, [0x1402c3900]
lea rcx, [rbp + 0x88]
call fcn.1400debaa
mov rax, qword [rbp + 0x2c0]
add rax, 0x10
mov rdx, rax
lea rcx, [rbp + 0x88]
call fcn.1400ddb83
lea rcx, [rbp + 8]
call fcn.1400db531
lea rcx, [rbp + 0x64]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp + 0x28]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
je 0x14017cafc
mov dword [rbp + 0x204], 0
lea rcx, [rbp + 0x88]
call fcn.1400dbf6d
nop
lea rcx, [rbp + 8]
call fcn.1400dbf6d
mov eax, dword [rbp + 0x204]
jmp 0x14017cd01
cmp dword [rbp + 0x64], 1
je 0x14017cb13
lea rdx, str.RegCreateKeyEx_return_REG_CREATED_NEW_KEY
mov ecx, 2
call fcn.1400db7c0
lea rcx, [rbp + 0x88]
call fcn.1400db833
inc eax
mov eax, eax
shl rax, 1
mov dword [rbp + 0xa4], eax
lea rcx, [rbp + 0x88]
call fcn.1400db531
mov ecx, dword [rbp + 0xa4]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
je 0x14017cb9f
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rbp + 0x224], 0
lea rcx, [rbp + 0x88]
call fcn.1400dbf6d
nop
lea rcx, [rbp + 8]
call fcn.1400dbf6d
mov eax, dword [rbp + 0x224]
jmp 0x14017cd01
mov dword [rbp + 0xc4], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0xc4]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
je 0x14017cc14
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rbp + 0x44]
mov dword [rbp + 0x244], eax
lea rcx, [rbp + 0x88]
call fcn.1400dbf6d
nop
lea rcx, [rbp + 8]
call fcn.1400dbf6d
mov eax, dword [rbp + 0x244]
jmp 0x14017cd01
mov dword [rbp + 0xe4], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0xe4]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
je 0x14017cc86
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rbp + 0x44]
mov dword [rbp + 0x264], eax
lea rcx, [rbp + 0x88]
call fcn.1400dbf6d
nop
lea rcx, [rbp + 8]
call fcn.1400dbf6d
mov eax, dword [rbp + 0x264]
jmp 0x14017cd01
mov dword [rbp + 0x104], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x104]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rbp + 0x44], eax
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x2c0]
call fcn.1400e1841
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rbp + 0x284], 1
lea rcx, [rbp + 0x88]
call fcn.1400dbf6d
nop
lea rcx, [rbp + 8]
call fcn.1400dbf6d
mov eax, dword [rbp + 0x284]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x1402c4240]
call fcn.1400dfc67
mov rax, rdi
mov rcx, qword [rbp + 0x298]
xor rcx, rbp
call fcn.1400dd6a1
lea rsp, [rbp + 0x2a8]
pop rdi
pop rbp
ret