Function at 0x140008bc0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x120
mov rax, qword [0x14007c0c0]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0xb0]
call fcn.140008b90
mov rcx, rax
call fcn.140009840
mov qword [rsp + 0x58], rax
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0xf0]
call fcn.14000c2f0
nop
mov qword [rsp + 0xe0], 0
lea rcx, [rsp + 0xf0]
call fcn.140002150
lea r8, [rsp + 0xe0]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x140008cca
mov byte [rsp + 0x32], 0
lea rcx, [rsp + 0xf0]
call fcn.140002170
nop
mov rcx, qword [rsp + 0x130]
call fcn.140002170
nop
mov rcx, qword [rsp + 0x138]
call fcn.140002170
movzx eax, byte [rsp + 0x32]
jmp 0x140008ee6
mov rcx, qword [rsp + 0x130]
call fcn.1400020d0
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x130]
call fcn.140002150
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x33]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x34]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x33]
movzx r8d, byte [rsp + 0x34]
movzx edx, byte [rsp + 0x41]
lea rcx, [rsp + 0x90]
call fcn.140008f00
mov rcx, rax
call fcn.140009800
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x140008db5
mov byte [rsp + 0x35], 0
lea rcx, [rsp + 0xf0]
call fcn.140002170
nop
mov rcx, qword [rsp + 0x130]
call fcn.140002170
nop
mov rcx, qword [rsp + 0x138]
call fcn.140002170
movzx eax, byte [rsp + 0x35]
jmp 0x140008ee6
mov byte [rsp + 0xe8], 1
lea rax, [rsp + 0x36]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x37]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x36]
movzx r8d, byte [rsp + 0x37]
movzx edx, byte [rsp + 0x42]
lea rcx, [rsp + 0xa0]
call fcn.140008f30
mov rcx, rax
call fcn.1400097c0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x140008e8b
mov byte [rsp + 0x38], 0
lea rcx, [rsp + 0xf0]
call fcn.140002170
nop
mov rcx, qword [rsp + 0x130]
call fcn.140002170
nop
mov rcx, qword [rsp + 0x138]
call fcn.140002170
movzx eax, byte [rsp + 0x38]
jmp 0x140008ee6
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x140008ea7
mov dword [rsp + 0x44], 1
jmp 0x140008eaf
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x39], al
lea rcx, [rsp + 0xf0]
call fcn.140002170
nop
mov rcx, qword [rsp + 0x130]
call fcn.140002170
nop
mov rcx, qword [rsp + 0x138]
call fcn.140002170
movzx eax, byte [rsp + 0x39]
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140045b30
add rsp, 0x120
pop rdi
ret