Function at 0x1400f92a0
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x278
movaps xmmword [rsp + 0x260], xmm6
mov rdi, rdx
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x258], rax
mov rbp, qword [rdx]
movsxd rax, ecx
mov rbx, qword [rdx + rax*8 + 0x4c0]
mov dword [rsp + 0x10c], 0
movaps xmm6, xmmword [0x14026f080]
movaps xmmword [rsp + 0xf0], xmm6
movaps xmmword [rsp + 0xe0], xmm6
movaps xmmword [rsp + 0xd0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x80], xmm6
mov dword [rsp + 0x11c], 0xaaaaaaaa
mov rax, qword [rbp + 0xda0]
test rax, rax
lea rsi, str.rcmd
cmovne rsi, rax
mov rcx, rsi
mov edx, 0x2f
call fcn.14019054c
test rax, rax
je 0x1400f9b05
mov rax, qword [fcn.1401aa580]
mov rcx, rsi
call qword [0x1402a3e88]
mov r15, rax
test rax, rax
je 0x1400f9a8c
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0x120]
movaps xmmword [rcx], xmm6
movaps xmmword [rcx + 0x10], xmm6
movaps xmmword [rcx + 0x20], xmm6
mov qword [rsp + 0x78], rax
lea r9, [rsp + 0x70]
mov qword [r9], rax
mov dword [rsp + 0x6c], 0xaaaaaaaa
lea rax, [rsp + 0xe0]
mov qword [rsp + 0xd8], rax
movabs r8, 0x100000000
mov qword [rsp + 0xd0], r8
movabs rdx, 0x200000000
mov qword [rax], rdx
xor r13d, r13d
mov qword [rax + 8], r13
lea rax, [rsp + 0xf0]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xc0], r8
mov qword [rax], rdx
mov qword [rax + 8], r13
mov qword [rsp + 0xb8], rcx
movabs rax, 0x300000000
mov qword [rsp + 0xb0], rax
xorps xmm0, xmm0
lea rcx, [rsp + 0x90]
movaps xmmword [rcx], xmm0
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r13
movups xmmword [rsp + 0x20], xmm0
lea rdx, str.Kerberos
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call qword [0x1402a3e88]
mov esi, eax
lea eax, [rsi - 0x90312]
cmp eax, 3
jae 0x1400f995f
mov qword [rsp + 0x60], rbp
lea r8, [rsp + 0x150]
mov dword [r8], 0
mov rcx, rbx
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r12, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor esi, esi
mov rbp, rbx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov ecx, 0xfde9
mov edx, 8
mov r8, r15
mov r9d, 0xffffffff
mov rbx, r12
call r12
mov r14d, reloc.WLDAP32.dll_Ordinal_27
test eax, eax
jle 0x1400f9a92
mov r12d, eax
mov rax, qword [fcn.140136be0]
lea ecx, [r12 + r12]
call qword [0x1402a3e88]
test rax, rax
je 0x1400f9a8c
mov r14, rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, r15
mov r9d, 0xffffffff
mov r12, rbx
call rbx
test eax, eax
je 0x1400f9a7c
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x30]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x10c]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x38], r13d
lea rcx, [rsp + 0xd0]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], r13d
mov dword [rsp + 0x28], 0x10
lea rcx, [rsp + 0x90]
mov rdx, rsi
mov r8, r14
mov r9d, 0x116
call qword [0x1402a3e88]
mov esi, eax
mov rax, qword [fcn.14018db50]
mov rcx, r14
call qword [0x1402a3e88]
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x1400f95d5
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
call qword [0x1402a3e88]
mov qword [rsp + 0xe8], 0
mov dword [rsp + 0xe0], 0
lea eax, [rsi - 0x90312]
cmp eax, 3
mov rbx, rbp
jae 0x1400f9849
mov ecx, dword [rsp + 0xf0]
test ecx, ecx
je 0x1400f96ba
mov word [rsp + 0x11c], 0x101
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x11e], ax
mov dword [rsp + 0x150], 0xaaaaaaaa
xor edx, edx
cmp qword [rdi + 0x4c8], rbx
sete dl
lea rax, [rsp + 0x150]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov rcx, rdi
lea r8, [rsp + 0x11c]
call fcn.1400b12e0
cmp dword [rsp + 0x150], 0
jne 0x1400f9914
cmp rax, 4
jne 0x1400f9914
mov r9d, dword [rsp + 0xf0]
mov r8, qword [rsp + 0xf8]
mov dword [rsp + 0x150], 0xaaaaaaaa
xor edx, edx
cmp qword [rdi + 0x4c8], rbx
sete dl
lea rax, [rsp + 0x150]
mov qword [rsp + 0x20], rax
mov rcx, rdi
call fcn.1400b12e0
cmp dword [rsp + 0x150], 0
jne 0x1400f990b
mov ecx, dword [rsp + 0xf0]
cmp rax, rcx
jne 0x1400f990b
mov rcx, qword [rsp + 0xf8]
test rcx, rcx
je 0x1400f96e7
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
call qword [0x1402a3e88]
mov qword [rsp + 0xf8], 0
mov dword [rsp + 0xf0], 0
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x1400f971f
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
call qword [0x1402a3e88]
mov qword [rsp + 0xe8], 0
mov dword [rsp + 0xe0], 0
cmp esi, 0x90312
jne 0x1400f9c36
lea rax, [rsp + 0x110]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov rcx, rdi
mov rdx, rbx
lea r8, [rsp + 0x11c]
call fcn.1400ed820
test eax, eax
jne 0x1400f99df
cmp qword [rsp + 0x110], 4
jne 0x1400f99df
movzx r9d, byte [rsp + 0x11d]
cmp r9d, 1
jne 0x1400f99f2
movzx ecx, word [rsp + 0x11e]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r14d, ax
mov dword [rsp + 0xe0], r14d
mov rax, qword [fcn.140136be0]
mov rcx, r14
call qword [0x1402a3e88]
mov qword [rsp + 0xe8], rax
test rax, rax
je 0x1400f9ac1
mov r9d, dword [rsp + 0xe0]
lea rcx, [rsp + 0x110]
mov qword [rsp + 0x20], rcx
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.1400ed820
test eax, eax
jne 0x1400f97fe
lea rsi, [rsp + 0x80]
cmp qword [rsp + 0x110], r14
je 0x1400f9494
lea rdx, str.Failed_to_receive_SSPI_authentication_token.
mov rcx, qword [rsp + 0x60]
call fcn.1400b0f10
mov rax, qword [fcn.14018db50]
mov rcx, r15
call qword [0x1402a3e88]
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x1400f9a42
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
call qword [0x1402a3e88]
jmp 0x1400f9a42
test esi, esi
je 0x1400f95e7
lea rbx, [rsp + 0x150]
mov r8d, 0x100
mov rcx, rbx
mov dl, 0xaa
call fcn.1401cdd90
mov r8d, 0x100
mov ecx, esi
mov rdx, rbx
call fcn.1400c8fe0
mov rcx, qword [rdi]
lea rdx, str.SSPI_error:__s_failed:__s
lea r8, str.InitializeSecurityContext
mov r9, rax
call fcn.1400b0f10
mov rax, qword [fcn.14018db50]
mov rcx, r15
call qword [0x1402a3e88]
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x20]
lea rcx, [rsp + 0x90]
call qword [0x1402a3e88]
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x48]
lea rcx, [rsp + 0x80]
call qword [0x1402a3e88]
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x1400f98f5
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
call qword [0x1402a3e88]
lea rdx, str.Failed_to_initialise_security_context.
mov rcx, qword [rsp + 0x60]
call fcn.1400b0f10
jmp 0x1400f9a74
lea rdx, str.Failed_to_send_SSPI_authentication_token.
jmp 0x1400f991b
lea rdx, str.Failed_to_send_SSPI_authentication_request.
mov rcx, qword [rsp + 0x60]
call fcn.1400b0f10
mov rax, qword [fcn.14018db50]
mov rcx, r15
call qword [0x1402a3e88]
mov rcx, qword [rsp + 0xf8]
test rcx, rcx
je 0x1400f981f
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
call qword [0x1402a3e88]
jmp 0x1400f981f
test esi, esi
je 0x1400f9469
lea rbx, [rsp + 0x150]
mov r8d, 0x100
mov rcx, rbx
mov dl, 0xaa
call fcn.1401cdd90
mov r8d, 0x100
mov ecx, esi
mov rdx, rbx
call fcn.1400c8fe0
mov rcx, qword [rdi]
lea rdx, str.SSPI_error:__s_failed:__s
lea r8, str.AcquireCredentialsHandle
mov r9, rax
call fcn.1400b0f10
lea rdx, str.Failed_to_acquire_credentials.
mov rcx, rbp
call fcn.1400b0f10
mov rax, qword [fcn.14018db50]
mov rcx, r15
call qword [0x1402a3e88]
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x20]
lea rcx, [rsp + 0x90]
jmp 0x1400f9a6e
lea rdx, str.Failed_to_receive_SSPI_authentication_response.
mov rcx, qword [rsp + 0x60]
call fcn.1400b0f10
jmp 0x1400f9a32
cmp r9d, 0xff
je 0x1400f9a12
movzx r8d, byte [rsp + 0x11c]
lea rdx, str.Invalid_SSPI_authentication_response_type___u__u_.
mov rcx, qword [rsp + 0x60]
jmp 0x1400f9a2d
movzx r8d, byte [rsp + 0x11c]
lea rdx, str.User_was_rejected_by_the_SOCKS5_server___u__u_.
mov rcx, qword [rsp + 0x60]
mov r9d, 0xff
call fcn.1400b0f10
mov rax, qword [fcn.14018db50]
mov rcx, r15
call qword [0x1402a3e88]
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x20]
lea rcx, [rsp + 0x90]
call qword [0x1402a3e88]
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x48]
lea rcx, [rsp + 0x80]
call qword [0x1402a3e88]
mov r14d, 7
jmp 0x1400f9a92
mov rax, qword [fcn.14018db50]
mov rcx, r14
call qword [0x1402a3e88]
mov r14d, reloc.WLDAP32.dll_Ordinal_27
mov rcx, qword [rsp + 0x258]
xor rcx, rsp
call fcn.140191d80
mov eax, r14d
movaps xmm6, xmmword [rsp + 0x260]
add rsp, 0x278
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [fcn.14018db50]
mov rcx, r15
call qword [0x1402a3e88]
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x20]
lea rcx, [rsp + 0x90]
call qword [0x1402a3e88]
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x48]
lea rcx, [rsp + 0x80]
call qword [0x1402a3e88]
jmp 0x1400f9a8c
mov rcx, rsi
call fcn.1401b34e0
mov r14, rax
mov r15, qword [fcn.140136be0]
mov rcx, qword [rdi + 0x390]
call fcn.1401b34e0
lea rcx, [rax + r14]
add rcx, 2
mov rax, r15
call qword [0x1402a3e88]
test rax, rax
je 0x1400f9a8c
mov r15, rax
add r14, 2
mov r12, qword [rdi + 0x390]
mov rcx, r12
call fcn.1401b34e0
add r14, rax
mov qword [rsp + 0x20], r12
lea r8, [0x140285ef4]
mov rcx, r15
mov rdx, r14
mov r9, rsi
call fcn.1400bc160
jmp 0x1400f936a
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
mov rcx, qword [rsp + 0x128]
call qword [0x1402a3e88]
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x48]
lea rcx, [rsp + 0x80]
call qword [0x1402a3e88]
jmp 0x1400f9a92
test esi, esi
je 0x1400f9c91
lea rbx, [rsp + 0x150]
mov r8d, 0x100
mov rcx, rbx
mov dl, 0xaa
call fcn.1401cdd90
mov r8d, 0x100
mov ecx, esi
mov rdx, rbx
call fcn.1400c8fe0
mov rcx, qword [rdi]
lea rdx, str.SSPI_error:__s_failed:__s
lea r8, str.QueryCredentialAttributes
mov r9, rax
call fcn.1400b0f10
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x48]
lea rcx, [rsp + 0x80]
call qword [0x1402a3e88]
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
mov rcx, qword [rsp + 0x78]
call qword [0x1402a3e88]
lea rdx, str.Failed_to_determine_user_name.
jmp 0x1400f98fc
mov rax, qword [fcn.14018db50]
mov rcx, r15
call qword [0x1402a3e88]
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x10]
lea r14, [rsp + 0x90]
lea r8, [rsp + 0x78]
mov rcx, r14
mov edx, 1
call qword [0x1402a3e88]
mov esi, eax
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x20]
mov rcx, r14
call qword [0x1402a3e88]
lea eax, [rsi - 0x90312]
cmp eax, 3
jae 0x1400f9baf
mov r8, qword [rsp + 0x78]
lea rdx, str.SOCKS5_server_authencticated_user__s_with_GSS_API._n
mov rsi, qword [rsp + 0x60]
mov rcx, rsi
call fcn.1400b0c10
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
mov rcx, qword [rsp + 0x78]
call qword [0x1402a3e88]
mov eax, dword [rsp + 0x10c]
bt eax, 0x10
lea rcx, str.confidentiality
lea rdx, str.integrity
cmovae rdx, rcx
mov word [rsp + 0x11c], 0x201
test al, 0x10
cmovne rdx, rcx
test eax, 0x10010
lea r8, [0x140274e78]
cmovne r8, rdx
lea rdx, str.SOCKS5_server_supports_GSS_API__s_data_protection._n
mov rcx, rsi
call fcn.1400b0c10
mov cx, 1
cmp byte [rsi + 0xf29], 0
mov r14d, reloc.WLDAP32.dll_Ordinal_27
jne 0x1400f9f66
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x58]
lea rcx, [rsp + 0x80]
lea r8, [rsp + 0xa0]
xor edx, edx
call qword [0x1402a3e88]
mov esi, eax
lea eax, [rsi - 0x90312]
cmp eax, 3
jae 0x1400fa059
mov ecx, dword [rsp + 0xac]
mov dword [rsp + 0x120], ecx
mov dword [rsp + 0x124], 2
mov rax, qword [fcn.140136be0]
call qword [0x1402a3e88]
mov qword [rsp + 0x128], rax
test rax, rax
je 0x1400f9b91
mov dword [rsp + 0x130], 1
mov rax, qword [fcn.140136be0]
mov ecx, 1
call qword [0x1402a3e88]
mov qword [rsp + 0x138], rax
test rax, rax
je 0x1400f9b75
mov byte [rax], 0
mov dword [rsp + 0x144], 9
mov ecx, dword [rsp + 0xa8]
mov dword [rsp + 0x140], ecx
mov rax, qword [fcn.140136be0]
call qword [0x1402a3e88]
mov qword [rsp + 0x148], rax
mov rcx, qword [0x1402cbe38]
test rax, rax
je 0x1400fa20b
mov rax, qword [rcx + 0xc8]
lea rcx, [rsp + 0x80]
lea r8, [rsp + 0xb0]
mov edx, 0x80000001
xor r9d, r9d
call qword [0x1402a3e88]
mov esi, eax
lea eax, [rsi - 0x90312]
cmp eax, 3
jae 0x1400fa562
mov ecx, dword [rsp + 0x130]
add ecx, dword [rsp + 0x120]
add ecx, dword [rsp + 0x140]
mov dword [rsp + 0xf0], ecx
mov rax, qword [fcn.140136be0]
call qword [0x1402a3e88]
mov qword [rsp + 0xf8], rax
test rax, rax
je 0x1400fa23b
mov rdx, qword [rsp + 0x128]
mov r8d, dword [rsp + 0x120]
mov rcx, rax
call fcn.1401cd6f0
movsxd rcx, dword [rsp + 0x120]
add rcx, qword [rsp + 0xf8]
mov rdx, qword [rsp + 0x138]
mov r8d, dword [rsp + 0x130]
call fcn.1401cd6f0
mov eax, dword [rsp + 0x120]
add rax, qword [rsp + 0xf8]
mov ecx, dword [rsp + 0x130]
add rcx, rax
mov rdx, qword [rsp + 0x148]
mov r8d, dword [rsp + 0x140]
call fcn.1401cd6f0
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
mov rcx, qword [rsp + 0x128]
call qword [0x1402a3e88]
xor esi, esi
mov qword [rsp + 0x128], rsi
mov dword [rsp + 0x120], esi
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
mov rcx, qword [rsp + 0x138]
call qword [0x1402a3e88]
mov qword [rsp + 0x138], rsi
mov dword [rsp + 0x130], esi
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
mov rcx, qword [rsp + 0x148]
call qword [0x1402a3e88]
mov qword [rsp + 0x148], rsi
mov dword [rsp + 0x140], esi
movzx ecx, word [rsp + 0xf0]
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x11c]
mov word [r8 + 2], ax
mov dword [rsp + 0x150], 0xaaaaaaaa
xor edx, edx
cmp qword [rdi + 0x4c8], rbx
sete dl
lea rax, [rsp + 0x150]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov rcx, rdi
call fcn.1400b12e0
cmp dword [rsp + 0x150], 0
jne 0x1400fa192
cmp rax, 4
jne 0x1400fa192
mov rax, qword [rsp + 0x60]
cmp byte [rax + 0xf29], 1
je 0x1400fa0c7
mov r9d, dword [rsp + 0xf0]
mov r8, qword [rsp + 0xf8]
mov dword [rsp + 0x150], 0xaaaaaaaa
xor edx, edx
cmp qword [rdi + 0x4c8], rbx
sete dl
lea rax, [rsp + 0x150]
mov qword [rsp + 0x20], rax
mov rcx, rdi
call fcn.1400b12e0
cmp dword [rsp + 0x150], 0
jne 0x1400fa189
mov ecx, dword [rsp + 0xf0]
cmp rax, rcx
jne 0x1400fa189
mov rcx, qword [rsp + 0xf8]
test rcx, rcx
je 0x1400fa11d
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
call qword [0x1402a3e88]
jmp 0x1400fa11d
test esi, esi
je 0x1400f9d5a
lea rbx, [rsp + 0x150]
mov r8d, 0x100
mov rcx, rbx
mov dl, 0xaa
call fcn.1401cdd90
mov r8d, 0x100
mov ecx, esi
mov rdx, rbx
call fcn.1400c8fe0
mov rcx, qword [rdi]
lea rdx, str.SSPI_error:__s_failed:__s
lea r8, str.QueryContextAttributes
mov r9, rax
call fcn.1400b0f10
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x48]
lea rcx, [rsp + 0x80]
call qword [0x1402a3e88]
lea rdx, str.Failed_to_query_security_context_attributes.
jmp 0x1400f98fc
lea r8, [rsp + 0x11c]
mov byte [r8], 0
mov dword [rsp + 0x150], 0xaaaaaaaa
xor edx, edx
cmp qword [rdi + 0x4c8], rbx
sete dl
lea rax, [rsp + 0x150]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov rcx, rdi
call fcn.1400b12e0
cmp dword [rsp + 0x150], 0
jne 0x1400fa1c7
cmp rax, 1
jne 0x1400fa1c7
lea rax, [rsp + 0x110]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x11c]
mov r9d, 4
mov rcx, rdi
mov rdx, rbx
call fcn.1400ed820
test eax, eax
jne 0x1400fa1d0
cmp qword [rsp + 0x110], 4
jne 0x1400fa1d0
movzx r9d, byte [rsp + 0x11d]
cmp r9d, 2
je 0x1400fa28e
cmp r9d, 0xff
je 0x1400fa1e6
movzx r8d, byte [rsp + 0x11c]
lea rdx, str.Invalid_SSPI_encryption_response_type___u__u_.
mov rcx, qword [rsp + 0x60]
jmp 0x1400fa201
lea rdx, str.Failed_to_send_SSPI_encryption_type.
jmp 0x1400fa199
lea rdx, str.Failed_to_send_SSPI_encryption_request.
mov rcx, qword [rsp + 0x60]
call fcn.1400b0f10
mov rcx, qword [rsp + 0xf8]
test rcx, rcx
je 0x1400f9a5b
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
jmp 0x1400f9a55
lea rdx, str.Failed_to_send_SSPI_encryption_type.
jmp 0x1400fa1d7
lea rdx, str.Failed_to_receive_SSPI_encryption_response.
mov rcx, qword [rsp + 0x60]
call fcn.1400b0f10
jmp 0x1400f9a5b
movzx r8d, byte [rsp + 0x11c]
lea rdx, str.User_was_rejected_by_the_SOCKS5_server___u__u_.
mov rcx, qword [rsp + 0x60]
mov r9d, 0xff
call fcn.1400b0f10
jmp 0x1400f9a5b
mov rax, qword [rcx + 0x80]
mov rcx, qword [rsp + 0x128]
call qword [0x1402a3e88]
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
mov rcx, qword [rsp + 0x138]
jmp 0x1400f9b8b
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
mov rcx, qword [rsp + 0x128]
call qword [0x1402a3e88]
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
mov rcx, qword [rsp + 0x138]
call qword [0x1402a3e88]
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
mov rcx, qword [rsp + 0x148]
jmp 0x1400f9b8b
movzx ecx, word [rsp + 0x11e]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx esi, ax
mov dword [rsp + 0x120], esi
mov rax, qword [fcn.140136be0]
mov rcx, rsi
call qword [0x1402a3e88]
mov qword [rsp + 0x128], rax
test rax, rax
je 0x1400f9b91
mov r9d, dword [rsp + 0x120]
lea rcx, [rsp + 0x110]
mov qword [rsp + 0x20], rcx
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.1400ed820
test eax, eax
jne 0x1400fa3b6
cmp qword [rsp + 0x110], rsi
jne 0x1400fa3b6
mov r14, qword [rsp + 0x60]
cmp byte [r14 + 0xf29], 0
je 0x1400fa3e2
mov r8d, dword [rsp + 0x120]
cmp r8d, 1
je 0x1400fa335
lea rdx, str.Invalid_SSPI_encryption_response_length___lu_.
mov rcx, r14
call fcn.1400b0f10
jmp 0x1400fa3c7
mov rcx, qword [rsp + 0x128]
mov al, byte [rcx]
mov byte [rsp + 0x11c], al
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
call qword [0x1402a3e88]
lea r8, [rsp + 0x150]
mov dword [r8], 1
mov rcx, rbx
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov al, byte [rsp + 0x11c]
cmp al, 1
lea rcx, str._GSS_API_integrity
lea rdx, str._GSS_API_confidentiality
cmove rdx, rcx
test al, al
lea r8, str.out_GSS_API_data
cmovne r8, rdx
lea rdx, str.SOCKS5_access_with_s_protection_granted._n
mov rcx, r14
call fcn.1400b0c10
xor r14d, r14d
jmp 0x1400f9a92
lea rdx, str.Failed_to_receive_SSPI_encryption_type.
mov rcx, qword [rsp + 0x60]
call fcn.1400b0f10
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
mov rcx, qword [rsp + 0x128]
jmp 0x1400f9a55
lea rdx, [rsp + 0xb0]
mov dword [rdx + 4], 2
mov dword [rsp + 0x124], 0xa
movabs rax, 0x100000000
mov qword [rsp + 0x130], rax
mov qword [rsp + 0x138], 0
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0xd0]
lea rcx, [rsp + 0x80]
lea r9, [rsp + 0x6c]
xor r8d, r8d
call qword [0x1402a3e88]
mov esi, eax
lea eax, [rsi - 0x90312]
cmp eax, 3
jae 0x1400fa4d4
mov r8d, dword [rsp + 0x130]
cmp r8d, 1
jne 0x1400fa497
mov rcx, qword [rsp + 0x128]
mov rax, qword [rsp + 0x138]
mov al, byte [rax]
mov byte [rsp + 0x11c], al
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
call qword [0x1402a3e88]
mov rcx, qword [rsp + 0x138]
jmp 0x1400fa346
lea rdx, str.Invalid_SSPI_encryption_response_length___lu_.
mov rcx, r14
call fcn.1400b0f10
mov rcx, qword [rsp + 0x128]
test rcx, rcx
je 0x1400fa4c7
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
call qword [0x1402a3e88]
mov rcx, qword [rsp + 0x138]
jmp 0x1400fa1ab
test esi, esi
je 0x1400fa44f
lea rbx, [rsp + 0x150]
mov r8d, 0x100
mov rcx, rbx
mov dl, 0xaa
call fcn.1401cdd90
mov r8d, 0x100
mov ecx, esi
mov rdx, rbx
call fcn.1400c8fe0
mov rcx, qword [rdi]
lea rdx, str.SSPI_error:__s_failed:__s
lea r8, str.DecryptMessage
mov r9, rax
call fcn.1400b0f10
mov rcx, qword [rsp + 0x128]
test rcx, rcx
je 0x1400fa53e
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
call qword [0x1402a3e88]
mov rcx, qword [rsp + 0x138]
test rcx, rcx
je 0x1400fa0a2
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
jmp 0x1400fa5f9
test esi, esi
je 0x1400f9e36
lea rbx, [rsp + 0x150]
mov r8d, 0x100
mov rcx, rbx
mov dl, 0xaa
call fcn.1401cdd90
mov r8d, 0x100
mov ecx, esi
mov rdx, rbx
call fcn.1400c8fe0
mov rcx, qword [rdi]
lea rdx, str.SSPI_error:__s_failed:__s
lea r8, str.EncryptMessage
mov r9, rax
call fcn.1400b0f10
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
mov rcx, qword [rsp + 0x128]
call qword [0x1402a3e88]
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
mov rcx, qword [rsp + 0x138]
call qword [0x1402a3e88]
mov rax, qword [0x1402cbe38]
mov rax, qword [rax + 0x80]
mov rcx, qword [rsp + 0x148]
call qword [0x1402a3e88]
jmp 0x1400fa0a2