Function at 0x140002250
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 - 0x37]
sub rsp, 0xb0
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xor r13d, r13d
lea r8, [rbp - 0x29]
lea rdx, str.SoftwareMyAppData
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1400024f1
mov r15d, r13d
mov r12, qword [0x14000b7f8]
mov rbx, qword [r12]
cmp rbx, r12
je 0x1400024e7
lea rdi, str.Code
nop dword [rax]
nop word [rax + rax]
lea r9, [rbp + 0x29]
mov ecx, r15d
nop word [rax + rax]
sub r9, 2
mov eax, 0xcccccccd
mul ecx
shr edx, 3
movzx eax, dx
shl ax, 2
lea r8d, [rax + rdx]
add r8w, r8w
sub cx, r8w
add cx, 0x30
mov word [r9], cx
mov ecx, edx
test edx, edx
jne 0x1400022e0
lea r8, [rbp + 0x29]
mov rdx, r9
lea rcx, [rbp - 0x49]
call fcn.140004a70
nop
mov r8, qword [rbp - 0x39]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
sub rax, r8
cmp rax, 4
jb 0x1400023d9
lea rax, [r8 + 4]
mov qword [rbp - 0x39], rax
lea rsi, [rbp - 0x49]
cmp rcx, 7
cmova rsi, qword [rbp - 0x49]
lea rax, [0x140007a38]
cmp rax, rsi
jbe 0x14000237e
lea rax, [rsi + r8*2]
cmp rdi, rax
ja 0x14000237e
cmp rsi, rdi
ja 0x14000236c
mov rdi, r13
jmp 0x140002383
mov rdi, rsi
lea rax, str.Code
sub rdi, rax
sar rdi, 1
jmp 0x140002383
mov edi, 4
lea rcx, [rsi + 8]
lea r8, [r8*2 + 2]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
add rdi, rdi
mov r8, rdi
lea rdx, str.Code
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rdi + rsi]
mov r8d, 8
sub r8, rdi
lea rdx, str.Code
add rdx, 8
add rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp - 0x49]
lea rdi, str.Code
jmp 0x1400023f0
mov qword [rsp + 0x28], 4
mov edx, 4
lea rcx, [rbp - 0x49]
call fcn.140004d80
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], r13
mov qword [rbp - 9], r13
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x21], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x11], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
inc r15d
mov rdx, qword [rbp - 0x31]
cmp rdx, 7
jbe 0x140002461
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000245c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000251e
call fcn.14000531c
lea rcx, [rbx + 0x10]
cmp qword [rbx + 0x28], 0xf
jbe 0x140002470
mov rcx, qword [rbx + 0x10]
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 7
cmova rdx, qword [rbp - 0x21]
mov eax, dword [rbx + 0x20]
inc eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rbp - 9]
cmp rdx, 7
jbe 0x1400024db
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400024d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002525
call fcn.14000531c
mov rbx, qword [rbx]
cmp rbx, r12
jne 0x1400022d0
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140004fb0
lea r11, [rsp + 0xb0]
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
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3