Function at 0x14004d280
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rax, qword [0x1400c7070]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r13, rdx
mov r15, rcx
xor r12d, r12d
mov qword [rbp - 0x29], r12
lea rcx, [rbp - 0x19]
call fcn.140020ab0
nop
cmp byte [rbp + 0x17], r12b
je 0x14004d2d5
lea rcx, [rbp - 0x19]
call fcn.1400216c0
jmp 0x14004d67b
mov rax, qword [r15 + 0x10]
mov rsi, 0xffffffffffffffff
mov rdi, rsi
lea rdi, [rdi + 1]
cmp word [rax + rdi*2], 0
jne 0x14004d2e3
mov rax, qword [r15 + 0x18]
mov r14, rsi
inc r14
cmp word [rax + r14*2], 0
jne 0x14004d2f5
lea rbx, [rdi + 2]
add rbx, r14
mov eax, 2
mul rbx
cmovo rax, rsi
mov rcx, rax
call fcn.140062c38
mov qword [rbp - 0x49], rax
mov r8, qword [r15 + 0x18]
mov rdx, rbx
mov rbx, rax
mov rcx, rax
call fcn.14006e2a0
mov eax, 0x2d
mov word [rbx + r14*2], ax
lea rdx, [rdi + 1]
lea rcx, [rbx + 2]
lea rcx, [rcx + r14*2]
mov r8, qword [r15 + 0x10]
call fcn.14006e2a0
movsx rcx, byte [rbp + 0x17]
test rcx, rcx
jne 0x14004d6b7
mov eax, 0x14c
mov qword [rsp + 0x40], r12
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r13
cmp word [rbp - 0x17], ax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
je 0x14004d392
mov dword [rsp + 0x28], 0xf013f
jmp 0x14004d39a
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004d66a
mov rcx, qword [r15 + 8]
test rcx, rcx
je 0x14004d566
mov rcx, qword [rcx + 0x28]
mov rax, rsi
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14004d3c1
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.filename
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14004d66a
mov rax, qword [r15 + 8]
mov rcx, qword [rax + 0x30]
mov rax, rsi
nop dword [rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14004d410
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, [0x1400aa798]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14004d66a
mov rax, qword [r15 + 8]
mov rcx, qword [rax + 0x40]
mov rax, rsi
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14004d460
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.localpath
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14004d66a
mov rax, qword [r15 + 8]
mov rbx, qword [rax + 8]
mov rcx, qword [rbx + 0x58]
mov rax, qword [rcx]
lea rdx, [rbx + 0x30]
mov rax, qword [rax + 0x18]
call qword [0x1400926f0]
mov r14d, dword [rbx + 0x2c]
mov rcx, qword [rbx + 0x58]
mov rax, qword [rcx]
lea rdx, [rbx + 0x30]
mov rax, qword [rax + 0x20]
call qword [0x1400926f0]
lea eax, [r14 - 2]
test eax, 0xfffffffc
jne 0x14004d4ea
cmp r14d, 3
je 0x14004d4ea
mov r12d, 1
mov dword [rbp - 0x21], r12d
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.downloaded
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14004d6b1
mov rax, qword [r15 + 8]
mov rcx, qword [rax + 8]
mov eax, dword [rcx + 8]
mov dword [rbp - 0x21], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.size
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rbp - 0x49]
test eax, eax
jne 0x14004d66a
mov rcx, qword [r15 + 0x10]
nop word [rax + rax]
lea rsi, [rsi + 1]
cmp word [rcx + rsi*2], 0
jne 0x14004d570
lea eax, [rsi*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.username
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14004d66a
lea rax, [r15 + 0x20]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.state
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14004d66a
lea rax, [r15 + 0x30]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.visible
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14004d66a
lea rax, [r15 + 0x34]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.install
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14004d66a
lea rax, [r15 + 0x38]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.remove
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
lea rcx, [rbp - 0x19]
call fcn.1400216c0
mov rcx, rbx
call fcn.140062610
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14004d68a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400625f0
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rbp - 0x49]
jmp 0x14004d66a
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], rax
lea rcx, [rbp - 0x41]
call fcn.140013500
lea rdx, [0x1400c34b0]
lea rcx, [rbp - 0x41]
call fcn.14006517c
int3