Function at 0x1400138b0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
movzx eax, word [r8]
mov rdi, r8
movzx ebx, dx
mov r10, rcx
cmp ax, 2
je 0x140013522
cmp ax, 0x17
je 0x14001351b
mov ecx, 0x2741
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x1c
jmp 0x140013527
mov ecx, reloc.WS2_32.dll_recv
movzx edx, ax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], ecx
mov r9, r8
mov rcx, r10
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAStringToAddressA]
test eax, eax
jne 0x14001350e
test bx, bx
je 0x14001355d
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rdi + 2], ax
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x100
mov rax, qword [0x140033028]
xor rax, rsp
mov qword [rsp + 0xf0], rax
xor eax, eax
mov rbp, r8
mov rsi, rcx
mov qword [r8 + 2], rax
mov qword [r8 + 0xa], rax
mov qword [r8 + 0x12], rax
mov word [r8 + 0x1a], ax
movzx r12d, dx
lea rcx, [rsp + 0x2c]
lea r8d, [rax + 0x2c]
xor edi, edi
xor edx, edx
mov qword [rsp + 0x20], rdi
call fcn.14000aaa0
movzx eax, word [rbp]
mov dword [rsp + 0x2c], eax
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], 0xc00
mov qword [rsp + 0x60], rax
test rsi, rsi
jne 0x14001392f
mov ecx, edi
mov qword [rsp + 0x60], rcx
jmp 0x140013a06
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
jns 0x140013949
mov ecx, 0x80070057
call fcn.1400112e0
int3
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
cmp rcx, rax
je 0x1400139c1
cmp ebx, 0x80
jle 0x14001397e
movsxd rdx, ebx
mov r8d, 1
call fcn.14000f650
test rax, rax
jne 0x1400139d6
mov ecx, 0x8007000e
call fcn.1400112e0
int3
call fcn.140007d44
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
movsxd rdx, ebx
mov r8, rsi
mov rcx, rax
mov r9, rdx
call fcn.14001df74
test eax, eax
je 0x140013a01
cmp eax, 0xc
je 0x1400139f6
cmp eax, 0x16
je 0x1400139eb
cmp eax, 0x22
je 0x1400139eb
cmp eax, 0x50
je 0x140013a01
mov ecx, 0x80004005
call fcn.1400112e0
int3
cmp ebx, 0x80
jle 0x140013983
movsxd rcx, ebx
mov edx, 1
call fcn.14000fd28
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x14001398d
mov ecx, 0x8007000e
call fcn.1400112e0
int3
mov ecx, 0x80070057
call fcn.1400112e0
int3
mov ecx, 0x8007000e
call fcn.1400112e0
int3
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
lea rax, [rsp + 0x68]
cmp rcx, rax
je 0x140013a2e
call fcn.140007d44
test ebx, ebx
je 0x140013a3e
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x140013aa7
mov rbx, qword [rsp + 0x20]
mov rdx, rbx
test rbx, rbx
je 0x140013a7d
nop dword [rax + rax]
mov eax, dword [rdx + 4]
cmp eax, 2
je 0x140013a68
cmp eax, 0x17
je 0x140013a68
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x140013a50
jmp 0x140013a7d
mov r8, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
mov rcx, rbp
call fcn.140006d70
mov edi, 1
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x140013a9a
movzx ecx, r12w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 2], ax
jmp 0x140013aa5
mov ecx, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, edi
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140006d30
add rsp, 0x100
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
movzx esi, dx
mov rdi, rcx
call fcn.140012e60
mov r8, rbx
movzx edx, si
mov word [rbx], ax
mov rcx, rdi
test ax, ax
je 0x140013b12
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400134e0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400138b0