Function at 0x40182d
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x1010
call fcn.0046efd0
mov eax, dword [0x4b6074]
mov esi, dword [esp + 0x1024]
mov ebp, dword [esp + 0x1030]
mov ebx, dword [esp + 0x102c]
xor eax, esp
mov dword [esp + 0x100c], eax
cmp byte [esi], 0x2d
jne 0x401d2c
mov edi, dword [esp + 0x1028]
push str._load
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x401db3
push str._ssh
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x401df0
push str._telnet
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x401e52
push str._rlogin
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x401f23
push str._raw
push esi
call fcn.0047e370
add esp, 8
xor edi, edi
test eax, eax
je 0x401f70
push str._serial
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x402034
push 0x49d784
push esi
call fcn.0047e370
add esp, 8
test eax, eax
jne 0x401918
test ebx, ebx
js 0x401dab
or byte [0x4b866c], 1
xor edi, edi
inc edi
push 0x4a25e2
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x40209b
push 0x49db11
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x4020e7
push str._hostkey
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x4021f4
push 0x4a6bf9
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x402133
push 0x4a67fb
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x402133
push 0x4a7509
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x402133
push 0x4a5e01
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x40238e
push 0x4a20a5
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x40242b
push 0x4a68a5
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x40256d
push 0x49d51d
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x4025be
push str._agent
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x401a2a
push str._pagent
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x401a2a
push str._pageant
push esi
call fcn.0047e370
add esp, 8
test eax, eax
jne 0x401a5a
xor edi, edi
inc edi
test ebx, ebx
js 0x402cf6
test byte [0x4b6a14], 2
jne 0x402ce1
test ebx, ebx
jne 0x402224
push 1
push 0x1c
push ebp
call fcn.004035dc
add esp, 0xc
xor edi, edi
inc edi
push str._noagent
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x401a90
push str._nopagent
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x401a90
push str._nopageant
push esi
call fcn.0047e370
add esp, 8
test eax, eax
jne 0x401ac0
xor edi, edi
inc edi
test ebx, ebx
js 0x402cf6
test byte [0x4b6a14], 2
jne 0x402ce1
test ebx, ebx
jne 0x402224
push 0
push 0x1c
push ebp
call fcn.004035dc
add esp, 0xc
xor edi, edi
inc edi
push str._share
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x4026d9
push str._noshare
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x402722
push 0x4a7978
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x402771
push 0x4a61ca
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x4027a6
push 0x4a638b
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x4027db
push 0x49d4ff
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x402813
push 0x49e70d
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x40284b
push 0x4a65dc
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x402880
push 0x4a6a95
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x4028b5
push 0x4a7791
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x4028ea
push 0x4a901a
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x40291f
xor edi, edi
test ebx, ebx
js 0x402cf6
mov eax, dword [0x4b6a14]
test al, 4
je 0x401d4c
cmp byte [0x4b6a18], 0
je 0x401e2e
test al, 0x40
je 0x402cf6
cmp byte [0x4b6a19], 0
jne 0x402cf6
push esi
call fcn.0045562a
add esp, 4
mov esi, eax
push ebp
push 1
push eax
push 0x4a68a5
call fcn.0040182d
add esp, 0x10
mov edi, eax
push esi
call fcn.00410de6
add esp, 4
cmp edi, 2
je 0x401da4
push 0x180
push str..._cmdline.c
push str.retd__2
call fcn.0047b26f
add esp, 0xc
mov byte [0x4b6a19], 1
xor edi, edi
inc edi
jmp 0x402cf6
test edi, edi
je 0x402cf1
mov eax, edi
mov edi, 2
test ebx, ebx
js 0x402cf6
push ebp
mov esi, eax
push eax
call fcn.0041e60c
add esp, 8
mov byte [0x4b92f4], 1
push esi
call fcn.0045562a
add esp, 4
mov dword [0x4b92f8], eax
jmp 0x402cf6
mov edx, edi
xor edi, edi
inc edi
test ebx, ebx
js 0x402cf6
test byte [0x4b6a14], 3
jne 0x402ce1
test ebx, ebx
jne 0x40222b
mov eax, 3
mov dword [0x4b8680], 0x16
mov dword [0x4b867c], eax
push eax
push 2
jmp 0x401f59
test al, 0x20
je 0x401e9f
mov al, byte [0x4b92f4]
test al, al
je 0x401e9f
push ebp
call fcn.00412eab
add esp, 4
test al, al
je 0x401e9f
mov eax, dword [0x4b6a14]
jmp 0x401d4c
mov edx, edi
xor edi, edi
inc edi
test ebx, ebx
js 0x402cf6
test byte [0x4b6a14], 3
jne 0x402ce1
test ebx, ebx
jne 0x40222b
xor edi, edi
mov dword [0x4b8680], 0x17
inc edi
mov dword [0x4b867c], edi
push edi
push 2
push ebp
call fcn.004036b0
add esp, 0xc
push dword [0x4b8680]
push edi
jmp 0x401f6a
push 7
push str.telnet:
push esi
call fcn.0047e630
add esp, 0xc
test eax, eax
je 0x401fab
mov ebx, dword [0x4b6a14]
xor eax, eax
dec eax
mov dword [esp], eax
test bl, 0x10
je 0x402262
push 0x2c
push esi
call fcn.004721c0
add esp, 8
test eax, eax
je 0x402262
mov edi, eax
sub eax, esi
push esi
push eax
push 0x49f986
call fcn.004555e0
add esp, 0xc
mov esi, eax
push eax
call fcn.0041ac0c
add esp, 4
test eax, eax
je 0x40223c
mov ebx, eax
mov eax, dword [eax + 0x44]
mov dword [0x4b867c], eax
push eax
push 2
push ebp
call fcn.004036b0
add esp, 0xc
mov eax, dword [ebx + 0x48]
jmp 0x40224d
xor edi, edi
inc edi
test ebx, ebx
js 0x402cf6
test byte [0x4b6a14], 3
jne 0x402ce1
test ebx, ebx
jne 0x402224
mov eax, 2
mov dword [0x4b8680], 0x201
mov dword [0x4b867c], eax
push eax
push eax
push ebp
call fcn.004036b0
add esp, 0xc
push dword [0x4b8680]
push 1
push ebp
jmp 0x402381
xor edi, edi
inc edi
test ebx, ebx
js 0x402cf6
test byte [0x4b6a14], 3
jne 0x402ce1
test ebx, ebx
jne 0x402224
xor eax, eax
mov dword [0x4b867c], eax
push eax
push 2
push ebp
call fcn.004036b0
add esp, 0xc
xor edi, edi
inc edi
jmp 0x4018de
cmp byte [esi + 7], 0x2f
lea ebx, [esi + 7]
jne 0x401fbe
cmp byte [esi + 8], 0x2f
lea eax, [esi + 9]
cmove ebx, eax
push 1
push 2
push ebp
call fcn.004036b0
add esp, 0xc
push 0x4a9300
push ebx
call fcn.0045545c
add esp, 8
mov esi, eax
push ebx
push eax
push 0x49f986
call fcn.004555e0
add esp, 0xc
mov edi, eax
push eax
push 0
push ebp
call fcn.004037a5
add esp, 0xc
push edi
call fcn.00410de6
add esp, 4
mov byte [0x4b6a18], 1
cmp byte [ebx + esi], 0x3a
jne 0x402089
add ebx, esi
inc ebx
push ebx
call fcn.0047c1f8
add esp, 4
xor edi, edi
inc edi
push eax
push edi
push ebp
call fcn.004036b0
add esp, 0xc
mov byte [0x4b6a19], 1
jmp 0x402cf6
xor edi, edi
inc edi
test ebx, ebx
js 0x402cf6
test byte [0x4b6a14], 3
jne 0x402ce1
test ebx, ebx
jne 0x402224
mov eax, 4
mov dword [0x4b867c], eax
push eax
push 2
push ebp
call fcn.004036b0
add esp, 0xc
push 0
push ebp
call fcn.004031c8
add esp, 8
push eax
push 0x3b
push ebp
call fcn.004037a5
add esp, 0xc
xor edi, edi
inc edi
jmp 0x4018f4
push 0xffffffffffffffff
push 1
push ebp
call fcn.004036b0
add esp, 0xc
jmp 0x401dab
cmp dword [esp + 0x1028], 0
je 0x402cf1
mov edi, 2
test ebx, ebx
js 0x402cf6
test byte [0x4b6a14], 2
jne 0x402ce1
test ebx, ebx
jne 0x402224
push dword [esp + 0x1028]
push 0x36
push ebp
call fcn.004037a5
add esp, 0xc
mov edi, 2
jmp 0x40192e
cmp dword [esp + 0x1028], 0
je 0x402cf1
mov edi, 2
test ebx, ebx
js 0x402cf6
test byte [0x4b6a14], 2
jne 0x402ce1
test ebx, ebx
jne 0x402224
push dword [esp + 0x1028]
push 9
push ebp
call fcn.004037a5
add esp, 0xc
mov edi, 2
jmp 0x401944
cmp dword [esp + 0x1028], 0
je 0x402cf1
mov edi, 2
test ebx, ebx
js 0x402cf6
test byte [0x4b6a14], 3
jne 0x402ce1
test ebx, ebx
jne 0x402224
push 0x4a7509
push esi
call fcn.0047e370
add esp, 8
test eax, eax
je 0x40262d
movsx eax, byte [esi + 1]
mov dword [esp + 4], eax
push 0x3a
push dword [esp + 0x102c]
call fcn.004554df
add esp, 8
test eax, eax
je 0x40261f
mov ebp, eax
mov dword [esp], eax
lea eax, [ebp + 1]
push 0x3a
push eax
call fcn.004554df
add esp, 8
mov ecx, eax
mov eax, ebp
test ecx, ecx
mov ebp, ecx
jne 0x40219c
cmp dword [esp], 0
mov ebp, dword [esp + 0x1030]
je 0x40261f
mov edi, dword [esp]
mov ecx, dword [esp + 0x1028]
mov eax, edi
sub eax, ecx
push ecx
push eax
push dword [esp + 0xc]
push str._c_.s
call fcn.004555e0
add esp, 0x10
inc edi
mov dword [esp + 4], eax
push edi
jmp 0x40264a
cmp dword [esp + 0x1028], 0
je 0x402cf1
mov edi, 2
test ebx, ebx
js 0x402cf6
test byte [0x4b6a14], 2
jne 0x402ce1
test ebx, ebx
je 0x40251e
mov edx, dword [esp + 0x1028]
mov ecx, esi
push 0
call fcn.00402d11
add esp, 4
jmp 0x402cf6
push esi
push str.unrecognised_protocol_prefix__s
call fcn.0045cd75
add esp, 8
xor eax, eax
dec eax
mov dword [esp], eax
push esi
call fcn.00410de6
add esp, 4
mov ebx, dword [0x4b6a14]
inc edi
mov esi, edi
xor edi, edi
test bl, 8
jne 0x40226d
mov ebp, esi
jmp 0x402296
push 0x40
push esi
call fcn.004722f0
add esp, 8
test eax, eax
mov ebp, esi
je 0x402296
mov ebx, eax
sub eax, esi
push esi
push eax
push 0x49f986
call fcn.004555e0
add esp, 0xc
inc ebx
mov edi, eax
mov ebp, ebx
push 0x4ac3ac
push esi
call fcn.0047e890
add esp, 8
add eax, esi
push eax
call fcn.0045562a
add esp, 4
mov esi, eax
push eax
call fcn.0047e5a0
add esp, 4
test eax, eax
je 0x4022d4
mov cl, byte [esi + eax - 1]
cmp cl, 0x20
je 0x4022cc
cmp cl, 9
jne 0x4022d4
mov byte [esi + eax - 1], 0
dec eax
jne 0x4022be
mov byte [0x4b6a18], 1
push esi
push 0
push dword [esp + 0x1038]
call fcn.004037a5
add esp, 0xc
mov eax, dword [0x4b6a14]
test al, 8
je 0x402357
mov al, byte [0x4b92f4]
test al, al
jne 0x402357
call fcn.00402e28
mov ebx, eax
push eax
push ebp
call fcn.0041e60c
add esp, 8
test al, al
je 0x40234e
push ebx
call fcn.00412eab
add esp, 4
test al, al
je 0x40234e
push ebx
push dword [esp + 0x1034]
call fcn.00402ee0
add esp, 8
test edi, edi
mov byte [0x4b92f4], 1
je 0x40234e
push edi
push 0x36
push dword [esp + 0x1038]
call fcn.004037a5
add esp, 0xc
push ebx
call fcn.00402ea2
add esp, 4
push esi
call fcn.00410de6
add esp, 4
push edi
call fcn.00410de6
add esp, 4
mov eax, dword [esp]
xor edi, edi
inc edi
test eax, eax
js 0x402cf6
push eax
push 1
push dword [esp + 0x1038]
call fcn.004036b0
add esp, 0xc
jmp 0x402cf6
cmp dword [esp + 0x1028], 0
je 0x402cf1
mov edi, 2
test ebx, ebx
js 0x402cf6
test byte [0x4b6a14], 3
jne 0x402ce1
test ebx, ebx
jne 0x402224
push 0x3a
push dword [esp + 0x102c]
call fcn.004554df
add esp, 8
test eax, eax
je 0x402687
mov ecx, dword [esp + 0x1028]
mov edi, eax
sub eax, ecx
push ecx
push eax
push 0x49f986
call fcn.004555e0
add esp, 0xc
mov dword [esp], eax
push eax
push 0x30
push ebp
call fcn.004037a5
add esp, 0xc
inc edi
push edi
call fcn.0047c1f8
add esp, 4
push eax
push 0x31
push ebp
call fcn.004036b0
add esp, 0xc
push dword [esp]
call fcn.00410de6
add esp, 4
mov edi, 2
jmp 0x4019b2
cmp dword [esp + 0x1028], 0
je 0x402cf1
mov edi, 2
test ebx, ebx
js 0x402cf6
test byte [0x4b6a14], 3
jne 0x402ce1
test ebx, ebx
jne 0x402224
push 0x4a0dc9
push dword [esp + 0x102c]
call fcn.0047d2fe
add esp, 8
test eax, eax
je 0x402711
mov ebp, eax
call fcn.0045587e
mov dword [esp + 4], eax
lea eax, [esp + 0xc]
mov dword [esp], ebp
push ebp
push 0x1000
push 1
push eax
call fcn.0047d492
add esp, 0x10
test eax, eax
je 0x4024cb
mov ebp, dword [esp + 4]
add ebp, 0xc
push eax
lea edi, [esp + 0x10]
push edi
push ebp
call fcn.00410810
add esp, 0xc
push dword [esp]
push 0x1000
push 1
push edi
call fcn.0047d492
add esp, 0x10
test eax, eax
jne 0x4024a5
push dword [esp]
call fcn.0047ce08
add esp, 4
mov edi, dword [esp + 4]
push dword [edi]
push 0x14
mov ebp, dword [esp + 0x1038]
push ebp
call fcn.004037a5
add esp, 0xc
push 0x4ac4e7
push 0x15
push ebp
call fcn.004037a5
add esp, 0xc
push 1
push 0x16
push ebp
call fcn.004035dc
add esp, 0xc
push edi
call fcn.004558de
add esp, 4
mov edi, 2
jmp 0x4019c8
mov eax, dword [esp + 0x1028]
push eax
call fcn.0045562a
add esp, 4
mov dword [esp], eax
push eax
call fcn.00412f03
add esp, 4
test al, al
je 0x4025fe
push 0x4ac4e7
mov edi, dword [esp + 4]
push edi
push 0xba
push ebp
call fcn.00403820
add esp, 0x10
push edi
call fcn.00410de6
add esp, 4
mov edi, 2
jmp 0x40195a
cmp dword [esp + 0x1028], 0
je 0x402cf1
mov edi, 2
test ebx, ebx
js 0x402cf6
test byte [0x4b6a14], 2
jne 0x402ce1
test ebx, ebx
jne 0x4025ee
push dword [esp + 0x1028]
call fcn.0047c1f8
add esp, 4
push eax
push 1
push ebp
call fcn.004036b0
add esp, 0xc
mov edi, 2
jmp 0x4019de
cmp dword [esp + 0x1028], 0
je 0x402cf1
mov edi, 2
test ebx, ebx
js 0x402cf6
test byte [0x4b6a14], 2
jne 0x402ce1
test ebx, ebx
je 0x402696
mov edx, dword [esp + 0x1028]
mov ecx, esi
push 1
jmp 0x40222f
push dword [esp + 0x1028]
push str._s_is_not_a_valid_format_for_a_manual_host_key_specification
call fcn.0045cd75
add esp, 8
push dword [esp]
call fcn.00410de6
jmp 0x402234
push dword [esp + 4]
push str.__c_expects_at_least_two_colons_in_its_argument
jmp 0x402ce7
push dword [esp + 0x1028]
push 0x49fb36
call fcn.004555e0
add esp, 8
mov dword [esp + 4], eax
push 0x4a750a
call fcn.0045562a
add esp, 4
mov dword [esp], eax
push eax
mov edi, dword [esp + 8]
push edi
push 0xa8
push ebp
call fcn.00403820
add esp, 0x10
push edi
call fcn.00410de6
add esp, 4
push dword [esp]
call fcn.00410de6
add esp, 4
mov edi, 2
jmp 0x40199c
push str._nc_expects_argument_of_form_host:port
call fcn.0045cd75
jmp 0x402234
push 2
push ebp
call fcn.00403083
add esp, 8
cmp eax, 3
jne 0x40275a
mov eax, dword [esp + 0x1028]
mov edi, eax
push eax
call fcn.0045562a
add esp, 4
mov dword [0x4b69f4], eax
push edi
call fcn.0047e5a0
add esp, 4
push eax
push edi
call fcn.00467158
add esp, 8
jmp 0x402767
xor edi, edi
inc edi
test ebx, ebx
js 0x402cf6
test byte [0x4b6a14], 2
jne 0x402ce1
test ebx, ebx
jne 0x402224
push 1
push 0xb7
push ebp
call fcn.004035dc
add esp, 0xc
xor edi, edi
inc edi
jmp 0x401ad6
push dword [esp + 0x1028]
push str.unable_to_open_command_file___s_
jmp 0x402ce7
xor edi, edi
inc edi
test ebx, ebx
js 0x402cf6
test byte [0x4b6a14], 2
jne 0x402ce1
test ebx, ebx
jne 0x402224
push 0
push 0xb7
push ebp
call fcn.004035dc
add esp, 0xc
xor edi, edi
inc edi
jmp 0x401aec
push str.the__pw_option_can_only_be_used_with_the_SSH_protocol
call fcn.0045cd75
add esp, 4
mov edi, 2
jmp 0x4019f4
xor edi, edi
inc edi
test ebx, ebx
js 0x402cf6
test byte [0x4b6a14], 3
jne 0x402ce1
test ebx, ebx
jne 0x402224
push 1
push 0x1d
push ebp
call fcn.004035dc
add esp, 0xc
xor edi, edi
inc edi
jmp 0x401b02
xor edi, edi
inc edi
test ebx, ebx
js 0x402cf6
test byte [0x4b6a14], 3
jne 0x402ce1
test ebx, ebx
jne 0x402224
push 0
push 0x1d
push ebp
call fcn.004035dc
add esp, 0xc
xor edi, edi
inc edi
jmp 0x401b18
xor edi, edi
inc edi
test ebx, ebx
js 0x402cf6
test byte [0x4b6a14], 3
jne 0x402ce1
test ebx, ebx
jne 0x402224
push 1
push 0xa2
push ebp
call fcn.004035dc
add esp, 0xc
xor edi, edi
inc edi
jmp 0x401b2e
xor edi, edi
inc edi
test ebx, ebx
js 0x402cf6
test byte [0x4b6a14], 3
jne 0x402ce1
test ebx, ebx
jne 0x402224
push 0
push 0xa2
push ebp
call fcn.004035dc
add esp, 0xc
xor edi, edi
inc edi
jmp 0x401b44
xor edi, edi
inc edi
test ebx, ebx
js 0x402cf6
test byte [0x4b6a14], 3
jne 0x402ce1
test ebx, ebx
jne 0x4025ee
push 0
push 0x16
push ebp
call fcn.004035dc
add esp, 0xc
xor edi, edi
inc edi
jmp 0x401b5a
xor edi, edi
inc edi
test ebx, ebx
js 0x402cf6
test byte [0x4b6a14], 3
jne 0x402ce1
test ebx, ebx
jne 0x4025ee
push 1
push 0x16
push ebp
call fcn.004035dc
add esp, 0xc
xor edi, edi
inc edi
jmp 0x401b70
xor edi, edi
inc edi
test ebx, ebx
js 0x402cf6
test byte [0x4b6a14], 3
jne 0x402ce1
test ebx, ebx
jne 0x402224
push 1
push 0x2f
push ebp
call fcn.004035dc
add esp, 0xc
xor edi, edi
inc edi
jmp 0x401b86
xor edi, edi
inc edi
test ebx, ebx
js 0x402cf6
test byte [0x4b6a14], 2
jne 0x402ce1
test ebx, ebx
jne 0x402224
push 1
push 0x17
push ebp
call fcn.004035dc
add esp, 0xc
xor edi, edi
inc edi
jmp 0x401b9c
push esi
push str.option___s__not_available_in_this_tool
call fcn.0045cd75
add esp, 8
jmp 0x402cf6
mov edi, 0xfffffffe
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0046ef41
mov eax, edi
add esp, 0x1010
pop esi
pop edi
pop ebx
pop ebp
ret