Function at 0x140020060
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x150
mov rax, qword [0x140037040]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rax, [rsp + 0x34]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x35]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x36]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x34]
movzx r8d, byte [rsp + 0x35]
movzx edx, byte [rsp + 0x36]
lea rcx, [rsp + 0xe0]
call fcn.1400274a0
mov rcx, rax
call fcn.140023ea0
mov rdx, rax
lea rcx, [rsp + 0x120]
call fcn.140015960
nop
mov rdx, qword [rsp + 0x168]
lea rcx, [rsp + 0x120]
call fcn.1400258f0
lea rcx, [rsp + 0x120]
call fcn.1400157a0
lea r8, [rsp + 0x110]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14002014f
mov byte [rsp + 0x37], 0
lea rcx, [rsp + 0x120]
call fcn.140015930
movzx eax, byte [rsp + 0x37]
jmp 0x1400204db
mov byte [rsp + 0x118], 1
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x39]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x3a]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x38]
movzx r8d, byte [rsp + 0x39]
movzx edx, byte [rsp + 0x3a]
lea rcx, [rsp + 0xa0]
call fcn.140027550
mov rcx, rax
call fcn.140023b60
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x118]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140020217
mov byte [rsp + 0x3c], 0
lea rcx, [rsp + 0x120]
call fcn.140015930
movzx eax, byte [rsp + 0x3c]
jmp 0x1400204db
mov byte [rsp + 0x119], 3
lea rax, [rsp + 0x3d]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x3e]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x3f]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x3d]
movzx r8d, byte [rsp + 0x3e]
movzx edx, byte [rsp + 0x3f]
lea rcx, [rsp + 0xb0]
call fcn.1400275a0
mov rcx, rax
call fcn.140023b60
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x119]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400202df
mov byte [rsp + 0x41], 0
lea rcx, [rsp + 0x120]
call fcn.140015930
movzx eax, byte [rsp + 0x41]
jmp 0x1400204db
mov byte [rsp + 0x11a], 3
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x43]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x44]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x42]
movzx r8d, byte [rsp + 0x43]
movzx edx, byte [rsp + 0x44]
lea rcx, [rsp + 0xc0]
call fcn.1400275f0
mov rcx, rax
call fcn.140023b60
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x11a]
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 + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400203ad
mov byte [rsp + 0x45], 0
lea rcx, [rsp + 0x120]
call fcn.140015930
movzx eax, byte [rsp + 0x45]
jmp 0x1400204db
mov rcx, qword [rsp + 0x160]
call fcn.140025540
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x160]
call fcn.1400157a0
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x46]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x47]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x46]
movzx r8d, byte [rsp + 0x47]
movzx edx, byte [rsp + 0x48]
lea rcx, [rsp + 0xd0]
call fcn.140027640
mov rcx, rax
call fcn.140023b60
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x98], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14002049c
mov byte [rsp + 0x3b], 0
lea rcx, [rsp + 0x120]
call fcn.140015930
movzx eax, byte [rsp + 0x3b]
jmp 0x1400204db
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1400204b8
mov dword [rsp + 0x4c], 1
jmp 0x1400204c0
mov dword [rsp + 0x4c], 0
movzx eax, byte [rsp + 0x4c]
mov byte [rsp + 0x40], al
lea rcx, [rsp + 0x120]
call fcn.140015930
movzx eax, byte [rsp + 0x40]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14002b4f0
add rsp, 0x150
pop rdi
ret