Function at 0x507580
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1c0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [esp + 0x1b8], eax
mov esi, dword [edx + 0xc]
mov eax, dword [edx + 0x10]
mov eax, dword [esi + eax*4 + 0x128]
mov dword [esp + 4], eax
mov dword [esp + 0x80], 0
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x8c], 0xffffffff
mov eax, dword [ecx + 0x5a8]
test eax, eax
mov ebx, str.rcmd
cmovne ebx, eax
push 0x2f
push ebx
call fcn.00654930
add esp, 8
test eax, eax
je 0x507740
mov ecx, dword [fcn.00666700]
call dword [0x7a29f4]
push ebx
call ecx
add esp, 4
mov edi, eax
test eax, eax
je 0x507c55
mov dword [esp], edi
xor esi, esi
dec esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], esi
lea ecx, [esp + 0x74]
mov dword [ecx], esi
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
lea edx, [esp + 0x68]
mov dword [edx], esi
mov dword [edx + 4], esi
mov dword [edx + 8], esi
lea eax, [esp + 0x90]
mov dword [eax + 0x20], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x10]
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [esp + 0xc], esi
xor esi, esi
inc esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], edx
mov ebx, 2
mov dword [edx + 4], ebx
xor eax, eax
mov dword [edx], eax
mov dword [edx + 8], eax
mov dword [esp + 0x54], esi
mov dword [ecx + 4], ebx
pcmpeqd xmm0, xmm0
lea edx, [esp + 0x90]
movdqa xmmword [edx], xmm0
movdqa xmmword [edx + 0x10], xmm0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x50], eax
mov dword [ecx], eax
mov dword [ecx + 8], eax
mov dword [esp + 0x48], 3
mov dword [esp + 0x4c], edx
mov dword [esp + 0x44], eax
lea esi, [esp + 0x28]
mov dword [esi], eax
mov dword [esi + 4], eax
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0xc]
call dword [0x7a29f4]
sub esp, 0x24
mov dword [esp + 0x20], edi
xor edi, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
movd xmm0, dword [0x73d810]
movdqu xmmword [esp + 8], xmm0
mov dword [esp], edi
mov dword [esp + 4], str.Kerberos
call ecx
mov esi, eax
add eax, 0xfff6fcee
cmp eax, 3
jae 0x5077aa
push 0
push dword [esp + 8]
call fcn.004fe470
add esp, 8
xor ebx, ebx
jmp 0x5079cb
push ebx
call fcn.0066e590
add esp, 4
mov edi, eax
mov eax, dword [fcn.00546590]
mov dword [esp + 8], eax
push dword [esi + 0x78]
call fcn.0066e590
add esp, 4
mov dword [esp], edi
add edi, eax
add edi, 2
mov ecx, dword [esp + 8]
call dword [0x7a29f4]
push edi
call ecx
add esp, 4
test eax, eax
je 0x507c55
mov edi, eax
add dword [esp], 2
mov esi, dword [esi + 0x78]
push esi
call fcn.0066e590
add esp, 4
add eax, dword [esp]
push esi
push ebx
push str._s__s
push eax
push edi
call fcn.004f8ae0
add esp, 0x14
jmp 0x507613
test esi, esi
je 0x50772b
mov edi, 0x100
lea ebx, [esp + 0xb8]
push edi
push 0xff
push ebx
call fcn.006547d0
add esp, 0xc
push edi
push ebx
push esi
call fcn.00509830
add esp, 0xc
push eax
push str.AcquireCredentialsHandle
push str.SSPI_error:__s_failed:__s
mov esi, dword [ebp + 0xc]
push esi
call fcn.004e7570
add esp, 0x10
push str.Failed_to_acquire_credentials.
push esi
call fcn.004e7570
add esp, 8
mov ecx, dword [fcn.005464a0]
call dword [0x7a29f4]
push dword [esp]
call ecx
add esp, 4
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x10]
call dword [0x7a29f4]
lea eax, [esp + 0x28]
jmp 0x507c0d
mov eax, dword [esp + 0x74]
test eax, eax
je 0x5078bf
mov word [esp + 0x8c], 0x101
movzx eax, ax
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x8e], ax
lea esi, [esp + 0x88]
push esi
push 4
lea eax, [esp + 0x94]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 4]
call fcn.004dfe60
add esp, 0x14
cmp dword [esp + 0x88], 0
jne 0x507b20
cmp eax, 4
jne 0x507b20
push esi
push dword [esp + 0x78]
push dword [esp + 0x84]
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 4]
call fcn.004dfe60
add esp, 0x14
cmp dword [esp + 0x88], 0
jne 0x507b19
cmp dword [esp + 0x74], eax
jne 0x507b19
mov esi, dword [esp + 0x7c]
test esi, esi
je 0x5078e0
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
call dword [0x7a29f4]
push esi
call ecx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x74], 0
mov esi, dword [esp + 0x70]
test esi, esi
je 0x507909
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
call dword [0x7a29f4]
push esi
call ecx
mov dword [esp + 0x70], 0
mov dword [esp + 0x68], 0
cmp ebx, 0x90312
jne 0x507d79
lea eax, [esp + 0x84]
push eax
push 4
lea eax, [esp + 0x94]
push eax
mov ebx, dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call fcn.00505d60
add esp, 0x14
test eax, eax
jne 0x507b06
cmp dword [esp + 0x84], 4
jne 0x507b06
movzx eax, byte [esp + 0x8d]
cmp eax, 1
jne 0x507b9e
movzx eax, word [esp + 0x8e]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx esi, ax
mov dword [esp + 0x68], esi
mov ecx, dword [fcn.00546590]
call dword [0x7a29f4]
push esi
call ecx
add esp, 4
mov dword [esp + 0x70], eax
test eax, eax
je 0x507c17
lea ecx, [esp + 0x84]
push ecx
push dword [esp + 0x6c]
push eax
push ebx
push dword [ebp + 8]
call fcn.00505d60
add esp, 0x14
test eax, eax
jne 0x507b5f
lea ebx, [esp + 0x20]
cmp dword [esp + 0x84], esi
jne 0x507b5f
push dword [esp]
call fcn.004e6c90
add esp, 4
test eax, eax
je 0x507c55
mov esi, eax
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x18]
call dword [0x7a29f4]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x2c]
push eax
push edi
lea eax, [esp + 0x70]
push eax
push 0x10
push edi
push 0x116
push esi
push ebx
lea eax, [esp + 0x54]
push eax
call ecx
mov ebx, eax
push esi
call fcn.005464a0
add esp, 4
mov esi, dword [esp + 0x70]
test esi, esi
je 0x507a48
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
call dword [0x7a29f4]
push esi
call ecx
mov dword [esp + 0x70], edi
mov dword [esp + 0x68], edi
lea eax, [ebx - 0x90312]
cmp eax, 3
jb 0x507828
test ebx, ebx
je 0x507828
mov esi, 0x100
lea edi, [esp + 0xb8]
push esi
push 0xff
push edi
call fcn.006547d0
add esp, 0xc
push esi
push edi
push ebx
call fcn.00509830
add esp, 0xc
push eax
push str.InitializeSecurityContext
push str.SSPI_error:__s_failed:__s
mov edi, dword [ebp + 0xc]
push edi
call fcn.004e7570
add esp, 0x10
mov ecx, dword [fcn.005464a0]
call dword [0x7a29f4]
push dword [esp]
call ecx
add esp, 4
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x10]
call dword [0x7a29f4]
lea eax, [esp + 0x28]
push eax
call ecx
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x24]
call dword [0x7a29f4]
lea eax, [esp + 0x20]
push eax
call ecx
mov esi, dword [esp + 0x70]
test esi, esi
je 0x507af3
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
call dword [0x7a29f4]
push esi
call ecx
push str.Failed_to_initialise_security_context.
push edi
call fcn.004e7570
add esp, 8
jmp 0x507c10
push str.Failed_to_receive_SSPI_authentication_response.
push ebx
call fcn.004e7570
add esp, 8
jmp 0x507bd2
push str.Failed_to_send_SSPI_authentication_token.
jmp 0x507b25
push str.Failed_to_send_SSPI_authentication_request.
push dword [ebp + 0xc]
call fcn.004e7570
add esp, 8
mov ecx, dword [fcn.005464a0]
call dword [0x7a29f4]
push dword [esp]
call ecx
add esp, 4
mov esi, dword [esp + 0x7c]
test esi, esi
je 0x507b83
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
call dword [0x7a29f4]
push esi
call ecx
jmp 0x507b83
push str.Failed_to_receive_SSPI_authentication_token.
push dword [ebp + 0xc]
call fcn.004e7570
add esp, 8
mov ecx, dword [fcn.005464a0]
call dword [0x7a29f4]
push dword [esp]
call ecx
add esp, 4
mov esi, dword [esp + 0x70]
test esi, esi
je 0x507be6
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
call dword [0x7a29f4]
push esi
call ecx
jmp 0x507be6
cmp eax, 0xff
je 0x507bb6
movzx ecx, byte [esp + 0x8c]
push eax
push ecx
push str.Invalid_SSPI_authentication_response_type___u__u_.
jmp 0x507bc9
movzx eax, byte [esp + 0x8c]
push 0xff
push eax
push str.User_was_rejected_by_the_SOCKS5_server___u__u_.
push ebx
call fcn.004e7570
add esp, 0x10
mov ecx, dword [fcn.005464a0]
call dword [0x7a29f4]
push dword [esp]
call ecx
add esp, 4
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x10]
call dword [0x7a29f4]
lea eax, [esp + 0x28]
push eax
call ecx
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x24]
call dword [0x7a29f4]
lea eax, [esp + 0x20]
push eax
call ecx
mov esi, 7
jmp 0x507c5a
mov ecx, dword [fcn.005464a0]
call dword [0x7a29f4]
push dword [esp]
call ecx
add esp, 4
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x10]
call dword [0x7a29f4]
lea eax, [esp + 0x28]
push eax
call ecx
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x24]
call dword [0x7a29f4]
lea eax, [esp + 0x20]
push eax
call ecx
mov esi, 0x1b
mov ecx, dword [esp + 0x1b8]
xor ecx, ebp
call fcn.00650d60
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0x98]
call dword [0x7a29f4]
push esi
call ecx
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x24]
call dword [0x7a29f4]
push edi
jmp 0x507c53
test esi, esi
je 0x507e92
mov ebx, 0x100
lea edi, [esp + 0xb8]
push ebx
push 0xff
push edi
call fcn.006547d0
add esp, 0xc
push ebx
push edi
push esi
call fcn.00509830
add esp, 0xc
push eax
push str.QueryContextAttributes
push str.SSPI_error:__s_failed:__s
mov esi, dword [ebp + 0xc]
push esi
call fcn.004e7570
add esp, 0x10
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x24]
call dword [0x7a29f4]
lea eax, [esp + 0x20]
push eax
call ecx
push str.Failed_to_query_security_context_attributes.
push esi
jmp 0x507af9
test edi, edi
je 0x507dce
mov esi, 0x100
lea ebx, [esp + 0xb8]
push esi
push 0xff
push ebx
call fcn.006547d0
add esp, 0xc
push esi
push ebx
push edi
call fcn.00509830
add esp, 0xc
push eax
push str.QueryCredentialAttributes
push str.SSPI_error:__s_failed:__s
mov edi, dword [ebp + 0xc]
push edi
call fcn.004e7570
add esp, 0x10
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x24]
call dword [0x7a29f4]
lea eax, [esp + 0x20]
push eax
call ecx
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0x1c]
call dword [0x7a29f4]
push esi
call ecx
push str.Failed_to_determine_user_name.
jmp 0x507af8
mov ecx, dword [fcn.005464a0]
call dword [0x7a29f4]
push dword [esp]
call ecx
add esp, 4
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 8]
call dword [0x7a29f4]
lea eax, [esp + 0x1c]
push eax
push 1
lea esi, [esp + 0x30]
push esi
call ecx
mov edi, eax
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x10]
call dword [0x7a29f4]
push esi
call ecx
lea eax, [edi - 0x90312]
cmp eax, 3
mov ebx, dword [ebp + 0xc]
jae 0x507d00
test ebx, ebx
je 0x507ded
cmp byte [ebx + 0x683], 1
jne 0x507ded
push dword [esp + 0x1c]
push str.SOCKS5_server_authenticated_user__s_with_GSS_API.
push ebx
call fcn.004e7630
add esp, 0xc
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0x1c]
call dword [0x7a29f4]
push esi
call ecx
mov ecx, dword [esp + 0x80]
bt ecx, 0x10
mov edx, str.confidentiality
mov eax, str.integrity
cmovae eax, edx
test cl, 0x10
cmovne eax, edx
mov word [esp + 0x8c], 0x201
test ebx, ebx
je 0x507e54
cmp byte [ebx + 0x683], 1
jne 0x507e54
test ecx, 0x10010
mov ecx, 0x738fd0
cmove eax, ecx
push eax
push str.SOCKS5_server_supports_GSS_API__s_data_protection.
push ebx
call fcn.004e7630
add esp, 0xc
mov edi, ebx
xor ebx, ebx
inc ebx
cmp byte [edi + 0x68d], 0
jne 0x50806e
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x2c]
call dword [0x7a29f4]
lea eax, [esp + 0x30]
lea edi, [esp + 0x20]
push eax
push 0
push edi
call ecx
mov esi, eax
add eax, 0xfff6fcee
cmp eax, 3
jae 0x507c9b
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], 2
mov ecx, dword [fcn.00546590]
call dword [0x7a29f4]
push esi
call ecx
add esp, 4
mov dword [esp + 0x98], eax
test eax, eax
je 0x507c8a
mov dword [esp + 0x9c], ebx
mov ecx, dword [fcn.00546590]
call dword [0x7a29f4]
push ebx
call ecx
add esp, 4
mov dword [esp + 0xa4], eax
test eax, eax
je 0x507c72
mov byte [eax], 0
mov dword [esp + 0xac], 9
mov esi, dword [esp + 0x38]
mov dword [esp + 0xa8], esi
mov ecx, dword [fcn.00546590]
call dword [0x7a29f4]
push esi
call ecx
add esp, 4
mov dword [esp + 0xb0], eax
mov ecx, dword [0x7b1670]
test eax, eax
je 0x508215
mov ecx, dword [ecx + 0x64]
call dword [0x7a29f4]
lea eax, [esp + 0x44]
push 0
push eax
push reloc.WS2_32.dll_accept
push edi
call ecx
mov esi, eax
add eax, 0xfff6fcee
cmp eax, 3
jae 0x508280
mov esi, dword [esp + 0x9c]
add esi, dword [esp + 0x90]
add esi, dword [esp + 0xa8]
mov dword [esp + 0x74], esi
mov ecx, dword [fcn.00546590]
call dword [0x7a29f4]
push esi
call ecx
add esp, 4
mov dword [esp + 0x7c], eax
test eax, eax
je 0x50823c
push dword [esp + 0x90]
push dword [esp + 0x9c]
push eax
call fcn.00654250
add esp, 0xc
mov eax, dword [esp + 0x7c]
add eax, dword [esp + 0x90]
push dword [esp + 0x9c]
push dword [esp + 0xa8]
push eax
call fcn.00654250
add esp, 0xc
mov eax, dword [esp + 0x7c]
add eax, dword [esp + 0x90]
add eax, dword [esp + 0x9c]
push dword [esp + 0xa8]
push dword [esp + 0xb4]
push eax
call fcn.00654250
add esp, 0xc
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0x98]
call dword [0x7a29f4]
push esi
call ecx
xor esi, esi
mov dword [esp + 0x98], esi
mov dword [esp + 0x90], esi
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
mov edi, dword [esp + 0xa4]
call dword [0x7a29f4]
push edi
call ecx
mov dword [esp + 0xa4], esi
mov dword [esp + 0x9c], esi
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
mov edi, dword [esp + 0xb0]
call dword [0x7a29f4]
push edi
call ecx
mov dword [esp + 0xb0], esi
mov dword [esp + 0xa8], esi
movzx ebx, word [esp + 0x74]
mov edi, dword [ebp + 0xc]
movzx eax, bx
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x8e], ax
lea esi, [esp + 0x88]
push esi
push 4
lea eax, [esp + 0x94]
push eax
push edi
mov eax, dword [ebp + 8]
push dword [eax + 4]
call fcn.004dfe60
add esp, 0x14
cmp dword [esp + 0x88], 0
jne 0x5081ac
cmp eax, 4
jne 0x5081ac
cmp byte [edi + 0x68d], 1
je 0x50810f
push esi
push dword [esp + 0x78]
push dword [esp + 0x84]
push edi
mov eax, dword [ebp + 8]
push dword [eax + 4]
call fcn.004dfe60
add esp, 0x14
cmp dword [esp + 0x88], 0
jne 0x5081a5
cmp dword [esp + 0x74], eax
jne 0x5081a5
mov esi, dword [esp + 0x7c]
test esi, esi
je 0x508148
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
call dword [0x7a29f4]
push esi
call ecx
jmp 0x508148
mov byte [esp + 0x8c], 0
push esi
push 1
lea eax, [esp + 0x94]
push eax
push edi
mov eax, dword [ebp + 8]
push dword [eax + 4]
call fcn.004dfe60
add esp, 0x14
cmp dword [esp + 0x88], 0
jne 0x5081fb
cmp eax, 1
jne 0x5081fb
lea eax, [esp + 0x84]
push eax
push 4
lea eax, [esp + 0x94]
push eax
push edi
push dword [ebp + 8]
call fcn.00505d60
add esp, 0x14
test eax, eax
jne 0x508202
cmp dword [esp + 0x84], 4
jne 0x508202
movzx eax, byte [esp + 0x8d]
cmp eax, 2
je 0x50832c
cmp eax, 0xff
je 0x5081da
movzx ecx, byte [esp + 0x8c]
push eax
push ecx
push str.Invalid_SSPI_encryption_response_type___u__u_.
jmp 0x5081ed
push str.Failed_to_send_SSPI_encryption_type.
jmp 0x5081b1
push str.Failed_to_send_SSPI_encryption_request.
push edi
call fcn.004e7570
add esp, 8
mov esi, dword [esp + 0x7c]
test esi, esi
je 0x507bfb
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
call dword [0x7a29f4]
push esi
jmp 0x507bf9
movzx eax, byte [esp + 0x8c]
push 0xff
push eax
push str.User_was_rejected_by_the_SOCKS5_server___u__u_.
push edi
call fcn.004e7570
add esp, 0x10
jmp 0x507bfb
push str.Failed_to_send_SSPI_encryption_type.
jmp 0x508207
push str.Failed_to_receive_SSPI_encryption_response.
push edi
call fcn.004e7570
add esp, 8
jmp 0x507bfb
mov ecx, dword [ecx + 0x40]
mov esi, dword [esp + 0x98]
call dword [0x7a29f4]
push esi
call ecx
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0xa4]
jmp 0x507c81
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0x98]
call dword [0x7a29f4]
push esi
call ecx
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0xa4]
call dword [0x7a29f4]
push esi
call ecx
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0xb0]
jmp 0x507c81
test esi, esi
je 0x507f59
mov edi, 0x100
lea ebx, [esp + 0xb8]
push edi
push 0xff
push ebx
call fcn.006547d0
add esp, 0xc
push edi
push ebx
push esi
call fcn.00509830
add esp, 0xc
push eax
push str.EncryptMessage
push str.SSPI_error:__s_failed:__s
mov edi, dword [ebp + 0xc]
push edi
call fcn.004e7570
add esp, 0x10
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0x98]
call dword [0x7a29f4]
push esi
call ecx
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0xa4]
call dword [0x7a29f4]
push esi
call ecx
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0xb0]
call dword [0x7a29f4]
push esi
call ecx
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x24]
call dword [0x7a29f4]
lea eax, [esp + 0x20]
push eax
call ecx
push str.Failed_to_query_security_context_attributes.
jmp 0x507af8
movzx eax, word [esp + 0x8e]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx esi, ax
mov dword [esp + 0x90], esi
mov ecx, dword [fcn.00546590]
call dword [0x7a29f4]
push esi
call ecx
add esp, 4
mov dword [esp + 0x98], eax
test eax, eax
je 0x507c40
lea ecx, [esp + 0x84]
push ecx
push dword [esp + 0x94]
push eax
push edi
push dword [ebp + 8]
call fcn.00505d60
add esp, 0x14
test eax, eax
jne 0x50842e
cmp dword [esp + 0x84], esi
jne 0x50842e
cmp byte [edi + 0x68d], 0
je 0x508461
mov eax, dword [esp + 0x90]
cmp eax, 1
jne 0x508450
mov esi, dword [esp + 0x98]
mov al, byte [esi]
mov byte [esp + 0x8c], al
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
call dword [0x7a29f4]
push esi
call ecx
push 1
push dword [esp + 8]
call fcn.004fe470
add esp, 8
xor esi, esi
test edi, edi
je 0x507c5a
cmp byte [edi + 0x683], 1
jne 0x507c5a
mov al, byte [esp + 0x8c]
cmp al, 1
mov ecx, str._GSS_API_integrity
mov edx, str._GSS_API_confidentiality
cmove edx, ecx
test al, al
mov eax, str.out_GSS_API_data
cmovne eax, edx
push eax
push str.SOCKS5_access_with_s_protection_granted.
push edi
call fcn.004e7630
add esp, 0xc
jmp 0x507c5a
push str.Failed_to_receive_SSPI_encryption_type.
push edi
call fcn.004e7570
add esp, 8
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0x98]
jmp 0x5081ce
push eax
push str.Invalid_SSPI_encryption_response_length___lu_.
push edi
call fcn.004e7570
add esp, 0xc
jmp 0x50843c
lea esi, [esp + 0x44]
mov dword [esi + 4], 2
mov dword [esp + 0x94], 0xa
mov dword [esp + 0xa0], 1
xor ebx, ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa4], ebx
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x68]
call dword [0x7a29f4]
lea eax, [esp + 0xc]
lea edi, [esp + 0x20]
push eax
push ebx
push esi
push edi
call ecx
mov esi, eax
add eax, 0xfff6fcee
cmp eax, 3
jae 0x508512
mov eax, dword [esp + 0x9c]
cmp eax, 1
jne 0x5085ac
mov esi, dword [esp + 0x98]
mov eax, dword [esp + 0xa4]
mov al, byte [eax]
mov byte [esp + 0x8c], al
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
call dword [0x7a29f4]
push esi
call ecx
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0xa4]
call dword [0x7a29f4]
push esi
call ecx
mov edi, dword [ebp + 0xc]
jmp 0x5083d5
test esi, esi
je 0x5084ba
mov ebx, 0x100
lea edi, [esp + 0xb8]
push ebx
push 0xff
push edi
call fcn.006547d0
add esp, 0xc
push ebx
push edi
push esi
call fcn.00509830
add esp, 0xc
push eax
push str.DecryptMessage
push str.SSPI_error:__s_failed:__s
push dword [ebp + 0xc]
call fcn.004e7570
add esp, 0x10
mov esi, dword [esp + 0x98]
test esi, esi
je 0x50856e
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
call dword [0x7a29f4]
push esi
call ecx
mov esi, dword [esp + 0xa4]
test esi, esi
je 0x50858a
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
call dword [0x7a29f4]
push esi
call ecx
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x24]
call dword [0x7a29f4]
lea eax, [esp + 0x20]
push eax
call ecx
push str.Failed_to_query_security_context_attributes.
push dword [ebp + 0xc]
jmp 0x507af9
push eax
push str.Invalid_SSPI_encryption_response_length___lu_.
push dword [ebp + 0xc]
call fcn.004e7570
add esp, 0xc
mov esi, dword [esp + 0x98]
test esi, esi
je 0x5085d9
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
call dword [0x7a29f4]
push esi
call ecx
mov esi, dword [esp + 0xa4]
test esi, esi
je 0x5085f5
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x40]
call dword [0x7a29f4]
push esi
call ecx
mov eax, dword [0x7b1670]
mov ecx, dword [eax + 0x24]
call dword [0x7a29f4]
push edi
jmp 0x507c0e