Function at 0x140057080
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 0x140057122
movsxd rax, dword [rsp + 0x50]
mov r8, rax
lea rdx, [rsp + 0x460]
mov rcx, qword [rsp + 0x590]
call fcn.1400a4120
jmp 0x140057145
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 0x140057191
mov eax, 1
jmp 0x140057423
lea rax, [rsp + 0x430]
mov rdx, rax
lea rcx, [0x1400af4f0]
call fcn.140056980
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x1400af500]
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 0x1400572cb
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, [0x1400af55c]
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 0x1400572c6
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 0x1400573e5
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 0x140057335
mov dword [rsp + 0x6c], 1
lea rcx, [rsp + 0x140]
call fcn.140050b90
mov eax, dword [rsp + 0x6c]
jmp 0x140057423
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, [0x1400af560]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1400573e5
mov dword [rsp + 0x70], 1
lea rcx, [rsp + 0x140]
call fcn.140050b90
mov eax, dword [rsp + 0x70]
jmp 0x140057423
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