Function at 0x140008520
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x2a0
lea rbp, [rsp + 0x70]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1400341a0]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov r14, rcx
movabs rax, 0x8f5950f46f0cbdcc
mov qword [rbp + 0x80], rax
movabs rax, 0xfea647d14f878087
mov qword [rbp + 0x88], rax
movabs rax, 0x7ae8f1cd9db2edc5
mov qword [rbp + 0x90], rax
movabs rax, 0x9cd889deffa4f108
mov qword [rbp + 0x98], rax
movabs rax, 0xd2af1d1aada94e65
mov qword [rbp + 0xa0], rax
movabs rax, 0xad326f53dfbdc39d
mov qword [rbp + 0xa8], rax
movabs rax, 0x5ea623187e2ceb0a
mov qword [rbp + 0xb0], rax
movabs rax, 0xef1ca5a2e1d12d6a
mov qword [rbp + 0xb8], rax
movabs rax, 0x20a730bfe1ddd195
mov qword [rbp + 0xc0], rax
movabs rax, 0x2badbf0e27b1b66c
mov qword [rbp + 0xc8], rax
movabs rax, 0x4651e63699462d2
mov qword [rbp + 0xd0], rax
movabs rax, 0x4d8ca098058be19e
mov qword [rbp + 0xd8], rax
movabs rax, 0x4b6dbbae6cedfccc
mov qword [rbp + 0xe0], rax
movabs rax, 0xd742541ad59dc275
mov qword [rbp + 0xe8], rax
movabs rax, 0xe79a55a589516b80
mov qword [rbp + 0xf0], rax
movabs rax, 0x925f43c06c447b13
mov qword [rbp + 0xf8], rax
movabs rax, 0x94880f2da4c3f441
mov qword [rbp + 0x100], rax
movabs rax, 0x790ae05cac09c914
mov qword [rbp + 0x108], rax
movabs rax, 0x442f8bd4dff42dda
mov qword [rbp + 0x110], rax
movabs rcx, 0x6b77f9dd89b1238a
mov qword [rbp + 0x118], rcx
movabs rax, 0x8f0d50b26f43bd9f
mov qword [rbp + 0x180], rax
movabs rax, 0xfee347834fc680d0
mov qword [rbp + 0x188], rax
movabs rax, 0x7a8bf1a49dffed99
mov qword [rbp + 0x190], rax
movabs r13, 0x9cb789adffcbf17a
mov qword [rbp + 0x198], r13
movabs rax, 0xd2f81d46addd4e03
mov qword [rbp + 0x1a0], rax
movabs rax, 0xad5d6f37dfd3c3f4
mov qword [rbp + 0x1a8], rax
movabs rax, 0x5ee823387e5feb7d
mov qword [rbp + 0x1b0], rax
movabs rax, 0xef69a5e1e18d2d3e
mov qword [rbp + 0x1b8], rax
movabs rax, 0x20c930dae1afd1e7
mov qword [rbp + 0x1c0], rax
movabs rax, 0x2bdfbf6b27e7b618
mov qword [rbp + 0x1c8], rax
movabs rax, 0x40b1e0c69fd62a1
mov qword [rbp + 0x1d0], rax
movabs rax, 0x4deda0f505c2e1c2
mov qword [rbp + 0x1d8], rax
movabs rax, 0x4b2bbb8e6c88fcab
mov qword [rbp + 0x1e0], rax
movabs rax, 0xd762547fd5f1c21c
mov qword [rbp + 0x1e8], rax
movabs rax, 0xe7f955c089296bc5
mov qword [rbp + 0x1f0], rax
movabs rax, 0x923043a96c307b66
mov qword [rbp + 0x1f8], rax
movabs rax, 0x94f80f62a4e3f42f
mov qword [rbp + 0x200], rax
movabs rax, 0x7964e033ac60c960
mov qword [rbp + 0x208], rax
movabs rax, 0x442f8bd4dfa82da9
mov qword [rbp + 0x210], rax
mov qword [rbp + 0x218], rcx
vmovdqu ymm0, ymmword [rbp + 0x80]
vpxor ymm1, ymm0, ymmword [rbp + 0x180]
vmovdqa ymmword [rbp + 0x80], ymm1
vmovdqu ymm0, ymmword [rbp + 0xa0]
vpxor ymm1, ymm0, ymmword [rbp + 0x1a0]
vmovdqa ymmword [rbp + 0xa0], ymm1
vmovdqu ymm0, ymmword [rbp + 0xc0]
vpxor ymm1, ymm0, ymmword [rbp + 0x1c0]
vmovdqa ymmword [rbp + 0xc0], ymm1
vmovdqu ymm0, ymmword [rbp + 0xe0]
vpxor ymm1, ymm0, ymmword [rbp + 0x1e0]
vmovdqa ymmword [rbp + 0xe0], ymm1
vmovdqu ymm0, ymmword [rbp + 0x100]
vpxor ymm1, ymm0, ymmword [rbp + 0x200]
vmovdqa ymmword [rbp + 0x100], ymm1
xor r12d, r12d
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], 7
mov word [rbp + 0x10], r12w
lea rax, [rbp + 0x80]
mov rsi, 0xffffffffffffffff
mov rdx, rsi
vzeroupper
nop
inc rdx
cmp word [rax + rdx*2], 0
jne 0x1400088a0
lea rcx, [rbp + 0x10]
cmp rdx, 7
ja 0x1400088d3
mov qword [rbp + 0x20], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rbp + 0x80]
call fcn.140013870
mov word [rbp + rbx + 0x10], r12w
jmp 0x1400088e0
lea r9, [rbp + 0x80]
call fcn.14000cff0
nop
mov rdi, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 8
jb 0x1400088ee
mov r14, qword [r14]
mov r15, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x28]
mov rax, rcx
sub rax, r15
cmp rdi, rax
ja 0x140008931
lea rax, [rdi + r15]
mov qword [rbp + 0x20], rax
lea rbx, [rbp + 0x10]
cmp rcx, 8
cmovae rbx, qword [rbp + 0x10]
lea rcx, [rbx + r15*2]
lea r8, [rdi + rdi]
mov rdx, r14
call fcn.140013870
lea rax, [rdi + r15]
mov word [rbx + rax*2], r12w
jmp 0x140008945
mov qword [rsp + 0x20], rdi
mov r9, r14
mov rdx, rdi
lea rcx, [rbp + 0x10]
call fcn.14000ccc0
mov qword [rbp + 8], r12
mov qword [rbp], r12
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 8
cmovae rdx, qword [rbp + 0x10]
mov qword [rsp + 0x40], r12
lea rax, [rbp]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2011f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140008d8a
mov rbx, qword [rbp]
mov qword [rbp + 8], rbx
mov qword [rbp], r12
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 8
cmovae rdx, qword [rbp + 0x10]
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9d, 0x2011f
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140008db3
mov r14d, 0x80000000
test rbx, rbx
je 0x140008a10
lea rax, [rbx + r14]
cmp rax, 5
jbe 0x140008a10
cmp rbx, 0xffffffff80000007
je 0x140008a10
cmp rbx, 0xffffffff80000060
je 0x140008a10
cmp rbx, 0xffffffff80000050
je 0x140008a10
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rbp]
mov qword [rbp + 8], rbx
movabs rax, 0x8f6150dc6f2abde8
mov qword [rbp + 0x30], rax
movabs rax, 0xfe8d47ec4fa180bf
mov qword [rbp + 0x38], rax
movabs rax, 0x7aeef1dc9d9aedb7
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], r13
movabs rax, 0x8f0d50b26f43bd9f
mov qword [rbp + 0x120], rax
movabs rax, 0xfee347834fc680d0
mov qword [rbp + 0x128], rax
movabs r15, 0x7a8bf1a49dffed99
mov qword [rbp + 0x130], r15
mov qword [rbp + 0x138], r13
vmovdqu ymm0, ymmword [rbp + 0x30]
vpxor ymm1, ymm0, ymmword [rbp + 0x120]
vmovdqu ymmword [rbp + 0x30], ymm1
mov qword [rbp + 0x120], r12
mov qword [rbp + 0x130], r12
mov qword [rbp + 0x138], 7
mov word [rbp + 0x120], r12w
lea rax, [rbp + 0x30]
mov rdx, rsi
vzeroupper
nop dword [rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140008ac0
lea rcx, [rbp + 0x120]
cmp rdx, 7
ja 0x140008af9
mov qword [rbp + 0x130], rdx
lea rdi, [rdx + rdx]
mov r8, rdi
lea rdx, [rbp + 0x30]
call fcn.140013870
mov word [rbp + rdi + 0x120], r12w
jmp 0x140008b03
lea r9, [rbp + 0x30]
call fcn.14000cff0
nop
movabs rax, 0x8f7850d06f26bddb
mov qword [rbp + 0x30], rax
movabs rax, 0xfe9147e64fa180b7
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x40], r15
mov qword [rbp + 0x48], r13
movabs rax, 0x8f0d50b26f43bd9f
mov qword [rbp + 0x140], rax
movabs rax, 0xfee347834fc680d0
mov qword [rbp + 0x148], rax
mov qword [rbp + 0x150], r15
mov qword [rbp + 0x158], r13
vmovdqu ymm0, ymmword [rbp + 0x30]
vpxor ymm1, ymm0, ymmword [rbp + 0x140]
vmovdqu ymmword [rbp + 0x30], ymm1
mov qword [rbp + 0x50], r12
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x68], 7
mov word [rbp + 0x50], r12w
lea rax, [rbp + 0x30]
vzeroupper
inc rsi
cmp word [rax + rsi*2], 0
jne 0x140008b85
lea rcx, [rbp + 0x50]
cmp rsi, 7
ja 0x140008bb5
mov qword [rbp + 0x60], rsi
lea rdi, [rsi + rsi]
mov r8, rdi
lea rdx, [rbp + 0x30]
call fcn.140013870
mov word [rbp + rdi + 0x50], r12w
jmp 0x140008bc2
lea r9, [rbp + 0x30]
mov rdx, rsi
call fcn.14000cff0
nop
mov eax, dword [rbp + 0x130]
lea eax, [rax*2 + 2]
lea rcx, [rbp + 0x120]
cmp qword [rbp + 0x138], 8
cmovae rcx, qword [rbp + 0x120]
lea rdx, [rbp + 0x50]
cmp qword [rbp + 0x68], 8
cmovae rdx, qword [rbp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140008ddc
mov rdx, qword [rbp + 0x68]
cmp rdx, 8
jb 0x140008c57
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008c52
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008e05
call fcn.140011a4c
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x68], 7
mov word [rbp + 0x50], r12w
mov rdx, qword [rbp + 0x138]
cmp rdx, 8
jb 0x140008cae
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008ca9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008e0b
call fcn.140011a4c
test rbx, rbx
je 0x140008ce4
lea rax, [rbx + r14]
cmp rax, 5
jbe 0x140008ce1
cmp rbx, 0xffffffff80000007
je 0x140008ce1
cmp rbx, 0xffffffff80000060
je 0x140008ce1
cmp rbx, 0xffffffff80000050
je 0x140008ce1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r12
test rbx, rbx
je 0x140008d18
lea rax, [rbx + r14]
cmp rax, 5
jbe 0x140008d18
cmp rbx, 0xffffffff80000007
je 0x140008d18
cmp rbx, 0xffffffff80000060
je 0x140008d18
cmp rbx, 0xffffffff80000050
je 0x140008d18
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 8
jb 0x140008d54
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008d4f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008d84
call fcn.140011a4c
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.140011530
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140017e08
nop
lea r8, str.RegCreateKeyExW_failed.
mov edx, eax
lea rcx, [rbp + 0x140]
call fcn.140007490
lea rdx, [0x140032d30]
lea rcx, [rbp + 0x140]
call fcn.140013798
int3
lea r8, str.RegOpenKeyExW_failed.
mov edx, eax
lea rcx, [rbp + 0x140]
call fcn.140007490
lea rdx, [0x140032d30]
lea rcx, [rbp + 0x140]
call fcn.140013798
nop
lea r8, str.Cannot_write_string_value:_RegSetValueExW_failed.
mov edx, eax
lea rcx, [rbp + 0x140]
call fcn.140007490
lea rdx, [0x140032d30]
lea rcx, [rbp + 0x140]
call fcn.140013798
nop
call fcn.140017e08
nop
call fcn.140017e08
int3