Function at 0x14000a4f4
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 - 0x2c8]
sub rsp, 0x3a0
mov rax, qword [0x140036040]
xor rax, rsp
mov qword [rbp + 0x290], rax
mov rbx, rcx
call fcn.14000a398
xor r12d, r12d
test al, al
je 0x14000a541
mov al, 1
jmp 0x14000ab4f
cmp dword [0x1400384f0], r12d
jne 0x14000a62c
lea r8, [0x140030b18]
mov rdi, 0xffffffff80000001
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.140009d74
nop
mov r8, qword [rbp - 0x78]
cmp r8, 1
jbe 0x14000a5aa
lea rcx, [rbx + 0x10]
lea rax, [rsp + 0x78]
cmp rcx, rax
je 0x14000a597
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova rdx, qword [rsp + 0x78]
call fcn.1400028cc
mov dword [rbx + 4], 1
mov rcx, rbx
call fcn.14000a398
test al, al
jne 0x14000a613
lea r8, [0x140030b18]
mov rdx, rdi
lea rcx, [rbp - 0x28]
call fcn.140009a04
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000b4c4
lea rcx, [rbp - 0x28]
call fcn.14000276c
mov r8, qword [rbp - 0x78]
cmp r8, 1
jbe 0x14000a622
lea rcx, [rbx + 0x10]
lea rax, [rsp + 0x78]
cmp rcx, rax
je 0x14000a600
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova rdx, qword [rsp + 0x78]
call fcn.1400028cc
mov dword [rbx + 4], 2
mov rcx, rbx
call fcn.14000a398
test al, al
je 0x14000a622
lea rcx, [rsp + 0x78]
call fcn.14000276c
jmp 0x14000a53a
lea rcx, [rsp + 0x78]
jmp 0x14000ab41
movdqa xmm0, xmmword [0x140031470]
movdqa xmmword [rbp + 0x90], xmm0
movdqa xmm1, xmmword [0x1400314b0]
movdqa xmmword [rbp + 0xa0], xmm1
movdqa xmm0, xmmword [0x1400315e0]
movdqa xmmword [rbp + 0xb0], xmm0
movdqa xmm1, xmmword [0x1400316c0]
movdqa xmmword [rbp + 0xc0], xmm1
movdqa xmm0, xmmword [0x140031480]
movdqa xmmword [rbp + 0xd0], xmm0
movdqa xmm1, xmmword [0x140031700]
movdqa xmmword [rbp + 0xe0], xmm1
movdqa xmm0, xmmword [0x1400314d0]
movdqa xmmword [rbp + 0xf0], xmm0
movdqa xmm1, xmmword [0x140031550]
movdqa xmmword [rbp + 0x100], xmm1
movdqa xmm0, xmmword [0x140031740]
movdqa xmmword [rbp + 0x110], xmm0
movdqa xmm1, xmmword [0x140031520]
movdqa xmmword [rbp + 0x120], xmm1
movdqa xmm0, xmmword [0x140031760]
movdqa xmmword [rbp + 0x130], xmm0
movdqa xmm1, xmmword [0x1400316d0]
movdqa xmmword [rbp + 0x140], xmm1
movdqa xmm0, xmmword [0x140031640]
movdqa xmmword [rbp + 0x150], xmm0
movdqa xmm1, xmmword [0x140031580]
movdqa xmmword [rbp + 0x160], xmm1
mov r8d, gethostname
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 8]
call fcn.1400054c4
nop
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 7
cmova rdx, qword [rbp - 8]
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]
mov rsi, r12
test eax, eax
cmove rsi, qword [rsp + 0x48]
test rsi, rsi
je 0x14000ab3d
mov r14d, r12d
mov dword [rsp + 0x40], 0xff
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x90]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000ab33
or rdi, 0xffffffffffffffff
mov r13, 0xffffffff80000003
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x48]
call fcn.140002808
nop
mov r8d, 1
lea rdx, [0x140030e88]
lea rcx, [rbp - 0x48]
call fcn.1400029ec
lea rax, [rbp + 0x90]
mov r8, rdi
inc r8
cmp word [rax + r8*2], r12w
jne 0x14000a7dc
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x48]
call fcn.1400029ec
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 7
cmova rdx, qword [rbp - 0x48]
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 r15, r12
test eax, eax
cmove r15, qword [rsp + 0x50]
test r15, r15
je 0x14000aae3
movdqa xmm0, xmmword [0x140031650]
movdqa xmmword [rbp + 0x20], xmm0
movdqa xmm1, xmmword [0x1400314c0]
movdqa xmmword [rbp + 0x30], xmm1
movdqa xmm0, xmmword [0x140031630]
movdqa xmmword [rbp + 0x40], xmm0
movdqa xmm1, xmmword [0x140031680]
movdqa xmmword [rbp + 0x50], xmm1
mov r8d, 0x10
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x28]
call fcn.1400054c4
nop
lea r8, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova r8, qword [rbp - 0x28]
mov rdx, r15
lea rcx, [rsp + 0x58]
call fcn.14000a418
nop
movdqa xmm0, xmmword [0x140031560]
movdqu xmmword [rbp + 0x60], xmm0
movdqa xmm1, xmmword [0x140031830]
movdqu xmmword [rbp + 0x70], xmm1
mov dword [rbp + 0x80], gethostname
mov dword [rbp + 0x84], gethostbyname
mov dword [rbp + 0x88], 0x25
mov r8d, inet_ntoa
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x20]
call fcn.1400054c4
nop
mov rdx, rax
cmp qword [rax + 0x18], 7
jbe 0x14000a8f5
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rsp + 0x58]
call fcn.1400029ec
nop
lea rcx, [rbp + 0x20]
call fcn.14000276c
lea rcx, str.SeRestorePrivilege
call fcn.140005108
lea rcx, str.SeBackupPrivilege
call fcn.140005108
xor r8d, r8d
lea rdx, [0x140030fa0]
lea rcx, [rsp + 0x58]
call fcn.140002660
cmp rax, rdi
je 0x14000a9c2
mov rcx, qword [rsp + 0x68]
sub rcx, 0xffffffffffffff80
mov eax, 2
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.14000d3d8
mov rdi, rax
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova 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], r12
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rcx, qword [rsp + 0x58]
mov word [rcx], r12w
or r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], r12w
jne 0x14000a9a3
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.1400028cc
mov rcx, rdi
call fcn.14000d128
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova r8, qword [rsp + 0x58]
lea rdx, [rbp + 0x90]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
mov edi, eax
lea r8, [rbp + 0x90]
mov rdx, r13
lea rcx, [rbp - 0x68]
call fcn.140009d74
nop
mov r8, qword [rbp - 0x58]
cmp r8, 1
jbe 0x14000aa3a
lea rcx, [rbx + 0x10]
lea rax, [rbp - 0x68]
cmp rcx, rax
je 0x14000aa23
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova rdx, qword [rbp - 0x68]
call fcn.1400028cc
mov dword [rbx + 4], 3
mov rcx, rbx
call fcn.14000a398
test al, al
jne 0x14000ab7f
lea r8, [rbp + 0x90]
mov rdx, r13
lea rcx, [rbp + 0x20]
call fcn.140009a04
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.14000b4c4
lea rcx, [rbp + 0x20]
call fcn.14000276c
mov r8, qword [rbp - 0x58]
cmp r8, 1
jbe 0x14000aaa3
lea rcx, [rbx + 0x10]
lea rax, [rbp - 0x68]
cmp rcx, rax
je 0x14000aa8c
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova rdx, qword [rbp - 0x68]
call fcn.1400028cc
mov dword [rbx + 4], 4
mov rcx, rbx
call fcn.14000a398
test al, al
jne 0x14000ab7f
test edi, edi
jne 0x14000aab7
lea rdx, [rbp + 0x90]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp - 0x68]
call fcn.14000276c
nop
lea rcx, [rsp + 0x58]
call fcn.14000276c
nop
lea rcx, [rbp - 0x28]
call fcn.14000276c
or rdi, 0xffffffffffffffff
mov word [rbp + 0x90], r12w
mov dword [rsp + 0x40], 0xff
inc r14d
lea rcx, [rbp - 0x48]
call fcn.14000276c
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x90]
mov edx, r14d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14000a7ae
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp - 8]
call fcn.14000276c
mov dword [rbx + 4], 5
xor al, al
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.14000d100
lea r11, [rsp + 0x3a0]
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 edi, edi
jne 0x14000ab94
lea rdx, [rbp + 0x90]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
nop
lea rcx, [rbp - 0x68]
call fcn.14000276c
nop
lea rcx, [rsp + 0x58]
call fcn.14000276c
nop
lea rcx, [rbp - 0x28]
call fcn.14000276c
nop
lea rcx, [rbp - 0x48]
call fcn.14000276c
nop
lea rcx, [rbp - 8]
jmp 0x14000a618