Function at 0x140026540
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140103a28]
xor rax, rsp
mov qword [rbp + 0x28], rax
mov rbx, r8
mov rax, rdx
mov r13, rcx
mov qword [rsp + 0x38], rcx
cmp dword [rcx + 0x18], 0
jne 0x140026a15
cmp qword [rcx + 0x28], 0
je 0x140026a38
xor edi, edi
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], di
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], di
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x38]
mov rcx, rax
call fcn.140025d00
mov qword [rbp - 0x78], rdi
mov r14d, edi
mov qword [rbp - 0x68], rdi
mov r12d, 7
mov qword [rbp - 0x60], r12
mov word [rbp - 0x78], di
mov rsi, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x30], rax
movabs r15, 0x7ffffffffffffffe
movabs r8, 0x7fffffffffffffff
cmp rsi, rax
je 0x1400267b5
nop dword [rax]
mov rdx, qword [rsi + 0x10]
mov r9, rsi
cmp qword [rsi + 0x18], 8
jb 0x140026621
mov r9, qword [rsi]
mov rax, r12
sub rax, r14
cmp rdx, rax
ja 0x140026659
lea rdi, [r14 + rdx]
mov qword [rbp - 0x68], rdi
lea rbx, [rbp - 0x78]
cmp r12, 8
cmovae rbx, qword [rbp - 0x78]
lea rcx, [rbx + r14*2]
lea r8, [rdx + rdx]
mov rdx, r9
call fcn.14006d080
xor eax, eax
mov word [rbx + rdi*2], ax
jmp 0x14002666d
lfence
mov qword [rsp + 0x20], rdx
xor r8d, r8d
lea rcx, [rbp - 0x78]
call fcn.140013fd0
mov r14, qword [rbp - 0x68]
mov rdi, qword [rbp - 0x60]
cmp r14, rdi
jae 0x14002669a
lea rax, [r14 + 1]
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x78]
cmp rdi, 8
cmovae rax, qword [rbp - 0x78]
xor edi, edi
mov dword [rax + r14*2], edi
jmp 0x14002678f
mov rax, r15
sub rax, r14
cmp rax, 1
jb 0x140026a5b
lea r13, [r14 + 1]
mov rbx, r13
or rbx, 7
cmp rbx, r15
jbe 0x1400266c9
mov rbx, r15
movabs rcx, 0x7fffffffffffffff
jmp 0x14002670b
mov rcx, rdi
shr rcx, 1
mov rax, r15
sub rax, rcx
cmp rdi, rax
jbe 0x1400266e9
mov rbx, r15
movabs rcx, 0x7fffffffffffffff
jmp 0x14002670b
lea rax, [rdi + rcx]
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140026a0f
lfence
add rcx, rcx
call fcn.140003420
mov r12, rax
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x60], rbx
add r14, r14
mov r8, r14
mov rcx, rax
cmp rdi, 8
jb 0x14002677c
mov rbx, qword [rbp - 0x78]
mov rdx, rbx
call fcn.14006d080
xor eax, eax
mov dword [r14 + r12], eax
lea rdx, [rdi*2 + 2]
cmp rdx, 0x1000
jb 0x14002676f
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x140026a61
mov rbx, rcx
lfence
mov rcx, rbx
call fcn.140069cb8
jmp 0x14002678b
lea rdx, [rbp - 0x78]
call fcn.14006d080
xor edi, edi
mov dword [r14 + r12], edi
mov qword [rbp - 0x78], r12
add rsi, 0x20
mov r12, qword [rbp - 0x60]
mov r14, qword [rbp - 0x68]
cmp rsi, qword [rsp + 0x30]
jne 0x140026610
mov r13, qword [rsp + 0x38]
movabs r8, 0x7fffffffffffffff
cmp r14, r12
jae 0x1400267e2
lea rax, [r14 + 1]
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x78]
cmp r12, 8
cmovae rax, qword [rbp - 0x78]
mov dword [rax + r14*2], 0
mov rdi, qword [rbp - 0x78]
xor esi, esi
jmp 0x1400268b7
mov rax, r15
sub rax, r14
cmp rax, 1
jb 0x140026a5b
lea rbx, [r14 + 1]
mov rcx, rbx
or rcx, 7
cmp rcx, r15
ja 0x140026830
mov rdx, r12
shr rdx, 1
mov rax, r15
sub rax, rdx
cmp r12, rax
ja 0x140026830
lea rax, [rdx + r12]
mov r15, rcx
cmp rcx, rax
cmovb r15, rax
lea rcx, [r15 + 1]
cmp rcx, r8
ja 0x140026a0f
jmp 0x140026833
mov rcx, r8
lfence
add rcx, rcx
call fcn.140003420
mov rdi, rax
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x60], r15
add r14, r14
mov r8, r14
mov rcx, rax
cmp r12, 8
jb 0x1400268a4
mov rbx, qword [rbp - 0x78]
mov rdx, rbx
call fcn.14006d080
xor esi, esi
mov dword [r14 + rdi], esi
lea rdx, [r12*2 + 2]
cmp rdx, 0x1000
jb 0x140026897
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x140026a61
mov rbx, rcx
lfence
mov rcx, rbx
call fcn.140069cb8
jmp 0x1400268b3
lea rdx, [rbp - 0x78]
call fcn.14006d080
xor esi, esi
mov dword [r14 + rdi], esi
mov qword [rbp - 0x78], rdi
mov eax, dword [rbp - 0x68]
add eax, eax
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rcx, rdi
lea r8, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae r8, qword [rbp - 0x58]
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rdx, qword [rbp - 0x38]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 7
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
jne 0x140026a67
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x140026946
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140026941
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140026aac
call fcn.140069cb8
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], si
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x140026996
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140026991
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140026ab2
call fcn.140069cb8
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], si
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x1400269e2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400269dd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140026a09
call fcn.140069cb8
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.140069d50
mov rbx, qword [rsp + 0x188]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14007b2e8
nop
call fcn.1400096a0
nop
lea rdx, str.Storage_is_not_in_write_mode
lea rcx, [rsp + 0x40]
call fcn.140014e60
lea rdx, [0x1401010c0]
lea rcx, [rsp + 0x40]
call fcn.14006bf90
int3
lea rdx, str.Registry_root_key_handle_is_null
lea rcx, [rsp + 0x58]
call fcn.140014e60
lea rdx, [0x1401010c0]
lea rcx, [rsp + 0x58]
call fcn.14006bf90
nop
call fcn.140009760
int3
call fcn.14007b2e8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x18]
call fcn.140013190
nop
mov r8, rax
lea rdx, str.Failed_to_set_registry_key_value__error:
lea rcx, [rbp + 8]
call fcn.140011730
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140011e00
lea rdx, [0x1401010c0]
lea rcx, [rsp + 0x70]
call fcn.14006bf90
nop
call fcn.14007b2e8
nop
call fcn.14007b2e8
int3