Function at 0x18003df20
Capabilities:
Check os version
Get hostname
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x578
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov rax, qword [0x1800b7480]
xor rax, rsp
mov qword [rsp + 0x560], rax
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x60], 0x100
mov byte [rsp + 0x460], 0
lea rax, [rsp + 0x461]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x460]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea rcx, [rsp + 0x460]
call fcn.180076dd0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0xc
jg 0x18003dfc2
movsxd rax, dword [rsp + 0x50]
mov r8, rax
lea rdx, [rsp + 0x460]
mov rcx, qword [rsp + 0x590]
call fcn.18008f590
jmp 0x18003dfe5
movsxd rax, dword [rsp + 0x50]
lea rax, [rsp + rax + 0x45c]
mov r8d, ntohl
mov rdx, rax
mov rcx, qword [rsp + 0x590]
call fcn.18008f590
mov dword [rsp + 0xa0], 0
lea rax, [rsp + 0xa4]
mov rdi, rax
xor eax, eax
mov ecx, 0x98
rep stosb byte [rdi], al
mov dword [rsp + 0xa0], 0x9c
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0xa4], 6
jae 0x18003e031
mov eax, 1
jmp 0x18003e2c3
lea rax, [rsp + 0x430]
mov rdx, rax
lea rcx, [0x18009b8e0]
call fcn.18003d820
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x18009b8f0]
lea rcx, [rsp + 0x420]
call fcn.18008f590
mov rdx, qword [rsp + 0x590]
lea rcx, [rsp + 0x140]
call fcn.180036bf0
nop
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x420]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x18003e16b
mov dword [rsp + 0x68], 3
mov dword [rsp + 0x64], 0x20
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x400]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, [0x18009b94c]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 0
lea rcx, [rsp + 0x88]
mov rdi, rcx
lea rsi, [rsp + rax + 0x400]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x140]
call fcn.180037bc0
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 1
lea rax, [rsp + rax + 0x400]
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.180034270
movzx eax, al
test eax, eax
je 0x18003e166
mov dword [rsp + 0x54], 0
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 1
lea rcx, [rsp + 0x88]
mov rdi, rcx
lea rsi, [rsp + rax + 0x400]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
jmp 0x18003e285
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x420]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x18003e1d5
mov dword [rsp + 0x6c], 1
lea rcx, [rsp + 0x140]
call fcn.180037ba0
mov eax, dword [rsp + 0x6c]
jmp 0x18003e2c3
lea rcx, [rsp + 0x88]
call qword [sym.imp.ole32.dll_CoCreateGuid]
mov eax, reloc.WS2_32.dll_recv
imul rax, rax, 0
lea rcx, [rsp + 0x88]
lea rdi, [rsp + rax + 0x400]
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x140]
call fcn.180037bc0
mov ecx, reloc.WS2_32.dll_recv
imul rcx, rcx, 1
lea rdi, [rsp + rcx + 0x400]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x28], 0x20
lea rax, [rsp + 0x400]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, [0x18009b950]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x18003e285
mov dword [rsp + 0x70], 1
lea rcx, [rsp + 0x140]
call fcn.180037ba0
mov eax, dword [rsp + 0x70]
jmp 0x18003e2c3
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x88]
mov rdi, qword [rsp + 0x590]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x74], eax
lea rcx, [rsp + 0x140]
call fcn.180037ba0
mov eax, dword [rsp + 0x74]
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.180033630
add rsp, 0x578
pop rdi
pop rsi
ret