Function at 0x18000d490
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x180064040]
xor rax, rsp
mov qword [rbp + 0x370], rax
lea rax, [rsp + 0x38]
xor r15d, r15d
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREWebSupergooABCpdfNET9
mov rcx, 0xffffffff80000002
lea rbx, [0x180052e24]
mov esi, r15d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x18000d631
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x20], r15
lea rdx, str.PrintHookLog
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x34], r15d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x18000d626
cmp dword [rsp + 0x34], 4
jne 0x18000d595
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PrintHookLog
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x18000d626
cmp dword [rsp + 0x40], 1
lea rax, str._SystemRoot_Temp
cmove rbx, rax
jmp 0x18000d626
mov eax, dword [rsp + 0x30]
cmp eax, 2
jb 0x18000d626
mov qword [rsp + 0x4a0], r14
lea r14, [rax + 1]
shr r14, 1
mov eax, 2
mov ecx, r14d
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.18001c7d0
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x34]
mov rsi, rax
lea rdx, str.PrintHookLog
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x18000d61e
cmp r14d, 2
jb 0x18000d612
lea eax, [r14 - 2]
cmp word [rsi + rax*2], 0x5c
je 0x18000d616
lea eax, [r14 - 1]
mov word [rsi + rax*2], r15w
mov rbx, rsi
mov r14, qword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov word [rsp + 0x50], r15w
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.180040540
mov r8d, 0x104
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test rsi, rsi
je 0x18000d66c
mov rcx, rsi
call fcn.18001c7c8
lea eax, [rbx - 2]
cmp eax, 0x102
ja 0x18000d704
mov ecx, 0x40
call fcn.18001c760
mov rbx, rax
mov qword [rsp + 0x40], rax
lea rax, vtable.TempLog.0
lea rcx, [rbx + 0x10]
mov qword [rbx], rax
call fcn.18000bf00
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r9, [rsp + 0x50]
mov edx, 0x104
lea r8, str._ls_spy__d.log
mov dword [rsp + 0x20], eax
lea rcx, [rbp + 0x160]
call fcn.18000c020
lea r8, str.w__ccsUTF_8
lea rdx, [rbp + 0x160]
lea rcx, [rbx + 8]
call fcn.180028d54
test eax, eax
je 0x18000d6e5
mov qword [rbx + 8], r15
mov qword [0x1800650d8], rbx
test edi, edi
je 0x18000d71f
mov rax, qword [rbx]
lea rdx, str.Registry_call_got_ret__ld._n
mov r8d, edi
mov rcx, rbx
call qword [rax]
jmp 0x18000d71f
mov ecx, 8
call fcn.18001c760
lea rcx, vtable.NullLog.0
mov qword [rax], rcx
mov qword [0x1800650d8], rax
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.18001c3d0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret