Function at 0x12558
Capabilities:
Print debug messages
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3f0
mov rax, qword [0x0001a100]
xor rax, rsp
mov qword [rsp + 0x3e0], rax
mov rbp, rcx
lea rcx, [r11 - 0x246]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x1d0], bx
call fcn.00017cd0
lea rcx, [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
mov edx, dword [rsp + 0xb4]
mov eax, dword [rsp + 0xb8]
lea ecx, [rdx + rdx*4]
lea r13d, [rbx + 1]
lea r14, [0x0003c2c0]
lea edx, [rax + rcx*2]
movzx eax, byte [0x0001a141]
lea r8, [0x0003bdc0]
cmp edx, 0x64
lea rdx, [0x00018020]
mov rcx, r14
cmove eax, r13d
mov byte [0x0001a141], al
call fcn.00011c0c
lea r8, [0x0003bda8]
lea rdx, [0x00018030]
mov rcx, r14
call fcn.00011c0c
lea r8, [0x0003be00]
lea rdx, [0x00018040]
mov rcx, r14
call fcn.00011c0c
lea r12, [0x0001a358]
lea rdx, [0x00018050]
mov r8, r12
mov rcx, r14
call fcn.00011e1c
or r15, 0xffffffffffffffff
cmp eax, 0xc0000034
jne 0x12803
movabs rax, 0xfffff78000000014
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x60]
mov rax, qword [rax]
mov byte [0x0001a142], r13b
mov esi, ebx
mov qword [rsp + 0x60], rax
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlTimeToTimeFields]
movsx ecx, word [rsp + 0x4a]
movsx eax, word [rsp + 0x48]
movsx edi, word [rsp + 0x46]
movsx r9d, word [rsp + 0x44]
movsx r8d, word [rsp + 0x42]
movsx edx, word [rsp + 0x40]
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], eax
lea rcx, [0x000185b0]
mov dword [rsp + 0x20], edi
call sub.ntoskrnl.exe_DbgPrint
movzx r9d, word [rsp + 0x40]
mov edi, 0x7b2
jmp 0x126eb
movzx ecx, di
call fcn.000178b8
add di, r13w
movzx edx, al
lea esi, [rsi + rdx + 0x16d]
cmp di, r9w
jb 0x126d5
movzx edi, r13w
cmp r13w, word [rsp + 0x42]
jae 0x1273a
cmp dil, bl
je 0x1271f
cmp dil, 0xc
ja 0x1271f
cmp dil, 2
je 0x1271f
lea rcx, [0x00019210]
movzx eax, dil
mov al, byte [rax + rcx - 1]
jmp 0x1272a
movzx ecx, r9w
call fcn.000178b8
add al, 0x1c
movzx eax, al
add di, r13w
add esi, eax
cmp di, word [rsp + 0x42]
jb 0x126fd
movzx eax, word [rsp + 0x44]
lea rdx, [0x00018050]
mov qword [rsp + 0x50], r15
add eax, esi
lea ecx, [rax + rax*2]
movzx eax, word [rsp + 0x46]
lea ecx, [rax + rcx*8 - 0x20]
movzx eax, word [rsp + 0x48]
imul ecx, ecx, 0x3c
add ecx, eax
movzx eax, word [rsp + 0x4a]
imul ecx, ecx, 0x3c
add ecx, eax
mov dword [0x0001a358], ecx
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r8, [rsp + 0x68]
lea rcx, [rsp + 0x50]
mov edx, 0xf003f
mov dword [rsp + 0x68], 0x30
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x80], 0x40
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rbx
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, ebx
jl 0x12803
mov rcx, qword [rsp + 0x50]
mov r9d, 4
lea rdx, [rsp + 0x98]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwFlushKey]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r12, [0x0001a150]
mov rcx, r14
mov dword [0x0001a144], ebx
mov rdx, r12
call fcn.000122d0
cmp eax, ebx
jge 0x128cb
mov rdi, qword [rbp + 0x28]
mov rsi, qword [rdi + 0x50]
cmp rsi, rbx
je 0x12841
lea rdx, [0x00018060]
mov rcx, rsi
call fcn.0001215c
jmp 0x12843
mov eax, ebx
cmp eax, ebx
je 0x12988
movzx eax, word [rdi + 0x48]
lea rdx, [rsi + 0x18]
lea rcx, [rsp + 0x1d0]
sub eax, 0x18
movsxd r8, eax
call fcn.00017980
lea rdx, [0x00017fd0]
lea rcx, [rsp + 0x1d0]
call fcn.0001215c
cmp eax, ebx
je 0x12988
mov esi, 0x104
lea r8, [0x00017ea0]
mov rcx, r12
mov rdx, rsi
call fcn.00011008
lea r8, [0x00018000]
mov rdx, rsi
mov rcx, r12
call fcn.00011080
lea r8, [rsp + 0x1d0]
lea edx, [rsi - 0x1e]
mov rcx, r12
call fcn.00011080
movzx edx, word [rdi + 0x48]
add edx, 6
mov dword [0x0001a144], edx
lea rdx, [0x0003b780]
mov rcx, r12
call fcn.00012224
mov edx, 0x5c
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_wcsrchr]
mov rcx, r15
mov rdi, r12
mov rsi, rax
xor eax, eax
repne scasw ax, word [rdi]
not rcx
sub rcx, r13
mov rdi, rcx
mov rcx, rsi
add edi, edi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
lea rbp, [0x0003b990]
cmp al, bl
je 0x1293a
movsxd rax, edi
lea rdx, [rsi + 2]
lea r8, [rax + rax]
lea rax, [r8 + r12]
cmp rdx, rax
jae 0x1293a
sub r8, rsi
mov rcx, rbp
add r8, r12
sar r8, 1
call fcn.00017980
mov edx, 0x2e
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_wcsrchr]
mov r11, rax
cmp rax, rbx
je 0x129a3
sub r11, rbp
sar r11, 1
cmp r11d, ebx
jle 0x1298f
xor eax, eax
mov rcx, r15
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
sub rcx, r13
cmp r11d, ecx
jg 0x1298f
lea rcx, [0x0003bba0]
mov r9d, r11d
xor r8d, r8d
mov rdx, rbp
call fcn.000120f4
jmp 0x129a3
mov ebx, 0xc0000001
jmp 0x129a3
lea rcx, [0x0003bba0]
mov r8, rbp
mov edx, 0x208
call fcn.00011008
mov eax, ebx
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.00017920
lea r11, [rsp + 0x3f0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret