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

Disassembly:
sub esp, 0xb8
mov eax, dword [0x100a5688]
xor eax, esp
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xbc]
and dword [esp + 0x44], 0
and dword [esp + 0x58], 0
push ebx
push ebp
mov ebp, dword [esp + 0xc8]
push esi
mov eax, dword [ebp + eax*4 + 0x1a8]
push edi
mov edi, dword [ebp]
mov dword [esp + 0x58], eax
mov eax, dword [edi + 0x51c]
test eax, eax
mov esi, str.rcmd
cmovne esi, eax
push esi
call fcn.100596a0
mov ebx, eax
push 0x2f
push esi
mov dword [esp + 0x58], ebx
call fcn.1005c2c0
add esp, 0xc
test eax, eax
je 0x10053e29
push esi
call dword [0x100a534c]
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x10053e6f
push 0x1b
jmp 0x10054975
push dword [ebp + 0xc4]
call fcn.100596a0
add ebx, 2
add eax, ebx
push eax
call dword [0x100a5340]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x10053e22
mov eax, dword [ebp + 0xc4]
push eax
push esi
push str._s__s
push eax
call fcn.100596a0
pop ecx
mov ecx, dword [esp + 0x58]
add ecx, 2
add eax, ecx
push eax
push ebx
call fcn.1003af45
add esp, 0x14
push 2
lea eax, [esp + 0x34]
mov dword [esp + 0x78], eax
xor ecx, ecx
xor edx, edx
lea eax, [esp + 0x20]
mov dword [esp + 0x84], eax
inc edx
lea eax, [esp + 0xa4]
mov dword [esp + 0x68], eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x80], edx
pop edx
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [0x100a73b4]
push ecx
push ecx
push ecx
push ecx
push edx
push str.Kerberos
push ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x58], 2
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x84], 3
mov dword [esp + 0x80], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
call dword [eax + 0xc]
push str.AcquireCredentialsHandle
push eax
push ebp
call fcn.1005498f
add esp, 0xc
test eax, eax
je 0x10053f3e
push str.Failed_to_acquire_credentials.
push edi
call fcn.1003054c
push ebx
call dword [0x100a5344]
add esp, 0xc
lea eax, [esp + 0x44]
push eax
mov eax, dword [0x100a73b4]
call dword [eax + 0x10]
jmp 0x10054973
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x48]
push ecx
push 0
lea ecx, [esp + 0x80]
push ecx
push 0x10
push 0
push 0x116
push ebx
push eax
lea eax, [esp + 0x70]
push eax
mov eax, dword [0x100a73b4]
call dword [eax + 0x18]
cmp dword [esp + 0x38], 0
mov dword [esp + 0x4c], eax
je 0x10053fa8
push dword [esp + 0x38]
mov ecx, dword [0x100a73b4]
call dword [ecx + 0x40]
and dword [esp + 0x38], 0
and dword [esp + 0x30], 0
mov eax, dword [esp + 0x4c]
push str.InitializeSecurityContext
push eax
push ebp
call fcn.1005498f
add esp, 0xc
test eax, eax
jne 0x10054931
cmp dword [esp + 0x1c], eax
je 0x1005404a
push dword [esp + 0x1c]
inc eax
mov byte [esp + 0x14], al
mov byte [esp + 0x15], al
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov dword [esp + 0x18], eax
push 2
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1a]
push eax
call fcn.10058e40
lea eax, [esp + 0x34]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push esi
push ebp
call fcn.10030a03
add esp, 0x20
test eax, eax
jne 0x10054195
cmp dword [esp + 0x28], 4
jne 0x10054195
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x20]
push dword [esp + 0x2c]
push esi
push ebp
call fcn.10030a03
add esp, 0x14
test eax, eax
jne 0x1005413b
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x28]
jne 0x1005413b
cmp dword [esp + 0x24], 0
je 0x10054062
push dword [esp + 0x24]
mov eax, dword [0x100a73b4]
call dword [eax + 0x40]
and dword [esp + 0x24], 0
and dword [esp + 0x1c], 0
cmp dword [esp + 0x38], 0
je 0x1005407f
push dword [esp + 0x38]
mov eax, dword [0x100a73b4]
call dword [eax + 0x40]
and dword [esp + 0x38], 0
and dword [esp + 0x30], 0
cmp dword [esp + 0x4c], 0x90312
jne 0x10054241
lea eax, [esp + 0x2c]
push eax
push 4
lea eax, [esp + 0x18]
push eax
push esi
push ebp
call fcn.1004e581
add esp, 0x14
test eax, eax
jne 0x10054227
cmp dword [esp + 0x2c], 4
jne 0x10054227
mov al, byte [esp + 0x11]
cmp al, 0xff
je 0x10054202
xor ecx, ecx
inc ecx
cmp al, cl
jne 0x100541cd
push 2
lea eax, [esp + 0x16]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.10058e40
add esp, 0xc
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], eax
call dword [0x100a5340]
pop ecx
mov dword [esp + 0x38], eax
test eax, eax
je 0x100541c9
lea ecx, [esp + 0x2c]
push ecx
push dword [esp + 0x34]
push eax
push esi
push ebp
call fcn.1004e581
add esp, 0x14
test eax, eax
jne 0x1005419c
movzx eax, word [esp + 0x18]
cmp dword [esp + 0x2c], eax
jne 0x1005419c
lea eax, [esp + 0x3c]
jmp 0x10053f46
push str.Failed_to_send_SSPI_authentication_token.
push edi
call fcn.1003054c
push ebx
call dword [0x100a5344]
add esp, 0xc
cmp dword [esp + 0x24], 0
je 0x10054163
mov eax, dword [0x100a73b4]
push dword [esp + 0x24]
call dword [eax + 0x40]
cmp dword [esp + 0x38], 0
je 0x10054176
push dword [esp + 0x38]
mov eax, dword [0x100a73b4]
call dword [eax + 0x40]
lea eax, [esp + 0x44]
push eax
mov eax, dword [0x100a73b4]
call dword [eax + 0x10]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [0x100a73b4]
call dword [eax + 0x24]
jmp 0x10054973
push str.Failed_to_send_SSPI_authentication_request.
jmp 0x10054140
push str.Failed_to_receive_SSPI_authentication_token.
push edi
call fcn.1003054c
push ebx
call dword [0x100a5344]
add esp, 0xc
cmp dword [esp + 0x38], 0
je 0x100541c4
push dword [esp + 0x38]
mov eax, dword [0x100a73b4]
call dword [eax + 0x40]
push 7
pop esi
jmp 0x100541f0
push 0x1b
jmp 0x100541e7
movzx eax, al
push eax
movzx eax, byte [esp + 0x14]
push eax
push str.Invalid_SSPI_authentication_response_type___u__u_.
push edi
call fcn.1003054c
add esp, 0x10
push 7
pop esi
push ebx
call dword [0x100a5344]
pop ecx
lea eax, [esp + 0x44]
push eax
mov eax, dword [0x100a73b4]
call dword [eax + 0x10]
jmp 0x1005491f
movzx eax, byte [esp + 0x10]
push 0xff
push eax
push str.User_was_rejected_by_the_SOCKS5_server___u__u_.
push edi
call fcn.1003054c
push ebx
call dword [0x100a5344]
add esp, 0x14
jmp 0x10054176
push str.Failed_to_receive_SSPI_authentication_response.
push edi
call fcn.1003054c
push ebx
call dword [0x100a5344]
add esp, 0xc
jmp 0x10054176
push ebx
call dword [0x100a5344]
pop ecx
lea eax, [esp + 0x50]
push eax
xor eax, eax
inc eax
push eax
lea eax, [esp + 0x4c]
push eax
mov eax, dword [0x100a73b4]
call dword [eax + 8]
mov ecx, dword [0x100a73b4]
mov esi, eax
lea eax, [esp + 0x44]
push eax
call dword [ecx + 0x10]
push str.QueryCredentialAttributes
push esi
push ebp
call fcn.1005498f
add esp, 0xc
test eax, eax
je 0x100542a5
lea eax, [esp + 0x3c]
push eax
mov eax, dword [0x100a73b4]
call dword [eax + 0x24]
push dword [esp + 0x50]
mov eax, dword [0x100a73b4]
call dword [eax + 0x40]
push str.Failed_to_determine_user_name.
jmp 0x1005496b
push dword [esp + 0x50]
push str.SOCKS5_server_authencticated_user__s_with_GSS_API._n
push edi
call fcn.10030603
mov eax, dword [0x100a73b4]
add esp, 0xc
push dword [esp + 0x50]
call dword [eax + 0x40]
xor eax, eax
inc eax
test byte [esp + 0x54], 0x10
mov byte [esp + 0x10], al
mov byte [esp + 0x11], 2
je 0x100542dc
mov dl, 2
xor ebx, ebx
jmp 0x100542ed
test dword [esp + 0x54], 0x10000
push 0
pop ebx
movzx edx, bl
cmovne edx, eax
cmp dl, 1
mov eax, str.confidentiality
mov ecx, str.integrity
cmovne ecx, eax
test dl, dl
mov eax, 0x100897bc
cmovne eax, ecx
push eax
push str.SOCKS5_server_supports_GSS_API__s_data_protection._n
push edi
mov byte [esp + 0x23], dl
call fcn.10030603
add esp, 0xc
mov byte [esp + 0x17], bl
cmp dword [edi + 0x548], ebx
je 0x1005432f
xor eax, eax
inc eax
push eax
jmp 0x1005458c
lea eax, [esp + 0x90]
push eax
push ebx
lea eax, [esp + 0x44]
push eax
mov eax, dword [0x100a73b4]
call dword [eax + 0x2c]
push str.QueryContextAttributes
push eax
push ebp
call fcn.1005498f
add esp, 0xc
test eax, eax
je 0x1005436f
lea eax, [esp + 0x3c]
push eax
mov eax, dword [0x100a73b4]
call dword [eax + 0x24]
push str.Failed_to_query_security_context_attributes.
jmp 0x1005496b
mov eax, dword [esp + 0x9c]
push eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], 2
call dword [0x100a5340]
pop ecx
mov dword [esp + 0xa8], eax
test eax, eax
jne 0x100543a2
push 0x1b
jmp 0x1005491e
xor eax, eax
inc eax
push eax
mov dword [esp + 0xb0], eax
call dword [0x100a5340]
pop ecx
mov dword [esp + 0xb4], eax
test eax, eax
jne 0x100543d0
push dword [esp + 0xa8]
mov eax, dword [0x100a73b4]
call dword [eax + 0x40]
jmp 0x1005439b
xor ecx, ecx
inc ecx
push ecx
lea ecx, [esp + 0x1b]
push ecx
push eax
call fcn.10058e40
mov eax, dword [esp + 0xa4]
push eax
mov dword [esp + 0xcc], 9
mov dword [esp + 0xc8], eax
call dword [0x100a5340]
add esp, 0x10
mov dword [esp + 0xc0], eax
test eax, eax
jne 0x10054425
push dword [esp + 0xa8]
mov eax, dword [0x100a73b4]
call dword [eax + 0x40]
push dword [esp + 0xb4]
jmp 0x100543c6
push ebx
lea eax, [esp + 0x60]
push eax
push reloc.WS2_32.dll_accept
lea eax, [esp + 0x48]
push eax
mov eax, dword [0x100a73b4]
call dword [eax + 0x64]
push str.EncryptMessage
push eax
push ebp
call fcn.1005498f
add esp, 0xc
test eax, eax
je 0x10054482
push dword [esp + 0xa8]
mov eax, dword [0x100a73b4]
call dword [eax + 0x40]
push dword [esp + 0xb4]
mov eax, dword [0x100a73b4]
call dword [eax + 0x40]
push dword [esp + 0xc0]
mov eax, dword [0x100a73b4]
call dword [eax + 0x40]
jmp 0x10054358
mov eax, dword [esp + 0xb8]
add eax, dword [esp + 0xac]
add eax, dword [esp + 0xa0]
push eax
mov dword [esp + 0x20], eax
call dword [0x100a5340]
pop ecx
mov dword [esp + 0x24], eax
test eax, eax
jne 0x100544d5
push dword [esp + 0xa8]
mov eax, dword [0x100a73b4]
call dword [eax + 0x40]
push dword [esp + 0xb4]
mov eax, dword [0x100a73b4]
call dword [eax + 0x40]
push dword [esp + 0xc0]
jmp 0x100543c6
push dword [esp + 0xa0]
push dword [esp + 0xac]
push eax
call fcn.10058e40
push dword [esp + 0xb8]
mov eax, dword [esp + 0x34]
push dword [esp + 0xc4]
add eax, dword [esp + 0xb4]
push eax
call fcn.10058e40
mov eax, dword [esp + 0xc4]
push dword [esp + 0xd0]
add eax, dword [esp + 0xbc]
push dword [esp + 0xdc]
add eax, dword [esp + 0x44]
push eax
call fcn.10058e40
mov eax, dword [0x100a73b4]
add esp, 0x24
push dword [esp + 0xa8]
call dword [eax + 0x40]
push dword [esp + 0xb4]
mov eax, dword [0x100a73b4]
mov dword [esp + 0xac], ebx
mov dword [esp + 0xa4], ebx
call dword [eax + 0x40]
push dword [esp + 0xc0]
mov eax, dword [0x100a73b4]
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xb0], ebx
call dword [eax + 0x40]
push dword [esp + 0x1c]
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xbc], ebx
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov dword [esp + 0x18], eax
push 2
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1a]
push eax
call fcn.10058e40
mov ebx, dword [esp + 0x64]
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push 4
lea eax, [esp + 0x18]
push eax
push ebx
push ebp
call fcn.10030a03
add esp, 0x14
test eax, eax
jne 0x100548fc
cmp dword [esp + 0x28], 4
jne 0x100548fc
xor esi, esi
cmp dword [edi + 0x548], esi
je 0x1005462a
inc eax
push eax
lea eax, [esp + 0x1b]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.10058e40
lea eax, [esp + 0x34]
push eax
xor eax, eax
inc eax
push eax
lea eax, [esp + 0x24]
push eax
push ebx
push ebp
call fcn.10030a03
add esp, 0x20
test eax, eax
jne 0x10054618
inc eax
cmp dword [esp + 0x28], eax
je 0x10054669
push str.Failed_to_send_SSPI_encryption_type.
push edi
call fcn.1003054c
pop ecx
pop ecx
jmp 0x1005491c
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x20]
push dword [esp + 0x2c]
push ebx
push ebp
call fcn.10030a03
add esp, 0x14
test eax, eax
jne 0x100548eb
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x28]
jne 0x100548eb
cmp dword [esp + 0x24], esi
je 0x10054669
push dword [esp + 0x24]
mov eax, dword [0x100a73b4]
call dword [eax + 0x40]
lea eax, [esp + 0x2c]
push eax
push 4
lea eax, [esp + 0x18]
push eax
push ebx
push ebp
call fcn.1004e581
add esp, 0x14
test eax, eax
jne 0x100548e1
cmp dword [esp + 0x2c], 4
jne 0x100548e1
mov al, byte [esp + 0x11]
cmp al, 0xff
jne 0x100546b8
movzx eax, byte [esp + 0x10]
push 0xff
push eax
push str.User_was_rejected_by_the_SOCKS5_server___u__u_.
push edi
call fcn.1003054c
add esp, 0x10
jmp 0x1005491c
cmp al, 2
je 0x100546cd
movzx eax, al
push eax
movzx eax, byte [esp + 0x14]
push eax
push str.Invalid_SSPI_encryption_response_type___u__u_.
jmp 0x100546aa
push 2
lea eax, [esp + 0x16]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.10058e40
add esp, 0xc
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0xa4], eax
call dword [0x100a5340]
pop ecx
mov dword [esp + 0xa8], eax
test eax, eax
je 0x1005439b
lea ecx, [esp + 0x2c]
push ecx
push dword [esp + 0xa4]
push eax
push ebx
push ebp
call fcn.1004e581
add esp, 0x14
test eax, eax
jne 0x100548d2
movzx eax, word [esp + 0x18]
cmp dword [esp + 0x2c], eax
jne 0x100548d2
xor ebx, ebx
inc ebx
cmp dword [edi + 0x548], esi
jne 0x10054850
lea eax, [esp + 0x84]
push eax
push esi
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [0x100a73b4]
mov dword [esp + 0x70], 2
mov dword [esp + 0xb4], 0xa
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc4], esi
call dword [eax + 0x68]
push str.DecryptMessage
push eax
push ebp
call fcn.1005498f
add esp, 0xc
test eax, eax
je 0x100547d4
cmp dword [esp + 0xa8], esi
je 0x100547bb
push dword [esp + 0xa8]
mov eax, dword [0x100a73b4]
call dword [eax + 0x40]
cmp dword [esp + 0xb4], esi
je 0x10054358
push dword [esp + 0xb4]
jmp 0x10054475
cmp dword [esp + 0xac], ebx
je 0x10054823
push dword [esp + 0xac]
push str.Invalid_SSPI_encryption_response_length___lu_.
push edi
call fcn.1003054c
add esp, 0xc
cmp dword [esp + 0xa8], esi
je 0x1005480a
push dword [esp + 0xa8]
mov eax, dword [0x100a73b4]
call dword [eax + 0x40]
cmp dword [esp + 0xb4], esi
je 0x1005491c
push dword [esp + 0xb4]
jmp 0x10054914
push ebx
push dword [esp + 0xb8]
lea eax, [esp + 0x18]
push eax
call fcn.10058e40
mov eax, dword [0x100a73b4]
add esp, 0xc
push dword [esp + 0xa8]
call dword [eax + 0x40]
push dword [esp + 0xb4]
jmp 0x10054896
cmp dword [esp + 0xa0], ebx
je 0x1005487a
push dword [esp + 0xa0]
push str.Invalid_SSPI_encryption_response_length___lu_.
push edi
call fcn.1003054c
add esp, 0xc
push dword [esp + 0xa8]
jmp 0x10054914
push ebx
push dword [esp + 0xac]
lea eax, [esp + 0x18]
push eax
call fcn.10058e40
add esp, 0xc
push dword [esp + 0xa8]
mov eax, dword [0x100a73b4]
call dword [eax + 0x40]
mov cl, byte [esp + 0x10]
test cl, cl
jne 0x100548ad
mov eax, str.out_GSS_API_data
jmp 0x100548bc
mov eax, str._GSS_API_integrity
mov edx, str._GSS_API_confidentiality
cmp cl, bl
cmovne eax, edx
push eax
push str.SOCKS5_access_with_s_protection_granted._n
push edi
call fcn.10030603
add esp, 0xc
xor eax, eax
jmp 0x10054976
push str.Failed_to_receive_SSPI_encryption_type.
push edi
call fcn.1003054c
pop ecx
pop ecx
jmp 0x1005486e
push str.Failed_to_receive_SSPI_encryption_response.
jmp 0x1005461d
push str.Failed_to_send_SSPI_encryption_type.
push edi
call fcn.1003054c
cmp dword [esp + 0x2c], esi
jmp 0x1005490c
push str.Failed_to_send_SSPI_encryption_request.
push edi
call fcn.1003054c
cmp dword [esp + 0x2c], 0
pop ecx
pop ecx
je 0x1005491c
push dword [esp + 0x24]
mov eax, dword [0x100a73b4]
call dword [eax + 0x40]
push 7
pop esi
mov ecx, dword [0x100a73b4]
lea eax, [esp + 0x3c]
push eax
call dword [ecx + 0x24]
mov eax, esi
jmp 0x10054976
push ebx
call dword [0x100a5344]
pop ecx
lea eax, [esp + 0x44]
push eax
mov eax, dword [0x100a73b4]
call dword [eax + 0x10]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [0x100a73b4]
call dword [eax + 0x24]
cmp dword [esp + 0x38], 0
je 0x10054966
push dword [esp + 0x38]
mov eax, dword [0x100a73b4]
call dword [eax + 0x40]
push str.Failed_to_initialise_security_context.
push edi
call fcn.1003054c
pop ecx
pop ecx
push 7
pop eax
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005ae75
add esp, 0xb8
ret