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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xbe8
mov qword [rsp + 0x100], 0xfffffffffffffffe
lea rcx, [rsp + 0x128]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov qword [rsp + 0x48], 0
jmp 0x180005013
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 2
jae 0x180005377
cmp qword [rsp + 0x48], 0
jbe 0x180005039
movzx eax, word [rsp + 0x128]
cmp eax, 9
je 0x180005039
jmp 0x180005377
lea rax, [0x1803b35d0]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rax + rcx*4]
or eax, 0x20019
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
lea rdx, [0x1803ae110]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
jne 0x180005367
mov dword [rsp + 0x50], 0x104
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x1d0]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x54], 0
jne 0x180005367
lea rax, [0x1803b35d0]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rax + rcx*4]
or eax, 0x20019
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
lea rdx, [rsp + 0x1d0]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000535a
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov word [rsp + rax + 0x3e0], cx
mov dword [rsp + 0x68], 0x800
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x3e0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x98]
xor r8d, r8d
lea rdx, [0x1803ae178]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000535a
mov r8, 0xffffffffffffffff
lea rdx, [rsp + 0x3e0]
lea rcx, [rsp + 0xb0]
call fcn.1801eb5b0
nop
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0xb0]
call fcn.180073760
mov qword [rsp + 0x88], rax
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0xb0]
call fcn.1800737a0
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0xb0]
call fcn.180073760
lea rcx, [fcn.18017d134]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x88]
mov r9, qword [rcx]
mov rcx, qword [rsp + 0xa0]
mov r8, qword [rcx]
mov rdx, qword [rax]
lea rcx, [rsp + 0xf8]
call fcn.180083630
lea rcx, [rsp + 0xb0]
call fcn.180003ba0
test rax, rax
je 0x18000534d
lea rcx, [rsp + 0x160]
call fcn.180075ce0
nop
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0xbf0]
call fcn.180075f80
jmp 0x180005278
xor r8d, r8d
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x60]
call fcn.180075fe0
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0xbf0]
call fcn.180075fb0
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1800755a0
movzx eax, al
test eax, eax
je 0x18000533f
lea rcx, [rsp + 0x60]
call fcn.1800038e0
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0xb0]
call fcn.180073860
xor r9d, r9d
mov rcx, qword [rsp + 0x80]
mov r8, rcx
lea rdx, [rsp + 0x160]
mov rcx, rax
call fcn.1800836c0
movzx eax, al
test eax, eax
je 0x18000533a
mov r8, 0xffffffffffffffff
lea rdx, [rsp + 0x3e0]
lea rcx, [rsp + 0x108]
call fcn.1801eb5b0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xa8], rax
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xbf8]
call fcn.180074110
nop
lea rcx, [rsp + 0x108]
call fcn.180073360
jmp 0x180005263
lea rcx, [rsp + 0x160]
call fcn.180005390
nop
lea rcx, [rsp + 0xb0]
call fcn.180073360
mov dword [rsp + 0x50], 0x104
jmp 0x180005090
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180005006
mov al, 1
add rsp, 0xbe8
ret