Function at 0x14000b9ac
Capabilities:
Persist via aedebug registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
lea rbp, [rsp - 0x790]
sub rsp, 0x890
mov rax, qword [0x140021bb8]
xor rax, rsp
mov qword [rbp + 0x780], rax
mov rdi, rcx
lea rdx, [rsp + 0x62]
mov eax, 0x22
xor ecx, ecx
mov r8d, 0x207
mov word [rsp + 0x60], ax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetModuleFileNameW]
xor ebx, ebx
test eax, eax
jne 0x14000ba07
xor eax, eax
jmp 0x14000bc2b
mov esi, 0x208
lea rdx, str.___p__ld__e__ld__g
mov r8d, esi
lea rcx, [rsp + 0x60]
call fcn.14000b5e4
test eax, eax
je 0x14000ba00
test rdi, rdi
je 0x14000ba55
mov r8d, esi
lea rdx, [0x1400147bc]
lea rcx, [rsp + 0x60]
call fcn.14000b5e4
test eax, eax
je 0x14000ba00
mov r8d, esi
lea rcx, [rsp + 0x60]
mov rdx, rdi
call fcn.14000b5e4
test eax, eax
je 0x14000ba00
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionAeDebug
mov qword [rsp + 0x30], rbx
mov edi, 0x2001f
mov dword [rsp + 0x28], edi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], ebx
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_localregistry_l1_1_0.dll_RegCreateKeyExW]
or rsi, 0xffffffffffffffff
lea r13, [0x140019e14]
test eax, eax
jne 0x14000bb15
lea rcx, [rsp + 0x60]
mov rax, rsi
inc rax
cmp word [rcx + rax*2], bx
jne 0x14000baa7
mov rcx, qword [rsp + 0x50]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.Debugger
lea rax, [rsp + 0x60]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_localregistry_l1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x14000bb0a
mov rcx, qword [rsp + 0x50]
lea r9d, [rax + 1]
mov dword [rsp + 0x28], 4
lea rdx, [0x140019e18]
xor r8d, r8d
mov qword [rsp + 0x20], r13
call qword [sym.imp.api_ms_win_core_localregistry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_localregistry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREWOW6432NodeMicrosoftWindows_NTCurrentVersionAeDebug
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], ebx
call qword [sym.imp.api_ms_win_core_localregistry_l1_1_0.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
jne 0x14000bc24
mov r8d, 0x410
mov dword [rsp + 0x5c], ebx
xor edx, edx
mov dword [rsp + 0x58], r8d
lea rcx, [rbp + 0x370]
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x5c]
lea rax, [rbp + 0x370]
xor r8d, r8d
lea rdx, str.Debugger
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_localregistry_l1_1_0.dll_RegQueryValueExW]
mov edi, eax
cmp word [rbp + 0x370], bx
jne 0x14000bc19
lea rax, [rsp + 0x60]
inc rsi
cmp word [rax + rsi*2], bx
jne 0x14000bbb2
mov rcx, qword [rsp + 0x50]
lea eax, [rsi*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.Debugger
lea rax, [rsp + 0x60]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_localregistry_l1_1_0.dll_RegSetValueExW]
mov edi, eax
test eax, eax
jne 0x14000bc19
mov rcx, qword [rsp + 0x50]
lea r9d, [rax + 1]
mov dword [rsp + 0x28], 4
lea rdx, [0x140019e18]
xor r8d, r8d
mov qword [rsp + 0x20], r13
call qword [sym.imp.api_ms_win_core_localregistry_l1_1_0.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_localregistry_l1_1_0.dll_RegCloseKey]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.14000e6b0
lea r11, [rsp + 0x890]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop rdi
pop rbp
ret