Function at 0x1400f8130
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x178
mov dword [rsp + 0x4c], r9d
mov r15, r8
mov rbx, rdx
mov rbp, rcx
movsxd r14, dword [rsp + 0x1e0]
mov rdi, qword [rsp + 0x1e8]
mov rax, qword [0x1402b7040]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rax, [rdi + 0xc]
mov qword [rsp + 0x40], rax
lea rdx, str.unknown
lea rcx, [rsp + 0x70]
mov r8d, 0x100
call fcn.1401d8080
mov rax, qword [rdi + r14*8 + 0x4c0]
mov qword [rsp + 0x50], rax
mov r12, qword [rdi]
mov esi, dword [rdi + 0x3a4]
cmp esi, 5
sete byte [rsp + 0x3f]
mov qword [rsp + 0x58], r15
mov rcx, r15
call fcn.1401c0bd0
mov r15, rax
mov qword [rsp + 0x30], r12
mov r13d, dword [r12 + 0x6b4]
mov qword [rsp + 0x60], 0
mov eax, dword [rdi + 8]
dec eax
cmp eax, 0x10
jb 0x1400f81f2
mov rcx, qword [rsp + 0x1f0]
cmp byte [rcx], 0
je 0x1400f82aa
cmp eax, 0xf
ja case.0x1400f820c.4
xor r12d, r12d
lea rcx, [0x14029ec78]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov r8, qword [rdi + 0x268]
mov rdx, qword [rdi + 0x270]
xor r13d, r13d
jmp 0x1400f83d6
xor r13d, r13d
jmp 0x1400f83b9
mov r9, qword [rdi + 0x268]
mov r8, qword [rdi + 0x270]
lea rsi, [rsp + 0x6c]
mov dword [rsi], 0xaaaaaaaa
xor edx, edx
mov rax, qword [rsp + 0x50]
cmp rax, qword [rdi + 0x4c8]
sete dl
mov qword [rsp + 0x20], rsi
mov rcx, rdi
call fcn.1400b9150
mov ecx, dword [rsi]
test ecx, ecx
je 0x1400f826e
cmp ecx, 0x51
jne 0x1400f8294
mov rcx, qword [rdi + 0x268]
xor r13d, r13d
sub rcx, rax
je 0x1400f83b9
mov qword [rdi + 0x268], rcx
add qword [rdi + 0x270], rax
jmp 0x1400f85dd
lea rdx, str.Unable_to_send_initial_SOCKS5_request.
jmp 0x1400f85cd
mov r8, qword [rsp + 0x40]
jmp 0x1400f8359
mov dword [rdi + 8], 1
cmp byte [rdi + 0x65a], 1
jne 0x1400f82d5
lea rdx, str.SOCKS5:_connecting_to_HTTP_proxy__s_port__d_n
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x58]
mov r9d, dword [rsp + 0x4c]
call fcn.1400b8a80
cmp esi, 5
sete al
cmp r15, 0x100
setb cl
or cl, al
jne 0x1400f8300
mov rcx, qword [rdi]
lea rdx, str.SOCKS5:_server_resolving_disabled_for_hostnames_of_length___255__actual_len_zu__n
mov r8, r15
call fcn.1400b8a80
mov byte [rsp + 0x3f], 1
test r13d, 0xfffffffa
je 0x1400f831b
mov rcx, qword [rdi]
lea rdx, str.warning:_unsupported_value_passed_to_CURLOPT_SOCKS5_AUTH:__lu_n
mov r8d, r13d
call fcn.1400b8a80
xor eax, eax
test r13b, 1
cmove rbp, rax
mov byte [rdi + 0xc], 5
mov byte [rdi + 0xe], 0
mov eax, 3
bt r13d, 2
jae 0x1400f8342
mov byte [rdi + 0xf], 1
mov eax, 4
test rbp, rbp
je 0x1400f82a0
mov ecx, eax
inc eax
mov r8, qword [rsp + 0x40]
mov byte [r8 + rcx], 2
lea ecx, [rax - 2]
mov byte [rdi + 0xd], cl
mov r12d, eax
lea rsi, [rsp + 0x6c]
mov dword [rsi], 0xaaaaaaaa
xor edx, edx
mov rax, qword [rsp + 0x50]
cmp rax, qword [rdi + 0x4c8]
sete dl
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov r9, r12
call fcn.1400b9150
mov ecx, dword [rsi]
test ecx, ecx
je 0x1400f839d
cmp ecx, 0x51
jne 0x1400f8294
mov ecx, dword [rdi + 8]
sub r12, rax
jne 0x1400f8527
shr r13b, 2
cmp ecx, 4
je 0x1400f83b9
mov dword [rdi + 8], 4
mov qword [rdi + 0x268], 2
mov rdx, qword [rsp + 0x40]
mov qword [rdi + 0x270], rdx
mov r8d, 2
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1400f8485
cdqe
mov rcx, qword [rdi + 0x268]
sub rcx, rax
jne 0x1400f85f7
mov rax, qword [rsp + 0x40]
cmp byte [rax], 5
jne 0x1400f851b
movzx eax, byte [rdi + 0xd]
cmp eax, 2
je 0x1400f8ac4
test eax, eax
jne 0x1400f8cba
cmp dword [rdi + 8], 9
je case.0x1400f820c.8
mov dword [rdi + 8], 9
mov al, byte [rsp + 0x3f]
test al, al
je 0x1400f855b
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rdx, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x4c]
xor r9d, r9d
call fcn.1400d0b20
cmp eax, 0xffffffff
je 0x1400f8637
cmp eax, 1
jne 0x1400f8898
xor r13d, r13d
cmp dword [rdi + 8], 0xa
je 0x1400f85dd
mov dword [rdi + 8], 0xa
jmp 0x1400f85dd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400f850f
xor eax, eax
jmp 0x1400f83ef
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400f854e
xor eax, eax
jmp 0x1400f84d1
mov r8, qword [rdi + 0x268]
mov rdx, qword [rdi + 0x270]
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1400f8499
cdqe
mov rcx, qword [rdi + 0x268]
sub rcx, rax
jne 0x1400f85f7
cmp dword [rdi + 8], 0x11
je case.0x1400f820c.4
mov dword [rdi + 8], 0x11
lea rdx, str.SOCKS5_request_granted._n
mov rcx, qword [rsp + 0x30]
call fcn.1400b8a80
mov rax, qword [rsp + 0x1f0]
mov byte [rax], 1
jmp 0x1400f8605
lea rdx, str.Unable_to_receive_initial_SOCKS5_response.
jmp 0x1400f85cd
lea rdx, str.Received_invalid_version_in_initial_SOCKS5_response.
jmp 0x1400f85cd
cmp ecx, 2
je 0x1400f8533
mov dword [rdi + 8], 2
mov qword [rdi + 0x268], r12
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov qword [rdi + 0x270], rcx
jmp 0x1400f8605
lea rdx, str.Failed_to_receive_SOCKS5_connect_request_ack.
jmp 0x1400f85cd
mov al, byte [rsp + 0x3f]
mov word [rdi + 0xc], 0x105
mov byte [rdi + 0xe], 0
mov r12d, 3
test al, al
jne case.0x1400f820c.12
mov byte [rdi + 0xf], 3
mov byte [rdi + 0x10], r15b
lea rcx, [rdi + 0x11]
mov rsi, qword [rsp + 0x58]
mov rdx, rsi
mov r8, r15
call fcn.1401d8080
add r15, 5
lea rdx, str.SOCKS5_connect_to__s:_d__remotely_resolved__n
mov rcx, qword [rsp + 0x30]
mov r8, rsi
mov r9d, dword [rsp + 0x4c]
call fcn.1400b8a80
mov r12, r15
mov eax, dword [rsp + 0x4c]
rol ax, 8
mov word [rdi + r12 + 0xc], ax
cmp dword [rdi + 0xaf0], 0
je 0x1400f8651
lea rdx, str.SOCKS5_GSS_API_protection_not_yet_implemented.
mov rcx, qword [rsp + 0x30]
call fcn.1400b8d80
mov r13d, 7
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
cmp rcx, qword [0x1402b7040]
je 0x1400f860a
call fcn.14019f290
int3
mov qword [rdi + 0x268], rcx
add qword [rdi + 0x270], rax
xor r13d, r13d
jmp 0x1400f85dd
mov eax, r13d
add rsp, 0x178
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, str.Failed_to_resolve___s__for_SOCKS5_connect.
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x58]
call fcn.1400b8d80
mov r13d, 6
jmp 0x1400f85dd
mov r12, qword [rdi + 0x268]
mov r8, qword [rdi + 0x270]
xor ebx, ebx
jmp 0x1400f8678
add r12, 2
mov r8, qword [rsp + 0x40]
mov qword [rdi + 0x270], r8
mov qword [rdi + 0x268], r12
cmp dword [rdi + 8], 0xe
je 0x1400f8675
mov dword [rdi + 8], reloc.WLDAP32.dll_Ordinal_14
mov rbx, r12
lea rsi, [rsp + 0x6c]
mov dword [rsi], 0xaaaaaaaa
xor edx, edx
mov rax, qword [rsp + 0x50]
cmp rax, qword [rdi + 0x4c8]
sete dl
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov r9, r12
call fcn.1400b9150
mov ecx, dword [rsi]
test ecx, ecx
je 0x1400f86bb
cmp ecx, 0x51
je 0x1400f86bb
lea rdx, str.Failed_to_send_SOCKS5_connect_request.
jmp 0x1400f85cd
mov rcx, qword [rdi + 0x268]
sub rcx, rax
jne 0x1400f85f7
cmp dword [rdi + 0xaf0], 0
jne 0x1400f85c6
mov qword [rdi + 0x268], 0xa
mov rdx, qword [rsp + 0x40]
mov qword [rdi + 0x270], rdx
mov r8d, 0xa
cmp dword [rdi + 8], 0xf
je 0x1400f872a
mov dword [rdi + 8], 0xf
jmp 0x1400f872a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400f854e
xor r8d, r8d
jmp 0x1400f8740
mov r8d, dword [rdi + 0x268]
mov rdx, qword [rdi + 0x270]
xor ebx, ebx
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1400f8704
movsxd r8, eax
mov rax, qword [rdi + 0x268]
sub rax, r8
je 0x1400f875f
mov qword [rdi + 0x268], rax
add qword [rdi + 0x270], r8
jmp 0x1400f8605
mov rax, qword [rsp + 0x40]
cmp byte [rax], 5
je 0x1400f8775
lea rdx, str.SOCKS5_reply_has_wrong_version__version_should_be_5.
jmp 0x1400f85cd
movzx r9d, byte [rdi + 0xd]
test r9d, r9d
je 0x1400f8a54
lea rdx, str.Cant_complete_SOCKS5_connection_to__s.___d_
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x58]
call fcn.1400b8d80
jmp 0x1400f85d7
mov ebx, dword [rdi + 0x3f0]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0xe0]
test rcx, rcx
je 0x1400f87dd
test byte [rcx], 8
je 0x1400f87dd
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400f87dd
mov r9, qword [rcx + 0x18]
mov rcx, qword [rsp + 0x30]
mov edx, 3
mov r8d, 2
call qword [0x1402a7b00]
mov rcx, rdi
mov rdx, qword [rsp + 0x58]
mov r8d, ebx
call fcn.1400d06a0
mov rbx, rax
test rax, rax
je 0x1400f87f8
inc dword [rbx + 0x10]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0xe0]
test rcx, rcx
je 0x1400f882b
test byte [rcx], 8
je 0x1400f882b
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1400f882b
mov r8, qword [rcx + 0x18]
mov rcx, qword [rsp + 0x30]
mov edx, 3
call qword [0x1402a7b00]
mov qword [rsp + 0x60], rbx
test rbx, rbx
je 0x1400f885b
mov qword [rdi + 0x9d0], rbx
mov byte [rdi + 0x9e8], 1
lea rdx, str.SOCKS5:_hostname__s_found_n
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x58]
call fcn.1400b8a80
jmp 0x1400f88b3
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
cmp byte [rax + 0xf38], 1
jne 0x1400f887c
lea rdx, [rsp + 0x60]
call fcn.1400fd770
jmp 0x1400f8886
lea rdx, [rsp + 0x60]
call fcn.1400b7990
mov r13d, eax
mov rbx, qword [rsp + 0x60]
test rbx, rbx
jne 0x1400f88b3
jmp 0x1400f85dd
cmp dword [rdi + 8], 0xb
je case.0x1400f820c.10
mov dword [rdi + 8], Ordinal_14
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x1400f8621
mov r14, qword [rbx]
test r14, r14
je 0x1400f8621
mov ecx, dword [r14 + 4]
cmp ecx, 2
je 0x1400f88d4
cmp ecx, 0x17
jne 0x1400f8922
mov edx, 8
jmp 0x1400f88d9
mov edx, 4
add rdx, qword [r14 + 0x20]
lea r8, [rsp + 0x70]
mov ebx, 0x100
mov r9d, 0x100
call fcn.1400f8d30
test rax, rax
je 0x1400f8922
lea rcx, [rsp + 0x70]
call fcn.1401c0bd0
sub rbx, rax
lea rcx, [rsp + rax]
add rcx, 0x70
lea r8, [0x14029ea7b]
mov rdx, rbx
mov r9d, dword [rsp + 0x4c]
call fcn.1400c5cf0
jmp 0x1400f8931
movabs rax, 0x6e776f6e6b6e75
mov qword [rsp + 0x70], rax
mov word [rdi + 0xc], 0x105
mov byte [rdi + 0xe], 0
mov eax, dword [r14 + 4]
cmp eax, 0x17
je 0x1400f89d7
cmp eax, 2
je 0x1400f897e
lea rdx, str.SOCKS5_connection_to__s_not_supported_n
lea r8, [rsp + 0x70]
mov rsi, qword [rsp + 0x30]
mov rcx, rsi
call fcn.1400b8d80
mov rdx, qword [rsp + 0x60]
mov rcx, rsi
call fcn.1400d0f10
mov r12d, 3
jmp case.0x1400f820c.12
mov byte [rdi + 0xf], 1
mov rax, qword [r14 + 0x20]
mov cl, byte [rax + 4]
mov byte [rdi + 0x10], cl
mov cl, byte [rax + 5]
mov byte [rdi + 0x11], cl
mov cl, byte [rax + 6]
mov byte [rdi + 0x12], cl
add rax, 7
mov r12d, 8
lea rdx, str.SOCKS5_connect_to_IPv4__s__locally_resolved__n
mov ecx, 0x13
mov al, byte [rax]
mov byte [rdi + rcx], al
lea r8, [rsp + 0x70]
mov rsi, qword [rsp + 0x30]
mov rcx, rsi
call fcn.1400b8a80
mov rdx, qword [rsp + 0x60]
mov rcx, rsi
call fcn.1400d0f10
jmp case.0x1400f820c.12
mov byte [rdi + 0xf], 4
mov rax, qword [r14 + 0x20]
mov cl, byte [rax + 8]
mov byte [rdi + 0x10], cl
mov cl, byte [rax + 9]
mov byte [rdi + 0x11], cl
mov cl, byte [rax + 0xa]
mov byte [rdi + 0x12], cl
mov cl, byte [rax + 0xb]
mov byte [rdi + 0x13], cl
mov cl, byte [rax + 0xc]
mov byte [rdi + 0x14], cl
mov cl, byte [rax + 0xd]
mov byte [rdi + 0x15], cl
mov cl, byte [rax + 0xe]
mov byte [rdi + 0x16], cl
mov cl, byte [rax + 0xf]
mov byte [rdi + 0x17], cl
mov cl, byte [rax + 0x10]
mov byte [rdi + 0x18], cl
mov cl, byte [rax + 0x11]
mov byte [rdi + 0x19], cl
mov cl, byte [rax + 0x12]
mov byte [rdi + 0x1a], cl
mov cl, byte [rax + 0x13]
mov byte [rdi + 0x1b], cl
mov cl, byte [rax + 0x14]
mov byte [rdi + 0x1c], cl
mov cl, byte [rax + 0x15]
mov byte [rdi + 0x1d], cl
mov cl, byte [rax + 0x16]
mov byte [rdi + 0x1e], cl
add rax, 0x17
mov r12d, 0x14
lea rdx, str.SOCKS5_connect_to_IPv6__s__locally_resolved__n
mov ecx, 0x1f
jmp 0x1400f89ae
movzx eax, byte [rdi + 0xf]
cmp eax, 4
je 0x1400f8a83
cmp eax, 3
jne 0x1400f8a6a
movzx ebx, byte [rdi + 0x10]
add rbx, 7
cmp dword [rdi + 0xaf0], 0
jne 0x1400f84b5
cmp rbx, 0xb
jl 0x1400f84e1
jmp 0x1400f8a95
cmp dword [rdi + 0xaf0], 0
jne 0x1400f84b5
mov ebx, Ordinal_26
mov r8, rbx
add r8, 0xfffffffffffffff6
mov qword [rdi + 0x268], r8
lea rax, [rdi + 0x16]
mov qword [rdi + 0x270], rax
cmp dword [rdi + 8], 0x10
je 0x1400f84b5
mov dword [rdi + 8], 0x10
jmp 0x1400f84b5
cmp dword [rdi + 8], 6
je case.0x1400f820c.5
mov dword [rdi + 8], 6
test rbx, rbx
je 0x1400f8b78
test rbp, rbp
je 0x1400f8b78
mov rcx, rbp
call fcn.1401c0bd0
mov r14, rax
mov r13, rax
mov rcx, rbx
call fcn.1401c0bd0
mov r12, rax
mov byte [rdi + 0xc], 1
mov byte [rdi + 0xd], r14b
test r14, r14
je 0x1400f8b21
cmp r14, 0xff
jae 0x1400f8b46
lea rcx, [rdi + 0xe]
mov rdx, rbp
mov r8, r13
call fcn.1401d8080
add r14, 3
mov r8, qword [rsp + 0x40]
mov byte [r8 + r13 + 2], r12b
test r12, r12
je 0x1400f8b62
cmp r12, 0x100
jb 0x1400f8b67
lea rdx, str.Excessive_password_length_for_proxy_auth
jmp 0x1400f8b4d
lea rdx, str.Excessive_user_name_length_for_proxy_auth
mov rcx, qword [rsp + 0x30]
call fcn.1400b8d80
mov r13d, Ordinal_46
jmp 0x1400f85dd
xor r12d, r12d
jmp 0x1400f8b90
lea rcx, [r8 + r14]
mov rdx, rbx
mov r8, r12
call fcn.1401d8080
jmp 0x1400f8b8b
mov word [rdi + 0xc], 1
mov byte [rdi + 0xe], 0
mov r14d, 3
xor r12d, r12d
mov r8, qword [rsp + 0x40]
add r14, r12
cmp dword [rdi + 8], 7
je 0x1400f8ba0
mov dword [rdi + 8], 7
mov qword [rdi + 0x268], r14
mov qword [rdi + 0x270], r8
jmp 0x1400f8bbe
mov r14, qword [rdi + 0x268]
mov r8, qword [rdi + 0x270]
lea rsi, [rsp + 0x6c]
mov dword [rsi], 0xaaaaaaaa
xor edx, edx
mov rax, qword [rsp + 0x50]
cmp rax, qword [rdi + 0x4c8]
sete dl
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov r9, r14
call fcn.1400b9150
mov ecx, dword [rsi]
test ecx, ecx
je 0x1400f8c01
cmp ecx, 0x51
je 0x1400f8c01
lea rdx, str.Failed_to_send_SOCKS5_sub_negotiation_request.
jmp 0x1400f85cd
mov rcx, qword [rdi + 0x268]
sub rcx, rax
jne 0x1400f85f7
mov rdx, qword [rsp + 0x40]
mov qword [rdi + 0x270], rdx
mov qword [rdi + 0x268], 2
mov r8d, 2
cmp dword [rdi + 8], 8
je 0x1400f8c4b
mov dword [rdi + 8], 8
jmp 0x1400f8c4b
mov r8, qword [rdi + 0x268]
mov rdx, qword [rdi + 0x270]
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1400f8c9d
cdqe
mov rcx, qword [rdi + 0x268]
sub rcx, rax
jne 0x1400f85f7
movzx r9d, byte [rdi + 0xd]
test r9d, r9d
je 0x1400f8422
mov rax, qword [rsp + 0x40]
movzx r8d, byte [rax]
lea rdx, str.User_was_rejected_by_the_SOCKS5_server___d__d_.
mov rcx, qword [rsp + 0x30]
call fcn.1400b8d80
jmp 0x1400f85d7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400f8cae
xor eax, eax
jmp 0x1400f8c60
lea rdx, str.Unable_to_receive_SOCKS5_sub_negotiation_response.
jmp 0x1400f85cd
cmp al, 1
jne 0x1400f8cf0
test r13b, 1
je 0x1400f8cf0
cmp dword [rdi + 8], 5
je 0x1400f8cd1
mov dword [rdi + 8], 5
mov ecx, r14d
mov rdx, rdi
call fcn.140103880
test eax, eax
je case.0x1400f820c.4
lea rdx, str.Unable_to_negotiate_SOCKS5_GSS_API_context.
jmp 0x1400f85cd
cmp al, 1
setne cl
or r13b, cl
test r13b, 1
jne 0x1400f8d0a
lea rdx, str.SOCKS5_GSSAPI_per_message_authentication_is_not_supported.
jmp 0x1400f85cd
cmp al, 0xff
je 0x1400f8d1a
lea rdx, str.Undocumented_SOCKS5_mode_attempted_to_be_used_by_server.
jmp 0x1400f85cd
lea rdx, str.No_authentication_method_was_acceptable.
jmp 0x1400f85cd