Function at 0x140020b84
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140065010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, r8
mov r14, rdx
test rdx, rdx
je 0x140020dea
lea rdx, str.GetTwrtGlobals
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140020dea
call rax
mov rsi, rax
test rax, rax
je 0x140020dea
mov dword [rax + 0x54], 0x3e8
call fcn.140020a08
mov qword [rsi + 0x40], rax
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.ZwCallbackReturn
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x48], rax
call fcn.140020ac4
mov qword [rsi + 0x28], rax
lea rcx, str.KERNEL32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetUmsSystemThreadInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x30], rax
mov eax, dword [rbx + 8]
mov dword [rsi + 0x9c], eax
cmp byte [0x140065bc8], 0
jne 0x140020c64
lea rcx, [0x140065bd0]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov byte [0x140065bc8], 1
mov rax, qword [0x140065be0]
mov qword [rsi + 0xa0], rax
mov al, byte [rbx + 0x18]
mov byte [rsi + 0x9b], al
mov byte [rsi + 0x9a], 1
call fcn.140001424
mov rcx, rax
test rax, rax
jne 0x140020c9a
mov ecx, 0x80004005
call fcn.140003cb0
int3
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x40], rbx
lea rax, str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
test rax, 0xffffffffffff0000
jne 0x140020cd7
movzx edi, ax
mov ecx, edi
call fcn.140003d64
test rax, rax
je 0x140020ce4
mov r8d, edi
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.14000dccc
jmp 0x140020ce0
lea rcx, [rbp - 0x40]
call fcn.1400218ec
mov rbx, qword [rbp - 0x40]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140020d5f
mov dword [rbp - 0x34], 1
mov dword [rbp - 0x38], 0x10
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x34]
xor r8d, r8d
lea rdx, str.F1.CLR_SW
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x140020d5f
cmp byte [rbp - 0x20], 0x30
jne 0x140020d5f
mov byte [rsi + 0x9a], dil
movups xmm0, xmmword [rsi]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [r14 + 0x10], xmm1
movups xmm0, xmmword [rsi + 0x20]
movups xmmword [r14 + 0x20], xmm0
movups xmm1, xmmword [rsi + 0x30]
movups xmmword [r14 + 0x30], xmm1
movups xmm0, xmmword [rsi + 0x40]
movups xmmword [r14 + 0x40], xmm0
movups xmm1, xmmword [rsi + 0x50]
movups xmmword [r14 + 0x50], xmm1
movups xmm0, xmmword [rsi + 0x60]
movups xmmword [r14 + 0x60], xmm0
mov eax, 0x80
add r14, rax
movups xmm0, xmmword [rsi + 0x70]
movups xmmword [r14 - 0x10], xmm0
movups xmm1, xmmword [rsi + rax]
movups xmmword [r14], xmm1
movups xmm0, xmmword [rsi + rax + 0x10]
movups xmmword [r14 + 0x10], xmm0
mov rax, qword [rsi + rax + 0x20]
mov qword [r14 + 0x20], rax
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140020de3
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, 1
jmp 0x140020dec
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140026390
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret