Function at 0x140090c10
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.14008ada0
cmp qword [rax + 0x18], 8
jb 0x140090c4d
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 0x140090cca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140090cc5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140090cc5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a6c18
test ebx, ebx
jne 0x140090e6c
mov rdx, rdi
lea rcx, [rsp + 0x98]
call fcn.14008ada0
nop
cmp qword [rax + 0x18], 8
jb 0x140090ced
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.14008ada0
mov rbx, rax
cmp qword [rax + 0x18], 8
jb 0x140090d17
mov rbx, qword [rax]
mov rdx, rbp
lea rcx, [rsp + 0x78]
call fcn.14008ada0
cmp qword [rax + 0x18], 8
jb 0x140090d2e
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 0x140090d9b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140090d96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140090d96
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a6c18
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x90], 7
mov word [rsp + 0x78], r14w
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140090dfa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140090df5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140090df5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a6c18
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r14w
mov rdx, qword [rsp + 0xb0]
cmp rdx, 8
jb 0x140090e59
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140090e54
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140090e54
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a6c18
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x140090e6c
mov al, 1
jmp 0x140090e6e
xor al, al
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400a6d30
add rsp, 0xc0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret