Function at 0x14000907c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xa8
xor ebx, ebx
mov r13d, 0x400
mov qword [rbp - 1], rbx
mov r8d, r13d
mov rax, qword gs:[0x60]
xor edx, edx
mov qword [rbp - 0x21], rbx
mov qword [rbp - 0x59], rbx
mov qword [rbp - 0x49], rbx
mov rax, qword [rax + 0x30]
mov rcx, rax
mov qword [rbp + 0x7f], rax
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x31], rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14000a2bb
mov r8d, r13d
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov qword [rbp - 0x29], rdi
mov r12d, r13d
mov qword [rbp - 0x41], r13
lea r15, [rbx + 0x16]
movups xmm0, xmmword [str.SystemRoot]
mov rsi, r15
mov qword [rbp - 0x31], r15
mov r14, r15
mov qword [rbp - 0x49], r15
movups xmmword [rbx + rdi], xmm0
mov eax, dword [0x140113160]
mov dword [rbx + rdi + 0x10], eax
movzx eax, word [0x140113164]
mov word [rbx + rdi + 0x14], ax
xor r15d, r15d
test ebx, ebx
js 0x14000a294
call fcn.140008644
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], r15w
jne 0x140009152
call fcn.140008644
xor ecx, ecx
mov qword [rbp - 9], rax
add rbx, rbx
je 0x140009234
lea r13, [rsi + rbx]
cmp r13, rsi
jb 0x1400092a0
cmp r13, r12
jbe 0x14000920b
mov rax, qword [rbp - 0x39]
lea r15, [rax - 1]
add r15, r13
cmp r15, r13
jb 0x140009299
mov rcx, qword [rbp + 0x7f]
dec rax
not rax
xor edx, edx
and r15, rax
test rdi, rdi
jne 0x1400091d9
mov r8, r15
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbp + 0x77], rax
test rax, rax
je 0x1400091eb
mov r8, r15
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [rbp + 0x77]
jmp 0x1400091eb
mov r9, r15
mov r8, rdi
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
nop dword [rax + rax]
xor ecx, ecx
test rax, rax
jne 0x1400091f9
mov ebx, 0xc0000017
jmp 0x140009230
mov rdi, rax
mov qword [rbp - 0x29], rax
mov r12, r15
mov qword [rbp - 0x41], r15
mov rax, qword [rbp - 9]
lea rcx, [rsi + rdi]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_memcpy
cmp r14, r13
mov qword [rbp - 0x31], r13
mov rsi, r13
cmovbe r14, r13
xor ecx, ecx
mov ebx, ecx
mov qword [rbp - 0x49], r14
test ebx, ebx
js 0x1400092a5
lea r15, [rsi + 2]
cmp r15, rsi
jb 0x14000a284
cmp r15, r12
jbe 0x1400092fd
mov r13, qword [rbp - 0x39]
lea rbx, [r13 - 1]
add rbx, r15
cmp rbx, r15
jb 0x140009382
mov rcx, qword [rbp + 0x7f]
lea rax, [r13 - 1]
not rax
xor edx, edx
and rbx, rax
test rdi, rdi
jne 0x1400092cc
mov r8, rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r13, rax
test rax, rax
je 0x1400092e1
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
jmp 0x1400092e1
mov ebx, 0xc0000095
jmp 0x140009230
mov ebx, 0xc000000d
mov r8d, 0x4ab
mov ecx, 1
lea r9, str.Out_of_memory
lea rdx, str.AslEnvBuildBasic
call fcn.1400071f4
mov r14, qword [rbp + 0x7f]
jmp 0x14000a2f1
mov r9, rbx
mov r8, rdi
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
nop dword [rax + rax]
mov r13, rax
xor ecx, ecx
test r13, r13
jne 0x1400092ef
mov ebx, 0xc0000017
jmp 0x140009315
mov rdi, r13
mov qword [rbp - 0x29], r13
mov r12, rbx
mov qword [rbp - 0x41], rbx
cmp r14, r15
mov word [rsi + rdi], cx
mov rsi, r15
mov qword [rbp - 0x31], r15
cmovbe r14, r15
mov ebx, ecx
mov qword [rbp - 0x49], r14
mov r13, qword [rbp - 0x39]
test ebx, ebx
js 0x14000a289
lea r15, [rsi + 0x18]
cmp r15, rsi
jb 0x14000a274
cmp r15, r12
jbe 0x1400093ba
lea rbx, [r13 - 1]
add rbx, r15
cmp rbx, r15
jb 0x140009459
mov rcx, qword [rbp + 0x7f]
lea rax, [r13 - 1]
not rax
xor edx, edx
and rbx, rax
test rdi, rdi
jne 0x140009389
mov r8, rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r13, rax
test rax, rax
je 0x14000939e
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
jmp 0x14000939e
mov ebx, 0xc0000095
jmp 0x140009319
mov r9, rbx
mov r8, rdi
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
nop dword [rax + rax]
mov r13, rax
xor ecx, ecx
test r13, r13
jne 0x1400093ac
mov ebx, 0xc0000017
jmp 0x1400093e7
mov rdi, r13
mov qword [rbp - 0x29], r13
mov r12, rbx
mov qword [rbp - 0x41], rbx
movups xmm0, xmmword [str.SystemDrive]
cmp r14, r15
mov qword [rbp - 0x31], r15
mov ebx, ecx
movups xmmword [rsi + rdi], xmm0
cmovbe r14, r15
movsd xmm1, qword [0x140112c28]
movsd qword [rsi + rdi + 0x10], xmm1
mov rsi, r15
mov qword [rbp - 0x49], r14
mov r13, qword [rbp - 0x39]
test ebx, ebx
js 0x14000a279
call fcn.140008644
lea r15, [rsi + 4]
mov qword [rbp + 0x77], rax
cmp r15, rsi
jb 0x14000a264
cmp r15, r12
jbe 0x1400094a0
lea rbx, [r13 - 1]
add rbx, r15
cmp rbx, r15
jb 0x140009497
mov rcx, qword [rbp + 0x7f]
lea rax, [r13 - 1]
not rax
xor edx, edx
and rbx, rax
test rdi, rdi
jne 0x140009460
mov r8, rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r13, rax
test rax, rax
je 0x140009475
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
jmp 0x140009475
mov ebx, 0xc0000095
jmp 0x1400093eb
mov r9, rbx
mov r8, rdi
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
nop dword [rax + rax]
mov r13, rax
xor ecx, ecx
test r13, r13
jne 0x140009483
mov ebx, 0xc0000017
jmp 0x1400094bb
mov rdi, r13
mov qword [rbp - 0x29], r13
mov r12, rbx
mov qword [rbp - 0x41], rbx
mov rax, qword [rbp + 0x77]
jmp 0x1400094a2
mov ebx, 0xc0000095
xor ecx, ecx
jmp 0x1400094bf
xor ecx, ecx
mov eax, dword [rax]
cmp r14, r15
mov dword [rsi + rdi], eax
mov ebx, ecx
cmovbe r14, r15
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x49], r14
mov rsi, r15
mov r13, qword [rbp - 0x39]
test ebx, ebx
js 0x14000a269
lea r15, [rsi + 2]
cmp r15, rsi
jb 0x14000a254
cmp r15, r12
jbe 0x140009555
lea rbx, [r13 - 1]
add rbx, r15
cmp rbx, r15
jb 0x1400095da
mov rcx, qword [rbp + 0x7f]
lea rax, [r13 - 1]
not rax
xor edx, edx
and rbx, rax
test rdi, rdi
jne 0x140009524
mov r8, rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r13, rax
test rax, rax
je 0x140009539
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
jmp 0x140009539
mov r9, rbx
mov r8, rdi
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
nop dword [rax + rax]
mov r13, rax
xor ecx, ecx
test r13, r13
jne 0x140009547
mov ebx, 0xc0000017
jmp 0x14000956d
mov rdi, r13
mov qword [rbp - 0x29], r13
mov r12, rbx
mov qword [rbp - 0x41], rbx
cmp r14, r15
mov word [rsi + rdi], cx
mov rsi, r15
mov qword [rbp - 0x31], r15
cmovbe r14, r15
mov ebx, ecx
mov qword [rbp - 0x49], r14
mov r13, qword [rbp - 0x39]
test ebx, ebx
js 0x14000a259
lea r15, [rsi + 0xe]
cmp r15, rsi
jb 0x14000a244
cmp r15, r12
jbe 0x140009612
lea rbx, [r13 - 1]
add rbx, r15
cmp rbx, r15
jb 0x1400096e2
mov rcx, qword [rbp + 0x7f]
lea rax, [r13 - 1]
not rax
xor edx, edx
and rbx, rax
test rdi, rdi
jne 0x1400095e1
mov r8, rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r13, rax
test rax, rax
je 0x1400095f6
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
jmp 0x1400095f6
mov ebx, 0xc0000095
jmp 0x140009571
mov r9, rbx
mov r8, rdi
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
nop dword [rax + rax]
mov r13, rax
xor ecx, ecx
test r13, r13
jne 0x140009604
mov ebx, 0xc0000017
jmp 0x140009649
mov rdi, r13
mov qword [rbp - 0x29], r13
mov r12, rbx
mov qword [rbp - 0x41], rbx
movsd xmm0, qword [str.WinDir]
cmp r14, r15
movsd qword [rsi + rdi], xmm0
mov ebx, ecx
mov eax, dword [0x140113170]
cmovbe r14, r15
mov dword [rsi + rdi + 8], eax
movzx eax, word [0x140113174]
mov word [rsi + rdi + 0xc], ax
mov rsi, r15
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x49], r14
test ebx, ebx
js 0x14000a249
call fcn.140008644
or rbx, 0xffffffffffffffff
xor ecx, ecx
inc rbx
cmp word [rax + rbx*2], cx
jne 0x14000965c
call fcn.140008644
xor ecx, ecx
mov qword [rbp - 9], rax
add rbx, rbx
je 0x140009747
lea r13, [rsi + rbx]
cmp r13, rsi
jb 0x1400097b2
cmp r13, r12
jbe 0x14000971e
mov rax, qword [rbp - 0x39]
lea r15, [rax - 1]
add r15, r13
cmp r15, r13
jb 0x1400097ab
mov rcx, qword [rbp + 0x7f]
dec rax
not rax
xor edx, edx
and r15, rax
test rdi, rdi
jne 0x1400096ec
mov r8, r15
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbp + 0x77], rax
test rax, rax
je 0x1400096fe
mov r8, r15
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [rbp + 0x77]
jmp 0x1400096fe
mov ebx, 0xc0000095
jmp 0x140009649
mov r9, r15
mov r8, rdi
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
nop dword [rax + rax]
xor ecx, ecx
test rax, rax
jne 0x14000970c
mov ebx, 0xc0000017
jmp 0x140009743
mov rdi, rax
mov qword [rbp - 0x29], rax
mov r12, r15
mov qword [rbp - 0x41], r15
mov rax, qword [rbp - 9]
lea rcx, [rsi + rdi]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_memcpy
cmp r14, r13
mov qword [rbp - 0x31], r13
mov rsi, r13
cmovbe r14, r13
xor ecx, ecx
mov ebx, ecx
mov qword [rbp - 0x49], r14
test ebx, ebx
js 0x1400097b7
lea r15, [rsi + 2]
cmp r15, rsi
jb 0x14000a234
cmp r15, r12
jbe 0x1400097f3
mov rax, qword [rbp - 0x39]
lea rbx, [rax - 1]
add rbx, r15
cmp rbx, r15
jb 0x140009859
mov rcx, qword [rbp + 0x7f]
dec rax
not rax
xor edx, edx
and rbx, rax
test rdi, rdi
jne 0x1400097c2
mov r8, rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r13, rax
test rax, rax
je 0x1400097d7
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
jmp 0x1400097d7
mov ebx, 0xc0000095
jmp 0x140009743
mov ebx, 0xc000000d
mov r8d, 0x4c3
jmp 0x1400092ab
mov r9, rbx
mov r8, rdi
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
nop dword [rax + rax]
mov r13, rax
xor ecx, ecx
test r13, r13
jne 0x1400097e5
mov ebx, 0xc0000017
jmp 0x14000980b
mov rdi, r13
mov qword [rbp - 0x29], r13
mov r12, rbx
mov qword [rbp - 0x41], rbx
cmp r14, r15
mov word [rsi + rdi], cx
mov rsi, r15
mov qword [rbp - 0x31], r15
cmovbe r14, r15
mov ebx, ecx
mov qword [rbp - 0x49], r14
test ebx, ebx
js 0x14000a239
mov r15d, 1
lea rdx, str.RegistryMachineSoftwareMicrosoftWindowsCurrentVersion
mov r8d, r15d
lea rcx, [rbp - 1]
call fcn.140005228
mov ebx, eax
xor eax, eax
test ebx, ebx
jns 0x140009860
lea r9, str.Failed_to_open_reg_key___x_
mov dword [rsp + 0x20], ebx
mov r8d, 0x4d3
lea rdx, str.AslEnvBuildBasic
mov ecx, r15d
call fcn.1400071f4
jmp 0x1400092c3
mov ebx, 0xc0000095
jmp 0x14000980b
lea rbx, str.CommonProgramFiles
mov dword [rbp + 0x77], eax
mov qword [rbp - 0x19], rbx
mov r13d, eax
mov r8, qword [rbx - 8]
lea rcx, [rbp - 0x21]
mov rdx, qword [rbp - 1]
call fcn.1400054f8
xor edx, edx
test eax, eax
js 0x140009c29
mov rax, qword [rbx]
or r13, 0xffffffffffffffff
mov qword [rbp + 7], rax
inc r13
cmp word [rax + r13*2], dx
jne 0x140009897
add r13, r13
je 0x140009975
lea rcx, [rsi + r13]
mov qword [rbp - 0x11], rcx
cmp rcx, rsi
jb 0x140009cc7
cmp rcx, r12
jbe 0x140009944
mov rax, qword [rbp - 0x39]
dec rax
lea rbx, [rcx + rax]
cmp rbx, rcx
jb 0x1400099dc
mov rcx, qword [rbp + 0x7f]
not rax
and rbx, rax
test rdi, rdi
jne 0x140009912
mov r8, rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbp - 9], rax
test rax, rax
je 0x140009924
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [rbp - 9]
jmp 0x140009924
mov r9, rbx
mov r8, rdi
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
nop dword [rax + rax]
xor edx, edx
test rax, rax
jne 0x140009932
mov ebx, 0xc0000017
jmp 0x14000996d
mov rdi, rax
mov qword [rbp - 0x29], rax
mov r12, rbx
mov qword [rbp - 0x41], rbx
mov rax, qword [rbp + 7]
lea rcx, [rsi + rdi]
mov r8, r13
mov rdx, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp - 0x11]
cmp r14, rax
mov qword [rbp - 0x31], rax
mov rsi, rax
cmovbe r14, rax
xor edx, edx
mov ebx, edx
mov qword [rbp - 0x49], r14
test ebx, ebx
js 0x140009ccc
lea r13, [rsi + 2]
cmp r13, rsi
jb 0x140009cf4
cmp r13, r12
jbe 0x140009a11
mov rcx, qword [rbp - 0x39]
lea rax, [rcx - 1]
lea rbx, [rax + r13]
cmp rbx, r13
jb 0x140009abb
mov rcx, qword [rbp + 0x7f]
not rax
and rbx, rax
xor edx, edx
test rdi, rdi
jne 0x1400099e3
mov r8, rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbp - 0x11], rax
test rax, rax
je 0x1400099f5
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [rbp - 0x11]
jmp 0x1400099f5
mov ebx, 0xc0000095
jmp 0x14000996d
mov r9, rbx
mov r8, rdi
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
nop dword [rax + rax]
xor edx, edx
test rax, rax
jne 0x140009a03
mov ebx, 0xc0000017
jmp 0x140009a2e
mov rdi, rax
mov qword [rbp - 0x29], rax
mov r12, rbx
mov qword [rbp - 0x41], rbx
cmp r14, r13
mov qword [rbp - 0x31], r13
mov eax, 0x3d
mov ebx, edx
cmovbe r14, r13
mov word [rsi + rdi], ax
mov qword [rbp - 0x49], r14
mov rsi, r13
mov rcx, qword [rbp - 0x39]
test ebx, ebx
js 0x140009cf9
mov rax, qword [rbp - 0x21]
or r13, 0xffffffffffffffff
inc r13
cmp word [rax + r13*2], dx
jne 0x140009a42
add r13, r13
je 0x140009b25
lea rax, [rsi + r13]
mov qword [rbp + 7], rax
cmp rax, rsi
jb 0x140009cda
cmp rax, r12
jbe 0x140009af3
dec rcx
lea rbx, [rax + rcx]
cmp rbx, rax
jb 0x140009b66
not rcx
xor edx, edx
and rbx, rcx
mov rcx, qword [rbp + 0x7f]
test rdi, rdi
jne 0x140009ac5
mov r8, rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbp - 0x11], rax
test rax, rax
je 0x140009ad7
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [rbp - 0x11]
jmp 0x140009ad7
mov ebx, 0xc0000095
jmp 0x140009a32
mov r9, rbx
mov r8, rdi
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
nop dword [rax + rax]
xor edx, edx
test rax, rax
jne 0x140009ae5
mov ebx, 0xc0000017
jmp 0x140009b1d
mov rdi, rax
mov qword [rbp - 0x29], rax
mov r12, rbx
mov qword [rbp - 0x41], rbx
mov rdx, qword [rbp - 0x21]
lea rcx, [rsi + rdi]
mov r8, r13
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 7]
cmp r14, rax
mov qword [rbp - 0x31], rax
mov rsi, rax
cmovbe r14, rax
xor edx, edx
mov ebx, edx
mov qword [rbp - 0x49], r14
test ebx, ebx
js 0x140009cdf
cmp qword [rbp - 0x21], rdx
je 0x140009b6d
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x21]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x51]
xor edx, edx
mov rdi, qword [rbp - 0x29]
mov rsi, qword [rbp - 0x31]
mov r12, qword [rbp - 0x41]
mov r14, qword [rbp - 0x49]
mov qword [rbp + 0x7f], rcx
jmp 0x140009b71
mov ebx, 0xc0000095
jmp 0x140009b1d
mov rcx, qword [rbp + 0x7f]
lea r13, [rsi + 2]
mov qword [rbp - 0x21], rdx
cmp r13, rsi
jb 0x140009ce7
cmp r13, r12
jbe 0x140009c01
mov rax, qword [rbp - 0x39]
dec rax
lea rbx, [rax + r13]
cmp rbx, r13
jb 0x140009cbd
not rax
xor edx, edx
and rbx, rax
test rdi, rdi
jne 0x140009bd3
mov r8, rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbp - 0x11], rax
test rax, rax
je 0x140009be5
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [rbp - 0x11]
jmp 0x140009be5
mov r9, rbx
mov r8, rdi
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
nop dword [rax + rax]
xor edx, edx
test rax, rax
jne 0x140009bf3
mov ebx, 0xc0000017
jmp 0x140009c19
mov rdi, rax
mov qword [rbp - 0x29], rax
mov r12, rbx
mov qword [rbp - 0x41], rbx
cmp r14, r13
mov word [rsi + rdi], dx
mov rsi, r13
mov qword [rbp - 0x31], r13
cmovbe r14, r13
mov ebx, edx
mov qword [rbp - 0x49], r14
test ebx, ebx
js 0x140009cec
mov rbx, qword [rbp - 0x19]
mov r13d, dword [rbp + 0x77]
add r13d, r15d
add rbx, 0x10
mov dword [rbp + 0x77], r13d
mov qword [rbp - 0x19], rbx
cmp r13d, 4
jb 0x140009871
mov rcx, qword [rbp - 1]
call qword [sym.imp.ntdll.dll_ZwClose]
nop dword [rax + rax]
xor r14d, r14d
mov qword [rbp - 1], r14
mov rax, qword gs:[0x60]
mov r12, qword [rbp - 0x49]
lea edx, [r14 + 8]
mov qword [rbp - 0x19], r12
mov rcx, qword [rax + 0x30]
lea r8, [r12 + 2]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbp - 0x59], rax
mov rsi, rax
test rax, rax
jne 0x140009d01
mov r8d, 0x4f7
lea r9, str.Out_of_memory
mov ecx, r15d
lea rdx, str.AslEnvBuildBasic
mov ebx, 0xc0000017
call fcn.1400071f4
mov rdi, qword [rbp - 0x29]
mov r14, qword [rbp - 0x51]
jmp 0x14000a2f5
mov ebx, 0xc0000095
jmp 0x140009c19
mov ebx, 0xc000000d
mov r8d, 0x4dd
mov ecx, r15d
jmp 0x1400092b0
mov ebx, 0xc000000d
mov r8d, 0x4e1
jmp 0x140009cd2
mov ebx, 0xc000000d
mov r8d, 0x4e8
jmp 0x140009cd2
mov ebx, 0xc000000d
mov r8d, 0x4df
jmp 0x140009cd2
mov rdi, qword [rbp - 0x29]
mov r8, r12
mov rdx, rdi
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov r8d, r15d
lea rdx, str.RegistryMachineSoftwareMicrosoftWindows_NTCurrentVersionProfileList
lea rcx, [rbp - 1]
call fcn.140005228
mov ebx, eax
test eax, eax
jns 0x140009d51
lea r9, str.Failed_to_open_reg_key___x_
mov dword [rsp + 0x20], eax
mov r8d, 0x501
lea rdx, str.AslEnvBuildBasic
mov ecx, r15d
call fcn.1400071f4
jmp 0x140009cb4
mov r13, qword [rbp - 0x31]
lea rbx, str.ProgramData
mov esi, r14d
mov dword [rbp + 0x77], r14d
mov r14, qword [rbp - 0x51]
mov qword [rbp + 0x7f], r14
mov qword [rbp - 9], rbx
mov r9, qword [rbp - 0x59]
lea rcx, [rbp - 0x21]
mov r8, qword [rbx - 8]
mov rdx, qword [rbp - 1]
call fcn.1400056e4
xor edx, edx
test eax, eax
js 0x14000a131
mov rax, qword [rbx]
or rsi, 0xffffffffffffffff
mov qword [rbp - 0x11], rax
inc rsi
cmp word [rax + rsi*2], dx
jne 0x140009d99
add rsi, rsi
je 0x140009e75
lea r12, [rsi + r13]
cmp r12, r13
jb 0x14000a1b0
cmp r12, qword [rbp - 0x41]
jbe 0x140009e3b
mov rax, qword [rbp - 0x39]
dec rax
lea rbx, [r12 + rax]
cmp rbx, r12
jb 0x140009ed7
not rax
mov rcx, r14
and rbx, rax
test rdi, rdi
jne 0x140009e06
mov r8, rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x140009e1b
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
jmp 0x140009e1b
mov r9, rbx
mov r8, rdi
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
nop dword [rax + rax]
mov r14, rax
xor edx, edx
test r14, r14
jne 0x140009e2c
mov ebx, 0xc0000017
jmp 0x140009edc
mov rdi, r14
mov qword [rbp - 0x29], r14
mov qword [rbp - 0x41], rbx
mov rax, qword [rbp - 0x11]
lea rcx, [rdi + r13]
mov r8, rsi
mov rdx, rax
call sub.msvcrt.dll_memcpy
cmp qword [rbp - 0x19], r12
mov r13, r12
mov qword [rbp - 0x31], r12
mov r12, qword [rbp - 0x19]
cmovbe r12, r13
xor edx, edx
mov ebx, edx
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x49], r12
mov r14, qword [rbp + 0x7f]
test ebx, ebx
js 0x14000a1b5
lea rsi, [r13 + 2]
cmp rsi, r13
jb 0x14000a1f6
cmp rsi, qword [rbp - 0x41]
jbe 0x140009f10
mov rcx, qword [rbp - 0x39]
lea rax, [rcx - 1]
lea rbx, [rsi + rax]
cmp rbx, rsi
jb 0x140009fb7
not rax
xor edx, edx
and rbx, rax
mov rcx, r14
test rdi, rdi
jne 0x140009ee2
mov r8, rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x140009ef7
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
jmp 0x140009ef7
mov ebx, 0xc0000095
mov r12, qword [rbp - 0x19]
jmp 0x140009e69
mov r9, rbx
mov r8, rdi
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
nop dword [rax + rax]
mov r14, rax
xor edx, edx
test r14, r14
jne 0x140009f05
mov ebx, 0xc0000017
jmp 0x140009f32
mov rdi, r14
mov qword [rbp - 0x29], r14
mov qword [rbp - 0x41], rbx
cmp r12, rsi
mov qword [rbp - 0x31], rsi
mov eax, 0x3d
mov ebx, edx
cmovbe r12, rsi
mov word [rdi + r13], ax
mov qword [rbp - 0x19], r12
mov r13, rsi
mov qword [rbp - 0x49], r12
mov rcx, qword [rbp - 0x39]
test ebx, ebx
js 0x14000a1fb
mov rax, qword [rbp - 0x21]
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rax + rsi*2], dx
jne 0x140009f46
add rsi, rsi
je 0x14000a025
lea r12, [rsi + r13]
cmp r12, r13
jb 0x14000a1d6
cmp r12, qword [rbp - 0x41]
jbe 0x140009fef
lea rax, [rcx - 1]
lea rbx, [r12 + rax]
cmp rbx, r12
jb 0x14000a066
mov rcx, qword [rbp + 0x7f]
not rax
and rbx, rax
xor edx, edx
test rdi, rdi
jne 0x140009fc1
mov r8, rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x140009fd6
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
jmp 0x140009fd6
mov ebx, 0xc0000095
jmp 0x140009f36
mov r9, rbx
mov r8, rdi
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
nop dword [rax + rax]
mov r14, rax
xor edx, edx
test r14, r14
jne 0x140009fe4
mov ebx, 0xc0000017
jmp 0x14000a01d
mov rdi, r14
mov qword [rbp - 0x29], r14
mov qword [rbp - 0x41], rbx
mov rdx, qword [rbp - 0x21]
lea rcx, [rdi + r13]
mov r8, rsi
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp - 0x19]
mov r13, r12
cmp rax, r12
mov qword [rbp - 0x31], r12
cmovbe rax, r12
xor edx, edx
mov ebx, edx
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x49], rax
test ebx, ebx
js 0x14000a1db
cmp qword [rbp - 0x21], rdx
je 0x14000a06d
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x21]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x51]
xor edx, edx
mov r12, qword [rbp - 0x49]
mov rdi, qword [rbp - 0x29]
mov r13, qword [rbp - 0x31]
mov qword [rbp + 0x7f], rcx
mov qword [rbp - 0x19], r12
jmp 0x14000a075
mov ebx, 0xc0000095
jmp 0x14000a01d
mov r12, qword [rbp - 0x19]
mov rcx, qword [rbp + 0x7f]
lea rsi, [r13 + 2]
mov qword [rbp - 0x21], rdx
cmp rsi, r13
jb 0x14000a1e6
cmp rsi, qword [rbp - 0x41]
jbe 0x14000a101
mov rax, qword [rbp - 0x39]
dec rax
lea rbx, [rsi + rax]
cmp rbx, rsi
jb 0x14000a1a6
not rax
xor edx, edx
and rbx, rax
test rdi, rdi
jne 0x14000a0d3
mov r8, rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x14000a0e8
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
jmp 0x14000a0e8
mov r9, rbx
mov r8, rdi
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
nop dword [rax + rax]
mov r14, rax
xor edx, edx
test r14, r14
jne 0x14000a0f6
mov ebx, 0xc0000017
jmp 0x14000a11e
mov rdi, r14
mov qword [rbp - 0x29], r14
mov qword [rbp - 0x41], rbx
cmp r12, rsi
mov word [rdi + r13], dx
mov r13, rsi
mov qword [rbp - 0x31], rsi
cmovbe r12, rsi
mov ebx, edx
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x49], r12
test ebx, ebx
js 0x14000a1eb
mov r14, qword [rbp + 0x7f]
mov rbx, qword [rbp - 9]
mov esi, dword [rbp + 0x77]
add esi, r15d
add rbx, 0x10
mov dword [rbp + 0x77], esi
mov qword [rbp - 9], rbx
cmp esi, 2
jb 0x140009d6f
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x59]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rax, qword gs:[0x60]
mov edx, 8
mov rdi, qword [rbp - 0x49]
mov rcx, qword [rax + 0x30]
lea rbx, [rdi + 2]
mov r8, rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
xor r14d, r14d
mov rsi, rax
test rax, rax
jne 0x14000a206
mov r8d, 0x528
jmp 0x140009c95
mov ebx, 0xc0000095
jmp 0x14000a11e
mov ebx, 0xc000000d
lea r9, str.Out_of_memory
mov r8d, 0x50e
lea rdx, str.AslEnvBuildBasic
mov ecx, r15d
call fcn.1400071f4
jmp 0x14000a2f1
mov ebx, 0xc000000d
mov r8d, 0x512
jmp 0x140009cd2
mov ebx, 0xc000000d
mov r8d, 0x519
jmp 0x140009cd2
mov ebx, 0xc000000d
mov r8d, 0x510
jmp 0x140009cd2
mov r8, rdi
mov rcx, rsi
mov rdi, qword [rbp - 0x29]
mov rdx, rdi
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 0x67]
shr rbx, 1
mov qword [rax], rsi
mov rsi, r14
mov rax, qword [rbp + 0x6f]
mov qword [rax], rbx
mov ebx, r14d
jmp 0x140009cb4
mov ebx, 0xc000000d
mov r8d, 0x4c7
jmp 0x1400092ab
mov ebx, 0xc000000d
mov r8d, 0x4c1
jmp 0x1400092ab
mov ebx, 0xc000000d
mov r8d, 0x4bd
jmp 0x1400092ab
mov ebx, 0xc000000d
mov r8d, 0x4b7
jmp 0x1400092ab
mov ebx, 0xc000000d
mov r8d, 0x4b3
jmp 0x1400092ab
mov ebx, 0xc000000d
mov r8d, 0x4af
jmp 0x1400092ab
lea r9, str.Out_of_memory
mov r8d, 0x4a9
lea rdx, str.AslEnvBuildBasic
mov ecx, 1
call fcn.1400071f4
mov r14, qword [rbp + 0x7f]
mov rsi, rbx
jmp 0x14000a2f5
xorps xmm0, xmm0
lea r9, str.Out_of_memory
mov r8d, 0x4a1
lea rdx, str.AslEnvBuildBasic
mov ecx, 1
mov ebx, 0xc0000017
movups xmmword [rbp - 0x51], xmm0
movups xmmword [rbp - 0x31], xmm0
call fcn.1400071f4
mov rdi, qword [rbp - 0x29]
mov r14, qword [rbp - 0x51]
mov rsi, qword [rbp - 0x59]
test rdi, rdi
je 0x14000a30e
mov r8, rdi
xor edx, edx
mov rcx, r14
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
xor edi, edi
cmp qword [rbp - 0x21], rdi
je 0x14000a335
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x21]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
test rsi, rsi
je 0x14000a358
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x14000a36d
call qword [sym.imp.ntdll.dll_ZwClose]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret