Function at 0x180012b50
Capabilities:
Check mutex on windows
Create thread
Get local ipv4 addresses
Get socket information
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3e0
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
mov r15, rdx
lea rax, [0x18011c270]
mov qword [rsp + 0xb8], rax
mov edx, 0xffffffff
mov rcx, qword [0x18011c270]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r12d, eax
mov dword [rsp + 0xc0], eax
mov r8, qword [r15 + 0x38]
mov ecx, dword [r8 + 0x14]
mov dword [rsp + 0x58], ecx
mov ecx, dword [r8 + 0x34]
mov dword [rsp + 0x54], ecx
mov dword [rsp + 0x5c], 1
movzx ecx, byte [r8 + 0x44]
mov byte [rsp + 0x60], cl
mov ecx, dword [r15 + 0x28]
mov dword [rsp + 0x64], ecx
mov ecx, 0x18
call fcn.18008a528
mov r8, rax
mov qword [rsp + 0x438], rax
mov rcx, qword [r15 + 0x38]
mov edx, dword [rcx + 0x34]
mov dword [rax], edx
xor r13d, r13d
mov qword [rax + 8], r13
mov dword [rax + 0x10], 0x10000
mov dword [rax + 0x14], 0x10000
mov esi, 0x1c
mov ecx, esi
mov edi, reloc.WS2_32.dll_recv
cmp edx, 2
cmove ecx, edi
mov dword [rax + 4], ecx
mov qword [rsp + 0x40], rax
mov rax, qword [r15 + 0x38]
mov ecx, dword [rax + 0x2c]
mov dword [r8 + 0x10], ecx
mov rax, qword [r15 + 0x38]
mov ecx, dword [rax + 0x30]
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x14], ecx
mov rbx, qword [rsp + 0x40]
xor r8d, r8d
lea edx, [rsi - 0x1a]
mov ecx, dword [rbx]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1800132c7
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x74], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x84], xmm1
mov dword [rsp + 0x94], r13d
mov dword [rsp + 0x68], 1
mov eax, dword [rbx]
mov dword [rsp + 0x6c], eax
mov dword [rsp + 0x70], 2
lea r9, [rsp + 0x420]
lea r8, [rsp + 0x68]
lea rdx, [0x1800fd300]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x1800132f8
mov rdx, qword [rsp + 0x420]
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
mov rcx, qword [rbx + 8]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x18001332b
mov rcx, qword [rsp + 0x420]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, rbx
call fcn.1800182d0
nop
mov rax, qword [r15 + 0x38]
mov rcx, rdi
cmp dword [rax + 0x34], 2
cmovne rcx, rsi
call fcn.18008a528
mov rbx, rax
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + 4]
mov dword [rsp + 0x438], eax
lea r8, [rsp + 0x438]
mov rdx, rbx
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_getsockname]
movzx ecx, word [rbx + 2]
mov rax, qword [r15 + 0x38]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rsp + 0x50], eax
mov rax, qword [r15 + 0x38]
mov rdx, rdi
cmp dword [rax + 0x34], 2
cmovne rdx, rsi
mov rcx, rbx
call fcn.18008a564
mov ecx, 0x18
call fcn.18008a528
mov rbx, rax
mov qword [rsp + 0x428], rax
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rbx + 0x10], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 8], rax
mov qword [rsp + 0x48], rbx
mov ecx, 0x40
call fcn.18008a528
mov r14, rax
mov qword [rsp + 0x428], rax
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], r13
lea rdi, [rax + 0x20]
mov qword [rdi], r13
lea rsi, [rax + 0x28]
mov qword [rsi], r13
mov byte [rax + 0x30], 0
mov qword [rax + 0x38], r13
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rdi], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsi], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [r14 + 0x38], rax
mov qword [rsp + 0x30], r14
mov r13, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], r13
mov ecx, gethostbyname
call fcn.18008a528
mov rbx, rax
mov qword [rsp + 0x428], rax
xor eax, eax
mov qword [rbx], rax
mov dword [rbx + 8], 0x1000
mov dword [rbx + 0xc], 0xffffffff
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rax
mov ecx, 0x8000
call fcn.18008a598
mov qword [rbx], rax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rbx + 0x10], rax
mov qword [r14 + 8], rbx
mov qword [rbx + 0x18], rdi
mov rax, qword [r14 + 8]
mov qword [rax + 0x20], rsi
mov rcx, qword [r14 + 8]
mov rax, qword [r14 + 0x18]
mov qword [rcx + 0x28], rax
lea rax, [rsp + 0x430]
mov qword [rsp + 0x28], rax
xor eax, eax
mov dword [rsp + 0x20], eax
mov r9, r14
lea r8, [0x180025540]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [r14], rax
test rax, rax
je 0x18001335f
mov ecx, 0xc0
call fcn.18008a528
mov rsi, rax
mov qword [rsp + 0x430], rax
xor r14d, r14d
mov qword [rax], r14
mov qword [rax + 8], r14
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r14
mov qword [rax + 0x28], r14
mov qword [rax + 0x30], r14
mov qword [rax + 0x38], r14
mov qword [rax + 0x40], r14
mov qword [rax + 0x48], r14
mov qword [rax + 0x50], r14
mov dword [rax + 0x58], r14d
mov byte [rax + 0x5c], r14b
mov qword [rax + 0x60], r14
mov qword [rax + 0x68], r14
mov qword [rax + 0x70], r14
mov qword [rax + 0x78], r14
mov qword [rax + 0x80], r14
mov qword [rax + 0x88], r14
mov qword [rax + 0x90], r14
mov qword [rax + 0x98], r14
lea rbx, [rax + 0xa0]
mov qword [rsp + 0x420], rbx
mov qword [rbx], r14
mov qword [rbx + 8], r14
lea ecx, [r14 + 0x50]
call fcn.18008a528
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
mov qword [rsi + 0xb0], r14
mov qword [rsi + 0xb8], r14
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rsi + 0xb0], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsi + 0xb8], rax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rsi + 0x68], rax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rsi + 0x98], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsi + 0x60], rax
mov qword [rsp + 0x38], rsi
mov r14, qword [rsp + 0x40]
mov r9d, dword [rsp + 0x54]
mov rax, qword [r15 + 0x38]
mov r8d, dword [rax + 0x10]
mov dword [rsi + 0x58], r8d
lea rcx, [rsi + 8]
call fcn.180024c10
mov ecx, reloc.WS2_32.dll_recv
call fcn.18008a528
mov rbx, rax
mov qword [rsp + 0x430], rax
xor edi, edi
mov qword [rax], rdi
mov dword [rax + 8], edi
mov qword [rsi + 0x40], rax
mov ecx, 0x2000
call fcn.18008a598
mov qword [rbx], rax
lea rcx, [rax + 0x1ff8]
cmp rax, rbx
ja 0x180013076
cmp rcx, rbx
jb 0x180013076
lea rcx, [rdi*8]
nop word [rax + rax]
mov rax, qword [rbx]
mov qword [rcx + rax], rdi
add rcx, 8
cmp rcx, 0x2000
jl 0x180013060
jmp 0x1800130a9
mov ecx, 0x80
nop dword [rax + rax]
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
lea rax, [rax + 0x40]
mov qword [rax - 0x28], rdi
mov qword [rax - 0x20], rdi
mov qword [rax - 0x18], rdi
mov qword [rax - 0x10], rdi
mov qword [rax - 8], rdi
sub rcx, 1
jne 0x180013080
mov dword [rbx + 8], 0x400
mov qword [rsi + 0x48], r14
mov qword [rsi + 0x50], r13
mov ecx, reloc.WS2_32.dll_recv
call fcn.18008a528
mov qword [rsp + 0x430], rax
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov qword [rsi + 0x38], rax
mov ecx, 0x18
call fcn.18008a528
mov rbx, rax
mov qword [rsp + 0x430], rax
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov ecx, 0x38
call fcn.18008a528
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbx], rax
mov qword [rbx + 0x10], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rbx + 0x10], rax
mov qword [rsi + 0x78], rbx
lea rax, [rsp + 0x438]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, rsi
lea r8, [0x180025f10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi], rax
test rax, rax
je 0x18001338c
movups xmm6, xmmword [rsp + 0x30]
movups xmm7, xmmword [rsp + 0x40]
movups xmm8, xmmword [rsp + 0x50]
movsd xmm9, qword [rsp + 0x60]
mov rbx, qword [0x18011c2b8]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], edi
mov rcx, rbx
mov edx, dword [rsp + 0x64]
cmp byte [rax + 0x19], 0
jne 0x1800131b8
nop word [rax + rax]
mov qword [rsp + 0x68], rax
cmp dword [rax + 0x20], edx
jge 0x1800131a4
mov dword [rsp + 0x70], edi
mov rax, qword [rax + 0x10]
jmp 0x1800131b2
mov dword [rsp + 0x70], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x180013190
cmp byte [rcx + 0x19], 0
jne 0x1800131c7
cmp edx, dword [rcx + 0x20]
jge 0x18001324e
movabs rax, 0x2aaaaaaaaaaaaaa
cmp qword [0x18011c2c0], rax
je 0x1800133b9
lea rdi, [0x18011c2b8]
mov qword [rsp + 0xa0], rdi
xor eax, eax
mov qword [rsp + 0xa8], rax
lea ecx, [rax + 0x60]
call fcn.18008a528
nop
mov ecx, dword [rsp + 0x64]
mov dword [rax + 0x20], ecx
xorps xmm0, xmm0
xor edx, edx
movups xmmword [rax + 0x28], xmm0
movups xmmword [rax + 0x38], xmm0
movups xmmword [rax + 0x48], xmm0
mov qword [rax + 0x58], rdx
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], dx
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0xa0], xmm0
mov r8, rax
lea rdx, [rsp + 0xa0]
mov rcx, rdi
call fcn.180016b50
mov rcx, rax
movups xmmword [rcx + 0x28], xmm6
movups xmmword [rcx + 0x38], xmm7
movups xmmword [rcx + 0x48], xmm8
movsd qword [rcx + 0x58], xmm9
mov rcx, qword [r15 + 0x38]
mov rax, qword [rsp + 0x30]
mov qword [rcx + 0x2c8], rax
mov rcx, qword [r15 + 0x38]
mov rax, qword [rsp + 0x38]
mov qword [rcx + 0x2d0], rax
mov eax, dword [rsp + 0x64]
mov dword [r15 + 0x64], eax
cmp r12d, 0xffffffff
je 0x18001329c
mov rcx, qword [0x18011c270]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea r11, [rsp + 0x3e0]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop
mov r9d, eax
xor r8d, r8d
lea edx, [rsi - 0x1b]
lea rcx, [rsp + 0xc8]
call fcn.180018870
lea rdx, [0x180115ec0]
lea rcx, [rsp + 0xc8]
call fcn.18008cf10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov edx, 1
lea r8d, [rdx + 2]
lea rcx, [rsp + 0x140]
call fcn.180018870
lea rdx, [0x180115ec0]
lea rcx, [rsp + 0x140]
call fcn.18008cf10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov edx, 1
lea r8d, [rdx + 2]
lea rcx, [rsp + 0x1b8]
call fcn.180018870
lea rdx, [0x180115ec0]
lea rcx, [rsp + 0x1b8]
call fcn.18008cf10
nop
lea edx, [rax + 3]
lea r9d, [rax - 1]
lea r8d, [rax + 1]
lea rcx, [rsp + 0x230]
call fcn.180018870
lea rdx, [0x180115ec0]
lea rcx, [rsp + 0x230]
call fcn.18008cf10
int3
lea edx, [rax + 3]
lea r9d, [rax - 1]
lea r8d, [rax + 1]
lea rcx, [rsp + 0x2a8]
call fcn.180018870
lea rdx, [0x180115ec0]
lea rcx, [rsp + 0x2a8]
call fcn.18008cf10
int3
call fcn.18000f910
int3