Function at 0x1400c9730
Capabilities:
Delete registry value
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x145ef49b8]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov r12, rcx
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x1c0]
call fcn.14056bc90
mov dword [rsp + 0x64], 0x104
xor r13d, r13d
mov dword [rsp + 0x60], r13d
lea rax, [rbp - 0x70]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x64]
lea rdx, [rbp + 0x1c0]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400c99e3
mov r15d, r13d
mov ecx, r15d
mov rax, qword [0x145efec98]
cmp dword [rax + rcx*4], 0
jne 0x1400c99d5
mov dword [rsp + 0x68], 0xff
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x68]
lea r8, [rbp + 0xc0]
mov edx, r15d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1400c99d5
mov qword [rbp - 0x68], r13
mov rbx, r13
mov qword [rbp - 0x58], rbx
mov r14d, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x50], r14
mov byte [rbp - 0x68], al
mov edi, r13d
lea rsi, [rbp + 0xc0]
movsx edx, byte [rsi]
test dl, dl
je 0x1400c98d6
mov rax, r14
sub rax, rbx
lea rcx, [rbp - 0x68]
cmp rax, 1
jb 0x1400c98ac
lea rax, [rbx + 1]
mov qword [rbp - 0x58], rax
cmp r14, 0x10
cmovae rcx, qword [rbp - 0x68]
movzx eax, dl
mov byte [rcx + rbx], al
mov byte [rcx + rbx + 1], 0
jmp 0x1400c98c1
mov byte [rsp + 0x20], dl
mov r9d, 1
xor r8d, r8d
mov edx, r9d
call fcn.140085e40
inc edi
inc rsi
mov r14, qword [rbp - 0x50]
mov rbx, qword [rbp - 0x58]
cmp edi, 0xff
jb 0x1400c9877
mov rsi, qword [rbp - 0x68]
test rbx, rbx
je 0x1400c99a2
lea rdi, [rbp - 0x68]
cmp r14, 0x10
cmovae rdi, rsi
test rbx, rbx
je 0x1400c995d
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp - 0x40]
call fcn.14056bc90
lea rcx, [0x1405cfd60]
lea r13, [0x1405cfd70]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rbp + rax - 0x40], 1
inc rcx
cmp rcx, r13
jne 0x1400c9920
xor r13d, r13d
lea rdx, [rdi + rbx]
mov rax, rdi
cmp rdi, rdx
jae 0x1400c995d
nop
movzx ecx, byte [rax]
cmp byte [rbp + rcx - 0x40], r13b
je 0x1400c9954
inc rax
cmp rax, rdx
jb 0x1400c9940
jmp 0x1400c995d
sub rax, rdi
cmp rax, 0xffffffffffffffff
jne 0x1400c99a2
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rbp + 0xc0]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400c99a2
lea rdx, str.KMD_EnableInternalLargePage
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp r14, 0x10
jb 0x1400c99d5
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400c99cd
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c9a13
mov rcx, rsi
call fcn.140567150
inc r15d
cmp r15d, dword [rsp + 0x60]
jb 0x1400c9801
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140567130
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140578e0c
int3