Function at 0x140003710
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x14009f100]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, rdx
mov r14, rcx
xor r15d, r15d
mov dword [rbp + 0x1f], r15d
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x39], xmm1
mov r8d, 0x12
lea rdx, str.SOFTWAREPAIDMEMES
lea rcx, [rbp - 0x49]
call fcn.140001fa0
nop
mov qword [rbp + 0x1f], r15
lea rdx, [rbp - 0x49]
cmp qword [rbp - 0x31], 7
cmova rdx, qword [rbp - 0x49]
mov qword [rsp + 0x40], r15
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2011f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140003a31
mov rbx, qword [rbp + 0x1f]
mov qword [rbp + 0x27], rbx
mov rdx, qword [rbp - 0x31]
cmp rdx, 7
jbe 0x140003804
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400037ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003a4d
call fcn.140036bb4
movdqa xmm0, xmmword [0x140093280]
movdqu xmmword [rbp - 0x39], xmm0
mov word [rbp - 0x49], r15w
test rbx, rbx
je 0x1400039c5
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 7], xmm1
mov r8d, 6
lea rdx, str.PUBLIC
lea rcx, [rbp - 9]
call fcn.140001fa0
nop
mov edi, 1
mov dword [rbp + 0x1f], edi
mov rax, qword [r14 + 0x10]
lea rax, [rax*2 + 2]
mov r12d, 0xffffffff
cmp rax, r12
ja 0x140003a53
cmp qword [r14 + 0x18], 7
jbe 0x140003872
mov r14, qword [r14]
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 7
cmova rdx, qword [rbp - 9]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
mov r9d, edi
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000391b
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
mov r8d, 7
lea rdx, str.PRIVATE
lea rcx, [rbp - 0x29]
call fcn.140001fa0
nop
mov edi, 3
mov dword [rbp + 0x1f], edi
mov rax, qword [rsi + 0x10]
lea rax, [rax*2 + 2]
cmp rax, r12
ja 0x140003a74
cmp qword [rsi + 0x18], 7
jbe 0x1400038e9
mov rsi, qword [rsi]
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 7
cmova rdx, qword [rbp - 0x29]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, 1
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000391b
mov sil, 1
jmp 0x14000391e
xor sil, sil
test dil, 2
je 0x140003979
and edi, 0xfffffffd
mov rdx, qword [rbp - 0x11]
cmp rdx, 7
jbe 0x140003967
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003962
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003a95
call fcn.140036bb4
movdqa xmm0, xmmword [0x140093280]
movdqu xmmword [rbp - 0x19], xmm0
mov word [rbp - 0x29], r15w
test dil, 1
je 0x1400039bb
mov rdx, qword [rbp + 0xf]
cmp rdx, 7
jbe 0x1400039bb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400039b6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003a2b
call fcn.140036bb4
test sil, sil
je 0x1400039c5
mov dil, 1
jmp 0x1400039c8
xor dil, dil
test rbx, rbx
je 0x1400039ff
mov eax, 0x80000000
add rax, rbx
cmp rax, 5
jbe 0x1400039ff
cmp rbx, 0xffffffff80000007
je 0x1400039ff
cmp rbx, 0xffffffff80000060
je 0x1400039ff
cmp rbx, 0xffffffff80000050
je 0x1400039ff
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, dil
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140036840
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140046420
nop
mov edx, eax
lea rcx, [rbp - 9]
call fcn.1400035d0
lea rdx, [0x14009cc98]
lea rcx, [rbp - 9]
call fcn.1400387d0
nop
call fcn.140046420
nop
lea rdx, str.Input_size_t_value_is_too_big:_size_t_value_doesnt_fit_into_a_DWORD.
lea rcx, [rbp - 0x49]
call fcn.1400018a0
lea rdx, [0x14009cb88]
lea rcx, [rbp - 0x49]
call fcn.1400387d0
nop
lea rdx, str.Input_size_t_value_is_too_big:_size_t_value_doesnt_fit_into_a_DWORD.
lea rcx, [rbp - 0x49]
call fcn.1400018a0
lea rdx, [0x14009cb88]
lea rcx, [rbp - 0x49]
call fcn.1400387d0
nop
call fcn.140046420
int3