Function at 0x180003a70
Capabilities:
Get hostname
Get memory capacity
Initialize winsock library
Query or enumerate registry key
Query or enumerate registry value
Resolve dns

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x838
mov rax, qword [0x180026250]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x98], 0
lea rdx, [0x180026c0a]
lea rcx, [rsp + 0x390]
call fcn.18000d1c0
lea rdx, [0x180026c0c]
lea rcx, [rsp + 0x400]
call fcn.18000ceb4
mov dword [rsp + 0x5c], 0
lea rdx, [rsp + 0x1f0]
mov cx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x180003bad
mov edx, 0x50
lea rcx, [rsp + 0x3b0]
call qword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x180003ba7
lea rcx, [rsp + 0x3b0]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x180003ba7
mov dword [rsp + 0x54], 0
jmp 0x180003b52
movsxd rax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x18]
cmp qword [rcx + rax*8], 0
je 0x180003ba7
movsxd rax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x18]
mov r8d, 4
mov rdx, qword [rcx + rax*8]
lea rcx, [rsp + 0x68]
call fcn.18000a460
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
lea rcx, [rsp + 0x390]
call fcn.18000d1c0
jmp 0x180003ba7
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rcx, [0x180025810]
call fcn.180007d50
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x108
xor r8d, r8d
mov rdx, qword [rsp + 0x88]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180003d1d
lea rcx, [0x180025878]
call fcn.180007d50
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x58], 0
jmp 0x180003c19
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x6c], 0x104
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x6c]
lea r8, [rsp + 0x610]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x180003d05
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 0x101
xor r8d, r8d
lea rdx, [rsp + 0x610]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180003d00
mov dword [rsp + 0x4c], 0x104
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x400]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180003cf2
mov eax, dword [rsp + 0x4c]
mov byte [rsp + rax + 0x400], 0
mov eax, dword [rsp + 0x4c]
mov byte [rsp + rax + 0x401], 0
jmp 0x180003d05
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180003c0f
mov rcx, qword [rsp + 0x78]
call fcn.180007e50
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x88]
call fcn.180007e50
mov dword [rsp + 0xa0], 0x40
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x180003d5d
xor edx, edx
mov rax, qword [rsp + 0xa8]
mov ecx, 0x100000
div rcx
mov dword [rsp + 0x5c], eax
lea rcx, [rsp + 0x400]
call fcn.180006890
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x180003f3f
mov ecx, 0x800
call fcn.180006950
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x180003f35
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x840]
mov ecx, dword [rcx]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x840]
mov ecx, dword [rcx + 4]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 2
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x10], 1
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x848]
mov dword [rax + 0x14], ecx
mov dword [rsp + 0x48], 0x2c
lea rcx, [rsp + 0x390]
call fcn.18000d290
mov ecx, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
lea rdx, [rsp + 0x390]
call fcn.1800011e0
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x48]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x50]
mov dword [rax + 0x1c], ecx
mov eax, dword [rsp + 0x50]
add eax, 3
and eax, 0xfffffffc
mov ecx, dword [rsp + 0x48]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x60]
call fcn.18000d290
mov ecx, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
mov rdx, qword [rsp + 0x60]
call fcn.1800011e0
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x48]
mov dword [rax + 0x20], ecx
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x50]
mov dword [rax + 0x24], ecx
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x5c]
mov dword [rax + 0x28], ecx
mov eax, dword [rsp + 0x50]
add eax, 3
and eax, 0xfffffffc
mov ecx, dword [rsp + 0x48]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
sub eax, 4
mov rcx, qword [rsp + 0x40]
add rcx, 4
xor r8d, r8d
mov edx, eax
call fcn.180001d20
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
cmp dword [rsp + 0x858], 0
je 0x180003f1a
mov rcx, qword [rsp + 0x850]
call fcn.18000d290
mov r8, rax
mov rdx, qword [rsp + 0x850]
lea rcx, [rsp + 0xe0]
call fcn.180006f60
mov eax, dword [rsp + 0x4c]
mov r9d, eax
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0xe0]
call fcn.180006e50
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x860]
mov ecx, dword [rsp + 0x4c]
mov dword [rax], ecx
mov rcx, qword [rsp + 0x60]
call fcn.180006980
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.180009540
add rsp, 0x838
ret