Function at 0x140108380
Capabilities:
Connect socket
Resolve dns

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0x88
mov rax, qword [0x140153440]
xor rax, rsp
mov qword [rbp - 1], rax
mov r14, r9
mov rsi, r8
mov r15, rcx
mov r13b, 1
mov ecx, dword [rcx + 0x24]
test ecx, ecx
je 0x140108670
cmp ecx, 1
jne 0x140108753
xor r12d, r12d
mov qword [rbp - 0x21], r12
mov qword [rbp - 0x19], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x31], r12b
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rsi + r8], r12b
jne 0x1401083e4
mov rdx, rsi
lea rcx, [rbp - 0x31]
call fcn.140067380
nop
cmp qword [rbp - 0x21], 0
jne 0x14010841a
lea rsi, [0x140116240]
mov r8d, 1
mov rdx, rsi
lea rcx, [rbp - 0x31]
call fcn.140067380
lea rdx, [0x1401181e2]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140108470
mov rdx, qword [rbp - 0x21]
add rdx, 0x30
lea rcx, [rbp - 0x31]
call fcn.1400a55b0
cmp qword [rbp - 0x21], 0
jbe 0x140108777
lea rcx, [rbp - 0x31]
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
cmovae rcx, qword [rbp - 0x31]
mov r9, rsi
lea r8, str._spipeMicrosoft_Flight_SimulatorSimConnect
call fcn.140108ac0
jmp 0x1401084f0
inc rbx
cmp byte [r14 + rbx], 0
jne 0x140108470
mov rdi, qword [rbp - 0x21]
lea rcx, [rdi + 0xd]
add rcx, rbx
mov rax, qword [rbp - 0x19]
cmp rdi, rcx
ja 0x1401084b3
cmp rax, rcx
je 0x1401084b3
jae 0x140108565
sub rcx, rdi
xor r8d, r8d
mov rdx, rcx
lea rcx, [rbp - 0x31]
call fcn.1400acef0
mov qword [rbp - 0x21], rdi
mov rax, qword [rbp - 0x19]
mov edx, 0x100
cmp rax, rdx
jae 0x1401084c0
mov rdx, rax
test rdi, rdi
je 0x140108777
lea rcx, [rbp - 0x31]
cmp rax, 0x10
cmovae rcx, qword [rbp - 0x31]
mov qword [rsp + 0x20], r14
mov r9, rsi
lea r8, str._spipe_s
call fcn.140108ac0
nop word [rax + rax]
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 0x10
cmovae rcx, qword [rbp - 0x31]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1401085d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x140108629
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 0x10
cmovae rcx, qword [rbp - 0x31]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x140108629
jmp 0x1401084f0
cmp rcx, 0x10
jae 0x1401084b3
cmp rax, 0x10
jb 0x1401084b3
mov rbx, qword [rbp - 0x31]
lea r8, [rdi + 1]
mov rdx, rbx
lea rcx, [rbp - 0x31]
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rbp - 0x19]
inc rdx
cmp rdx, 0x1000
jb 0x1401085b5
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x1401085cf
mov rbx, rcx
mov rcx, rbx
call fcn.14010a808
mov eax, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x19], rax
mov rdi, qword [rbp - 0x21]
jmp 0x1401084bd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor r8d, r8d
lea rdx, [0x140109850]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_BindIoCompletionCallback]
test eax, eax
je 0x140108622
movzx eax, byte [rbp + 0x7f]
mov byte [rsp + 0x28], al
mov eax, dword [rbp + 0x77]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rbx
mov dl, 1
mov rcx, r15
call fcn.140109b40
mov rax, qword [r15]
mov rcx, r15
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, r15
call fcn.140109da0
xor r13b, r13b
jmp 0x140108629
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x140108753
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140108666
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140108666
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010a808
jmp 0x140108753
xor r12d, r12d
mov dword [rbp - 0x31], r12d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x11], xmm1
mov qword [rbp - 0x39], r12
mov dword [rbp - 0x2d], edx
mov dword [rbp - 0x29], 1
mov dword [rbp - 0x25], 6
lea r9, [rbp - 0x39]
lea r8, [rbp - 0x31]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x140108753
mov rax, qword [rbp - 0x39]
test rax, rax
je 0x140108753
mov r8d, dword [rax + 0xc]
mov edx, dword [rax + 8]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140108749
mov rdx, qword [rbp - 0x39]
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140108749
xor r8d, r8d
lea rdx, [0x140109850]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_BindIoCompletionCallback]
test eax, eax
je 0x140108749
movzx eax, byte [rbp + 0x7f]
mov byte [rsp + 0x28], al
mov eax, dword [rbp + 0x77]
mov dword [rsp + 0x20], eax
mov rax, qword [rbp - 0x39]
mov r9d, dword [rax + 4]
mov r8, rbx
movzx edx, r13b
mov rcx, r15
call fcn.140109b40
mov rax, qword [r15]
mov rcx, r15
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, r15
call fcn.140109da0
xor r13b, r13b
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
movzx eax, r13b
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.14010afe0
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400a0670
nop
int3