Function at 0x1400327e0
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 [0x140106b98]
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 0x140032cb5
cmp qword [rcx + 0x28], 0
je 0x140032cd8
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.140031fa0
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 0x140032a55
nop dword [rax]
mov rdx, qword [rsi + 0x10]
mov r9, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400328c1
mov r9, qword [rsi]
mov rax, r12
sub rax, r14
cmp rdx, rax
ja 0x1400328f9
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.14006ec80
xor eax, eax
mov word [rbx + rdi*2], ax
jmp 0x14003290d
lfence
mov qword [rsp + 0x20], rdx
xor r8d, r8d
lea rcx, [rbp - 0x78]
call fcn.14001f9b0
mov r14, qword [rbp - 0x68]
mov rdi, qword [rbp - 0x60]
cmp r14, rdi
jae 0x14003293a
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 0x140032a2f
mov rax, r15
sub rax, r14
cmp rax, 1
jb 0x140032cfb
lea r13, [r14 + 1]
mov rbx, r13
or rbx, 7
cmp rbx, r15
jbe 0x140032969
mov rbx, r15
movabs rcx, 0x7fffffffffffffff
jmp 0x1400329ab
mov rcx, rdi
shr rcx, 1
mov rax, r15
sub rax, rcx
cmp rdi, rax
jbe 0x140032989
mov rbx, r15
movabs rcx, 0x7fffffffffffffff
jmp 0x1400329ab
lea rax, [rdi + rcx]
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140032caf
lfence
add rcx, rcx
call fcn.1400034f0
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 0x140032a1c
mov rbx, qword [rbp - 0x78]
mov rdx, rbx
call fcn.14006ec80
xor eax, eax
mov dword [r14 + r12], eax
lea rdx, [rdi*2 + 2]
cmp rdx, 0x1000
jb 0x140032a0f
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x140032d01
mov rbx, rcx
lfence
mov rcx, rbx
call fcn.14006b8b4
jmp 0x140032a2b
lea rdx, [rbp - 0x78]
call fcn.14006ec80
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 0x1400328b0
mov r13, qword [rsp + 0x38]
movabs r8, 0x7fffffffffffffff
cmp r14, r12
jae 0x140032a82
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 0x140032b57
mov rax, r15
sub rax, r14
cmp rax, 1
jb 0x140032cfb
lea rbx, [r14 + 1]
mov rcx, rbx
or rcx, 7
cmp rcx, r15
ja 0x140032ad0
mov rdx, r12
shr rdx, 1
mov rax, r15
sub rax, rdx
cmp r12, rax
ja 0x140032ad0
lea rax, [rdx + r12]
mov r15, rcx
cmp rcx, rax
cmovb r15, rax
lea rcx, [r15 + 1]
cmp rcx, r8
ja 0x140032caf
jmp 0x140032ad3
mov rcx, r8
lfence
add rcx, rcx
call fcn.1400034f0
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 0x140032b44
mov rbx, qword [rbp - 0x78]
mov rdx, rbx
call fcn.14006ec80
xor esi, esi
mov dword [r14 + rdi], esi
lea rdx, [r12*2 + 2]
cmp rdx, 0x1000
jb 0x140032b37
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x140032d01
mov rbx, rcx
lfence
mov rcx, rbx
call fcn.14006b8b4
jmp 0x140032b53
lea rdx, [rbp - 0x78]
call fcn.14006ec80
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 0x140032d07
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x140032be6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140032be1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140032d4c
call fcn.14006b8b4
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], si
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x140032c36
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140032c31
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140032d52
call fcn.14006b8b4
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], si
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x140032c82
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140032c7d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140032ca9
call fcn.14006b8b4
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.14006b950
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.14007ce08
nop
call fcn.140009770
nop
lea rdx, str.Storage_is_not_in_write_mode
lea rcx, [rsp + 0x40]
call fcn.1400207e0
lea rdx, [0x140103928]
lea rcx, [rsp + 0x40]
call fcn.14006db8c
int3
lea rdx, str.Registry_root_key_handle_is_null
lea rcx, [rsp + 0x58]
call fcn.1400207e0
lea rdx, [0x140103928]
lea rcx, [rsp + 0x58]
call fcn.14006db8c
nop
call fcn.140009830
int3
call fcn.14007ce08
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x18]
call fcn.14001ec20
nop
mov r8, rax
lea rdx, str.Failed_to_set_registry_key_value__error:
lea rcx, [rbp + 8]
call fcn.14001d1c0
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14001d890
lea rdx, [0x140103928]
lea rcx, [rsp + 0x70]
call fcn.14006db8c
nop
call fcn.14007ce08
nop
call fcn.14007ce08
int3