Function at 0x140001a70
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x2f8
mov rax, qword [0x14002b008]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x30]
call fcn.140001f80
mov rcx, rax
call fcn.1400020e0
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
mov r9d, 2
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001f5a
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x31]
call fcn.140002180
mov rcx, rax
call fcn.140002300
lea r8, [rsp + 0x70]
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140001f5a
mov edx, 1
mov ecx, 0x400
call fcn.14000f8d0
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140001b4b
xor eax, eax
jmp 0x140001f5c
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x33]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x32]
call fcn.1400024b0
mov rcx, rax
call fcn.140002410
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
inc qword [rsp + 0x48]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
cmp byte [rax + rcx], 0
jne 0x140001b98
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x33]
call fcn.1400023a0
mov rcx, rax
call fcn.140002410
mov rdi, qword [rsp + 0x40]
mov rsi, rax
mov rax, qword [rsp + 0x90]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [0x140030688]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x50], 0xffffffffffffffff
inc qword [rsp + 0x50]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x50]
cmp byte [rax + rcx], 0
jne 0x140001c04
mov rax, qword [rsp + 0x50]
mov ecx, 1
imul rcx, rcx, 4
mov rdx, qword [rsp + 0x40]
add rdx, rcx
mov rcx, rdx
mov rdi, rcx
mov rsi, qword [0x140030688]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x34]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x60], 0xffffffffffffffff
inc qword [rsp + 0x60]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
cmp byte [rax + rcx], 0
jne 0x140001c6b
mov rax, qword [rsp + 0x60]
inc rax
mov qword [rsp + 0xa8], rax
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x34]
call fcn.140002520
mov rcx, rax
call fcn.1400025b0
mov rcx, qword [rsp + 0xa8]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 2
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140001ce5
xor eax, eax
jmp 0x140001f5c
lea rax, [rsp + 0x3c]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov dword [rsp + 0x3c], 1
lea rax, [rsp + 0x35]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x35]
call fcn.140002650
mov rcx, rax
call fcn.140002410
mov dword [rsp + 0x28], 4
lea rcx, [rsp + 0x3c]
mov qword [rsp + 0x20], rcx
mov r9d, 4
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140001d5d
xor eax, eax
jmp 0x140001f5c
lea rax, [rsp + 0x36]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0x36]
call fcn.1400026c0
mov rcx, rax
call fcn.140002880
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
mov r9d, 2
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001def
lea rax, [rsp + 0x37]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x37]
call fcn.140002920
mov rcx, rax
call fcn.140002300
lea r8, [rsp + 0x70]
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
jmp 0x140001df6
xor eax, eax
jmp 0x140001f5c
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x38]
call fcn.140002aa0
mov rcx, rax
call fcn.1400025b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x140001e49
xor eax, eax
jmp 0x140001f5c
lea rax, [rsp + 0x39]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x39]
call fcn.140002b30
mov rcx, rax
call fcn.140002bf0
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0x3a]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x108]
lea rcx, [rsp + 0x3a]
call fcn.140002c90
mov rcx, rax
call fcn.140002d40
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xb0], rax
lea r9, [rsp + 0x80]
xor r8d, r8d
mov edx, 1
mov ecx, 0xa
call qword [rsp + 0xb0]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jge 0x140001ef6
xor eax, eax
jmp 0x140001f5c
lea rax, [rsp + 0x3b]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x3b]
call fcn.140002de0
mov rcx, rax
call fcn.140003140
mov rdx, rax
lea rcx, [rsp + 0xc0]
call qword [rsp + 0xb8]
lea rcx, [rsp + 0xc0]
call fcn.14000b8e7
mov dword [rsp + 0x6c], eax
cmp dword [rsp + 0x6c], 0
jl 0x140001f54
mov eax, 1
jmp 0x140001f5c
xor eax, eax
jmp 0x140001f5c
xor eax, eax
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.14000b950
add rsp, 0x2f8
pop rdi
pop rsi
ret