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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x2c8]
sub rsp, 0x3c0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x18011a300]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
cmp dword [0x1801340b0], 0
je 0x180006214
lea r9, str.AvoidSRPolicy_____
lea r8, str.OSecurity
mov edx, 0xf
lea rcx, [0x180133ff8]
call fcn.18001ab50
mov byte [rbp + 0x1a0], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x1a1]
call fcn.180043ef0
lea r9, [0x1800d2644]
lea r8, str.SOFTWAREPoliciesMicrosoftWindowsSaferCodeIdentifiers
lea rdx, [0x1800d1c4c]
lea rcx, [rbp + 0x1a0]
call fcn.180043b88
lea rcx, [rsp + 0x38]
call fcn.1800338e0
nop
mov r9d, 0x2001f
lea r8, [rbp + 0x1a0]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x38]
call fcn.1800332e0
mov rsi, rax
test rax, rax
jne 0x1800062b9
cmp dword [0x1801340b0], eax
je 0x1800066c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.AvoidSRPolicy_Open_failed__err___08x
lea r8, str.OSecurity
lea edx, [rsi + 0xf]
lea rcx, [0x180133ff8]
call fcn.18001ab50
jmp 0x18000669d
mov byte [rbp + 0x90], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x91]
call fcn.180043ef0
lea rcx, [rsp + 0x58]
call fcn.1800274b0
nop
lea r8, [rsp + 0x58]
lea rdx, str.Hashes
lea rcx, [rsp + 0x38]
call fcn.180033890
xor r12d, r12d
test eax, eax
je 0x180006463
cmp dword [0x180133b54], r12d
jbe 0x180006463
cmp dword [0x1801340b0], r12d
je 0x180006335
lea r9, str.AvoidSRPolicy_Hashes
lea r8, str.OSecurity
lea edx, [r12 + 0xf]
lea rcx, [0x180133ff8]
call fcn.18001ab50
mov ebx, r12d
cmp dword [rsp + 0x60], ebx
jle 0x180006463
nop word [rax + rax]
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x90]
call fcn.180043ef0
movsxd rdx, ebx
mov r9, qword [rsp + 0x58]
mov r9, qword [r9 + rdx*8]
lea r8, str.Hashes
lea rdx, [0x1800d1c4c]
lea rcx, [rbp + 0x90]
call fcn.180043b88
mov qword [rsp + 0x48], r12
lea r8, [rsp + 0x48]
lea rdx, [rbp + 0x90]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x180006457
mov dword [rsp + 0x30], SafeArrayCreate
mov byte [rsp + 0x78], r12b
xor eax, eax
mov dword [rsp + 0x79], eax
mov word [rsp + 0x7d], ax
mov byte [rsp + 0x7f], al
mov dword [rsp + 0x50], 8
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.ItemSize
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, r12d
test eax, eax
cmove edi, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, dword [0x180133b54]
jne 0x180006457
xor r8d, r8d
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x38]
call fcn.180032180
cmp dword [0x1801340b0], r12d
je 0x180006457
lea r9, str.AvoidSRPolicy_Hashes_Delete
lea r8, str.OSecurity
mov edx, 0xf
lea rcx, [0x180133ff8]
call fcn.18001ab50
inc ebx
cmp ebx, dword [rsp + 0x60]
jl 0x180006350
or r8d, 0xffffffff
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.18002cc40
lea r8, [rsp + 0x58]
lea rdx, str.Paths
lea rcx, [rsp + 0x38]
call fcn.180033890
test eax, eax
je 0x180006689
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x180133a50]
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x180006689
cmp dword [0x1801340b0], eax
je 0x1800064d1
lea r9, str.AvoidSRPolicy_Paths
lea r8, str.OSecurity
lea edx, [rax + 0xf]
lea rcx, [0x180133ff8]
call fcn.18001ab50
mov ebx, r12d
cmp dword [rsp + 0x60], ebx
jle 0x180006689
nop
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x90]
call fcn.180043ef0
movsxd rdx, ebx
mov r9, qword [rsp + 0x58]
mov r9, qword [r9 + rdx*8]
lea r8, str.Paths
lea rdx, [0x1800d1c4c]
lea rcx, [rbp + 0x90]
call fcn.180043b88
mov qword [rsp + 0x20], r12
lea r9, str.ItemData
lea r8, [rbp + 0x90]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.180033330
nop
mov rcx, qword [rsp + 0x30]
cmp dword [rcx - 8], 0
je 0x180006673
mov r8d, dword [0x180117004]
lea rdx, str._HKEY_
call fcn.1800453d8
test eax, eax
jne 0x18000657c
lea rdx, [0x1800d28a0]
mov rcx, qword [rsp + 0x30]
call fcn.180044fd4
test rax, rax
jmp 0x180006634
mov byte [rbp - 0x80], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp - 0x7f]
call fcn.180043ef0
mov dl, 0x25
lea rcx, [rsp + 0x30]
call fcn.18002b780
cmp eax, 0xffffffff
jne 0x1800065b8
mov r8d, 0x104
mov rdx, qword [rsp + 0x30]
lea rcx, [rbp - 0x80]
call fcn.1800441b0
jmp 0x1800065cd
mov r8d, 0x104
lea rdx, [rbp - 0x80]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rbp - 0x80], 0
je 0x180006673
mov edx, 0x5c
lea rcx, [rbp - 0x80]
call fcn.180044e80
lea rdx, [rbp - 0x80]
test rax, rax
jne 0x1800065f7
lea rcx, [0x1800d28b0]
jmp 0x18000662d
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x80]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [0x180133a50]
call fcn.1800453d8
mov ecx, r12d
test eax, eax
sete cl
test ecx, ecx
jne 0x180006636
lea rdx, [rbp - 0x80]
lea rcx, [0x180133a50]
call fcn.18000b980
test eax, eax
je 0x180006673
xor r8d, r8d
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x38]
call fcn.180032180
cmp dword [0x1801340b0], 0
je 0x180006673
lea r9, str.AvoidSRPolicy_Paths_Delete
lea r8, str.OSecurity
mov edx, 0xf
lea rcx, [0x180133ff8]
call fcn.18001ab50
nop
lea rcx, [rsp + 0x30]
call fcn.180027bd0
inc ebx
cmp ebx, dword [rsp + 0x60]
jl 0x1800064e0
lea rcx, [rsp + 0x58]
call fcn.18002cc10
lea rcx, [rsp + 0x38]
call fcn.180031f70
cmp dword [0x1801340b0], 0
je 0x1800066c6
lea r9, str.AvoidSRPolicy_
lea r8, str.OSecurity
mov edx, 0xf
lea rcx, [0x180133ff8]
call fcn.18001ab50
nop
lea rcx, [rsp + 0x38]
call fcn.180033260
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.180043ec0
lea r11, [rsp + 0x3c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret