Function at 0x14004d9d0
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 [0x1400cc400]
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.14008e8c0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0xc
jg 0x14004da72
movsxd rax, dword [rsp + 0x50]
mov r8, rax
lea rdx, [rsp + 0x460]
mov rcx, qword [rsp + 0x590]
call fcn.1400a4120
jmp 0x14004da95
movsxd rax, dword [rsp + 0x50]
lea rax, [rsp + rax + 0x45c]
mov r8d, recv
mov rdx, rax
mov rcx, qword [rsp + 0x590]
call fcn.1400a4120
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 0x14004dae1
mov eax, 1
jmp 0x14004dd73
lea rax, [rsp + 0x430]
mov rdx, rax
lea rcx, [0x1400af238]
call fcn.14004d3e0
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x1400af248]
lea rcx, [rsp + 0x420]
call fcn.1400a4120
mov rdx, qword [rsp + 0x590]
lea rcx, [rsp + 0x140]
call fcn.14004fbe0
nop
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x420]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x14004dc1b
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, [0x1400af29c]
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.140050bb0
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.14004d260
movzx eax, al
test eax, eax
je 0x14004dc16
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 0x14004dd35
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 0x14004dc85
mov dword [rsp + 0x6c], 1
lea rcx, [rsp + 0x140]
call fcn.140050b90
mov eax, dword [rsp + 0x6c]
jmp 0x14004dd73
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.140050bb0
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, [0x1400af2a0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x14004dd35
mov dword [rsp + 0x70], 1
lea rcx, [rsp + 0x140]
call fcn.140050b90
mov eax, dword [rsp + 0x70]
jmp 0x14004dd73
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.140050b90
mov eax, dword [rsp + 0x74]
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.14004c260
add rsp, 0x578
pop rdi
pop rsi
ret