Function at 0x140041f80
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x2f]
sub rsp, 0xa0
mov rax, qword [0x1400f63f8]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rsi, r9
mov rax, r8
mov r10, rdx
mov rdi, qword [rbp + 0x7f]
cmp qword [rdi + 0x38], 0
jne 0x140041fbf
mov eax, 0x57
jmp 0x1400421f3
xor r14d, r14d
mov qword [rbp - 0x21], r14
lea rcx, [rbp - 0x21]
mov qword [rbp - 0x11], rcx
mov byte [rbp - 9], r14b
cmp qword [r8 + 0x18], 8
jb 0x140041fdc
mov rax, qword [r8]
mov qword [rsp + 0x40], r14
lea rcx, [rbp - 0x21]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400421e2
mov rax, qword [rdi + 0x38]
and rax, 0xfffffffffffffffc
lea rbx, vtable.type_info.0
mov rcx, rbx
cmovne rcx, rax
add rcx, 8
lea rdx, [0x1400f7318]
call fcn.140087c94
mov rcx, qword [rdi + 0x38]
and rcx, 0xfffffffffffffffc
test eax, eax
jne 0x14004216a
test rcx, rcx
je 0x140042219
add rcx, 8
lea rdx, [0x1400f7318]
call fcn.140087c94
test eax, eax
jne 0x140042219
mov qword [rbp - 1], r14
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x17], r14
mov r14, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x140042089
mov rdi, qword [rdi]
cmp r14, 8
jae 0x1400420a4
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0x17], 7
lea rax, [rbp - 1]
jmp 0x1400420f1
mov rbx, r14
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp - 1]
call fcn.140003ea0
mov qword [rbp - 1], rax
lea r8, [r14*2 + 2]
mov rdx, rdi
mov rcx, rax
call fcn.140087210
mov qword [rbp + 0x17], rbx
lea rax, [rbp - 1]
cmp rbx, 8
cmovae rax, qword [rbp - 1]
lea ecx, [r14 + r14]
mov qword [rbp + 0xf], r14
cmp qword [rsi + 0x18], 8
jb 0x140042103
mov rsi, qword [rsi]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rdx, qword [rbp + 0x17]
cmp rdx, 8
jb 0x1400421e2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042163
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140042213
call fcn.140084c40
jmp 0x1400421e2
test rcx, rcx
cmovne rbx, rcx
lea rcx, [rbx + 8]
lea rdx, [0x1400f7388]
call fcn.140087c94
test eax, eax
jne 0x1400421dd
mov rcx, qword [rdi + 0x38]
and rcx, 0xfffffffffffffffc
je 0x14004220d
add rcx, 8
lea rdx, [0x1400f7388]
call fcn.140087c94
test eax, eax
jne 0x14004220d
mov eax, dword [rdi]
mov dword [rbp - 0x19], eax
cmp qword [rsi + 0x18], 8
jb 0x1400421b2
mov rsi, qword [rsi]
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
jmp 0x1400421e2
mov ebx, 1
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x1400421f1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140085660
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14002fbb0
nop
call fcn.14008c334
int3
call fcn.14002fbb0
int3