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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1d0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [0x7aa024]
xor ecx, ebp
mov dword [esp + 0x1c8], ecx
mov esi, dword [edx + 0xc]
mov eax, dword [esi + eax*4 + 0x148]
mov dword [esp + 0x10], eax
xor eax, eax
dec eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x94], 0
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0xc0], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0xb0], xmm0
movdqa xmmword [esp + 0xa0], xmm0
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
movdqa xmmword [esp + 0x40], xmm0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x610]
test eax, eax
mov ebx, str.rcmd
cmovne ebx, eax
push 0x2f
push ebx
call fcn.00650760
add esp, 8
test eax, eax
je 0x51b094
mov ecx, dword [fcn.00663270]
call dword [section..00cfg]
push ebx
call ecx
add esp, 4
mov esi, eax
test eax, eax
jne 0x51b10c
jmp 0x51b70a
push ebx
call fcn.0066b230
add esp, 4
mov ecx, esi
mov esi, eax
mov edi, dword [fcn.005f2b30]
mov dword [esp + 0x14], ecx
push dword [ecx + 0x8c]
call fcn.0066b230
add esp, 4
add eax, esi
add eax, 2
mov dword [esp + 0xc], eax
mov ecx, edi
call dword [section..00cfg]
push dword [esp + 0xc]
call edi
add esp, 4
test eax, eax
je 0x51b70a
add esi, 2
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0x8c]
push edi
call fcn.0066b230
add esp, 4
add eax, esi
push edi
mov esi, dword [esp + 0x10]
push ebx
push str._s__s
push eax
push esi
call fcn.0050d0c0
add esp, 0x14
mov dword [esp + 0xc], esi
xor eax, eax
inc eax
mov dword [esp + 0x74], eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x78], ecx
xor edi, edi
mov dword [esp + 0x70], edi
mov edx, 2
mov dword [ecx + 4], edx
mov dword [ecx], edi
mov dword [ecx + 8], edi
mov dword [esp + 0x68], eax
lea eax, [esp + 0x88]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x64], edi
mov dword [eax + 4], edx
mov dword [eax], edi
mov dword [eax + 8], edi
mov dword [esp + 0x5c], 3
lea eax, [esp + 0xa0]
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], edi
lea esi, [esp + 0x38]
mov dword [esi], edi
mov dword [esi + 4], edi
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0xc]
call dword [section..00cfg]
sub esp, 0x24
lea eax, [esp + 0x44]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
movdqa xmm0, xmmword [0x7524d0]
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
jb 0x51b1bd
test esi, esi
jne 0x51b43a
push 0
push dword [esp + 0x14]
call fcn.005127d0
add esp, 8
xor ebx, ebx
push dword [esp + 0xc]
call fcn.004fb040
add esp, 4
test eax, eax
je 0x51b70a
mov esi, eax
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x18]
call dword [section..00cfg]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x3c]
push eax
push edi
lea eax, [esp + 0x84]
push eax
push 0x10
push edi
push 0x116
push esi
push ebx
lea eax, [esp + 0x64]
push eax
call ecx
mov ebx, eax
push esi
call fcn.005f2b80
add esp, 4
mov esi, dword [esp + 0x84]
test esi, esi
je 0x51b254
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
call dword [section..00cfg]
push esi
call ecx
mov dword [esp + 0x84], edi
mov dword [esp + 0x7c], edi
lea eax, [ebx - 0x90312]
cmp eax, 3
jb 0x51b267
test ebx, ebx
jne 0x51b9dc
mov eax, dword [esp + 0x88]
test eax, eax
je 0x51b2fa
mov word [esp + 0x18], 0x101
movzx eax, ax
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1a], ax
lea esi, [esp + 0x98]
push esi
push 4
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x1c]
push dword [ebp + 0xc]
call fcn.00515520
add esp, 0x14
test eax, eax
jne 0x51b714
cmp dword [esp + 0x98], 4
jne 0x51b714
push esi
push dword [esp + 0x8c]
push dword [esp + 0x98]
push dword [esp + 0x1c]
push dword [ebp + 0xc]
call fcn.00515520
add esp, 0x14
test eax, eax
jne 0x51b4d1
mov eax, dword [esp + 0x88]
cmp eax, dword [esp + 0x98]
jne 0x51b4d1
mov esi, dword [esp + 0x90]
test esi, esi
je 0x51b321
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
call dword [section..00cfg]
push esi
call ecx
mov dword [esp + 0x90], 0
mov dword [esp + 0x88], 0
mov esi, dword [esp + 0x84]
test esi, esi
je 0x51b353
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
call dword [section..00cfg]
push esi
call ecx
mov dword [esp + 0x84], 0
mov dword [esp + 0x7c], 0
cmp ebx, 0x90312
jne 0x51b4db
lea eax, [esp + 0x9c]
push eax
push 4
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x1c]
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.00519d00
add esp, 0x14
test eax, eax
jne 0x51b68c
cmp dword [esp + 0x9c], 4
jne 0x51b68c
movzx eax, byte [esp + 0x19]
cmp eax, 1
jne 0x51b4b1
movzx eax, word [esp + 0x1a]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx esi, ax
mov dword [esp + 0x7c], esi
mov ecx, dword [fcn.005f2b30]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov dword [esp + 0x84], eax
test eax, eax
je 0x51b6cb
lea ecx, [esp + 0x9c]
push ecx
push dword [esp + 0x80]
push eax
push dword [esp + 0x1c]
push ebx
call fcn.00519d00
add esp, 0x14
test eax, eax
jne 0x51b410
lea ebx, [esp + 0x30]
cmp dword [esp + 0x9c], esi
je 0x51b1cd
push str.Failed_to_receive_SSPI_authentication_token.
push dword [ebp + 0xc]
call fcn.00515170
add esp, 8
mov ecx, dword [fcn.005f2b80]
call dword [section..00cfg]
push dword [esp + 0xc]
call ecx
add esp, 4
jmp 0x51b755
mov edi, 0x100
lea ebx, [esp + 0xc8]
push edi
push 0xff
push ebx
call fcn.00650600
add esp, 0xc
push edi
push ebx
push esi
call fcn.0051d160
add esp, 0xc
push eax
push str.AcquireCredentialsHandle
push str.SSPI_error:__s_failed:__s
mov esi, dword [ebp + 0xc]
push esi
call fcn.00515170
add esp, 0x10
push str.Failed_to_acquire_credentials.
push esi
call fcn.00515170
add esp, 8
mov ecx, dword [fcn.005f2b80]
call dword [section..00cfg]
push dword [esp + 0xc]
call ecx
add esp, 4
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x10]
call dword [section..00cfg]
lea eax, [esp + 0x38]
jmp 0x51b798
cmp eax, 0xff
jne 0x51b69c
movzx eax, byte [esp + 0x18]
push 0xff
push eax
push str.User_was_rejected_by_the_SOCKS5_server___u__u_.
jmp 0x51b6a8
push str.Failed_to_send_SSPI_authentication_token.
jmp 0x51b719
mov ecx, dword [fcn.005f2b80]
call dword [section..00cfg]
push dword [esp + 0xc]
call ecx
add esp, 4
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 8]
call dword [section..00cfg]
lea eax, [esp + 0x2c]
push eax
push 1
lea esi, [esp + 0x40]
push esi
call ecx
mov edi, eax
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x10]
call dword [section..00cfg]
push esi
call ecx
lea eax, [edi - 0x90312]
cmp eax, 3
mov ebx, dword [ebp + 0xc]
jb 0x51b535
test edi, edi
jne 0x51ba85
push dword [esp + 0x2c]
push str.SOCKS5_server_authenticated_user__s_with_GSS_API.
push ebx
call fcn.00514fc0
add esp, 0xc
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0x2c]
call dword [section..00cfg]
push esi
call ecx
mov eax, dword [esp + 0x94]
bt eax, 0x10
mov ecx, str.confidentiality
mov edx, str.integrity
cmovae edx, ecx
mov word [esp + 0x18], 0x201
test al, 0x10
cmovne edx, ecx
test eax, 0x10010
mov eax, 0x7457f0
cmovne eax, edx
push eax
push str.SOCKS5_server_supports_GSS_API__s_data_protection.
push ebx
call fcn.00514fc0
add esp, 0xc
mov edi, ebx
xor ebx, ebx
inc ebx
cmp byte [edi + 0x71c], 0
je 0x51b7b8
movzx eax, bx
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1a], ax
lea esi, [esp + 0x98]
push esi
push 4
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x1c]
push edi
call fcn.00515520
add esp, 0x14
test eax, eax
jne 0x51ba7b
cmp dword [esp + 0x98], 4
jne 0x51ba7b
cmp byte [edi + 0x71c], 0
je 0x51baff
mov byte [esp + 0x18], 0
push esi
push 1
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x1c]
push edi
call fcn.00515520
add esp, 0x14
test eax, eax
jne 0x51bb54
cmp dword [esp + 0x98], 1
jne 0x51bb54
lea eax, [esp + 0x9c]
push eax
push 4
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x1c]
push edi
call fcn.00519d00
add esp, 0x14
test eax, eax
jne 0x51bbfd
cmp dword [esp + 0x9c], 4
jne 0x51bbfd
movzx eax, byte [esp + 0x19]
cmp eax, 2
je 0x51bc90
cmp eax, 0xff
jne 0x51bd39
movzx eax, byte [esp + 0x18]
push 0xff
push eax
push str.User_was_rejected_by_the_SOCKS5_server___u__u_.
jmp 0x51bd45
push str.Failed_to_receive_SSPI_authentication_response.
push ebx
call fcn.00515170
add esp, 8
jmp 0x51b6b1
movzx ecx, byte [esp + 0x18]
push eax
push ecx
push str.Invalid_SSPI_authentication_response_type___u__u_.
push ebx
call fcn.00515170
add esp, 0x10
mov ecx, dword [fcn.005f2b80]
call dword [section..00cfg]
push dword [esp + 0xc]
call ecx
add esp, 4
jmp 0x51b771
mov ecx, dword [fcn.005f2b80]
call dword [section..00cfg]
push dword [esp + 0xc]
call ecx
add esp, 4
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x10]
call dword [section..00cfg]
lea eax, [esp + 0x38]
push eax
call ecx
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x24]
call dword [section..00cfg]
lea eax, [esp + 0x30]
push eax
call ecx
mov esi, 0x1b
jmp 0x51b7a0
push str.Failed_to_send_SSPI_authentication_request.
push dword [ebp + 0xc]
call fcn.00515170
add esp, 8
mov ecx, dword [fcn.005f2b80]
call dword [section..00cfg]
push dword [esp + 0xc]
call ecx
add esp, 4
mov esi, dword [esp + 0x90]
test esi, esi
je 0x51b755
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
call dword [section..00cfg]
push esi
call ecx
mov esi, dword [esp + 0x84]
test esi, esi
je 0x51b771
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
call dword [section..00cfg]
push esi
call ecx
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x10]
call dword [section..00cfg]
lea eax, [esp + 0x38]
push eax
call ecx
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x24]
call dword [section..00cfg]
lea eax, [esp + 0x30]
push eax
call ecx
mov esi, 7
mov ecx, dword [esp + 0x1c8]
xor ecx, ebp
call fcn.0064d372
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x2c]
call dword [section..00cfg]
lea eax, [esp + 0x40]
lea edi, [esp + 0x30]
push eax
push 0
push edi
call ecx
mov esi, eax
add eax, 0xfff6fcee
cmp eax, 3
jb 0x51b7e8
test esi, esi
jne 0x51bb8f
mov esi, dword [esp + 0x4c]
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], 2
mov ecx, dword [fcn.005f2b30]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov dword [esp + 0xa8], eax
test eax, eax
je 0x51bc7c
mov dword [esp + 0xac], ebx
mov ecx, dword [fcn.005f2b30]
call dword [section..00cfg]
push ebx
call ecx
add esp, 4
mov dword [esp + 0xb4], eax
test eax, eax
je 0x51bbec
mov byte [eax], 0
mov dword [esp + 0xbc], 9
mov esi, dword [esp + 0x48]
mov dword [esp + 0xb8], esi
mov ecx, dword [fcn.005f2b30]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov dword [esp + 0xc0], eax
mov ecx, dword [0x7ba8b8]
test eax, eax
je 0x51bc10
mov ecx, dword [ecx + 0x64]
call dword [section..00cfg]
lea eax, [esp + 0x58]
push 0
push eax
push reloc.WS2_32.dll_accept
push edi
call ecx
mov esi, eax
add eax, 0xfff6fcee
cmp eax, 3
jb 0x51b8b3
test esi, esi
jne 0x51bd53
mov esi, dword [esp + 0xac]
add esi, dword [esp + 0xa0]
add esi, dword [esp + 0xb8]
mov dword [esp + 0x88], esi
mov ecx, dword [fcn.005f2b30]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov dword [esp + 0x90], eax
test eax, eax
je 0x51bc34
push dword [esp + 0xa0]
push dword [esp + 0xac]
push eax
call fcn.00650080
add esp, 0xc
mov eax, dword [esp + 0x90]
add eax, dword [esp + 0xa0]
push dword [esp + 0xac]
push dword [esp + 0xb8]
push eax
call fcn.00650080
add esp, 0xc
mov eax, dword [esp + 0x90]
add eax, dword [esp + 0xa0]
add eax, dword [esp + 0xac]
push dword [esp + 0xb8]
push dword [esp + 0xc4]
push eax
call fcn.00650080
add esp, 0xc
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0xa8]
call dword [section..00cfg]
push esi
call ecx
xor esi, esi
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa0], esi
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
mov edi, dword [esp + 0xb4]
call dword [section..00cfg]
push edi
call ecx
mov dword [esp + 0xb4], esi
mov dword [esp + 0xac], esi
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
mov edi, dword [esp + 0xc0]
call dword [section..00cfg]
push edi
call ecx
mov dword [esp + 0xc0], esi
mov dword [esp + 0xb8], esi
movzx ebx, word [esp + 0x88]
mov edi, dword [ebp + 0xc]
jmp 0x51b5ae
mov esi, 0x100
lea edi, [esp + 0xc8]
push esi
push 0xff
push edi
call fcn.00650600
add esp, 0xc
push esi
push edi
push ebx
call fcn.0051d160
add esp, 0xc
push eax
push str.InitializeSecurityContext
push str.SSPI_error:__s_failed:__s
mov edi, dword [ebp + 0xc]
push edi
call fcn.00515170
add esp, 0x10
mov ecx, dword [fcn.005f2b80]
call dword [section..00cfg]
push dword [esp + 0xc]
call ecx
add esp, 4
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x10]
call dword [section..00cfg]
lea eax, [esp + 0x38]
push eax
call ecx
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x24]
call dword [section..00cfg]
lea eax, [esp + 0x30]
push eax
call ecx
mov esi, dword [esp + 0x84]
test esi, esi
je 0x51ba74
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
call dword [section..00cfg]
push esi
call ecx
push str.Failed_to_initialise_security_context.
jmp 0x51baf1
push str.Failed_to_send_SSPI_encryption_request.
jmp 0x51bb63
mov esi, 0x100
lea ebx, [esp + 0xc8]
push esi
push 0xff
push ebx
call fcn.00650600
add esp, 0xc
push esi
push ebx
push edi
call fcn.0051d160
add esp, 0xc
push eax
push str.QueryCredentialAttributes
push str.SSPI_error:__s_failed:__s
mov edi, dword [ebp + 0xc]
push edi
call fcn.00515170
add esp, 0x10
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x24]
call dword [section..00cfg]
lea eax, [esp + 0x30]
push eax
call ecx
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0x2c]
call dword [section..00cfg]
push esi
call ecx
push str.Failed_to_determine_user_name.
push edi
call fcn.00515170
add esp, 8
jmp 0x51b79b
push esi
push dword [esp + 0x8c]
push dword [esp + 0x98]
push dword [esp + 0x1c]
push edi
call fcn.00515520
add esp, 0x14
test eax, eax
jne 0x51bb5e
mov eax, dword [esp + 0x88]
cmp eax, dword [esp + 0x98]
jne 0x51bb5e
mov esi, dword [esp + 0x90]
test esi, esi
je 0x51b62c
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
call dword [section..00cfg]
push esi
call ecx
jmp 0x51b62c
push str.Failed_to_send_SSPI_encryption_type.
jmp 0x51bc02
push str.Failed_to_send_SSPI_encryption_type.
push edi
call fcn.00515170
add esp, 8
mov esi, dword [esp + 0x90]
test esi, esi
je 0x51b786
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
call dword [section..00cfg]
push esi
jmp 0x51b784
mov ebx, 0x100
lea edi, [esp + 0xc8]
push ebx
push 0xff
push edi
call fcn.00650600
add esp, 0xc
push ebx
push edi
push esi
call fcn.0051d160
add esp, 0xc
push eax
push str.QueryContextAttributes
push str.SSPI_error:__s_failed:__s
mov esi, dword [ebp + 0xc]
push esi
call fcn.00515170
add esp, 0x10
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x24]
call dword [section..00cfg]
lea eax, [esp + 0x30]
push eax
call ecx
push str.Failed_to_query_security_context_attributes.
push esi
jmp 0x51baf2
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0xa8]
jmp 0x51bc73
push str.Failed_to_receive_SSPI_encryption_response.
push edi
call fcn.00515170
add esp, 8
jmp 0x51b786
mov ecx, dword [ecx + 0x40]
mov esi, dword [esp + 0xa8]
call dword [section..00cfg]
push esi
call ecx
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0xb4]
jmp 0x51bc73
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0xa8]
call dword [section..00cfg]
push esi
call ecx
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0xb4]
call dword [section..00cfg]
push esi
call ecx
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0xc0]
call dword [section..00cfg]
push esi
call ecx
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x24]
call dword [section..00cfg]
push edi
jmp 0x51b708
movzx eax, word [esp + 0x1a]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx esi, ax
mov dword [esp + 0xa0], esi
mov ecx, dword [fcn.005f2b30]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov dword [esp + 0xa8], eax
test eax, eax
je 0x51b6f5
lea ecx, [esp + 0x9c]
push ecx
push dword [esp + 0xa4]
push eax
push dword [esp + 0x1c]
push edi
call fcn.00519d00
add esp, 0x14
test eax, eax
jne 0x51bdf7
cmp dword [esp + 0x9c], esi
jne 0x51bdf7
cmp byte [edi + 0x71c], 0
je 0x51be0a
mov eax, dword [esp + 0xa0]
cmp eax, 1
jne 0x51befc
mov esi, dword [esp + 0xa8]
mov al, byte [esi]
mov byte [esp + 0x18], al
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
call dword [section..00cfg]
push esi
call ecx
jmp 0x51bebb
movzx ecx, byte [esp + 0x18]
push eax
push ecx
push str.Invalid_SSPI_encryption_response_type___u__u_.
push edi
call fcn.00515170
add esp, 0x10
jmp 0x51b786
mov edi, 0x100
lea ebx, [esp + 0xc8]
push edi
push 0xff
push ebx
call fcn.00650600
add esp, 0xc
push edi
push ebx
push esi
call fcn.0051d160
add esp, 0xc
push eax
push str.EncryptMessage
push str.SSPI_error:__s_failed:__s
mov edi, dword [ebp + 0xc]
push edi
call fcn.00515170
add esp, 0x10
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0xa8]
call dword [section..00cfg]
push esi
call ecx
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0xb4]
call dword [section..00cfg]
push esi
call ecx
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0xc0]
call dword [section..00cfg]
push esi
call ecx
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x24]
call dword [section..00cfg]
lea eax, [esp + 0x30]
push eax
call ecx
push str.Failed_to_query_security_context_attributes.
jmp 0x51baf1
push str.Failed_to_receive_SSPI_encryption_type.
push edi
call fcn.00515170
add esp, 8
jmp 0x51bf0b
lea esi, [esp + 0x58]
mov dword [esi + 4], 2
mov dword [esp + 0xa4], 0xa
mov dword [esp + 0xb0], 1
xor ebx, ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb4], ebx
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x68]
call dword [section..00cfg]
lea eax, [esp + 0x1c]
lea edx, [esp + 0x30]
push eax
push ebx
push esi
push edx
call ecx
mov esi, eax
add eax, 0xfff6fcee
cmp eax, 3
jb 0x51be6b
test esi, esi
jne 0x51bf58
mov eax, dword [esp + 0xac]
cmp eax, 1
jne 0x51bf1f
mov esi, dword [esp + 0xa8]
mov eax, dword [esp + 0xb4]
mov al, byte [eax]
mov byte [esp + 0x18], al
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
call dword [section..00cfg]
push esi
call ecx
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0xb4]
call dword [section..00cfg]
push esi
call ecx
mov edi, dword [ebp + 0xc]
push 1
push dword [esp + 0x14]
call fcn.005127d0
add esp, 8
mov al, byte [esp + 0x18]
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.00514fc0
add esp, 0xc
xor esi, esi
jmp 0x51b7a0
push eax
push str.Invalid_SSPI_encryption_response_length___lu_.
push edi
call fcn.00515170
add esp, 0xc
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
mov esi, dword [esp + 0xa8]
jmp 0x51bb83
push eax
push str.Invalid_SSPI_encryption_response_length___lu_.
push dword [ebp + 0xc]
call fcn.00515170
add esp, 0xc
mov esi, dword [esp + 0xa8]
test esi, esi
je 0x51bf4c
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
call dword [section..00cfg]
push esi
call ecx
mov esi, dword [esp + 0xb4]
jmp 0x51bb73
mov ebx, 0x100
lea edi, [esp + 0xc8]
push ebx
push 0xff
push edi
call fcn.00650600
add esp, 0xc
push ebx
push edi
push esi
call fcn.0051d160
add esp, 0xc
push eax
push str.DecryptMessage
push str.SSPI_error:__s_failed:__s
push dword [ebp + 0xc]
call fcn.00515170
add esp, 0x10
mov esi, dword [esp + 0xa8]
test esi, esi
je 0x51bfb0
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
call dword [section..00cfg]
push esi
call ecx
mov esi, dword [esp + 0xb4]
test esi, esi
je 0x51bfcc
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x40]
call dword [section..00cfg]
push esi
call ecx
mov eax, dword [0x7ba8b8]
mov ecx, dword [eax + 0x24]
call dword [section..00cfg]
lea eax, [esp + 0x30]
push eax
call ecx
push str.Failed_to_query_security_context_attributes.
push dword [ebp + 0xc]
jmp 0x51baf2