Function at 0x1400041c0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x50]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1400a3080]
xor rax, rsp
mov qword [rbp + 0x130], rax
lea rax, [rbp + 4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 5]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 6]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 4]
movzx r8d, byte [rbp + 5]
movzx edx, byte [rbp + 6]
lea rcx, [rbp + 0xc0]
call fcn.14000e260
mov rcx, rax
call fcn.1400072f0
mov rdx, rax
lea rcx, [rbp + 0x110]
call fcn.14000a5b0
nop
mov rdx, qword [rsp + 0x1b8]
lea rcx, [rbp + 0x110]
call fcn.14000a3e0
lea rcx, [rbp + 0x110]
call fcn.14000a220
lea r8, [rbp + 0x100]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [rbp], eax
cmp dword [rbp], 0
je 0x1400042a8
mov byte [rbp + 7], 0
lea rcx, [rbp + 0x110]
call fcn.14000a4b0
movzx eax, byte [rbp + 7]
jmp 0x1400045c4
mov byte [rbp + 0x108], 1
lea rax, [rbp + 8]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 9]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0xa]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 8]
movzx r8d, byte [rbp + 9]
movzx edx, byte [rbp + 0xa]
lea rcx, [rbp + 0x70]
call fcn.14000e310
mov rcx, rax
call fcn.140007670
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x100]
mov qword [rbp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x108]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rbp], eax
cmp dword [rbp], 0
je 0x14000435a
mov byte [rbp + 0xc], 0
lea rcx, [rbp + 0x110]
call fcn.14000a4b0
movzx eax, byte [rbp + 0xc]
jmp 0x1400045c4
mov byte [rbp + 0x109], 3
lea rax, [rbp + 0xd]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0xe]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0xf]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0xd]
movzx r8d, byte [rbp + 0xe]
movzx edx, byte [rbp + 0xf]
lea rcx, [rbp + 0x80]
call fcn.14000e360
mov rcx, rax
call fcn.140007670
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x100]
mov qword [rbp + 0x40], rax
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x109]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rbp], eax
cmp dword [rbp], 0
je 0x14000440f
mov byte [rbp + 0x11], 0
lea rcx, [rbp + 0x110]
call fcn.14000a4b0
movzx eax, byte [rbp + 0x11]
jmp 0x1400045c4
mov byte [rbp + 0x10a], 3
lea rax, [rbp + 0x12]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x13]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x14]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0x12]
movzx r8d, byte [rbp + 0x13]
movzx edx, byte [rbp + 0x14]
lea rcx, [rbp + 0x90]
call fcn.14000e3b0
mov rcx, rax
call fcn.140007670
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x100]
mov qword [rbp + 0x50], rax
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x10a]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rbp], eax
cmp dword [rbp], 0
je 0x1400044c4
mov byte [rbp + 0x15], 0
lea rcx, [rbp + 0x110]
call fcn.14000a4b0
movzx eax, byte [rbp + 0x15]
jmp 0x1400045c4
mov rcx, qword [rsp + 0x1b0]
call fcn.140009eb0
mov dword [rbp + 0x20], eax
mov rcx, qword [rsp + 0x1b0]
call fcn.14000a220
mov qword [rbp + 0x58], rax
lea rax, [rbp + 0x16]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x17]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x18]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0x16]
movzx r8d, byte [rbp + 0x17]
movzx edx, byte [rbp + 0x18]
lea rcx, [rbp + 0xa0]
call fcn.14000e400
mov rcx, rax
call fcn.140007670
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x100]
mov qword [rbp + 0x68], rax
mov eax, dword [rbp + 0x20]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0x60]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rbp], eax
cmp dword [rbp], 0
je 0x14000458c
mov byte [rbp + 0xb], 0
lea rcx, [rbp + 0x110]
call fcn.14000a4b0
movzx eax, byte [rbp + 0xb]
jmp 0x1400045c4
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1400045a6
mov dword [rbp + 0x1c], 1
jmp 0x1400045ad
mov dword [rbp + 0x1c], 0
movzx eax, byte [rbp + 0x1c]
mov byte [rbp + 0x10], al
lea rcx, [rbp + 0x110]
call fcn.14000a4b0
movzx eax, byte [rbp + 0x10]
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.140080290
add rsp, 0x198
pop rdi
pop rbp
ret