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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [0x7024bc]
xor ecx, ebp
mov dword [esp + 0xc8], ecx
mov esi, dword [ebx]
mov eax, dword [ebx + eax*4 + 0x1a8]
mov dword [esp + 0x14], 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 + 0x38], eax
mov dword [esp + 0x3c], eax
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 [esi + 0x5f8]
test eax, eax
mov edi, str.rcmd
cmovne edi, eax
push 0x2f
push edi
call fcn.00645f30
add esp, 8
test eax, eax
mov dword [esp + 0x10], esi
je 0x466737
push edi
call dword [0x700024]
add esp, 4
mov edi, eax
test eax, eax
jne 0x4667a1
jmp 0x466bf8
push edi
call fcn.0065e4d0
add esp, 4
mov esi, eax
mov eax, dword [fcn.004bc5a0]
mov dword [esp + 0xc], eax
push dword [ebx + 0xc4]
call fcn.0065e4d0
add esp, 4
add eax, esi
add eax, 2
push eax
call dword [esp + 0x10]
add esp, 4
test eax, eax
je 0x466bf8
mov ebx, eax
add esi, 2
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc4]
mov dword [esp + 0xc], eax
push eax
call fcn.0065e4d0
add esp, 4
add eax, esi
push dword [esp + 0xc]
push edi
push str._s__s
push eax
push ebx
call fcn.0045c5a4
add esp, 0x14
mov edi, ebx
xor eax, eax
inc eax
mov dword [esp + 0x74], eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x78], ecx
xor ebx, ebx
mov dword [esp + 0x70], ebx
mov edx, 2
mov dword [ecx + 4], edx
mov dword [ecx], ebx
mov dword [ecx + 8], ebx
mov dword [esp + 0x68], eax
lea eax, [esp + 0x88]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x64], ebx
mov dword [eax + 4], edx
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [esp + 0x5c], 3
lea eax, [esp + 0xa0]
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], ebx
lea esi, [esp + 0x38]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov eax, dword [0x703648]
sub esp, 0x24
lea ecx, [esp + 0x44]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
movdqa xmm0, xmmword [0x677da0]
movdqu xmmword [esp + 8], xmm0
mov dword [esp], ebx
mov dword [esp + 4], str.Kerberos
call dword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, eax
push str.AcquireCredentialsHandle
call fcn.00467369
add esp, 4
test eax, eax
je 0x466871
push str.Failed_to_acquire_credentials.
push dword [esp + 0x14]
call fcn.004624d0
add esp, 8
push edi
call dword [0x70001c]
add esp, 4
mov eax, dword [0x703648]
push esi
call dword [eax + 0x10]
jmp 0x466c95
mov dword [esp + 0xc], edi
xor esi, esi
push dword [esp + 0xc]
call fcn.00450b28
add esp, 4
test eax, eax
je 0x466bf8
mov edi, eax
mov eax, dword [0x703648]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x98]
push ecx
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x3c]
push ecx
push ebx
lea ecx, [esp + 0x84]
push ecx
push 0x10
push ebx
push 0x116
push edi
push esi
lea ecx, [esp + 0x64]
push ecx
call dword [eax + 0x18]
mov esi, eax
push edi
call dword [0x70001c]
add esp, 4
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4668f0
mov ecx, dword [0x703648]
push eax
call dword [ecx + 0x40]
mov dword [esp + 0x84], ebx
mov dword [esp + 0x7c], ebx
mov edi, dword [ebp + 0xc]
mov ecx, edi
mov edx, esi
push str.InitializeSecurityContext
call fcn.00467369
add esp, 4
test eax, eax
jne 0x466ae7
mov eax, dword [esp + 0x88]
test eax, eax
je 0x4669a2
mov word [esp + 0x18], 0x101
movzx eax, ax
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1a], ax
lea eax, [esp + 0x98]
push eax
push 4
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
push edi
call fcn.00462794
add esp, 0x14
test eax, eax
jne 0x466c02
cmp dword [esp + 0x98], 4
jne 0x466c02
lea eax, [esp + 0x98]
push eax
push dword [esp + 0x8c]
push dword [esp + 0x98]
push dword [esp + 0x20]
push edi
call fcn.00462794
add esp, 0x14
test eax, eax
jne 0x466add
mov eax, dword [esp + 0x88]
cmp eax, dword [esp + 0x98]
jne 0x466add
mov eax, dword [esp + 0x90]
test eax, eax
je 0x4669c2
mov ecx, dword [0x703648]
push eax
call dword [ecx + 0x40]
mov dword [esp + 0x90], 0
mov dword [esp + 0x88], 0
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4669ed
mov ecx, dword [0x703648]
push eax
call dword [ecx + 0x40]
mov dword [esp + 0x84], 0
mov dword [esp + 0x7c], 0
cmp esi, 0x90312
jne 0x466b2a
lea eax, [esp + 0x9c]
push eax
push 4
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
push edi
call fcn.00465794
add esp, 0x14
test eax, eax
jne 0x466b9e
cmp dword [esp + 0x9c], 4
jne 0x466b9e
movzx eax, byte [esp + 0x19]
cmp eax, 1
jne 0x466bb4
movzx eax, word [esp + 0x1a]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edi, ax
mov dword [esp + 0x7c], edi
push edi
call dword [0x700018]
add esp, 4
mov dword [esp + 0x84], eax
test eax, eax
je 0x466bd1
lea ecx, [esp + 0x9c]
push ecx
push dword [esp + 0x80]
push eax
push dword [esp + 0x20]
push dword [ebp + 0xc]
call fcn.00465794
add esp, 0x14
test eax, eax
jne 0x466aa1
lea esi, [esp + 0x30]
cmp dword [esp + 0x9c], edi
je 0x466877
push str.Failed_to_receive_SSPI_authentication_token.
push dword [esp + 0x14]
call fcn.004624d0
add esp, 8
push dword [esp + 0xc]
call dword [0x70001c]
add esp, 4
mov eax, dword [esp + 0x84]
test eax, eax
je 0x466c7b
mov ecx, dword [0x703648]
push eax
call dword [ecx + 0x40]
jmp 0x466c7b
push str.Failed_to_send_SSPI_authentication_token.
jmp 0x466c07
push dword [esp + 0xc]
call dword [0x70001c]
add esp, 4
mov eax, dword [0x703648]
lea ecx, [esp + 0x38]
push ecx
call dword [eax + 0x10]
mov eax, dword [0x703648]
lea ecx, [esp + 0x30]
push ecx
call dword [eax + 0x24]
mov eax, dword [esp + 0x84]
test eax, eax
je 0x466b23
mov ecx, dword [0x703648]
push eax
call dword [ecx + 0x40]
push str.Failed_to_initialise_security_context.
jmp 0x466b8d
push dword [esp + 0xc]
call dword [0x70001c]
add esp, 4
mov eax, dword [0x703648]
lea ecx, [esp + 0x2c]
push ecx
push 1
lea ebx, [esp + 0x40]
push ebx
call dword [eax + 8]
mov esi, eax
mov eax, dword [0x703648]
push ebx
call dword [eax + 0x10]
mov ecx, edi
mov edx, esi
push str.QueryCredentialAttributes
call fcn.00467369
add esp, 4
test eax, eax
je 0x466cb2
mov eax, dword [0x703648]
lea ecx, [esp + 0x30]
push ecx
call dword [eax + 0x24]
mov eax, dword [0x703648]
push dword [esp + 0x2c]
call dword [eax + 0x40]
push str.Failed_to_determine_user_name.
push dword [esp + 0x14]
call fcn.004624d0
add esp, 8
jmp 0x466c95
push str.Failed_to_receive_SSPI_authentication_response.
push dword [esp + 0x14]
call fcn.004624d0
add esp, 8
jmp 0x466c6e
cmp al, 0xff
jne 0x466c56
movzx eax, byte [esp + 0x18]
push 0xff
push eax
push str.User_was_rejected_by_the_SOCKS5_server___u__u_.
jmp 0x466c62
push dword [esp + 0xc]
call dword [0x70001c]
add esp, 4
mov eax, dword [0x703648]
lea ecx, [esp + 0x38]
push ecx
call dword [eax + 0x10]
mov eax, dword [0x703648]
lea ecx, [esp + 0x30]
push ecx
call dword [eax + 0x24]
mov esi, 0x1b
jmp 0x466c9a
push str.Failed_to_send_SSPI_authentication_request.
push dword [esp + 0x14]
call fcn.004624d0
add esp, 8
push dword [esp + 0xc]
call dword [0x70001c]
add esp, 4
mov eax, dword [esp + 0x90]
test eax, eax
je 0x466c35
mov ecx, dword [0x703648]
push eax
call dword [ecx + 0x40]
mov eax, dword [esp + 0x84]
test eax, eax
lea esi, [esp + 0x38]
je 0x466c4e
mov ecx, dword [0x703648]
push eax
call dword [ecx + 0x40]
mov eax, dword [0x703648]
push esi
jmp 0x466c85
movzx ecx, byte [esp + 0x18]
push eax
push ecx
push str.Invalid_SSPI_authentication_response_type___u__u_.
push dword [esp + 0x1c]
call fcn.004624d0
add esp, 0x10
push dword [esp + 0xc]
call dword [0x70001c]
add esp, 4
mov eax, dword [0x703648]
lea ecx, [esp + 0x38]
push ecx
call dword [eax + 0x10]
mov eax, dword [0x703648]
lea ecx, [esp + 0x30]
push ecx
call dword [eax + 0x24]
mov esi, 7
mov ecx, dword [esp + 0xc8]
xor ecx, ebp
call fcn.0064180a
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 0x2c]
push str.SOCKS5_server_authencticated_user__s_with_GSS_API._n
mov ebx, dword [esp + 0x18]
push ebx
call fcn.0046235f
add esp, 0xc
mov eax, dword [0x703648]
push dword [esp + 0x2c]
call dword [eax + 0x40]
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, 0x6761fa
cmovne eax, edx
push eax
push str.SOCKS5_server_supports_GSS_API__s_data_protection._n
push ebx
call fcn.0046235f
add esp, 0xc
xor edi, edi
inc edi
cmp byte [ebx + 0x624], 0
je 0x466e09
movzx eax, di
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1a], ax
lea eax, [esp + 0x98]
push eax
push 4
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
mov edi, dword [ebp + 0xc]
push edi
call fcn.00462794
add esp, 0x14
test eax, eax
jne 0x466e47
cmp dword [esp + 0x98], 4
jne 0x466e47
cmp byte [ebx + 0x624], 0
je 0x466f34
mov byte [esp + 0x18], 0
lea eax, [esp + 0x98]
push eax
push 1
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
push edi
call fcn.00462794
add esp, 0x14
test eax, eax
jne 0x466f89
cmp dword [esp + 0x98], 1
jne 0x466f89
lea eax, [esp + 0x9c]
push eax
push 4
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
push edi
call fcn.00465794
add esp, 0x14
test eax, eax
jne 0x466fbc
cmp dword [esp + 0x9c], 4
jne 0x466fbc
movzx eax, byte [esp + 0x19]
cmp eax, 2
je 0x467001
cmp al, 0xff
jne 0x4670cb
movzx eax, byte [esp + 0x18]
push 0xff
push eax
push str.User_was_rejected_by_the_SOCKS5_server___u__u_.
jmp 0x4670d7
mov eax, dword [0x703648]
lea ecx, [esp + 0x40]
lea esi, [esp + 0x30]
push ecx
push 0
push esi
call dword [eax + 0x2c]
mov ecx, dword [ebp + 0xc]
mov edx, eax
push str.QueryContextAttributes
call fcn.00467369
add esp, 4
test eax, eax
je 0x466e51
mov eax, dword [0x703648]
push esi
call dword [eax + 0x24]
push str.Failed_to_query_security_context_attributes.
push ebx
jmp 0x466b91
push str.Failed_to_send_SSPI_encryption_request.
jmp 0x466f95
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], 2
push eax
call dword [0x700018]
add esp, 4
mov dword [esp + 0xa8], eax
test eax, eax
je 0x466ff6
mov dword [esp + 0xac], edi
push edi
call dword [0x700018]
add esp, 4
mov dword [esp + 0xb4], eax
test eax, eax
je 0x466fcf
mov byte [eax], 0
mov dword [esp + 0xbc], 9
mov eax, dword [esp + 0x48]
mov dword [esp + 0xb8], eax
push eax
call dword [0x700018]
add esp, 4
mov dword [esp + 0xc0], eax
mov ecx, dword [0x703648]
test eax, eax
je 0x466fdd
lea eax, [esp + 0x58]
push 0
push eax
push SysReAllocString
push esi
call dword [ecx + 0x64]
mov ecx, dword [ebp + 0xc]
mov edx, eax
push str.EncryptMessage
call fcn.00467369
add esp, 4
test eax, eax
je 0x4670e5
mov eax, dword [0x703648]
push dword [esp + 0xa8]
call dword [eax + 0x40]
mov eax, dword [0x703648]
push dword [esp + 0xb4]
call dword [eax + 0x40]
mov eax, dword [0x703648]
push dword [esp + 0xc0]
call dword [eax + 0x40]
jmp 0x466e33
lea eax, [esp + 0x98]
push eax
push dword [esp + 0x8c]
push dword [esp + 0x98]
push dword [esp + 0x20]
push edi
call fcn.00462794
add esp, 0x14
test eax, eax
jne 0x466f90
mov eax, dword [esp + 0x88]
cmp eax, dword [esp + 0x98]
jne 0x466f90
mov eax, dword [esp + 0x90]
test eax, eax
je 0x466dac
mov ecx, dword [0x703648]
push eax
call dword [ecx + 0x40]
jmp 0x466dac
push str.Failed_to_send_SSPI_encryption_type.
jmp 0x466fc1
push str.Failed_to_send_SSPI_encryption_type.
push ebx
call fcn.004624d0
add esp, 8
mov eax, dword [esp + 0x90]
test eax, eax
je 0x466c88
mov ecx, dword [0x703648]
push eax
call dword [ecx + 0x40]
jmp 0x466c88
push str.Failed_to_receive_SSPI_encryption_response.
push ebx
call fcn.004624d0
add esp, 8
jmp 0x466c88
mov eax, dword [0x703648]
push dword [esp + 0xa8]
jmp 0x466ff3
push dword [esp + 0xa8]
call dword [ecx + 0x40]
mov eax, dword [0x703648]
push dword [esp + 0xb4]
call dword [eax + 0x40]
mov eax, dword [0x703648]
push esi
jmp 0x466bf5
movzx eax, word [esp + 0x1a]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx esi, ax
mov dword [esp + 0xa0], esi
push esi
call dword [0x700018]
add esp, 4
mov dword [esp + 0xa8], eax
test eax, eax
je 0x466beb
lea ecx, [esp + 0x9c]
push ecx
push dword [esp + 0xa4]
push eax
push dword [esp + 0x20]
push edi
call fcn.00465794
add esp, 0x14
test eax, eax
jne 0x4671e8
cmp dword [esp + 0x9c], esi
jne 0x4671e8
mov esi, ebx
cmp byte [ebx + 0x624], 0
je 0x46722a
mov eax, dword [esp + 0xa0]
cmp eax, 1
jne 0x4672c4
mov eax, dword [esp + 0xa8]
mov cl, byte [eax]
mov byte [esp + 0x18], cl
mov ecx, dword [0x703648]
push eax
call dword [ecx + 0x40]
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._n
push esi
call fcn.0046235f
add esp, 0xc
xor esi, esi
jmp 0x466c9a
movzx ecx, byte [esp + 0x18]
push eax
push ecx
push str.Invalid_SSPI_encryption_response_type___u__u_.
push ebx
call fcn.004624d0
add esp, 0x10
jmp 0x466c88
mov eax, dword [esp + 0xac]
add eax, dword [esp + 0xa0]
add eax, dword [esp + 0xb8]
mov dword [esp + 0x88], eax
push eax
call dword [0x700018]
add esp, 4
mov dword [esp + 0x90], eax
test eax, eax
je 0x4671fb
push dword [esp + 0xa0]
push dword [esp + 0xac]
push eax
call fcn.006452d0
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.006452d0
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.006452d0
add esp, 0xc
mov eax, dword [0x703648]
push dword [esp + 0xa8]
call dword [eax + 0x40]
xor esi, esi
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa0], esi
mov eax, dword [0x703648]
push dword [esp + 0xb4]
call dword [eax + 0x40]
mov dword [esp + 0xb4], esi
mov dword [esp + 0xac], esi
mov eax, dword [0x703648]
push dword [esp + 0xc0]
call dword [eax + 0x40]
mov dword [esp + 0xc0], esi
mov dword [esp + 0xb8], esi
movzx edi, word [esp + 0x88]
jmp 0x466d24
push str.Failed_to_receive_SSPI_encryption_type.
push ebx
call fcn.004624d0
add esp, 8
jmp 0x4672d3
mov eax, dword [0x703648]
push dword [esp + 0xa8]
call dword [eax + 0x40]
mov eax, dword [0x703648]
push dword [esp + 0xb4]
call dword [eax + 0x40]
mov eax, dword [0x703648]
push dword [esp + 0xc0]
jmp 0x466ff3
lea eax, [esp + 0x58]
mov dword [eax + 4], 2
mov dword [esp + 0xa4], 0xa
mov dword [esp + 0xb0], 1
xor ecx, ecx
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb4], ecx
mov edx, dword [0x703648]
lea edi, [esp + 0x1c]
lea ebx, [esp + 0x30]
push edi
push ecx
push eax
push ebx
call dword [edx + 0x68]
mov ecx, dword [ebp + 0xc]
mov edx, eax
push str.DecryptMessage
call fcn.00467369
add esp, 4
test eax, eax
je 0x4672e7
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x46729b
mov ecx, dword [0x703648]
push eax
call dword [ecx + 0x40]
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x4672b0
mov ecx, dword [0x703648]
push eax
call dword [ecx + 0x40]
mov eax, dword [0x703648]
push ebx
call dword [eax + 0x24]
push str.Failed_to_query_security_context_attributes.
push esi
jmp 0x466b91
push eax
push str.Invalid_SSPI_encryption_response_length___lu_.
push esi
call fcn.004624d0
add esp, 0xc
mov eax, dword [0x703648]
push dword [esp + 0xa8]
call dword [eax + 0x40]
jmp 0x466c88
mov eax, dword [esp + 0xac]
cmp eax, 1
jne 0x467325
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xb4]
mov cl, byte [ecx]
mov byte [esp + 0x18], cl
mov ecx, dword [0x703648]
push eax
call dword [ecx + 0x40]
mov eax, dword [0x703648]
push dword [esp + 0xb4]
call dword [eax + 0x40]
jmp 0x467098
push eax
push str.Invalid_SSPI_encryption_response_length___lu_.
push esi
call fcn.004624d0
add esp, 0xc
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x467349
mov ecx, dword [0x703648]
push eax
call dword [ecx + 0x40]
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x46735e
mov ecx, dword [0x703648]
push eax
call dword [ecx + 0x40]
mov eax, dword [0x703648]
push ebx
jmp 0x466c92