Function at 0x180034aa0
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.180076e90
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0xc
jg 0x180034b42
movsxd rax, dword [rsp + 0x50]
mov r8, rax
lea rdx, [rsp + 0x460]
mov rcx, qword [rsp + 0x590]
call fcn.18008f650
jmp 0x180034b65
movsxd rax, dword [rsp + 0x50]
lea rax, [rsp + rax + 0x45c]
mov r8d, ntohl
mov rdx, rax
mov rcx, qword [rsp + 0x590]
call fcn.18008f650
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 0x180034bb1
mov eax, 1
jmp 0x180034e43
lea rax, [rsp + 0x430]
mov rdx, rax
lea rcx, [0x18009b668]
call fcn.1800344b0
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x18009b678]
lea rcx, [rsp + 0x420]
call fcn.18008f650
mov rdx, qword [rsp + 0x590]
lea rcx, [rsp + 0x140]
call fcn.180036cb0
nop
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x420]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x180034ceb
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, [0x18009b6cc]
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.180037c80
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.180034330
movzx eax, al
test eax, eax
je 0x180034ce6
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 0x180034e05
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 0x180034d55
mov dword [rsp + 0x6c], 1
lea rcx, [rsp + 0x140]
call fcn.180037c60
mov eax, dword [rsp + 0x6c]
jmp 0x180034e43
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.180037c80
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, [0x18009b6d0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x180034e05
mov dword [rsp + 0x70], 1
lea rcx, [rsp + 0x140]
call fcn.180037c60
mov eax, dword [rsp + 0x70]
jmp 0x180034e43
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.180037c60
mov eax, dword [rsp + 0x74]
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.1800336f0
add rsp, 0x578
pop rdi
pop rsi
ret