Function at 0x180007830
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x870]
sub rsp, 0x970
mov rax, qword [0x180019018]
xor rax, rsp
mov qword [rbp + 0x860], rax
xor r15d, r15d
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x38], r15
mov r14d, r15d
mov qword [rsp + 0x48], r15
mov r12d, r15d
mov qword [rsp + 0x40], r15
mov r13, rcx
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x58], rdx
mov rcx, qword [section..data]
lea rsi, section..data
lea edi, [r15 + 8]
cmp rcx, rsi
je 0x1800078e9
test byte [rcx + 0x1c], 1
je 0x1800078c3
mov rcx, qword [rcx + 0x10]
lea r8, [0x1800153c0]
mov edx, 0xc1
call fcn.18000256c
mov rcx, qword [section..data]
cmp rcx, rsi
je 0x1800078e9
test byte [rcx + 0x1c], dil
je 0x1800078e9
mov rax, qword [r13 + 0x18]
mov edx, 0xc2
mov r9, qword [r13 + 0x10]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rax
call fcn.180009234
mov ecx, 0x101
lea rdx, [rsp + 0x60]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
nop dword [rax + rax]
test eax, eax
je 0x18000790d
mov edi, 0x4c6
jmp 0x18000813a
lea rcx, [rsp + 0x30]
call fcn.180008d7c
test eax, eax
js 0x180008102
cmp dword [rsp + 0x30], r15d
je 0x180008102
mov r8, qword [r13 + 0x18]
lea rcx, [rbp + 0x230]
mov r9d, 0x103
mov byte [rbp + 0x223], r15b
mov word [rbp + 0x436], r15w
lea edx, [r9 + 1]
call qword [sym.imp.msvcrt.dll_wcsncpy_s]
nop dword [rax + rax]
mov eax, 0x5c
cmp word [rbp + 0x230], ax
jne 0x1800079a1
lea rbx, [rbp + 0x234]
mov qword [rsp + 0x30], rbx
cmp word [rbp + 0x232], ax
jne 0x1800079a1
lea rdx, [0x180014f34]
lea rcx, [rbp + 0x234]
call qword [sym.imp.msvcrt.dll_wcspbrk]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x1800079db
jmp 0x1800079d3
lea rbx, [rbp + 0x230]
mov edx, 0x3a
lea rcx, [rbp + 0x230]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x1800079db
mov r12d, 1
add rsi, 2
mov word [rax], r15w
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x180007a0c
test byte [rcx + 0x1c], dil
je 0x180007a0c
mov rcx, qword [rcx + 0x10]
lea r8, [0x1800153c0]
mov edx, 0xc4
mov r9, rbx
call fcn.1800091cc
mov r8d, 0x103
lea rcx, [rbp + 0x120]
mov rdx, rbx
call qword [sym.imp.msvcrt.dll_wcstombs]
nop dword [rax + rax]
or r15, 0xffffffffffffffff
cmp rax, r15
jne 0x180007a6e
lea edi, [r15 + 0x58]
mov rcx, qword [section..data]
lea rsi, section..data
cmp rcx, rsi
je 0x18000812e
test byte [rcx + 0x1c], 2
je 0x18000812e
lea edx, [rdi + 0x6e]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1800153c0]
call fcn.18000256c
jmp 0x18000812e
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x180007aa3
test byte [rcx + 0x1c], dil
je 0x180007aa3
mov rcx, qword [rcx + 0x10]
lea r9, [rbp + 0x120]
mov edx, 0xc6
lea r8, [0x1800153c0]
call fcn.180009468
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
nop dword [rax + rax]
test ebx, ebx
je 0x180007b03
mov edi, 0x43
mov rcx, qword [section..data]
lea rsi, section..data
cmp rcx, rsi
je 0x18000812e
test byte [rcx + 0x1c], 2
je 0x18000812e
mov edx, 0xc7
jmp 0x180007a59
test rsi, rsi
jne 0x180007b5c
mov r12, qword [rsp + 0x48]
lea r14d, [rsi + 1]
xor r13d, r13d
mov rax, qword [0x180019630]
mov rcx, qword [rax + 0x28]
mov rax, r15
inc rax
cmp word [rcx + rax*2], r13w
jne 0x180007b22
lea r9d, [rax*2 + 0x32]
mov eax, r14d
sub eax, 2
je 0x180007e54
sub eax, 1
je 0x180007e27
cmp eax, 1
je 0x180007e54
mov rsi, qword [rsp + 0x30]
jmp 0x180007e6b
mov rcx, qword [section..data]
lea rax, [rsi + 2]
test r12d, r12d
cmove rax, rsi
lea rsi, section..data
mov qword [rsp + 0x38], rax
cmp rcx, rsi
je 0x180007b9d
test byte [rcx + 0x1c], dil
je 0x180007b9d
mov rcx, qword [rcx + 0x10]
lea r8, [0x1800153c0]
mov edx, 0xc8
mov r9, rax
call fcn.1800091cc
call fcn.180004794
mov r12, rax
test rax, rax
jne 0x180007bce
mov rcx, qword [section..data]
cmp rcx, rsi
je 0x18000812e
test byte [rcx + 0x1c], 2
je 0x18000812e
mov edx, 0xc9
jmp 0x180007a59
cmp dword [r13 + 4], r14d
je 0x180007c0c
test byte [r13 + 4], 1
jne 0x180007c0c
mov rcx, qword [section..data]
cmp rcx, rsi
je 0x180007c02
test byte [rcx + 0x1c], 2
je 0x180007c02
mov rcx, qword [rcx + 0x10]
lea r8, [0x1800153c0]
mov edx, 0xca
call fcn.18000256c
mov edi, 0x57
jmp 0x180007eb4
lea rdx, [rax + 0x58]
lea rcx, [rbp + 0x120]
call fcn.180008a24
mov rbx, qword [r12 + 0x58]
xor r13d, r13d
test rbx, rbx
je 0x180007de7
mov r14, qword [rsp + 0x38]
mov rcx, qword [section..data]
cmp rcx, rsi
je 0x180007c5c
test byte [rcx + 0x1c], dil
je 0x180007c5c
mov r9, qword [rbx]
lea r8, [0x1800153c0]
mov rcx, qword [rcx + 0x10]
mov edx, 0xcb
call fcn.180009468
mov rdx, qword [rbx]
lea rcx, [rbp + 0x650]
inc rdx
mov r8d, 0x104
call qword [sym.imp.msvcrt.dll_mbstowcs]
nop dword [rax + rax]
mov rsi, rax
cmp eax, 0xffffffff
je 0x180007daf
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x180007cb9
test byte [rcx + 0x1c], dil
je 0x180007cb9
mov rcx, qword [rcx + 0x10]
lea r9, [rbp + 0x650]
mov edx, 0xcd
mov dword [rsp + 0x20], esi
call fcn.1800092e4
mov esi, esi
lea rdx, [rbp + 0x650]
mov r8d, esi
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wcsnicmp]
nop dword [rax + rax]
test eax, eax
je 0x180007cff
mov rbx, qword [rbx + 0x18]
lea rsi, section..data
test rbx, rbx
jne 0x180007c32
mov rcx, qword [section..data]
lea rsi, section..data
jmp 0x180007df7
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x180007d3c
test byte [rcx + 0x1c], dil
je 0x180007d3c
mov rcx, qword [rcx + 0x10]
lea rax, [rbp + 0x650]
mov edx, 0xce
mov qword [rsp + 0x20], rax
mov r9, r14
call fcn.180009234
mov rcx, qword [section..data]
cmp word [r14 + rsi*2], r13w
je 0x180007d79
lea rsi, section..data
cmp rcx, rsi
je 0x180007d71
test byte [rcx + 0x1c], dil
je 0x180007d71
mov rcx, qword [rcx + 0x10]
lea r8, [0x1800153c0]
mov edx, 0xcf
call fcn.18000256c
mov rcx, qword [section..data]
mov r14d, 3
jmp 0x180007dee
lea rsi, section..data
cmp rcx, rsi
je 0x180007da7
test byte [rcx + 0x1c], dil
je 0x180007da7
mov rcx, qword [rcx + 0x10]
lea r8, [0x1800153c0]
mov edx, 0xd0
call fcn.18000256c
mov rcx, qword [section..data]
mov r14d, 2
jmp 0x180007dee
mov rcx, qword [section..data]
lea rsi, section..data
cmp rcx, rsi
je 0x180007ddd
test byte [rcx + 0x1c], 2
je 0x180007ddd
mov rcx, qword [rcx + 0x10]
lea r8, [0x1800153c0]
mov edx, 0xcc
call fcn.18000256c
mov edi, 0x57
jmp 0x180007eab
mov rcx, qword [section..data]
test rbx, rbx
jne 0x180007b14
mov edi, 0x57
cmp rcx, rsi
je 0x180007eab
test byte [rcx + 0x1c], 2
je 0x180007eab
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x7a]
lea r8, [0x1800153c0]
call fcn.18000256c
jmp 0x180007eab
mov rsi, qword [rsp + 0x30]
mov rax, r15
inc rax
cmp word [rsi + rax*2], r13w
jne 0x180007e2f
mov rcx, qword [rsp + 0x38]
inc r15
cmp word [rcx + r15*2], r13w
jne 0x180007e3e
add eax, r15d
lea r9d, [r9 + rax*2]
add r9d, edi
jmp 0x180007e6b
mov rsi, qword [rsp + 0x30]
inc r15
cmp word [rsi + r15*2], r13w
jne 0x180007e59
lea r9d, [r9 + r15*2]
add r9d, 2
mov r15, qword [rsp + 0x50]
cmp dword [r15], r9d
jae 0x180007ec1
mov dword [r15], r9d
mov rcx, qword [section..data]
lea rsi, section..data
cmp rcx, rsi
je 0x180007ea6
test byte [rcx + 0x1c], 2
je 0x180007ea6
mov rcx, qword [rcx + 0x10]
lea r8, [0x1800153c0]
mov edx, 0xd2
call fcn.180002598
mov edi, 0xea
test r12, r12
je 0x18000812e
mov rcx, r12
call fcn.1800043e8
jmp 0x18000812e
mov rbx, qword [rsp + 0x58]
mov qword [rbp + 0x100], r13
mov dword [rbx], 5
mov dword [rbx + 4], 1
sub r14d, 1
je 0x1800080ba
sub r14d, 1
je 0x180008072
cmp r14d, 1
jne 0x180007fef
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x180007f26
test byte [rcx + 0x1c], dil
je 0x180007f26
mov rcx, qword [rcx + 0x10]
lea r8, [0x1800153c0]
mov edx, 0xd5
call fcn.18000256c
mov edi, 0x104
mov dword [rbx + 8], 3
mov edx, edi
mov dword [rbx + 0xc], 1
lea r8, [0x180014f30]
lea rcx, [rbp + 0x440]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
mov r8, rsi
lea rcx, [rbp + 0x440]
mov edx, edi
call qword [sym.imp.msvcrt.dll_wcscat_s]
nop dword [rax + rax]
lea r8, [0x180015300]
mov edx, edi
lea rcx, [rbp + 0x440]
call qword [sym.imp.msvcrt.dll_wcscat_s]
nop dword [rax + rax]
lea r8, [rbp + 0x650]
mov edx, edi
lea rcx, [rbp + 0x440]
call qword [sym.imp.msvcrt.dll_wcscat_s]
nop dword [rax + rax]
mov edi, 0x2f
lea rcx, [rbp + 0x440]
mov edx, edi
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
test rax, rax
je 0x180007fe1
lea esi, [rdi + 0x2d]
mov edx, edi
mov word [rax], si
lea rcx, [rax + 2]
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
test rax, rax
jne 0x180007fc7
lea rax, [rbp + 0x440]
mov qword [rbp + 0x108], rax
lea rsi, section..data
mov rax, qword [0x180019630]
lea r8, [0x180019050]
mov r9d, dword [r15]
mov rdx, rbx
add r9, rbx
mov qword [rbp + 0x110], r13
mov rcx, qword [rax + 0x28]
mov qword [rbp + 0x118], rcx
lea rcx, [rbp + 0x100]
call fcn.180009014
test r12, r12
je 0x180008038
mov rcx, r12
call fcn.1800043e8
mov rcx, qword [section..data]
cmp rcx, rsi
je 0x18000805f
test byte [rcx + 0x1c], 1
je 0x18000805f
mov rcx, qword [rcx + 0x10]
lea r8, [0x1800153c0]
mov edx, 0xd6
call fcn.18000256c
call qword [sym.imp.WSOCK32.dll_WSACleanup]
nop dword [rax + rax]
xor eax, eax
jmp 0x180008166
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x1800080a0
test byte [rcx + 0x1c], dil
je 0x1800080a0
mov rcx, qword [rcx + 0x10]
lea r8, [0x1800153c0]
mov edx, 0xd4
call fcn.18000256c
mov dword [rbx + 8], 2
mov dword [rbx + 0xc], 2
mov qword [rbp + 0x108], rsi
jmp 0x180007fef
mov rcx, qword [section..data]
lea rsi, section..data
cmp rcx, rsi
je 0x1800080e8
test byte [rcx + 0x1c], dil
je 0x1800080e8
mov rcx, qword [rcx + 0x10]
lea r8, [0x1800153c0]
mov edx, 0xd3
call fcn.18000256c
mov dword [rbx + 8], 6
mov dword [rbx + 0xc], 2
mov qword [rbp + 0x108], r13
jmp 0x180007ff6
mov rcx, qword [section..data]
cmp rcx, rsi
je 0x180008129
test byte [rcx + 0x1c], 2
je 0x180008129
mov rcx, qword [rcx + 0x10]
lea r8, [0x1800153c0]
mov edx, 0xc3
call fcn.18000256c
mov edi, 0x43
call qword [sym.imp.WSOCK32.dll_WSACleanup]
nop dword [rax + rax]
mov rcx, qword [section..data]
cmp rcx, rsi
je 0x180008164
test byte [rcx + 0x1c], 2
je 0x180008164
mov rcx, qword [rcx + 0x10]
lea r8, [0x1800153c0]
mov edx, 0xd7
mov r9d, edi
call fcn.180002598
mov eax, edi
mov rcx, qword [rbp + 0x860]
xor rcx, rsp
call fcn.180001570
mov rbx, qword [rsp + 0x9c8]
add rsp, 0x970
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret