Function at 0x140090c60
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xc0
mov rax, qword [0x1402ba878]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rdi, r9
mov rbp, r8
mov rbx, rcx
lea rcx, [rsp + 0x58]
call fcn.14008adf0
cmp qword [rax + 0x18], 8
jb 0x140090c9d
mov rax, qword [rax]
xor r14d, r14d
mov qword [rsp + 0x40], r14
lea rcx, [rsp + 0x50]
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, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140090d1a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140090d15
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140090d15
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a6c68
test ebx, ebx
jne 0x140090ebc
mov rdx, rdi
lea rcx, [rsp + 0x98]
call fcn.14008adf0
nop
cmp qword [rax + 0x18], 8
jb 0x140090d3d
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [rax*2 + 2]
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.14008adf0
mov rbx, rax
cmp qword [rax + 0x18], 8
jb 0x140090d67
mov rbx, qword [rax]
mov rdx, rbp
lea rcx, [rsp + 0x78]
call fcn.14008adf0
cmp qword [rax + 0x18], 8
jb 0x140090d7e
mov rax, qword [rax]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
setne bl
mov rdx, qword [rsp + 0x90]
cmp rdx, 8
jb 0x140090deb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140090de6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140090de6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a6c68
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x90], 7
mov word [rsp + 0x78], r14w
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140090e4a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140090e45
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140090e45
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a6c68
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r14w
mov rdx, qword [rsp + 0xb0]
cmp rdx, 8
jb 0x140090ea9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140090ea4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140090ea4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a6c68
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x140090ebc
mov al, 1
jmp 0x140090ebe
xor al, al
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400a6d80
add rsp, 0xc0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret