Function at 0x140146130
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1402b3030]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov r15, qword [rdx + 0x18]
lea r12, str.rcmd
movsxd rax, ecx
xor r13d, r13d
mov rsi, 0xffffffffffffffff
mov qword [rsp + 0x60], r15
mov rbx, rdx
mov r14, rsi
mov rdi, qword [r15 + rax*8 + 0x1a8]
mov rax, qword [rdx + 0x8e0]
test rax, rax
mov dword [rbp], 0
cmovne r12, rax
inc r14
cmp byte [r12 + r14], r13b
jne 0x1401461a0
mov edx, 0x2f
mov rcx, r12
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
je 0x1401461d3
mov rcx, r12
call qword [case.0x1400f50d8.0]
mov r15, rax
test rax, rax
je 0x140146734
jmp 0x140146237
mov rcx, qword [r15 + 0xc0]
mov rax, rsi
nop dword [rax]
cmp byte [rcx + rax + 1], r13b
lea rax, [rax + 1]
jne 0x1401461e0
lea rcx, [rax + 2]
add rcx, r14
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
test rax, rax
je 0x140146734
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0xc0]
inc rsi
cmp byte [rax + rsi], r13b
jne 0x140146210
lea rdx, [r14 + 2]
mov qword [rsp + 0x20], rax
add rdx, rsi
lea r8, str._s__s
mov r9, r12
mov rcx, r15
call sym.CheraxLoader.exe_curl_msnprintf
xor r12d, r12d
mov dword [rbp - 0x4c], 1
lea rax, [rsp + 0x78]
mov dword [rbp - 0x50], r12d
mov qword [rbp - 0x48], rax
lea rdx, str.Kerberos
lea rax, [rsp + 0x68]
mov dword [rsp + 0x7c], 2
mov qword [rbp - 0x58], rax
lea r8d, [r12 + 2]
lea rax, [rbp + 0x10]
mov dword [rsp + 0x78], r12d
mov qword [rbp - 0x68], rax
xor r9d, r9d
lea rax, [rbp + 8]
mov qword [rbp - 0x80], r12
mov qword [rsp + 0x40], rax
xor ecx, ecx
lea rax, [rbp - 0x10]
mov dword [rbp - 0x5c], 1
mov qword [rsp + 0x38], rax
mov rax, qword [0x1402b52c0]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov dword [rbp - 0x60], r12d
mov dword [rsp + 0x6c], 2
mov dword [rsp + 0x68], r12d
mov qword [rsp + 0x70], r12
mov dword [rbp - 0x6c], 3
mov dword [rbp - 0x70], r12d
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], r12
mov qword [rsp + 0x20], r12
call qword [rax + Ordinal_26]
test eax, eax
je 0x140146346
lea ecx, [rax - 0x90313]
cmp ecx, 1
jbe 0x140146346
cmp eax, 0x90312
je 0x140146346
lea rdx, [rbp + 0x40]
mov ecx, eax
call fcn.1400e2600
mov r9, rax
lea r8, str.AcquireCredentialsHandle
lea rdx, str.SSPI_error:__s_failed:__s
mov rcx, rbx
call fcn.140100cb0
lea rdx, str.Failed_to_acquire_credentials.
mov rcx, rbx
call fcn.140100cb0
mov rcx, r15
call qword [0x1402b30c8]
mov rax, qword [0x1402b52c0]
lea rcx, [rbp - 0x10]
call qword [rax + 0x20]
lea eax, [r12 + 7]
jmp 0x140146739
lea r8, [rbp - 0x18]
mov dword [rbp - 0x18], r12d
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, r15
call fcn.140105620
mov rsi, rax
test rax, rax
je 0x140146734
lea rax, [rbp + 8]
mov r9d, 0x116
mov qword [rsp + 0x58], rax
lea rcx, [rbp - 0x10]
lea rax, [rbp]
mov r8, rsi
mov qword [rsp + 0x50], rax
mov rdx, r13
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x50]
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], rax
mov rax, qword [0x1402b52c0]
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov dword [rsp + 0x20], r12d
call qword [rax + 0x30]
mov rcx, rsi
mov r14d, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1401463f7
mov rdx, qword [0x1402b52c0]
call qword [rdx + Ordinal_133]
mov rcx, r12
mov dword [rsp + 0x78], r12d
mov qword [rbp - 0x80], rcx
test r14d, r14d
je 0x140146415
lea eax, [r14 - 0x90313]
cmp eax, 1
jbe 0x140146415
cmp r14d, 0x90312
jne 0x14014660b
cmp dword [rsp + 0x68], r12d
je 0x1401464fe
movzx ecx, word [rsp + 0x68]
mov word [rbp - 0x30], 0x101
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x2e], ax
mov rax, qword [rbx + 0x18]
cmp rdi, qword [rax + 0x1a8]
je 0x14014644f
cmp rdi, qword [rax + 0x1b0]
jne 0x14014668d
cmp rdi, qword [rax + 0x1b0]
lea r8, [rbp - 0x30]
mov edx, r12d
lea rax, [rbp - 0x18]
sete dl
mov qword [rsp + 0x20], rax
mov r9d, 4
mov rcx, rbx
call fcn.1400f2950
cmp rax, 0xffffffffffffffff
mov rcx, r12
cmovne rcx, rax
cmp dword [rbp - 0x18], r12d
jne 0x14014668d
cmp rcx, 4
jne 0x14014668d
mov rax, qword [rbx + 0x18]
mov r9d, dword [rsp + 0x68]
cmp rdi, qword [rax + 0x1a8]
je 0x1401464b5
cmp rdi, qword [rax + 0x1b0]
jne 0x140146684
cmp rdi, qword [rax + 0x1b0]
mov edx, r12d
mov r8, qword [rsp + 0x70]
lea rax, [rbp - 0x2c]
sete dl
mov qword [rsp + 0x20], rax
mov rcx, rbx
call fcn.1400f2950
cmp rax, 0xffffffffffffffff
mov rcx, r12
cmovne rcx, rax
cmp dword [rbp - 0x2c], r12d
jne 0x140146684
mov eax, dword [rsp + 0x68]
cmp rax, rcx
jne 0x140146684
mov rcx, qword [rbp - 0x80]
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x140146521
mov rcx, rax
mov rax, qword [0x1402b52c0]
call qword [rax + Ordinal_133]
mov rcx, qword [rbp - 0x80]
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x68], r12d
test rcx, rcx
je 0x14014653c
mov rax, qword [0x1402b52c0]
call qword [rax + Ordinal_133]
mov qword [rbp - 0x80], r12
mov dword [rsp + 0x78], r12d
cmp r14d, 0x90312
jne 0x1401467b4
lea rax, [rsp + 0x60]
mov r9d, 4
lea r8, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbx
call fcn.1401190b0
test eax, eax
jne 0x140146797
cmp qword [rsp + 0x60], 4
jne 0x140146797
movzx eax, byte [rbp - 0x2f]
cmp al, 0xff
je 0x14014676f
cmp al, 1
jne 0x140146763
movzx ecx, word [rbp - 0x2e]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
movzx esi, ax
mov dword [rsp + 0x78], ecx
mov ecx, esi
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 0x80], rax
test rax, rax
je 0x14014670f
mov r9d, dword [rsp + 0x78]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov r8, rax
mov rcx, rbx
mov rdx, rdi
call fcn.1401190b0
test eax, eax
jne 0x1401466f5
cmp qword [rsp + 0x60], rsi
jne 0x1401466f5
mov rcx, r15
lea r13, [rbp - 0x28]
call fcn.140105620
mov rsi, rax
test rax, rax
jne 0x140146370
jmp 0x140146734
lea rdx, [rbp + 0x40]
mov ecx, r14d
call fcn.1400e2600
mov r9, rax
lea r8, str.InitializeSecurityContext
lea rdx, str.SSPI_error:__s_failed:__s
mov rcx, rbx
call fcn.140100cb0
mov rcx, r15
call qword [0x1402b30c8]
mov rax, qword [0x1402b52c0]
lea rcx, [rbp - 0x10]
call qword [rax + 0x20]
mov rax, qword [0x1402b52c0]
lea rcx, [rbp - 0x28]
call qword [rax + Ordinal_73]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14014666b
mov rax, qword [0x1402b52c0]
call qword [rax + Ordinal_133]
lea rdx, str.Failed_to_initialise_security_context.
mov rcx, rbx
call fcn.140100cb0
mov eax, 7
jmp 0x140146739
lea rdx, str.Failed_to_send_SSPI_authentication_token.
jmp 0x140146694
lea rdx, str.Failed_to_send_SSPI_authentication_request.
mov rcx, rbx
call fcn.140100cb0
mov rcx, r15
call qword [0x1402b30c8]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1401466bc
mov rax, qword [0x1402b52c0]
call qword [rax + Ordinal_133]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1401466d2
mov rax, qword [0x1402b52c0]
call qword [rax + Ordinal_133]
mov rax, qword [0x1402b52c0]
lea rcx, [rbp - 0x10]
call qword [rax + 0x20]
mov rax, qword [0x1402b52c0]
lea rcx, [rbp - 0x28]
call qword [rax + Ordinal_73]
mov eax, 7
jmp 0x140146739
lea rdx, str.Failed_to_receive_SSPI_authentication_token.
mov rcx, rbx
call fcn.140100cb0
mov rcx, r15
call qword [0x1402b30c8]
jmp 0x1401466bc
mov rcx, r15
call qword [0x1402b30c8]
mov rax, qword [0x1402b52c0]
lea rcx, [rbp - 0x10]
call qword [rax + 0x20]
mov rax, qword [0x1402b52c0]
lea rcx, [rbp - 0x28]
call qword [rax + Ordinal_73]
mov eax, reloc.WLDAP32.dll_Ordinal_27
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14014d450
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x250
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r9d, eax
lea rdx, str.Invalid_SSPI_authentication_response_type___u__u_.
jmp 0x14014677c
mov r9d, 0xff
lea rdx, str.User_was_rejected_by_the_SOCKS5_server___u__u_.
movzx r8d, byte [rbp - 0x30]
mov rcx, rbx
call fcn.140100cb0
mov rcx, r15
call qword [0x1402b30c8]
jmp 0x1401466d2
lea rdx, str.Failed_to_receive_SSPI_authentication_response.
mov rcx, rbx
call fcn.140100cb0
mov rcx, r15
call qword [0x1402b30c8]
jmp 0x1401466d2
mov rcx, r15
call qword [0x1402b30c8]
mov rax, qword [0x1402b52c0]
lea r8, [rbp - 0x78]
mov edx, 1
lea rcx, [rbp - 0x10]
call qword [rax + reloc.WS2_32.dll_recv]
mov rdx, qword [0x1402b52c0]
lea rcx, [rbp - 0x10]
mov esi, eax
call qword [rdx + 0x20]
test esi, esi
je 0x140146857
lea ecx, [rsi - 0x90313]
cmp ecx, 1
jbe 0x140146857
cmp esi, 0x90312
je 0x140146857
lea rdx, [rbp + 0x40]
mov ecx, esi
call fcn.1400e2600
mov r9, rax
lea r8, str.QueryCredentialAttributes
lea rdx, str.SSPI_error:__s_failed:__s
mov rcx, rbx
call fcn.140100cb0
mov rax, qword [0x1402b52c0]
lea rcx, [rbp - 0x28]
call qword [rax + Ordinal_73]
mov rax, qword [0x1402b52c0]
mov rcx, qword [rbp - 0x78]
call qword [rax + Ordinal_133]
lea rdx, str.Failed_to_determine_user_name.
mov rcx, rbx
call fcn.140100cb0
mov eax, 7
jmp 0x140146739
mov r8, qword [rbp - 0x78]
lea rdx, str.SOCKS5_server_authenticated_user__s_with_GSS_API.
mov rcx, rbx
call fcn.140100de0
mov rax, qword [0x1402b52c0]
mov rcx, qword [rbp - 0x78]
call qword [rax + Ordinal_133]
mov eax, dword [rbp]
mov word [rbp - 0x30], 0x201
test al, 0x10
je 0x14014688c
mov al, 2
jmp 0x140146894
bt eax, 0x10
jae 0x1401468aa
mov al, 1
cmp al, 1
lea rcx, str.integrity
lea r8, str.confidentiality
cmove r8, rcx
jmp 0x1401468b1
lea r8, [0x140290a3c]
lea rdx, str.SOCKS5_server_supports_GSS_API__s_data_protection.
mov rcx, rbx
call fcn.140100de0
cmp byte [rbx + 0xab1], r12b
je 0x1401468d3
mov ecx, 1
jmp 0x140146b51
mov rax, qword [0x1402b52c0]
lea r8, [rbp - 0x40]
xor edx, edx
lea rcx, [rbp - 0x28]
call qword [rax + 0x58]
test eax, eax
je 0x140146948
lea ecx, [rax - 0x90313]
cmp ecx, 1
jbe 0x140146948
cmp eax, 0x90312
je 0x140146948
lea rdx, [rbp + 0x40]
mov ecx, eax
call fcn.1400e2600
mov r9, rax
lea r8, str.QueryContextAttributes
lea rdx, str.SSPI_error:__s_failed:__s
mov rcx, rbx
call fcn.140100cb0
mov rax, qword [0x1402b52c0]
lea rcx, [rbp - 0x28]
call qword [rax + Ordinal_73]
lea rdx, str.Failed_to_query_security_context_attributes.
mov rcx, rbx
call fcn.140100cb0
mov eax, 7
jmp 0x140146739
mov eax, dword [rbp - 0x34]
mov ecx, eax
mov dword [rbp + 0x10], eax
mov dword [rbp + 0x14], 2
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x18], rax
test rax, rax
je 0x140146726
mov ecx, 1
mov dword [rbp + 0x20], 1
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x28], rax
test rax, rax
jne 0x14014699b
mov rax, qword [0x1402b52c0]
mov rcx, qword [rbp + 0x18]
call qword [rax + Ordinal_133]
jmp 0x140146726
mov byte [rax], r12b
mov eax, dword [rbp - 0x38]
mov ecx, eax
mov dword [rbp + 0x34], 9
mov dword [rbp + 0x30], eax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x38], rax
test rax, rax
mov rax, qword [0x1402b52c0]
jne 0x1401469e3
mov rcx, qword [rbp + 0x18]
call qword [rax + Ordinal_133]
mov rax, qword [0x1402b52c0]
mov rcx, qword [rbp + 0x28]
call qword [rax + Ordinal_133]
jmp 0x140146726
xor r9d, r9d
lea r8, [rbp - 0x70]
mov edx, 0x80000001
lea rcx, [rbp - 0x28]
call qword [rax + 0xc8]
test eax, eax
je 0x140146a6b
lea ecx, [rax - 0x90313]
cmp ecx, 1
jbe 0x140146a6b
cmp eax, 0x90312
je 0x140146a6b
lea rdx, [rbp + 0x40]
mov ecx, eax
call fcn.1400e2600
mov r9, rax
lea r8, str.EncryptMessage
lea rdx, str.SSPI_error:__s_failed:__s
mov rcx, rbx
call fcn.140100cb0
mov rax, qword [0x1402b52c0]
mov rcx, qword [rbp + 0x18]
call qword [rax + Ordinal_133]
mov rax, qword [0x1402b52c0]
mov rcx, qword [rbp + 0x28]
call qword [rax + Ordinal_133]
mov rax, qword [0x1402b52c0]
mov rcx, qword [rbp + 0x38]
call qword [rax + Ordinal_133]
jmp 0x140146921
mov ecx, dword [rbp + 0x20]
add ecx, dword [rbp + 0x30]
add ecx, dword [rbp + 0x10]
mov dword [rsp + 0x68], ecx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x140146ac0
mov rax, qword [0x1402b52c0]
mov rcx, qword [rbp + 0x18]
call qword [rax + Ordinal_133]
mov rax, qword [0x1402b52c0]
mov rcx, qword [rbp + 0x28]
call qword [rax + Ordinal_133]
mov rax, qword [0x1402b52c0]
mov rcx, qword [rbp + 0x38]
call qword [rax + Ordinal_133]
jmp 0x140146726
mov r8d, dword [rbp + 0x10]
mov rcx, rax
mov rdx, qword [rbp + 0x18]
call sub.VCRUNTIME140.dll_memcpy
movsxd rcx, dword [rbp + 0x10]
add rcx, qword [rsp + 0x70]
mov r8d, dword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [rbp + 0x20]
add rdx, qword [rsp + 0x70]
mov ecx, dword [rbp + 0x10]
mov r8d, dword [rbp + 0x30]
add rcx, rdx
mov rdx, qword [rbp + 0x38]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [0x1402b52c0]
mov rcx, qword [rbp + 0x18]
call qword [rax + Ordinal_133]
mov rax, qword [0x1402b52c0]
mov rcx, qword [rbp + 0x28]
mov qword [rbp + 0x18], r12
mov dword [rbp + 0x10], r12d
call qword [rax + Ordinal_133]
mov rax, qword [0x1402b52c0]
mov rcx, qword [rbp + 0x38]
mov qword [rbp + 0x28], r12
mov dword [rbp + 0x20], r12d
call qword [rax + Ordinal_133]
movzx ecx, word [rsp + 0x68]
mov qword [rbp + 0x38], r12
mov dword [rbp + 0x30], r12d
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x2e], ax
mov rax, qword [rbx + 0x18]
cmp rdi, qword [rax + 0x1a8]
je 0x140146b75
cmp rdi, qword [rax + 0x1b0]
jne 0x140146f68
cmp rdi, qword [rax + 0x1b0]
lea r8, [rbp - 0x30]
mov edx, r12d
lea rax, [rbp - 0x2c]
sete dl
mov qword [rsp + 0x20], rax
mov r9d, 4
mov rcx, rbx
call fcn.1400f2950
cmp rax, 0xffffffffffffffff
mov rcx, r12
cmovne rcx, rax
cmp dword [rbp - 0x2c], r12d
jne 0x140146f68
cmp rcx, 4
jne 0x140146f68
mov rax, qword [rbx + 0x18]
cmp byte [rbx + 0xab1], r12b
je 0x140146c36
mov byte [rbp - 0x30], r12b
cmp rdi, qword [rax + 0x1a8]
je 0x140146bdf
cmp rdi, qword [rax + 0x1b0]
jne 0x140146c22
cmp rdi, qword [rax + 0x1b0]
lea r8, [rbp - 0x30]
mov edx, r12d
lea rax, [rbp - 0x2c]
sete dl
mov qword [rsp + 0x20], rax
mov r9d, 1
mov rcx, rbx
call fcn.1400f2950
cmp rax, 0xffffffffffffffff
mov rcx, r12
cmovne rcx, rax
cmp dword [rbp - 0x2c], r12d
jne 0x140146c22
cmp rcx, 1
je 0x140146cad
lea rdx, str.Failed_to_send_SSPI_encryption_type.
mov rcx, rbx
call fcn.140100cb0
jmp 0x1401466e0
mov r9d, dword [rsp + 0x68]
cmp rdi, qword [rax + 0x1a8]
je 0x140146c51
cmp rdi, qword [rax + 0x1b0]
jne 0x140146f5f
cmp rdi, qword [rax + 0x1b0]
mov edx, r12d
mov r8, qword [rsp + 0x70]
lea rax, [rbp - 0x2c]
sete dl
mov qword [rsp + 0x20], rax
mov rcx, rbx
call fcn.1400f2950
cmp rax, 0xffffffffffffffff
mov rcx, r12
cmovne rcx, rax
cmp dword [rbp - 0x2c], r12d
jne 0x140146f5f
mov eax, dword [rsp + 0x68]
cmp rax, rcx
jne 0x140146f5f
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140146cad
mov rax, qword [0x1402b52c0]
call qword [rax + Ordinal_133]
lea rax, [rsp + 0x60]
mov r9d, 4
lea r8, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbx
call fcn.1401190b0
test eax, eax
jne 0x140146f4b
cmp qword [rsp + 0x60], 4
jne 0x140146f4b
movzx eax, byte [rbp - 0x2f]
cmp al, 0xff
jne 0x140146d07
movzx r8d, byte [rbp - 0x30]
lea rdx, str.User_was_rejected_by_the_SOCKS5_server___u__u_.
mov r9d, 0xff
mov rcx, rbx
call fcn.140100cb0
jmp 0x1401466e0
cmp al, 2
je 0x140146d27
movzx r8d, byte [rbp - 0x30]
lea rdx, str.Invalid_SSPI_encryption_response_type___u__u_.
mov r9d, eax
mov rcx, rbx
call fcn.140100cb0
jmp 0x1401466e0
movzx ecx, word [rbp - 0x2e]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
movzx esi, ax
mov dword [rbp + 0x10], ecx
mov ecx, esi
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x18], rax
test rax, rax
je 0x140146726
mov r9d, dword [rbp + 0x10]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov r8, rax
mov rcx, rbx
mov rdx, rdi
call fcn.1401190b0
test eax, eax
jne 0x140146f26
cmp qword [rsp + 0x60], rsi
jne 0x140146f26
cmp byte [rbx + 0xab1], r12b
jne 0x140146e8c
mov rax, qword [0x1402b52c0]
lea r9, [rbp + 4]
xor r8d, r8d
mov dword [rbp - 0x6c], 2
lea rdx, [rbp - 0x70]
mov dword [rbp + 0x14], 0xa
lea rcx, [rbp - 0x28]
mov dword [rbp + 0x24], 1
mov dword [rbp + 0x20], r12d
mov qword [rbp + 0x28], r12
call qword [rax + reloc.WLDAP32.dll_Ordinal_208]
test eax, eax
je 0x140146e33
lea ecx, [rax - 0x90313]
cmp ecx, 1
jbe 0x140146e33
cmp eax, 0x90312
je 0x140146e33
lea rdx, [rbp + 0x40]
mov ecx, eax
call fcn.1400e2600
mov r9, rax
lea r8, str.DecryptMessage
lea rdx, str.SSPI_error:__s_failed:__s
mov rcx, rbx
call fcn.140100cb0
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140146e14
mov rax, qword [0x1402b52c0]
call qword [rax + Ordinal_133]
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140146921
mov rax, qword [0x1402b52c0]
call qword [rax + Ordinal_133]
jmp 0x140146921
mov r8d, dword [rbp + 0x20]
cmp r8d, 1
je 0x140146e6b
lea rdx, str.Invalid_SSPI_encryption_response_length___lu_.
mov rcx, rbx
call fcn.140100cb0
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140146e62
mov rax, qword [0x1402b52c0]
call qword [rax + Ordinal_133]
mov rcx, qword [rbp + 0x28]
jmp 0x140146f7c
mov rax, qword [rbp + 0x28]
movzx ecx, byte [rax]
mov rax, qword [0x1402b52c0]
mov byte [rbp - 0x30], cl
mov rcx, qword [rbp + 0x18]
call qword [rax + Ordinal_133]
mov rcx, qword [rbp + 0x28]
jmp 0x140146ec5
mov r8d, dword [rbp + 0x10]
cmp r8d, 1
je 0x140146ebb
lea rdx, str.Invalid_SSPI_encryption_response_length___lu_.
mov rcx, rbx
call fcn.140100cb0
mov rax, qword [0x1402b52c0]
mov rcx, qword [rbp + 0x18]
call qword [rax + Ordinal_133]
jmp 0x1401466e0
mov rcx, qword [rbp + 0x18]
movzx eax, byte [rcx]
mov byte [rbp - 0x30], al
mov rax, qword [0x1402b52c0]
call qword [rax + Ordinal_133]
lea r8, [rbp - 0x2c]
mov dword [rbp - 0x2c], 1
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
movzx eax, byte [rbp - 0x30]
test al, al
jne 0x140146efc
lea r8, str.out_GSS_API_data
jmp 0x140146f10
cmp al, 1
lea rcx, str._GSS_API_integrity
lea r8, str._GSS_API_confidentiality
cmove r8, rcx
lea rdx, str.SOCKS5_access_with_s_protection_granted.
mov rcx, rbx
call fcn.140100de0
xor eax, eax
jmp 0x140146739
lea rdx, str.Failed_to_receive_SSPI_encryption_type.
mov rcx, rbx
call fcn.140100cb0
mov rax, qword [0x1402b52c0]
mov rcx, qword [rbp + 0x18]
call qword [rax + Ordinal_133]
jmp 0x1401466e0
lea rdx, str.Failed_to_receive_SSPI_encryption_response.
mov rcx, rbx
call fcn.140100cb0
jmp 0x1401466e0
lea rdx, str.Failed_to_send_SSPI_encryption_type.
jmp 0x140146f6f
lea rdx, str.Failed_to_send_SSPI_encryption_request.
mov rcx, rbx
call fcn.140100cb0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1401466e0
mov rax, qword [0x1402b52c0]
call qword [rax + Ordinal_133]
jmp 0x1401466e0