Function at 0x1400c3390
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x140672360]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rbx, rdx
xor esi, esi
mov r12d, esi
mov dword [rsp + 0x50], esi
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
xor edx, edx
mov cl, 1
call fcn.1401d3b80
mov r13, rax
mov qword [rbp], rax
mov qword [rbp + 8], rsi
movdqa xmm0, xmmword [0x14060af30]
movdqu xmmword [rbp + 0x18], xmm0
mov word [rbp + 8], si
mov dword [rbp + 0x28], 2
test rax, rax
jne 0x1400c3458
lea rax, str.0cg_
mov rcx, qword [str.0cg_]
cmp rcx, rax
je 0x1400c3450
test byte [rcx + 0x1c], 1
je 0x1400c3450
cmp byte [rcx + 0x19], 2
jb 0x1400c3450
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.0cg_]
lea edx, [rsi + 0x1c]
mov r9d, eax
lea r8, [0x1405f62c8]
mov rcx, qword [rcx + 0x10]
call fcn.140082b10
xor dil, dil
jmp 0x1400c380c
mov dil, 1
mov rbx, qword [rbx]
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
jne 0x1400c380c
nop dword [rax + rax]
lea r14, [rbx + 0x40]
mov rdi, r14
cmp qword [r14 + 0x18], 8
jb 0x1400c3481
mov rdi, qword [r14]
mov edx, 0x5c
mov rcx, rdi
call fcn.14035b2dc
test rax, rax
je 0x1400c3497
lea rdi, [rax + 2]
mov qword [rsp + 0x70], rsi
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], si
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], 0
jne 0x1400c34b4
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.1400739a0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], si
mov dword [rbp - 0x48], 2
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
mov r8, qword [rbp - 0x80]
lea rcx, [rbp - 0x68]
call fcn.1400739a0
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
lea rax, [rbp - 0x48]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x102
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop
mov rdx, qword [rbp - 0x70]
test rdx, rdx
je 0x1400c3964
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
lea rsi, [r14 + 0x20]
xor eax, eax
mov rcx, qword [rsi + 0x10]
lea r15, [rcx*2 + 2]
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
test r15, r15
je 0x1400c35e6
movabs rax, 0x7fffffffffffffff
cmp r15, rax
ja 0x1400c3a2d
lfence
mov rcx, r15
call fcn.140073800
mov qword [rsp + 0x58], rax
lea rdi, [r15 + rax]
mov qword [rsp + 0x68], rdi
mov r8, r15
xor edx, edx
mov rcx, rax
call fcn.14035c350
mov qword [rsp + 0x60], rdi
mov rcx, qword [rsi + 0x10]
mov r13, qword [rbp]
mov rax, qword [rsp + 0x68]
mov r12d, dword [rsp + 0x50]
or r12d, 1
mov dword [rsp + 0x50], r12d
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400c35fc
mov rdx, qword [rsi]
lea rdi, [rdx + rcx*2]
jb 0x1400c3605
mov rsi, qword [rsi]
sub rdi, rsi
mov r15, qword [rsp + 0x58]
sub rax, r15
cmp rdi, rax
jbe 0x1400c3633
lfence
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.1400b6180
mov r13, qword [rbp]
mov r15, qword [rsp + 0x58]
mov r12d, dword [rsp + 0x50]
mov r8, rdi
mov rdx, rsi
mov rcx, r15
call fcn.14035bc80
lea rax, [rdi + r15]
mov qword [rsp + 0x60], rax
mov rdx, r14
lea rcx, [rbp - 0x40]
call fcn.1400733c0
nop
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x20]
call fcn.1400ae170
mov r9d, 1
mov dword [rbp - 8], r9d
and r12d, 0xfffffffe
mov dword [rsp + 0x50], r12d
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400c36ca
mov rdx, qword [rsp + 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c36af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c3a33
call fcn.140359090
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
xor esi, esi
mov qword [rsp + 0x68], rsi
mov r9d, dword [rbp - 8]
jmp 0x1400c36cc
xor esi, esi
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x20]
sub rcx, rax
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rdx, qword [rbp - 0x40]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400c3858
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1400c3749
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c3738
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c3a21
call fcn.140359090
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rsi
lea rcx, [rbp - 0x40]
call fcn.140073b90
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1400c3766
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x70], rsi
lea rcx, [rbp - 0x68]
call fcn.140073b90
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x1400c37b1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c37ac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c3a27
call fcn.140359090
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x1400c37dd
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400c37d8
cmp rbx, qword [rax + 0x10]
jne 0x1400c37d8
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400c37c5
mov rbx, rax
jmp 0x1400c37ff
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x1400c37ff
nop dword [rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x1400c37f0
cmp byte [rbx + 0x19], 0
je 0x1400c3470
mov dil, 1
test r13, r13
je 0x1400c381e
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp], rsi
lea rcx, [rbp + 8]
call fcn.140073b90
movzx eax, dil
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140359070
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rax, str.0cg_
mov rcx, qword [str.0cg_]
cmp rcx, rax
je 0x1400c38aa
test byte [rcx + 0x1c], 1
je 0x1400c38aa
cmp byte [rcx + 0x19], 2
jb 0x1400c38aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [r14 + 0x18], 8
jb 0x1400c3887
mov r14, qword [r14]
mov rcx, qword [str.0cg_]
mov edx, 0x1e
mov dword [rsp + 0x20], eax
mov r9, r14
lea r8, [0x1405f62c8]
mov rcx, qword [rcx + 0x10]
call fcn.140079f00
xor dil, dil
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1400c38f3
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c38e2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c3a21
call fcn.140359090
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rsi
lea rcx, [rbp - 0x40]
call fcn.140073b90
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1400c3910
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x70], rsi
lea rcx, [rbp - 0x68]
call fcn.140073b90
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x1400c380c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c395a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c3a27
call fcn.140359090
jmp 0x1400c380c
lea rax, str.0cg_
mov rcx, qword [str.0cg_]
cmp rcx, rax
je 0x1400c39bd
test byte [rcx + 0x1c], 1
je 0x1400c39bd
cmp byte [rcx + 0x19], 2
jb 0x1400c39bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae r9, qword [rsp + 0x70]
mov rcx, qword [str.0cg_]
mov edx, 0x1d
mov dword [rsp + 0x20], eax
lea r8, [0x1405f62c8]
mov rcx, qword [rcx + 0x10]
call fcn.140079f00
mov rdx, qword [rbp - 0x70]
xor dil, dil
test rdx, rdx
je 0x1400c39d2
mov rcx, rdx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x70], rsi
lea rcx, [rbp - 0x68]
call fcn.140073b90
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x1400c380c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c395a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c3a27
jmp 0x1400c395a
call fcn.140368068
nop
call fcn.140368068
nop
call fcn.1400710c0
nop
call fcn.140368068
int3