Function at 0x180002870
Capabilities:
Encode data using xor
Get hostname
Get memory capacity
Initialize winsock library
Query or enumerate registry key
Query or enumerate registry value
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x700]
sub rsp, 0x800
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x6f0], rax
mov rax, qword [rbp + 0x750]
xor edi, edi
mov dword [rsp + 0x50], edx
mov r13d, edi
mov qword [rsp + 0x60], rcx
lea rdx, [rbp + 0xc0]
mov ecx, 0x101
mov qword [rsp + 0x68], rax
mov byte [rbp + 0x260], dil
mov r15, r8
mov word [rbp + 0x2d0], di
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x180002944
lea edx, [rdi + 0x50]
lea rcx, [rbp + 0x280]
call qword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x18000293e
lea rcx, [rbp + 0x280]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x18000293e
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
test rcx, rcx
je 0x18000293e
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
lea rdx, [rbp + 0x260]
sub rdx, rax
nop dword [rax + rax]
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x180002930
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rcx, [0x18001e440]
call fcn.180006530
mov r14, rax
mov r9d, 0x108
lea rax, [rsp + 0x48]
mov rdx, r14
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180002a9a
lea rcx, [0x18001e4b0]
call fcn.180006530
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x38], rdi
lea r8, [rbp + 0x4e0]
mov qword [rsp + 0x30], rdi
xor edx, edx
mov qword [rsp + 0x28], rdi
mov rsi, rax
mov qword [rsp + 0x20], rdi
mov ebx, edi
mov dword [rsp + 0x44], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x180002a87
nop dword [rax]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov r9d, 0x101
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp + 0x4e0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180002a3a
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rbp + 0x2d0]
mov dword [rsp + 0x40], 0x104
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x180002a7b
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x38], rdi
lea r8, [rbp + 0x4e0]
mov qword [rsp + 0x30], rdi
inc ebx
mov qword [rsp + 0x28], rdi
mov edx, ebx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x44], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1800029d0
jmp 0x180002a87
mov eax, dword [rsp + 0x40]
mov word [rbp + rax + 0x2d0], di
mov rcx, rsi
call fcn.1800066b0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r14, r14
je 0x180002abb
mov r8d, dword [r14 - 8]
lea rcx, [r14 - 8]
add r8, 8
xor edx, edx
call fcn.180008180
lea rcx, [r14 - 8]
call fcn.180005370
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x180002adb
mov r13, qword [rsp + 0x78]
shr r13, 0x14
mov qword [rsp + 0x38], rdi
lea r8, [rbp + 0x2d0]
mov qword [rsp + 0x30], rdi
or rbx, 0xffffffffffffffff
mov dword [rsp + 0x28], edi
mov r9d, ebx
xor edx, edx
mov qword [rsp + 0x20], rdi
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rsi, eax
test eax, eax
je 0x180002cbd
mov rcx, rsi
call fcn.180005300
mov r14, rax
test rax, rax
je 0x180002cbd
mov qword [rsp + 0x38], rdi
lea r8, [rbp + 0x2d0]
mov qword [rsp + 0x30], rdi
mov r9d, ebx
mov dword [rsp + 0x28], esi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, 0x800
call fcn.180005300
mov rsi, rax
test rax, rax
je 0x180002cb5
mov rax, qword [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x830], r12
mov dword [rsi + 0xc], 2
mov dword [rsi + 0x10], 1
mov ecx, dword [rax]
mov dword [rsi + 4], ecx
mov ecx, dword [rax + 4]
mov eax, dword [rsp + 0x50]
mov dword [rsi + 0x14], eax
lea rax, [rbp + 0x260]
mov dword [rsi + 8], ecx
nop
inc r8
cmp byte [rax + r8], dil
jne 0x180002ba0
lea rcx, [rsi + 0x2c]
lea rdx, [rbp + 0x260]
call fcn.1800011e0
mov dword [rsi + 0x18], 0x2c
mov r8, rbx
mov dword [rsi + 0x1c], eax
lea edi, [rax + 3]
and edi, 0xfffffffc
add edi, 0x2c
nop
inc r8
cmp byte [r14 + r8], 0
jne 0x180002bd0
mov ecx, edi
mov rdx, r14
add rcx, rsi
call fcn.1800011e0
mov dword [rsi + 0x20], edi
lea rcx, [rsi + 4]
mov dword [rsi + 0x24], eax
xor r8d, r8d
mov dword [rsi + 0x28], r13d
lea edx, [rax + 3]
and edx, 0xfffffffc
add edx, edi
mov dword [rsp + 0x40], edx
add edx, 0xfffffffc
call fcn.180001e30
mov r12, qword [rsp + 0x830]
mov dword [rsi], eax
inc rbx
cmp byte [r15 + rbx], 0
jne 0x180002c16
mov r8, rbx
lea rcx, [rbp - 0x50]
mov rdx, r15
call fcn.180005790
mov eax, dword [rsp + 0x40]
mov r10d, eax
test eax, eax
je 0x180002cab
movzx edx, byte [rbp - 0x4f]
mov r9, rsi
movzx r8d, byte [rbp - 0x50]
nop word [rax + rax]
inc r8b
lea r9, [r9 + 1]
mov byte [rbp - 0x50], r8b
movzx eax, r8b
lea r8, [rbp - 0x4e]
add r8, rax
add dl, byte [r8]
mov byte [rbp - 0x4f], dl
movzx ecx, byte [r8]
movzx eax, dl
lea rdx, [rbp - 0x4e]
add rdx, rax
movzx eax, byte [rdx]
mov byte [r8], al
mov byte [rdx], cl
movzx edx, byte [rbp - 0x4f]
movzx r8d, byte [rbp - 0x50]
movzx ecx, byte [rbp + rdx - 0x4e]
add cl, byte [rbp + r8 - 0x4e]
movzx eax, cl
movzx ecx, byte [rbp + rax - 0x4e]
xor byte [r9 - 1], cl
sub r10, 1
jne 0x180002c50
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
mov rdi, rsi
mov dword [rcx], eax
mov rcx, r14
call fcn.180005370
mov rax, rdi
mov rcx, qword [rbp + 0x6f0]
xor rcx, rsp
call fcn.180006d30
lea r11, [rsp + 0x800]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret