Function at 0x14000ade4
Capabilities:
Query environment variable
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2a8]
sub rsp, 0x380
mov rax, qword [0x14004b010]
xor rax, rsp
mov qword [rbp + 0x270], rax
mov rdi, rcx
call fcn.14000ab28
xor r15d, r15d
test al, al
je 0x14000ae33
lea eax, [r15 + 1]
jmp 0x14000b427
cmp dword [0x14004e1d0], r15d
jne 0x14000af1f
lea r8, [0x140043a48]
mov rbx, 0xffffffff80000001
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.14000a7a8
nop
mov esi, 1
lea r14, [rdi + 0x10]
cmp qword [rsp + 0x68], rsi
jbe 0x14000ae88
lea rdx, [rsp + 0x58]
mov rcx, r14
call fcn.14000d3b0
mov dword [rdi + 4], esi
mov rcx, rdi
call fcn.14000ab28
test al, al
jne 0x14000af03
lea r8, [0x140043a48]
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.14000a4cc
mov rbx, rax
lea rax, [rsp + 0x58]
cmp rax, rbx
je 0x14000aed3
lea rcx, [rsp + 0x58]
call fcn.1400025b8
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
lea rcx, [rbp - 0x48]
call fcn.1400025b8
cmp qword [rsp + 0x68], rsi
jbe 0x14000af15
lea rdx, [rsp + 0x58]
mov rcx, r14
call fcn.14000d3b0
mov dword [rdi + 4], 2
mov rcx, rdi
call fcn.14000ab28
test al, al
je 0x14000af15
lea rcx, [rsp + 0x58]
call fcn.1400025b8
mov al, sil
jmp 0x14000b427
lea rcx, [rsp + 0x58]
jmp 0x14000b419
movdqa xmm0, xmmword [0x140044d80]
movdqa xmmword [rbp + 0x70], xmm0
movdqa xmm1, xmmword [0x140044dc0]
movdqa xmmword [rbp + 0x80], xmm1
movdqa xmm0, xmmword [0x140044ef0]
movdqa xmmword [rbp + 0x90], xmm0
movdqa xmm1, xmmword [0x140044fe0]
movdqa xmmword [rbp + 0xa0], xmm1
movdqa xmm0, xmmword [0x140044d90]
movdqa xmmword [rbp + 0xb0], xmm0
movdqa xmm1, xmmword [0x140045020]
movdqa xmmword [rbp + 0xc0], xmm1
movdqa xmm0, xmmword [0x140044de0]
movdqa xmmword [rbp + 0xd0], xmm0
movdqa xmm1, xmmword [0x140044e60]
movdqa xmmword [rbp + 0xe0], xmm1
movdqa xmm0, xmmword [0x140045060]
movdqa xmmword [rbp + 0xf0], xmm0
movdqa xmm1, xmmword [0x140044e30]
movdqa xmmword [rbp + 0x100], xmm1
movdqa xmm0, xmmword [0x140045080]
movdqa xmmword [rbp + 0x110], xmm0
movdqa xmm1, xmmword [0x140044ff0]
movdqa xmmword [rbp + 0x120], xmm1
movdqa xmm0, xmmword [0x140044f50]
movdqa xmmword [rbp + 0x130], xmm0
movdqa xmm1, xmmword [0x140044e90]
movdqa xmmword [rbp + 0x140], xmm1
mov r8d, gethostname
lea rdx, [rbp + 0x70]
lea rcx, [rbp - 0x28]
call fcn.140005870
nop
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b415
mov r14, qword [rsp + 0x48]
test r14, r14
je 0x14000b415
mov r13d, r15d
mov dword [rsp + 0x40], 0xff
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x70]
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000b40b
lea esi, [rax + 1]
or rbx, 0xffffffffffffffff
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], r15
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x68]
call fcn.1400027d0
nop
mov r8, rsi
lea rdx, [0x140044230]
lea rcx, [rbp - 0x68]
call fcn.14000261c
lea rax, [rbp + 0x70]
mov r8, rbx
inc r8
cmp word [rax + r8*2], r15w
jne 0x14000b0ca
lea rdx, [rbp + 0x70]
lea rcx, [rbp - 0x68]
call fcn.14000261c
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rdx, qword [rbp - 0x68]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r12, r15
test eax, eax
cmove r12, qword [rsp + 0x50]
test r12, r12
je 0x14000b3c1
movdqa xmm0, xmmword [0x140044f60]
movdqa xmmword [rbp], xmm0
movdqa xmm1, xmmword [0x140044dd0]
movdqa xmmword [rbp + 0x10], xmm1
movdqa xmm0, xmmword [0x140044f40]
movdqa xmmword [rbp + 0x20], xmm0
movdqa xmm1, xmmword [0x140044fa0]
movdqa xmmword [rbp + 0x30], xmm1
mov r8d, 0x10
lea rdx, [rbp]
lea rcx, [rbp - 0x48]
call fcn.140005870
nop
lea r8, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae r8, qword [rbp - 0x48]
mov rdx, r12
lea rcx, [rsp + 0x58]
call fcn.14000ad2c
nop
movdqa xmm0, xmmword [0x140044e70]
movdqu xmmword [rbp + 0x40], xmm0
movdqa xmm1, xmmword [0x140045140]
movdqu xmmword [rbp + 0x50], xmm1
mov dword [rbp + 0x60], gethostname
mov dword [rbp + 0x64], gethostbyname
mov dword [rbp + 0x68], 0x25
mov r8d, inet_ntoa
lea rdx, [rbp + 0x40]
lea rcx, [rbp]
call fcn.140005870
nop
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14000b1d7
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rsp + 0x58]
call fcn.14000261c
nop
lea rcx, [rbp]
call fcn.1400025b8
lea rcx, str.SeRestorePrivilege
call fcn.140005544
lea rcx, str.SeBackupPrivilege
call fcn.140005544
xor r8d, r8d
lea rdx, [0x140044348]
lea rcx, [rsp + 0x58]
call fcn.1400023dc
cmp rax, rbx
je 0x14000b292
mov rcx, qword [rsp + 0x68]
sub rcx, 0xffffffffffffff80
mov eax, 2
mul rcx
cmovo rax, rbx
mov rcx, rax
call fcn.140010328
mov rbx, rax
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x68]
sub r8d, 0xffffff80
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov qword [rsp + 0x68], r15
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
mov word [rcx], r15w
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.1400024b8
mov rcx, rbx
call fcn.140010068
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae r8, qword [rsp + 0x58]
lea rdx, [rbp + 0x70]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
cmove r15d, esi
lea r8, [rbp + 0x70]
mov rdx, 0xffffffff80000003
lea rcx, [rsp + 0x78]
call fcn.14000a7a8
nop
cmp qword [rbp - 0x78], rsi
jbe 0x14000b2fb
lea rcx, [rdi + 0x10]
lea rdx, [rsp + 0x78]
call fcn.14000d3b0
mov dword [rdi + 4], 3
mov rcx, rdi
call fcn.14000ab28
test al, al
jne 0x14000b457
lea r8, [rbp + 0x70]
mov rdx, 0xffffffff80000003
lea rcx, [rbp]
call fcn.14000a4cc
mov rbx, rax
lea rax, [rsp + 0x78]
cmp rax, rbx
je 0x14000b347
lea rcx, [rsp + 0x78]
call fcn.1400025b8
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x78], xmm1
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], 7
mov word [rbx], ax
lea rcx, [rbp]
call fcn.1400025b8
cmp qword [rbp - 0x78], rsi
jbe 0x14000b37b
lea rcx, [rdi + 0x10]
lea rdx, [rsp + 0x78]
call fcn.14000d3b0
mov dword [rdi + 4], 4
mov rcx, rdi
call fcn.14000ab28
test al, al
jne 0x14000b457
test r15b, r15b
je 0x14000b391
lea rdx, [rbp + 0x70]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x78]
call fcn.1400025b8
nop
lea rcx, [rsp + 0x58]
call fcn.1400025b8
nop
lea rcx, [rbp - 0x48]
call fcn.1400025b8
xor r15d, r15d
or rbx, 0xffffffffffffffff
mov word [rbp + 0x70], r15w
mov dword [rsp + 0x40], 0xff
add r13d, esi
lea rcx, [rbp - 0x68]
call fcn.1400025b8
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x70]
mov edx, r13d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14000b096
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp - 0x28]
call fcn.1400025b8
mov dword [rdi + 4], 5
xor al, al
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.140010040
lea r11, [rsp + 0x380]
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
test r15b, r15b
je 0x14000b46e
lea rdx, [rbp + 0x70]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
nop
lea rcx, [rsp + 0x78]
call fcn.1400025b8
nop
lea rcx, [rsp + 0x58]
call fcn.1400025b8
nop
lea rcx, [rbp - 0x48]
call fcn.1400025b8
nop
lea rcx, [rbp - 0x68]
call fcn.1400025b8
nop
lea rcx, [rbp - 0x28]
jmp 0x14000af08