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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b4
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
mov ecx, dword [ecx + edx*4 + 0x420]
push ebx
push esi
xor esi, esi
mov dword [esp + 8], eax
mov dword [esp + 0x70], esi
mov eax, dword [eax + 0xaa8]
push edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x7c], esi
cmp eax, esi
je 0x4d1f12
mov ebx, eax
mov dword [esp + 0x78], eax
jmp 0x4d1f1b
mov ebx, str.rcmd
mov dword [esp + 0x78], ebx
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d1f20
sub eax, edx
push 0x2f
push ebx
mov edi, eax
call fcn.004d6220
add esp, 8
test eax, eax
je 0x4d1f56
push ebx
call dword [0x54ae74]
mov ebx, eax
add esp, 4
cmp ebx, esi
jne 0x4d1fb4
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x32c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d1f62
sub eax, edx
lea eax, [eax + edi + 2]
push eax
call dword [0x54ae68]
mov ebx, eax
add esp, 4
cmp ebx, esi
je 0x4d1f4a
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x32c]
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d1f90
push edx
mov edx, dword [esp + 0x7c]
push edx
sub eax, esi
push str._s__s
lea eax, [eax + edi + 2]
push eax
push ebx
call fcn.004a3770
add esp, 0x14
xor esi, esi
mov ecx, 1
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x90], ecx
lea edx, [esp + 0x64]
mov dword [esp + 0xa0], edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x94], ecx
lea edx, [esp + 0x40]
mov dword [esp + 0x88], edx
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0x38]
push edx
push esi
push esi
push esi
mov eax, 2
push esi
push eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x44], eax
mov eax, dword [0x54f0c0]
push str.Kerberos
mov dword [esp + 0xb8], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0xac], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0xa4], 3
mov dword [esp + 0xa0], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov ecx, dword [eax + 0xc]
push esi
call ecx
mov edx, dword [ebp + 0xc]
push str.AcquireCredentialsHandle
push edx
call fcn.004d1e60
add esp, 8
test eax, eax
je 0x4d20a2
mov eax, dword [esp + 0xc]
push str.Failed_to_acquire_credentials.
push eax
call fcn.00499e40
push ebx
call dword [0x54ae6c]
mov edx, dword [0x54f0c0]
mov eax, dword [edx + 0x10]
add esp, 0xc
lea ecx, [esp + 0x34]
push ecx
call eax
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x3c]
push esi
push ecx
call fcn.004c6380
mov edi, dword [ebp + 0xc]
mov eax, dword [esp + 0x84]
add esp, 8
lea ebx, [ebx]
lea edx, [esp + 0xa8]
push edx
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [0x54f0c0]
push 0
lea edx, [esp + 0xac]
push edx
mov edx, dword [ecx + 0x18]
push 0x10
push 0
push 0x116
push ebx
push eax
lea eax, [esp + 0x60]
push eax
call edx
mov esi, eax
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4d211e
push eax
mov eax, dword [0x54f0c0]
mov ecx, dword [eax + 0x40]
call ecx
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x64], eax
test esi, esi
je 0x4d213e
cmp esi, 0x90314
je 0x4d213e
cmp esi, 0x90313
je 0x4d213e
cmp esi, 0x90312
jne 0x4d22ad
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4d21bd
push ecx
mov word [esp + 0x14], 0x101
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x20]
push edx
mov word [esp + 0x16], ax
push 4
lea eax, [esp + 0x18]
push eax
push ecx
push edi
call fcn.0049a3c0
add esp, 0x14
test eax, eax
jne 0x4d2398
cmp dword [esp + 0x20], 4
jne 0x4d2398
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x40]
push eax
push ecx
push edx
push edi
call fcn.0049a3c0
add esp, 0x14
test eax, eax
jne 0x4d232e
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x20]
jne 0x4d232e
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4d21dd
push ecx
mov ecx, dword [0x54f0c0]
mov edx, dword [ecx + 0x40]
call edx
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
test eax, eax
je 0x4d21fc
push eax
mov eax, dword [0x54f0c0]
mov ecx, dword [eax + 0x40]
call ecx
mov dword [esp + 0x6c], 0
mov dword [esp + 0x64], 0
cmp esi, 0x90312
jne 0x4d23e1
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x30]
push edx
push 4
lea eax, [esp + 0x18]
push eax
push ecx
push edi
call fcn.004c63b0
add esp, 0x14
test eax, eax
jne 0x4d2c0f
cmp dword [esp + 0x30], 4
jne 0x4d2c0f
mov al, byte [esp + 0x11]
cmp al, 0xff
je 0x4d2b4d
cmp al, 1
jne 0x4d2b86
mov edx, dword [esp + 0x12]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx esi, ax
push esi
mov dword [esp + 0x68], esi
call dword [0x54ae68]
add esp, 4
mov dword [esp + 0x6c], eax
test eax, eax
je 0x4d2b97
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x30]
push ecx
push edx
push eax
mov eax, dword [esp + 0x48]
push eax
push edi
call fcn.004c63b0
add esp, 0x14
test eax, eax
jne 0x4d2bcd
cmp dword [esp + 0x30], esi
jne 0x4d2bcd
lea eax, [esp + 0x18]
jmp 0x4d20c0
push 0x100
lea ecx, [esp + 0xc4]
push ecx
push esi
call fcn.0048f660
mov edx, dword [edi]
push eax
push str.InitializeSecurityContext
push str.SSPI_error:__s_failed:__s
push edx
call fcn.00499e40
push ebx
call dword [0x54ae6c]
mov ecx, dword [0x54f0c0]
mov edx, dword [ecx + 0x10]
add esp, 0x20
lea eax, [esp + 0x34]
push eax
call edx
mov ecx, dword [0x54f0c0]
mov edx, dword [ecx + 0x24]
lea eax, [esp + 0x18]
push eax
call edx
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4d2310
push eax
mov eax, dword [0x54f0c0]
mov ecx, dword [eax + 0x40]
call ecx
mov edx, dword [esp + 0xc]
push str.Failed_to_initialise_security_context.
push edx
call fcn.00499e40
add esp, 8
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
push str.Failed_to_send_SSPI_authentication_token.
push eax
call fcn.00499e40
push ebx
call dword [0x54ae6c]
mov eax, dword [esp + 0x38]
add esp, 0xc
test eax, eax
je 0x4d235b
mov ecx, dword [0x54f0c0]
mov edx, dword [ecx + 0x40]
push eax
call edx
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4d236e
push eax
mov eax, dword [0x54f0c0]
mov ecx, dword [eax + 0x40]
call ecx
mov eax, dword [0x54f0c0]
mov ecx, dword [eax + 0x10]
lea edx, [esp + 0x34]
push edx
call ecx
mov eax, dword [0x54f0c0]
mov ecx, dword [eax + 0x24]
lea edx, [esp + 0x18]
push edx
call ecx
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0xc]
push str.Failed_to_send_SSPI_authentication_request.
push edx
call fcn.00499e40
push ebx
call dword [0x54ae6c]
mov eax, dword [esp + 0x38]
add esp, 0xc
test eax, eax
je 0x4d23c4
push eax
mov eax, dword [0x54f0c0]
mov ecx, dword [eax + 0x40]
call ecx
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4d2c28
mov edx, dword [0x54f0c0]
push eax
mov eax, dword [edx + 0x40]
call eax
jmp 0x4d2c28
push ebx
call dword [0x54ae6c]
mov eax, dword [0x54f0c0]
add esp, 4
lea ecx, [esp + 0x70]
push ecx
mov ecx, dword [eax + 8]
push 1
lea edx, [esp + 0x3c]
push edx
call ecx
mov esi, eax
mov eax, dword [0x54f0c0]
mov ecx, dword [eax + 0x10]
lea edx, [esp + 0x34]
push edx
call ecx
push str.QueryCredentialAttributes
push edi
mov eax, esi
call fcn.004d1e60
add esp, 8
test eax, eax
je 0x4d2462
mov eax, dword [0x54f0c0]
mov ecx, dword [eax + 0x24]
lea edx, [esp + 0x18]
push edx
call ecx
mov edx, dword [esp + 0x70]
mov eax, dword [0x54f0c0]
mov ecx, dword [eax + 0x40]
push edx
call ecx
mov edx, dword [esp + 0xc]
push str.Failed_to_determine_user_name.
push edx
call fcn.00499e40
add esp, 8
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0xc]
push eax
push str.SOCKS5_server_authenticated_user__s_with_GSS_API._n
push ebx
call fcn.00499d70
mov ecx, dword [esp + 0x7c]
mov edx, dword [0x54f0c0]
mov eax, dword [edx + 0x40]
add esp, 0xc
push ecx
call eax
mov eax, dword [esp + 0x74]
mov word [esp + 0x10], 0x201
test al, 0x10
jne 0x4d24ad
test eax, 0x10000
jne 0x4d24a6
mov eax, 0x522a94
jmp 0x4d24b2
mov eax, str.integrity
jmp 0x4d24b2
mov eax, str.confidentiality
push eax
push str.SOCKS5_server_supports_GSS_API__s_data_protection._n
push ebx
call fcn.00499d70
xor esi, esi
add esp, 0xc
cmp dword [ebx + 0xc28], esi
je 0x4d24d2
push 1
jmp 0x4d2778
mov eax, dword [0x54f0c0]
lea ecx, [esp + 0xb0]
push ecx
mov ecx, dword [eax + 0x2c]
push esi
lea edx, [esp + 0x20]
push edx
call ecx
push str.QueryContextAttributes
push edi
call fcn.004d1e60
add esp, 8
test eax, eax
je 0x4d2525
mov eax, dword [0x54f0c0]
mov ecx, dword [eax + 0x24]
lea edx, [esp + 0x18]
push edx
call ecx
push str.Failed_to_query_security_context_attributes.
push ebx
call fcn.00499e40
add esp, 8
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xbc]
push eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 2
call dword [0x54ae68]
add esp, 4
mov dword [esp + 0x48], eax
cmp eax, esi
je 0x4d2574
push 1
mov dword [esp + 0x50], 1
call dword [0x54ae68]
add esp, 4
mov dword [esp + 0x54], eax
cmp eax, esi
jne 0x4d258f
mov edx, dword [esp + 0x48]
mov eax, dword [0x54f0c0]
mov ecx, dword [eax + 0x40]
push edx
call ecx
mov eax, dword [0x54f0c0]
mov ecx, dword [eax + 0x24]
lea edx, [esp + 0x18]
push edx
call ecx
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [eax], 0
mov eax, dword [esp + 0xb8]
push eax
mov dword [esp + 0x60], 9
mov dword [esp + 0x5c], eax
call dword [0x54ae68]
add esp, 4
mov dword [esp + 0x60], eax
cmp eax, esi
jne 0x4d25f0
mov edx, dword [esp + 0x48]
mov eax, dword [0x54f0c0]
mov ecx, dword [eax + 0x40]
push edx
call ecx
mov edx, dword [esp + 0x54]
mov eax, dword [0x54f0c0]
mov ecx, dword [eax + 0x40]
push edx
call ecx
mov eax, dword [0x54f0c0]
mov ecx, dword [eax + 0x24]
lea edx, [esp + 0x18]
push edx
call ecx
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x54f0c0]
push esi
lea edx, [esp + 0x84]
push edx
mov edx, dword [ecx + 0x64]
push reloc.gdiplus.dll_Ordinal_1
lea eax, [esp + 0x24]
push eax
call edx
push str.EncryptMessage
push edi
call fcn.004d1e60
add esp, 8
test eax, eax
je 0x4d267a
mov eax, dword [esp + 0x48]
mov ecx, dword [0x54f0c0]
mov edx, dword [ecx + 0x40]
push eax
call edx
mov eax, dword [esp + 0x54]
mov ecx, dword [0x54f0c0]
mov edx, dword [ecx + 0x40]
push eax
call edx
mov eax, dword [esp + 0x60]
mov ecx, dword [0x54f0c0]
mov edx, dword [ecx + 0x40]
push eax
call edx
mov ecx, dword [0x54f0c0]
mov edx, dword [ecx + 0x24]
lea eax, [esp + 0x18]
push eax
call edx
push str.Failed_to_query_security_context_attributes.
push ebx
call fcn.00499e40
add esp, 8
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x58]
add eax, dword [esp + 0x40]
push eax
mov dword [esp + 0x28], eax
call dword [0x54ae68]
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, esi
jne 0x4d26e4
mov edx, dword [esp + 0x48]
mov eax, dword [0x54f0c0]
mov ecx, dword [eax + 0x40]
push edx
call ecx
mov edx, dword [esp + 0x54]
mov eax, dword [0x54f0c0]
mov ecx, dword [eax + 0x40]
push edx
call ecx
mov edx, dword [esp + 0x60]
mov eax, dword [0x54f0c0]
mov ecx, dword [eax + 0x40]
push edx
call ecx
mov eax, dword [0x54f0c0]
mov ecx, dword [eax + 0x24]
lea edx, [esp + 0x18]
push edx
call ecx
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
push edx
push ecx
push eax
call fcn.004d9440
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x50]
add edx, dword [esp + 0x3c]
push eax
push edx
call fcn.004d9440
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x68]
add eax, dword [esp + 0x5c]
push ecx
add eax, dword [esp + 0x4c]
push eax
call fcn.004d9440
mov ecx, dword [esp + 0x6c]
mov edx, dword [0x54f0c0]
mov eax, dword [edx + 0x40]
add esp, 0x24
push ecx
call eax
mov ecx, dword [esp + 0x54]
mov edx, dword [0x54f0c0]
mov dword [esp + 0x48], esi
mov dword [esp + 0x40], esi
mov eax, dword [edx + 0x40]
push ecx
call eax
mov ecx, dword [esp + 0x60]
mov edx, dword [0x54f0c0]
mov dword [esp + 0x54], esi
mov dword [esp + 0x4c], esi
mov eax, dword [edx + 0x40]
push ecx
call eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x60], esi
mov dword [esp + 0x58], esi
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, dword [esp + 0x3c]
lea edx, [esp + 0x20]
push edx
mov word [esp + 0x16], ax
push 4
lea eax, [esp + 0x18]
push eax
push ebx
push edi
call fcn.0049a3c0
add esp, 0x14
test eax, eax
jne 0x4d2b46
cmp dword [esp + 0x20], 4
jne 0x4d2b46
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
cmp dword [ecx + 0xc28], esi
je 0x4d280e
mov byte [esp + 0x14], al
push 1
lea eax, [esp + 0x18]
push eax
push ebx
push edi
call fcn.0049a3c0
add esp, 0x14
test eax, eax
jne 0x4d27e1
cmp dword [esp + 0x20], 1
je 0x4d284b
mov ecx, dword [esp + 0xc]
push str.Failed_to_send_SSPI_encryption_type.
push ecx
call fcn.00499e40
mov eax, dword [0x54f0c0]
mov ecx, dword [eax + 0x24]
add esp, 8
lea edx, [esp + 0x18]
push edx
call ecx
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
push eax
push ecx
push ebx
push edi
call fcn.0049a3c0
add esp, 0x14
test eax, eax
jne 0x4d2b2b
mov edx, dword [esp + 0x24]
cmp edx, dword [esp + 0x20]
jne 0x4d2b2b
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x4d284b
push eax
mov eax, dword [0x54f0c0]
mov ecx, dword [eax + 0x40]
call ecx
lea edx, [esp + 0x30]
push edx
push 4
lea eax, [esp + 0x18]
push eax
push ebx
push edi
call fcn.004c63b0
add esp, 0x14
test eax, eax
jne 0x4d2b14
cmp dword [esp + 0x30], 4
jne 0x4d2b14
mov al, byte [esp + 0x11]
cmp al, 0xff
jne 0x4d28b5
movzx ecx, byte [esp + 0x10]
push 0xff
push ecx
push str.User_was_rejected_by_the_SOCKS5_server___u__u_.
mov edx, dword [esp + 0x18]
push edx
call fcn.00499e40
add esp, 0x10
mov ecx, dword [0x54f0c0]
mov edx, dword [ecx + 0x24]
lea eax, [esp + 0x18]
push eax
call edx
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 2
je 0x4d28ca
movzx ecx, byte [esp + 0x10]
movzx eax, al
push eax
push ecx
push str.Invalid_SSPI_encryption_response_type___u__u_.
jmp 0x4d288c
mov eax, dword [esp + 0x12]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx esi, ax
push esi
mov dword [esp + 0x44], esi
call dword [0x54ae68]
add esp, 4
mov dword [esp + 0x48], eax
test eax, eax
jne 0x4d290a
mov edx, dword [0x54f0c0]
mov eax, dword [edx + 0x24]
lea ecx, [esp + 0x18]
push ecx
call eax
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x30]
push ecx
push edx
push eax
push ebx
push edi
call fcn.004c63b0
add esp, 0x14
test eax, eax
jne 0x4d2aed
cmp dword [esp + 0x30], esi
jne 0x4d2aed
mov eax, dword [esp + 0xc]
cmp dword [eax + 0xc28], 0
jne 0x4d2a65
lea ecx, [esp + 0xa4]
push ecx
mov ecx, dword [0x54f0c0]
xor esi, esi
push esi
lea edx, [esp + 0x88]
push edx
lea eax, [esp + 0x24]
mov dword [esp + 0x90], 2
mov dword [esp + 0x50], 0xa
mov dword [esp + 0x5c], 1
mov dword [esp + 0x58], esi
mov dword [esp + 0x60], esi
mov edx, dword [ecx + 0x68]
push eax
call edx
push str.DecryptMessage
push edi
call fcn.004d1e60
add esp, 8
test eax, eax
je 0x4d29ef
mov eax, dword [esp + 0x48]
cmp eax, esi
je 0x4d29ad
push eax
mov eax, dword [0x54f0c0]
mov ecx, dword [eax + 0x40]
call ecx
mov eax, dword [esp + 0x54]
cmp eax, esi
je 0x4d29c1
mov edx, dword [0x54f0c0]
push eax
mov eax, dword [edx + 0x40]
call eax
mov edx, dword [0x54f0c0]
mov eax, dword [edx + 0x24]
lea ecx, [esp + 0x18]
push ecx
call eax
mov ecx, dword [esp + 0xc]
push str.Failed_to_query_security_context_attributes.
push ecx
call fcn.00499e40
add esp, 8
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x4c]
cmp eax, 1
je 0x4d2a39
mov edx, dword [esp + 0xc]
push eax
push str.Invalid_SSPI_encryption_response_length___lu_.
push edx
call fcn.00499e40
mov eax, dword [esp + 0x54]
add esp, 0xc
cmp eax, esi
je 0x4d2a1e
push eax
mov eax, dword [0x54f0c0]
mov ecx, dword [eax + 0x40]
call ecx
mov eax, dword [esp + 0x54]
cmp eax, esi
je 0x4d2c38
mov edx, dword [0x54f0c0]
push eax
mov eax, dword [edx + 0x40]
jmp 0x4d2c36
mov ecx, dword [esp + 0x54]
mov dl, byte [ecx]
mov eax, dword [esp + 0x48]
mov ecx, dword [0x54f0c0]
mov byte [esp + 0x10], dl
mov edx, dword [ecx + 0x40]
push eax
call edx
mov eax, dword [esp + 0x54]
mov ecx, dword [0x54f0c0]
mov edx, dword [ecx + 0x40]
push eax
call edx
jmp 0x4d2aa9
mov eax, dword [esp + 0x40]
cmp eax, 1
je 0x4d2a93
push eax
mov eax, dword [esp + 0x10]
push str.Invalid_SSPI_encryption_response_length___lu_.
push eax
call fcn.00499e40
mov edx, dword [0x54f0c0]
mov ecx, dword [esp + 0x54]
mov eax, dword [edx + 0x40]
add esp, 0xc
jmp 0x4d2c35
mov eax, dword [esp + 0x48]
mov cl, byte [eax]
mov edx, dword [0x54f0c0]
mov byte [esp + 0x10], cl
push eax
mov eax, dword [edx + 0x40]
call eax
push 1
push ebx
call fcn.004c6380
mov al, byte [esp + 0x18]
add esp, 8
test al, al
jne 0x4d2ac3
mov eax, str.out_GSS_API_data
jmp 0x4d2ad1
cmp al, 1
mov eax, str._GSS_API_integrity
je 0x4d2ad1
mov eax, str._GSS_API_confidentiality
mov ecx, dword [esp + 0xc]
push eax
push str.SOCKS5_access_with_s_protection_granted._n
push ecx
call fcn.00499d70
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0xc]
push str.Failed_to_receive_SSPI_encryption_type.
push edx
call fcn.00499e40
mov eax, dword [esp + 0x50]
mov ecx, dword [0x54f0c0]
mov edx, dword [ecx + 0x40]
add esp, 8
push eax
call edx
jmp 0x4d2899
mov eax, dword [esp + 0xc]
push str.Failed_to_receive_SSPI_encryption_response.
push eax
call fcn.00499e40
add esp, 8
jmp 0x4d2c38
push str.Failed_to_send_SSPI_encryption_type.
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00499e40
mov eax, dword [esp + 0x34]
add esp, 8
jmp 0x4d2a22
push str.Failed_to_send_SSPI_encryption_request.
jmp 0x4d2b30
movzx ecx, byte [esp + 0x10]
push 0xff
push ecx
push str.User_was_rejected_by_the_SOCKS5_server___u__u_.
mov edx, dword [esp + 0x18]
push edx
call fcn.00499e40
push ebx
call dword [0x54ae6c]
add esp, 0x14
mov ecx, dword [0x54f0c0]
mov edx, dword [ecx + 0x10]
lea eax, [esp + 0x34]
push eax
call edx
jmp 0x4d2899
movzx ecx, byte [esp + 0x10]
movzx eax, al
push eax
push ecx
push str.Invalid_SSPI_authentication_response_type___u__u_.
jmp 0x4d2b5d
push ebx
call dword [0x54ae6c]
mov ecx, dword [0x54f0c0]
mov edx, dword [ecx + 0x10]
add esp, 4
lea eax, [esp + 0x34]
push eax
call edx
mov ecx, dword [0x54f0c0]
mov edx, dword [ecx + 0x24]
lea eax, [esp + 0x18]
push eax
call edx
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
push str.Failed_to_receive_SSPI_authentication_token.
push eax
call fcn.00499e40
push ebx
call dword [0x54ae6c]
mov eax, dword [esp + 0x78]
add esp, 0xc
test eax, eax
je 0x4d2b71
mov ecx, dword [0x54f0c0]
mov edx, dword [ecx + 0x40]
push eax
call edx
mov ecx, dword [0x54f0c0]
mov edx, dword [ecx + 0x10]
lea eax, [esp + 0x34]
push eax
call edx
jmp 0x4d2899
mov eax, dword [esp + 0xc]
push str.Failed_to_receive_SSPI_authentication_response.
push eax
call fcn.00499e40
push ebx
call dword [0x54ae6c]
add esp, 0xc
mov edx, dword [0x54f0c0]
mov eax, dword [edx + 0x10]
lea ecx, [esp + 0x34]
push ecx
call eax
mov edx, dword [0x54f0c0]
mov eax, dword [edx + 0x24]
lea ecx, [esp + 0x18]
push ecx
call eax
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret